var $localize=Object.assign(void 0===$localize?{}:$localize,{locale:"pt"});
"use strict";(function(global){global.ng=global.ng||{};global.ng.common=global.ng.common||{};global.ng.common.locales=global.ng.common.locales||{};const u=undefined;function plural(val){const n=val,i=Math.floor(Math.abs(val)),v=val.toString().replace(/^[^.]*\.?/,"").length,e=parseInt(val.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;if(i===Math.floor(i)&&i>=0&&i<=1)return 1;if(e===0&&!(i===0)&&i%1000000===0&&v===0||!(e>=0&&e<=5))return 4;return 5}global.ng.common.locales["pt"]=["pt",[["AM","PM"],u,u],u,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],u,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],u,[["a.C.","d.C."],u,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",u,u,u],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{"AUD":["AU$","$"],"BYN":[u,"\u0440."],"JPY":["JP\xA5","\xA5"],"PHP":[u,"\u20B1"],"PTE":["Esc."],"RON":[u,"L"],"SYP":[u,"S\xA3"],"THB":["\u0E3F"],"TWD":["NT$"],"USD":["US$","$"]},"ltr",plural,[[["meia-noite","meio-dia","da manh\xE3","da tarde","da noite","da madrugada"],u,u],[["meia-noite","meio-dia","manh\xE3","tarde","noite","madrugada"],u,u],["00:00","12:00",["06:00","12:00"],["12:00","19:00"],["19:00","24:00"],["00:00","06:00"]]]]})(typeof globalThis!=="undefined"&&globalThis||typeof global!=="undefined"&&global||typeof window!=="undefined"&&window);;
var FU=(v,x,S)=>{if(x.has(v))throw TypeError("Cannot add the same private member more than once");x instanceof WeakSet?x.add(v):x.set(v,S)};(self.webpackChunkloja=self.webpackChunkloja||[]).push([[179],{1050:(v,x,S)=>{var LU,RU,D={};S.r(D),S.d(D,{easeOutElastic:()=>Nce,linear:()=>Oce,swing:()=>Pce});var n=S(2560);let O=null;function R(){return O}const ie=new n.OlP("DocumentToken");let pe=(()=>{class i{historyGo(t){throw new Error("Not implemented")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return function de(){return(0,n.LFG)(me)}()},providedIn:"platform"}),i})();const Ce=new n.OlP("Location Initialized");let me=(()=>{class i extends pe{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return R().getBaseHref(this._doc)}onPopState(t){const r=R().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=R().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,r,s){we()?this._history.pushState(t,r,s):this.location.hash=s}replaceState(t,r,s){we()?this._history.replaceState(t,r,s):this.location.hash=s}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:function(){return function Ve(){return new me((0,n.LFG)(ie))}()},providedIn:"platform"}),i})();function we(){return!!window.history.pushState}function Pe(i,o){if(0==i.length)return o;if(0==o.length)return i;let t=0;return i.endsWith("/")&&t++,o.startsWith("/")&&t++,2==t?i+o.substring(1):1==t?i+o:i+"/"+o}function rt(i){const o=i.match(/#|\?|$/),t=o&&o.index||i.length;return i.slice(0,t-("/"===i[t-1]?1:0))+i.slice(t)}function Je(i){return i&&"?"!==i[0]?"?"+i:i}let xt=(()=>{class i{historyGo(t){throw new Error("Not implemented")}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(Mi)},providedIn:"root"}),i})();const ln=new n.OlP("appBaseHref");let Mi=(()=>{class i extends xt{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??(0,n.f3M)(ie).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Pe(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Je(this._platformLocation.search),s=this._platformLocation.hash;return s&&t?`${r}${s}`:r}pushState(t,r,s,l){const u=this.prepareExternalUrl(s+Je(l));this._platformLocation.pushState(t,r,u)}replaceState(t,r,s,l){const u=this.prepareExternalUrl(s+Je(l));this._platformLocation.replaceState(t,r,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(pe),n.LFG(ln,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),xo=(()=>{class i extends xt{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Pe(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,s,l){let u=this.prepareExternalUrl(s+Je(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.pushState(t,r,u)}replaceState(t,r,s,l){let u=this.prepareExternalUrl(s+Je(l));0==u.length&&(u=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,u)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(pe),n.LFG(ln,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),_n=(()=>{class i{constructor(t){this._subject=new n.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._baseHref=rt(vt(r)),this._locationStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Je(r))}normalize(t){return i.stripTrailingSlash(function cn(i,o){return i&&o.startsWith(i)?o.substring(i.length):o}(this._baseHref,vt(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",s=null){this._locationStrategy.pushState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Je(r)),s)}replaceState(t,r="",s=null){this._locationStrategy.replaceState(s,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Je(r)),s)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(s=>s(t,r))}subscribe(t,r,s){return this._subject.subscribe({next:t,error:r,complete:s})}}return i.normalizeQueryParams=Je,i.joinWithSlash=Pe,i.stripTrailingSlash=rt,i.\u0275fac=function(t){return new(t||i)(n.LFG(xt))},i.\u0275prov=n.Yz7({token:i,factory:function(){return function $t(){return new _n((0,n.LFG)(xt))}()},providedIn:"root"}),i})();function vt(i){return i.replace(/\/index.html$/,"")}const Aa={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var li=(()=>((li=li||{})[li.Decimal=0]="Decimal",li[li.Percent=1]="Percent",li[li.Currency=2]="Currency",li[li.Scientific=3]="Scientific",li))(),Bi=(()=>((Bi=Bi||{})[Bi.Format=0]="Format",Bi[Bi.Standalone=1]="Standalone",Bi))(),$n=(()=>(($n=$n||{})[$n.Narrow=0]="Narrow",$n[$n.Abbreviated=1]="Abbreviated",$n[$n.Wide=2]="Wide",$n[$n.Short=3]="Short",$n))(),xi=(()=>((xi=xi||{})[xi.Short=0]="Short",xi[xi.Medium=1]="Medium",xi[xi.Long=2]="Long",xi[xi.Full=3]="Full",xi))(),pn=(()=>((pn=pn||{})[pn.Decimal=0]="Decimal",pn[pn.Group=1]="Group",pn[pn.List=2]="List",pn[pn.PercentSign=3]="PercentSign",pn[pn.PlusSign=4]="PlusSign",pn[pn.MinusSign=5]="MinusSign",pn[pn.Exponential=6]="Exponential",pn[pn.SuperscriptingExponent=7]="SuperscriptingExponent",pn[pn.PerMille=8]="PerMille",pn[pn.Infinity=9]="Infinity",pn[pn.NaN=10]="NaN",pn[pn.TimeSeparator=11]="TimeSeparator",pn[pn.CurrencyDecimal=12]="CurrencyDecimal",pn[pn.CurrencyGroup=13]="CurrencyGroup",pn))();function mo(i,o){return eo((0,n.cg1)(i)[n.wAp.DateFormat],o)}function Ta(i,o){return eo((0,n.cg1)(i)[n.wAp.TimeFormat],o)}function zr(i,o){return eo((0,n.cg1)(i)[n.wAp.DateTimeFormat],o)}function Zi(i,o){const t=(0,n.cg1)(i),r=t[n.wAp.NumberSymbols][o];if(typeof r>"u"){if(o===pn.CurrencyDecimal)return t[n.wAp.NumberSymbols][pn.Decimal];if(o===pn.CurrencyGroup)return t[n.wAp.NumberSymbols][pn.Group]}return r}function ls(i,o){return(0,n.cg1)(i)[n.wAp.NumberFormats][o]}function Ho(i){if(!i[n.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${i[n.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function eo(i,o){for(let t=o;t>-1;t--)if(typeof i[t]<"u")return i[t];throw new Error("Locale data API: locale data undefined")}function Fr(i){const[o,t]=i.split(":");return{hours:+o,minutes:+t}}const Gt=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,mr={},pc=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Li=(()=>((Li=Li||{})[Li.Short=0]="Short",Li[Li.ShortGMT=1]="ShortGMT",Li[Li.Long=2]="Long",Li[Li.Extended=3]="Extended",Li))(),qt=(()=>((qt=qt||{})[qt.FullYear=0]="FullYear",qt[qt.Month=1]="Month",qt[qt.Date=2]="Date",qt[qt.Hours=3]="Hours",qt[qt.Minutes=4]="Minutes",qt[qt.Seconds=5]="Seconds",qt[qt.FractionalSeconds=6]="FractionalSeconds",qt[qt.Day=7]="Day",qt))(),Zt=(()=>((Zt=Zt||{})[Zt.DayPeriods=0]="DayPeriods",Zt[Zt.Days=1]="Days",Zt[Zt.Months=2]="Months",Zt[Zt.Eras=3]="Eras",Zt))();function Go(i,o,t,r){let s=function wt(i){if(Bn(i))return i;if("number"==typeof i&&!isNaN(i))return new Date(i);if("string"==typeof i){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){const[s,l=1,u=1]=i.split("-").map(p=>+p);return Ps(s,l-1,u)}const t=parseFloat(i);if(!isNaN(i-t))return new Date(t);let r;if(r=i.match(Gt))return function rr(i){const o=new Date(0);let t=0,r=0;const s=i[8]?o.setUTCFullYear:o.setFullYear,l=i[8]?o.setUTCHours:o.setHours;i[9]&&(t=Number(i[9]+i[10]),r=Number(i[9]+i[11])),s.call(o,Number(i[1]),Number(i[2])-1,Number(i[3]));const u=Number(i[4]||0)-t,p=Number(i[5]||0)-r,y=Number(i[6]||0),A=Math.floor(1e3*parseFloat("0."+(i[7]||0)));return l.call(o,u,p,y,A),o}(r)}const o=new Date(i);if(!Bn(o))throw new Error(`Unable to convert "${i}" into a date`);return o}(i);o=or(t,o)||o;let p,u=[];for(;o;){if(p=pc.exec(o),!p){u.push(o);break}{u=u.concat(p.slice(1));const w=u.pop();if(!w)break;o=w}}let y=s.getTimezoneOffset();r&&(y=_t(r,y),s=function Ft(i,o,t){const r=t?-1:1,s=i.getTimezoneOffset();return function Rt(i,o){return(i=new Date(i.getTime())).setMinutes(i.getMinutes()+o),i}(i,r*(_t(o,s)-s))}(s,r,!0));let A="";return u.forEach(w=>{const I=function he(i){if(We[i])return We[i];let o;switch(i){case"G":case"GG":case"GGG":o=et(Zt.Eras,$n.Abbreviated);break;case"GGGG":o=et(Zt.Eras,$n.Wide);break;case"GGGGG":o=et(Zt.Eras,$n.Narrow);break;case"y":o=ge(qt.FullYear,1,0,!1,!0);break;case"yy":o=ge(qt.FullYear,2,0,!0,!0);break;case"yyy":o=ge(qt.FullYear,3,0,!1,!0);break;case"yyyy":o=ge(qt.FullYear,4,0,!1,!0);break;case"Y":o=Qe(1);break;case"YY":o=Qe(2,!0);break;case"YYY":o=Qe(3);break;case"YYYY":o=Qe(4);break;case"M":case"L":o=ge(qt.Month,1,1);break;case"MM":case"LL":o=ge(qt.Month,2,1);break;case"MMM":o=et(Zt.Months,$n.Abbreviated);break;case"MMMM":o=et(Zt.Months,$n.Wide);break;case"MMMMM":o=et(Zt.Months,$n.Narrow);break;case"LLL":o=et(Zt.Months,$n.Abbreviated,Bi.Standalone);break;case"LLLL":o=et(Zt.Months,$n.Wide,Bi.Standalone);break;case"LLLLL":o=et(Zt.Months,$n.Narrow,Bi.Standalone);break;case"w":o=J(1);break;case"ww":o=J(2);break;case"W":o=J(1,!0);break;case"d":o=ge(qt.Date,1);break;case"dd":o=ge(qt.Date,2);break;case"c":case"cc":o=ge(qt.Day,1);break;case"ccc":o=et(Zt.Days,$n.Abbreviated,Bi.Standalone);break;case"cccc":o=et(Zt.Days,$n.Wide,Bi.Standalone);break;case"ccccc":o=et(Zt.Days,$n.Narrow,Bi.Standalone);break;case"cccccc":o=et(Zt.Days,$n.Short,Bi.Standalone);break;case"E":case"EE":case"EEE":o=et(Zt.Days,$n.Abbreviated);break;case"EEEE":o=et(Zt.Days,$n.Wide);break;case"EEEEE":o=et(Zt.Days,$n.Narrow);break;case"EEEEEE":o=et(Zt.Days,$n.Short);break;case"a":case"aa":case"aaa":o=et(Zt.DayPeriods,$n.Abbreviated);break;case"aaaa":o=et(Zt.DayPeriods,$n.Wide);break;case"aaaaa":o=et(Zt.DayPeriods,$n.Narrow);break;case"b":case"bb":case"bbb":o=et(Zt.DayPeriods,$n.Abbreviated,Bi.Standalone,!0);break;case"bbbb":o=et(Zt.DayPeriods,$n.Wide,Bi.Standalone,!0);break;case"bbbbb":o=et(Zt.DayPeriods,$n.Narrow,Bi.Standalone,!0);break;case"B":case"BB":case"BBB":o=et(Zt.DayPeriods,$n.Abbreviated,Bi.Format,!0);break;case"BBBB":o=et(Zt.DayPeriods,$n.Wide,Bi.Format,!0);break;case"BBBBB":o=et(Zt.DayPeriods,$n.Narrow,Bi.Format,!0);break;case"h":o=ge(qt.Hours,1,-12);break;case"hh":o=ge(qt.Hours,2,-12);break;case"H":o=ge(qt.Hours,1);break;case"HH":o=ge(qt.Hours,2);break;case"m":o=ge(qt.Minutes,1);break;case"mm":o=ge(qt.Minutes,2);break;case"s":o=ge(qt.Seconds,1);break;case"ss":o=ge(qt.Seconds,2);break;case"S":o=ge(qt.FractionalSeconds,1);break;case"SS":o=ge(qt.FractionalSeconds,2);break;case"SSS":o=ge(qt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":o=tn(Li.Short);break;case"ZZZZZ":o=tn(Li.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":o=tn(Li.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":o=tn(Li.Long);break;default:return null}return We[i]=o,o}(w);A+=I?I(s,t,y):"''"===w?"'":w.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),A}function Ps(i,o,t){const r=new Date(0);return r.setFullYear(i,o,t),r.setHours(0,0,0),r}function or(i,o){const t=function Ba(i){return(0,n.cg1)(i)[n.wAp.LocaleId]}(i);if(mr[t]=mr[t]||{},mr[t][o])return mr[t][o];let r="";switch(o){case"shortDate":r=mo(i,xi.Short);break;case"mediumDate":r=mo(i,xi.Medium);break;case"longDate":r=mo(i,xi.Long);break;case"fullDate":r=mo(i,xi.Full);break;case"shortTime":r=Ta(i,xi.Short);break;case"mediumTime":r=Ta(i,xi.Medium);break;case"longTime":r=Ta(i,xi.Long);break;case"fullTime":r=Ta(i,xi.Full);break;case"short":const s=or(i,"shortTime"),l=or(i,"shortDate");r=An(zr(i,xi.Short),[s,l]);break;case"medium":const u=or(i,"mediumTime"),p=or(i,"mediumDate");r=An(zr(i,xi.Medium),[u,p]);break;case"long":const y=or(i,"longTime"),A=or(i,"longDate");r=An(zr(i,xi.Long),[y,A]);break;case"full":const w=or(i,"fullTime"),I=or(i,"fullDate");r=An(zr(i,xi.Full),[w,I])}return r&&(mr[t][o]=r),r}function An(i,o){return o&&(i=i.replace(/\{([^}]+)}/g,function(t,r){return null!=o&&r in o?o[r]:t})),i}function In(i,o,t="-",r,s){let l="";(i<0||s&&i<=0)&&(s?i=1-i:(i=-i,l=t));let u=String(i);for(;u.length<o;)u="0"+u;return r&&(u=u.slice(u.length-o)),l+u}function ge(i,o,t=0,r=!1,s=!1){return function(l,u){let p=function dt(i,o){switch(i){case qt.FullYear:return o.getFullYear();case qt.Month:return o.getMonth();case qt.Date:return o.getDate();case qt.Hours:return o.getHours();case qt.Minutes:return o.getMinutes();case qt.Seconds:return o.getSeconds();case qt.FractionalSeconds:return o.getMilliseconds();case qt.Day:return o.getDay();default:throw new Error(`Unknown DateType value "${i}".`)}}(i,l);if((t>0||p>-t)&&(p+=t),i===qt.Hours)0===p&&-12===t&&(p=12);else if(i===qt.FractionalSeconds)return function cl(i,o){return In(i,3).substring(0,o)}(p,o);const y=Zi(u,pn.MinusSign);return In(p,o,y,r,s)}}function et(i,o,t=Bi.Format,r=!1){return function(s,l){return function Ot(i,o,t,r,s,l){switch(t){case Zt.Months:return function pi(i,o,t){const r=(0,n.cg1)(i),l=eo([r[n.wAp.MonthsFormat],r[n.wAp.MonthsStandalone]],o);return eo(l,t)}(o,s,r)[i.getMonth()];case Zt.Days:return function nr(i,o,t){const r=(0,n.cg1)(i),l=eo([r[n.wAp.DaysFormat],r[n.wAp.DaysStandalone]],o);return eo(l,t)}(o,s,r)[i.getDay()];case Zt.DayPeriods:const u=i.getHours(),p=i.getMinutes();if(l){const A=function Ln(i){const o=(0,n.cg1)(i);return Ho(o),(o[n.wAp.ExtraData][2]||[]).map(r=>"string"==typeof r?Fr(r):[Fr(r[0]),Fr(r[1])])}(o),w=function So(i,o,t){const r=(0,n.cg1)(i);Ho(r);const l=eo([r[n.wAp.ExtraData][0],r[n.wAp.ExtraData][1]],o)||[];return eo(l,t)||[]}(o,s,r),I=A.findIndex(P=>{if(Array.isArray(P)){const[F,V]=P,oe=u>=F.hours&&p>=F.minutes,Ae=u<V.hours||u===V.hours&&p<V.minutes;if(F.hours<V.hours){if(oe&&Ae)return!0}else if(oe||Ae)return!0}else if(P.hours===u&&P.minutes===p)return!0;return!1});if(-1!==I)return w[I]}return function xa(i,o,t){const r=(0,n.cg1)(i),l=eo([r[n.wAp.DayPeriodsFormat],r[n.wAp.DayPeriodsStandalone]],o);return eo(l,t)}(o,s,r)[u<12?0:1];case Zt.Eras:return function jt(i,o){return eo((0,n.cg1)(i)[n.wAp.Eras],o)}(o,r)[i.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${t}`)}}(s,l,i,o,t,r)}}function tn(i){return function(o,t,r){const s=-1*r,l=Zi(t,pn.MinusSign),u=s>0?Math.floor(s/60):Math.ceil(s/60);switch(i){case Li.Short:return(s>=0?"+":"")+In(u,2,l)+In(Math.abs(s%60),2,l);case Li.ShortGMT:return"GMT"+(s>=0?"+":"")+In(u,1,l);case Li.Long:return"GMT"+(s>=0?"+":"")+In(u,2,l)+":"+In(Math.abs(s%60),2,l);case Li.Extended:return 0===r?"Z":(s>=0?"+":"")+In(u,2,l)+":"+In(Math.abs(s%60),2,l);default:throw new Error(`Unknown zone width "${i}"`)}}}function Vi(i){return Ps(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))}function J(i,o=!1){return function(t,r){let s;if(o){const l=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,u=t.getDate();s=1+Math.floor((u+l)/7)}else{const l=Vi(t),u=function Un(i){const o=Ps(i,0,1).getDay();return Ps(i,0,1+(o<=4?4:11)-o)}(l.getFullYear()),p=l.getTime()-u.getTime();s=1+Math.round(p/6048e5)}return In(s,i,Zi(r,pn.MinusSign))}}function Qe(i,o=!1){return function(t,r){return In(Vi(t).getFullYear(),i,Zi(r,pn.MinusSign),o)}}const We={};function _t(i,o){i=i.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(t)?o:t}function Bn(i){return i instanceof Date&&!isNaN(i.valueOf())}const Hi=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Os(i,o,t,r,s,l,u=!1){let p="",y=!1;if(isFinite(i)){let A=function dl(i){let r,s,l,u,p,o=Math.abs(i)+"",t=0;for((s=o.indexOf("."))>-1&&(o=o.replace(".","")),(l=o.search(/e/i))>0?(s<0&&(s=l),s+=+o.slice(l+1),o=o.substring(0,l)):s<0&&(s=o.length),l=0;"0"===o.charAt(l);l++);if(l===(p=o.length))r=[0],s=1;else{for(p--;"0"===o.charAt(p);)p--;for(s-=l,r=[],u=0;l<=p;l++,u++)r[u]=Number(o.charAt(l))}return s>22&&(r=r.splice(0,21),t=s-1,s=1),{digits:r,exponent:t,integerLen:s}}(i);u&&(A=function Gc(i){if(0===i.digits[0])return i;const o=i.digits.length-i.integerLen;return i.exponent?i.exponent+=2:(0===o?i.digits.push(0,0):1===o&&i.digits.push(0),i.integerLen+=2),i}(A));let w=o.minInt,I=o.minFrac,P=o.maxFrac;if(l){const Se=l.match(Hi);if(null===Se)throw new Error(`${l} is not a valid digit info`);const Be=Se[1],Me=Se[3],He=Se[5];null!=Be&&(w=hc(Be)),null!=Me&&(I=hc(Me)),null!=He?P=hc(He):null!=Me&&I>P&&(P=I)}!function la(i,o,t){if(o>t)throw new Error(`The minimum number of digits after fraction (${o}) is higher than the maximum (${t}).`);let r=i.digits,s=r.length-i.integerLen;const l=Math.min(Math.max(o,s),t);let u=l+i.integerLen,p=r[u];if(u>0){r.splice(Math.max(i.integerLen,u));for(let I=u;I<r.length;I++)r[I]=0}else{s=Math.max(0,s),i.integerLen=1,r.length=Math.max(1,u=l+1),r[0]=0;for(let I=1;I<u;I++)r[I]=0}if(p>=5)if(u-1<0){for(let I=0;I>u;I--)r.unshift(0),i.integerLen++;r.unshift(1),i.integerLen++}else r[u-1]++;for(;s<Math.max(0,l);s++)r.push(0);let y=0!==l;const A=o+i.integerLen,w=r.reduceRight(function(I,P,F,V){return V[F]=(P+=I)<10?P:P-10,y&&(0===V[F]&&F>=A?V.pop():y=!1),P>=10?1:0},0);w&&(r.unshift(w),i.integerLen++)}(A,I,P);let F=A.digits,V=A.integerLen;const oe=A.exponent;let Ae=[];for(y=F.every(Se=>!Se);V<w;V++)F.unshift(0);for(;V<0;V++)F.unshift(0);V>0?Ae=F.splice(V,F.length):(Ae=F,F=[0]);const ue=[];for(F.length>=o.lgSize&&ue.unshift(F.splice(-o.lgSize,F.length).join(""));F.length>o.gSize;)ue.unshift(F.splice(-o.gSize,F.length).join(""));F.length&&ue.unshift(F.join("")),p=ue.join(Zi(t,r)),Ae.length&&(p+=Zi(t,s)+Ae.join("")),oe&&(p+=Zi(t,pn.Exponential)+"+"+oe)}else p=Zi(t,pn.Infinity);return p=i<0&&!y?o.negPre+p+o.negSuf:o.posPre+p+o.posSuf,p}function cs(i,o,t,r,s){const u=Ja(ls(o,li.Currency),Zi(o,pn.MinusSign));return u.minFrac=function qn(i){let o;const t=Aa[i];return t&&(o=t[2]),"number"==typeof o?o:2}(r),u.maxFrac=u.minFrac,Os(i,u,o,pn.CurrencyGroup,pn.CurrencyDecimal,s).replace("\xa4",t).replace("\xa4","").trim()}function Ja(i,o="-"){const t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=i.split(";"),s=r[0],l=r[1],u=-1!==s.indexOf(".")?s.split("."):[s.substring(0,s.lastIndexOf("0")+1),s.substring(s.lastIndexOf("0")+1)],p=u[0],y=u[1]||"";t.posPre=p.substring(0,p.indexOf("#"));for(let w=0;w<y.length;w++){const I=y.charAt(w);"0"===I?t.minFrac=t.maxFrac=w+1:"#"===I?t.maxFrac=w+1:t.posSuf+=I}const A=p.split(",");if(t.gSize=A[1]?A[1].length:0,t.lgSize=A[2]||A[1]?(A[2]||A[1]).length:0,l){const w=s.length-t.posPre.length-t.posSuf.length,I=l.indexOf("#");t.negPre=l.substring(0,I).replace(/'/g,""),t.negSuf=l.slice(I+w).replace(/'/g,"")}else t.negPre=o+t.posPre,t.negSuf=t.posSuf;return t}function hc(i){const o=parseInt(i);if(isNaN(o))throw new Error("Invalid integer literal when parsing "+i);return o}function zi(i,o){o=encodeURIComponent(o);for(const t of i.split(";")){const r=t.indexOf("="),[s,l]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(s.trim()===o)return decodeURIComponent(l)}return null}let gt=(()=>{class i{constructor(t,r,s,l){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=s,this._renderer=l,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&((0,n.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),t.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),t.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,n.AaK)(r.item)}`);this._toggleClass(r.item,!0)}),t.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(r=>this._toggleClass(r,!0)):Object.keys(t).forEach(r=>this._toggleClass(r,!!t[r])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(r=>this._toggleClass(r,!1)):Object.keys(t).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(t,r){(t=t.trim())&&t.split(/\s+/g).forEach(s=>{r?this._renderer.addClass(this._ngEl.nativeElement,s):this._renderer.removeClass(this._ngEl.nativeElement,s)})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.ZZ4),n.Y36(n.aQg),n.Y36(n.SBq),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),i})();class Vd{constructor(o,t,r,s){this.$implicit=o,this.ngForOf=t,this.index=r,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Bt=(()=>{class i{constructor(t,r,s){this._viewContainer=t,this._template=r,this._differs=s,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((s,l,u)=>{if(null==s.previousIndex)r.createEmbeddedView(this._template,new Vd(s.item,this._ngForOf,-1,-1),null===u?void 0:u);else if(null==u)r.remove(null===l?void 0:l);else if(null!==l){const p=r.get(l);r.move(p,u),pl(p,s)}});for(let s=0,l=r.length;s<l;s++){const p=r.get(s).context;p.index=s,p.count=l,p.ngForOf=this._ngForOf}t.forEachIdentityChange(s=>{pl(r.get(s.currentIndex),s)})}static ngTemplateContextGuard(t,r){return!0}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),i})();function pl(i,o){i.context.$implicit=o.item}let Ge=(()=>{class i{constructor(t,r){this._viewContainer=t,this._context=new Ha,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){ds("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){ds("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),i})();class Ha{constructor(){this.$implicit=null,this.ngIf=null}}function ds(i,o){if(o&&!o.createEmbeddedView)throw new Error(`${i} must be a TemplateRef, but received '${(0,n.AaK)(o)}'.`)}class qc{constructor(o,t){this._viewContainerRef=o,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(o){o&&!this._created?this.create():!o&&this._created&&this.destroy()}}let zs=(()=>{class i{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const r=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||r,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),r}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let r=0;r<this._defaultViews.length;r++)this._defaultViews[r].enforceState(t)}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),i})(),gc=(()=>{class i{constructor(t,r,s){this.ngSwitch=s,s._addCase(),this._view=new qc(t,r)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(zs,9))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),i})(),da=(()=>{class i{constructor(t,r,s){s._addDefault(new qc(t,r))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(zs,9))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngSwitchDefault",""]],standalone:!0}),i})(),uo=(()=>{class i{constructor(t,r,s){this._ngEl=t,this._differs=r,this._renderer=s,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){const[s,l]=t.split("."),u=-1===s.indexOf("-")?void 0:n.JOm.DashCase;null!=r?this._renderer.setStyle(this._ngEl.nativeElement,s,l?`${r}${l}`:r,u):this._renderer.removeStyle(this._ngEl.nativeElement,s,u)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.aQg),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),i})(),Pi=(()=>{class i{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(t){if(t.ngTemplateOutlet||t.ngTemplateOutletInjector){const r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:s,ngTemplateOutletContext:l,ngTemplateOutletInjector:u}=this;this._viewRef=r.createEmbeddedView(s,l,u?{injector:u}:void 0)}else this._viewRef=null}else this._viewRef&&t.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[n.TTD]}),i})();function Gs(i,o){return new n.vHH(2100,!1)}class tb{createSubscription(o,t){return o.subscribe({next:t,error:r=>{throw r}})}dispose(o){o.unsubscribe()}}class nb{createSubscription(o,t){return o.then(t,r=>{throw r})}dispose(o){}}const ib=new nb,Wm=new tb;let Qg=(()=>{class i{constructor(t){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r))}_selectStrategy(t){if((0,n.QGY)(t))return ib;if((0,n.F4k)(t))return Wm;throw Gs()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this._ref.markForCheck())}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO,16))},i.\u0275pipe=n.Yjl({name:"async",type:i,pure:!1,standalone:!0}),i})();const ab=new n.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let _h=(()=>{class i{constructor(t,r){this.locale=t,this.defaultTimezone=r}transform(t,r="mediumDate",s,l){if(null==t||""===t||t!=t)return null;try{return Go(t,r,l||this.locale,s??this.defaultTimezone??void 0)}catch(u){throw Gs()}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.soG,16),n.Y36(ab,24))},i.\u0275pipe=n.Yjl({name:"date",type:i,pure:!0,standalone:!0}),i})(),Xm=(()=>{class i{transform(t){return JSON.stringify(t,null,2)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=n.Yjl({name:"json",type:i,pure:!1,standalone:!0}),i})(),Gd=(()=>{class i{constructor(t){this._locale=t}transform(t,r,s){if(!qd(t))return null;s=s||this._locale;try{return function zc(i,o,t){return Os(i,Ja(ls(o,li.Decimal),Zi(o,pn.MinusSign)),o,pn.Group,pn.Decimal,t)}(np(t),s,r)}catch(l){throw Gs()}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.soG,16))},i.\u0275pipe=n.Yjl({name:"number",type:i,pure:!0,standalone:!0}),i})(),Jo=(()=>{class i{constructor(t,r="USD"){this._locale=t,this._defaultCurrencyCode=r}transform(t,r=this._defaultCurrencyCode,s="symbol",l,u){if(!qd(t))return null;u=u||this._locale,"boolean"==typeof s&&(s=s?"symbol":"code");let p=r||this._defaultCurrencyCode;"code"!==s&&(p="symbol"===s||"symbol-narrow"===s?function lo(i,o,t="en"){const r=function Gn(i){return(0,n.cg1)(i)[n.wAp.Currencies]}(t)[i]||Aa[i]||[],s=r[1];return"narrow"===o&&"string"==typeof s?s:r[0]||i}(p,"symbol"===s?"wide":"narrow",u):s);try{return cs(np(t),u,p,r,l)}catch(y){throw Gs()}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.soG,16),n.Y36(n.EJc,16))},i.\u0275pipe=n.Yjl({name:"currency",type:i,pure:!0,standalone:!0}),i})();function qd(i){return!(null==i||""===i||i!=i)}function np(i){if("string"==typeof i&&!isNaN(Number(i)-parseFloat(i)))return Number(i);if("number"!=typeof i)throw new Error(`${i} is not a number`);return i}let Qc=(()=>{class i{transform(t,r,s){if(null==t)return null;if(!this.supports(t))throw Gs();return t.slice(r,s)}supports(t){return"string"==typeof t||Array.isArray(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=n.Yjl({name:"slice",type:i,pure:!1,standalone:!0}),i})(),Lt=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const yh="browser";function Wa(i){return i===yh}function Jd(i){return"server"===i}let Wc=(()=>{class i{}return i.\u0275prov=(0,n.Yz7)({token:i,providedIn:"root",factory:()=>new qs((0,n.LFG)(ie),window)}),i})();class qs{constructor(o,t){this.document=o,this.window=t,this.offset=()=>[0,0]}setOffset(o){this.offset=Array.isArray(o)?()=>o:o}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(o){this.supportsScrolling()&&this.window.scrollTo(o[0],o[1])}scrollToAnchor(o){if(!this.supportsScrolling())return;const t=function mc(i,o){const t=i.getElementById(o)||i.getElementsByName(o)[0];if(t)return t;if("function"==typeof i.createTreeWalker&&i.body&&(i.body.createShadowRoot||i.body.attachShadow)){const r=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT);let s=r.currentNode;for(;s;){const l=s.shadowRoot;if(l){const u=l.getElementById(o)||l.querySelector(`[name="${o}"]`);if(u)return u}s=r.nextNode()}}return null}(this.document,o);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(o){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=o)}}scrollToElement(o){const t=o.getBoundingClientRect(),r=t.left+this.window.pageXOffset,s=t.top+this.window.pageYOffset,l=this.offset();this.window.scrollTo(r-l[0],s-l[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const o=ua(this.window.history)||ua(Object.getPrototypeOf(this.window.history));return!(!o||!o.writable&&!o.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ua(i){return Object.getOwnPropertyDescriptor(i,"scrollRestoration")}class gl{}class pf extends class gb extends class te{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function q(i){O||(O=i)}(new pf)}onAndCancel(o,t,r){return o.addEventListener(t,r,!1),()=>{o.removeEventListener(t,r,!1)}}dispatchEvent(o,t){o.dispatchEvent(t)}remove(o){o.parentNode&&o.parentNode.removeChild(o)}createElement(o,t){return(t=t||this.getDefaultDocument()).createElement(o)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(o){return o.nodeType===Node.ELEMENT_NODE}isShadowRoot(o){return o instanceof DocumentFragment}getGlobalEventTarget(o,t){return"window"===t?window:"document"===t?o:"body"===t?o.body:null}getBaseHref(o){const t=function hf(){return bc=bc||document.querySelector("base"),bc?bc.getAttribute("href"):null}();return null==t?null:function qr(i){id=id||document.createElement("a"),id.setAttribute("href",i);const o=id.pathname;return"/"===o.charAt(0)?o:`/${o}`}(t)}resetBaseElement(){bc=null}getUserAgent(){return window.navigator.userAgent}getCookie(o){return zi(document.cookie,o)}}let id,bc=null;const iu=new n.OlP("TRANSITION_ID"),ou=[{provide:n.ip1,useFactory:function gf(i,o,t){return()=>{t.get(n.CZH).donePromise.then(()=>{const r=R(),s=o.querySelectorAll(`style[ng-transition="${i}"]`);for(let l=0;l<s.length;l++)r.remove(s[l])})}},deps:[iu,ie,n.zs3],multi:!0}];let ru=(()=>{class i{build(){return new XMLHttpRequest}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const au=new n.OlP("EventManagerPlugins");let vc=(()=>{class i{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(s=>s.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,r,s){return this._findPluginFor(r).addEventListener(t,r,s)}addGlobalEventListener(t,r,s){return this._findPluginFor(r).addGlobalEventListener(t,r,s)}getZone(){return this._zone}_findPluginFor(t){const r=this._eventNameToPlugin.get(t);if(r)return r;const s=this._plugins;for(let l=0;l<s.length;l++){const u=s[l];if(u.supports(t))return this._eventNameToPlugin.set(t,u),u}throw new Error(`No event manager plugin found for event ${t}`)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(au),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Y{constructor(o){this._doc=o}addGlobalEventListener(o,t,r){const s=R().getGlobalEventTarget(this._doc,o);if(!s)throw new Error(`Unsupported event target ${s} for event ${t}`);return this.addEventListener(s,t,r)}}let z=(()=>{class i{constructor(){this._stylesSet=new Set}addStyles(t){const r=new Set;t.forEach(s=>{this._stylesSet.has(s)||(this._stylesSet.add(s),r.add(s))}),this.onStylesAdded(r)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),G=(()=>{class i extends z{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,r,s){t.forEach(l=>{const u=this._doc.createElement("style");u.textContent=l,s.push(r.appendChild(u))})}addHost(t){const r=[];this._addStylesToHost(this._stylesSet,t,r),this._hostNodes.set(t,r)}removeHost(t){const r=this._hostNodes.get(t);r&&r.forEach(ne),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((r,s)=>{this._addStylesToHost(t,s,r)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(ne))}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function ne(i){R().remove(i)}const fe={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},xe=/%COMP%/g;function Jn(i,o,t){for(let r=0;r<o.length;r++){let s=o[r];Array.isArray(s)?Jn(i,s,t):(s=s.replace(xe,i),t.push(s))}return t}function En(i){return o=>{if("__ngUnwrap__"===o)return i;!1===i(o)&&(o.preventDefault(),o.returnValue=!1)}}let Br=(()=>{class i{constructor(t,r,s){this.eventManager=t,this.sharedStylesHost=r,this.appId=s,this.rendererByCompId=new Map,this.defaultRenderer=new Ka(t)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;switch(r.encapsulation){case n.ifc.Emulated:{let s=this.rendererByCompId.get(r.id);return s||(s=new mb(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,s)),s.applyToHost(t),s}case 1:case n.ifc.ShadowDom:return new _b(this.eventManager,this.sharedStylesHost,t,r);default:if(!this.rendererByCompId.has(r.id)){const s=Jn(r.id,r.styles,[]);this.sharedStylesHost.addStyles(s),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(vc),n.LFG(G),n.LFG(n.AFp))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Ka{constructor(o){this.eventManager=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(o,t){return t?document.createElementNS(fe[t]||t,o):document.createElement(o)}createComment(o){return document.createComment(o)}createText(o){return document.createTextNode(o)}appendChild(o,t){(su(o)?o.content:o).appendChild(t)}insertBefore(o,t,r){o&&(su(o)?o.content:o).insertBefore(t,r)}removeChild(o,t){o&&o.removeChild(t)}selectRootElement(o,t){let r="string"==typeof o?document.querySelector(o):o;if(!r)throw new Error(`The selector "${o}" did not match any elements`);return t||(r.textContent=""),r}parentNode(o){return o.parentNode}nextSibling(o){return o.nextSibling}setAttribute(o,t,r,s){if(s){t=s+":"+t;const l=fe[s];l?o.setAttributeNS(l,t,r):o.setAttribute(t,r)}else o.setAttribute(t,r)}removeAttribute(o,t,r){if(r){const s=fe[r];s?o.removeAttributeNS(s,t):o.removeAttribute(`${r}:${t}`)}else o.removeAttribute(t)}addClass(o,t){o.classList.add(t)}removeClass(o,t){o.classList.remove(t)}setStyle(o,t,r,s){s&(n.JOm.DashCase|n.JOm.Important)?o.style.setProperty(t,r,s&n.JOm.Important?"important":""):o.style[t]=r}removeStyle(o,t,r){r&n.JOm.DashCase?o.style.removeProperty(t):o.style[t]=""}setProperty(o,t,r){o[t]=r}setValue(o,t){o.nodeValue=t}listen(o,t,r){return"string"==typeof o?this.eventManager.addGlobalEventListener(o,t,En(r)):this.eventManager.addEventListener(o,t,En(r))}}function su(i){return"TEMPLATE"===i.tagName&&void 0!==i.content}class mb extends Ka{constructor(o,t,r,s){super(o),this.component=r;const l=Jn(s+"-"+r.id,r.styles,[]);t.addStyles(l),this.contentAttr=function zt(i){return"_ngcontent-%COMP%".replace(xe,i)}(s+"-"+r.id),this.hostAttr=function Tn(i){return"_nghost-%COMP%".replace(xe,i)}(s+"-"+r.id)}applyToHost(o){super.setAttribute(o,this.hostAttr,"")}createElement(o,t){const r=super.createElement(o,t);return super.setAttribute(r,this.contentAttr,""),r}}class _b extends Ka{constructor(o,t,r,s){super(o),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=Jn(s.id,s.styles,[]);for(let u=0;u<l.length;u++){const p=document.createElement("style");p.textContent=l[u],this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(o){return o===this.hostEl?this.shadowRoot:o}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(o,t){return super.appendChild(this.nodeOrShadowRoot(o),t)}insertBefore(o,t,r){return super.insertBefore(this.nodeOrShadowRoot(o),t,r)}removeChild(o,t){return super.removeChild(this.nodeOrShadowRoot(o),t)}parentNode(o){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(o)))}}let lp=(()=>{class i extends Y{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,s){return t.addEventListener(r,s,!1),()=>this.removeEventListener(t,r,s)}removeEventListener(t,r,s){return t.removeEventListener(r,s)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const bb=["alt","control","meta","shift"],Oh={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},a_={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey};let zC=(()=>{class i extends Y{constructor(t){super(t)}supports(t){return null!=i.parseEventName(t)}addEventListener(t,r,s){const l=i.parseEventName(r),u=i.eventCallback(l.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>R().onAndCancel(t,l.domEventName,u))}static parseEventName(t){const r=t.toLowerCase().split("."),s=r.shift();if(0===r.length||"keydown"!==s&&"keyup"!==s)return null;const l=i._normalizeKey(r.pop());let u="",p=r.indexOf("code");if(p>-1&&(r.splice(p,1),u="code."),bb.forEach(A=>{const w=r.indexOf(A);w>-1&&(r.splice(w,1),u+=A+".")}),u+=l,0!=r.length||0===l.length)return null;const y={};return y.domEventName=s,y.fullKey=u,y}static matchEventFullKeyCode(t,r){let s=Oh[t.key]||t.key,l="";return r.indexOf("code.")>-1&&(s=t.code,l="code."),!(null==s||!s)&&(s=s.toLowerCase()," "===s?s="space":"."===s&&(s="dot"),bb.forEach(u=>{u!==s&&(0,a_[u])(t)&&(l+=u+".")}),l+=s,l===r)}static eventCallback(t,r,s){return l=>{i.matchEventFullKeyCode(l,t)&&s.runGuarded(()=>r(l))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const od=(0,n.eFA)(n._c5,"browser",[{provide:n.Lbi,useValue:yh},{provide:n.g9A,useValue:function s_(){pf.makeCurrent()},multi:!0},{provide:ie,useFactory:function dp(){return(0,n.RDi)(document),document},deps:[]}]),yo=new n.OlP(""),GC=[{provide:n.rWj,useClass:class fb{addToWindow(o){n.dqk.getAngularTestability=(r,s=!0)=>{const l=o.findTestabilityInTree(r,s);if(null==l)throw new Error("Could not find testability for element.");return l},n.dqk.getAllAngularTestabilities=()=>o.getAllTestabilities(),n.dqk.getAllAngularRootElements=()=>o.getAllRootElements(),n.dqk.frameworkStabilizers||(n.dqk.frameworkStabilizers=[]),n.dqk.frameworkStabilizers.push(r=>{const s=n.dqk.getAllAngularTestabilities();let l=s.length,u=!1;const p=function(y){u=u||y,l--,0==l&&r(u)};s.forEach(function(y){y.whenStable(p)})})}findTestabilityInTree(o,t,r){return null==t?null:o.getTestability(t)??(r?R().isShadowRoot(t)?this.findTestabilityInTree(o,t.host,!0):this.findTestabilityInTree(o,t.parentElement,!0):null)}},deps:[]},{provide:n.lri,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]},{provide:n.dDg,useClass:n.dDg,deps:[n.R0b,n.eoX,n.rWj]}],c_=[{provide:n.zSh,useValue:"root"},{provide:n.qLn,useFactory:function l_(){return new n.qLn},deps:[]},{provide:au,useClass:lp,multi:!0,deps:[ie,n.R0b,n.Lbi]},{provide:au,useClass:zC,multi:!0,deps:[ie]},{provide:Br,useClass:Br,deps:[vc,G,n.AFp]},{provide:n.FYo,useExisting:Br},{provide:z,useExisting:G},{provide:G,useClass:G,deps:[ie]},{provide:vc,useClass:vc,deps:[au,n.R0b]},{provide:gl,useClass:ru,deps:[]},[]];let Lh=(()=>{class i{constructor(t){}static withServerTransition(t){return{ngModule:i,providers:[{provide:n.AFp,useValue:t.appId},{provide:iu,useExisting:n.AFp},ou]}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(yo,12))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[...c_,...GC],imports:[Lt,n.hGG]}),i})(),qi=(()=>{class i{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:function(t){let r=null;return r=t?new t:function yb(){return new qi((0,n.LFG)(ie))}(),r},providedIn:"root"}),i})();typeof window<"u"&&window;let rd=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(t){let r=null;return r=t?new(t||i):n.LFG(xb),r},providedIn:"root"}),i})(),xb=(()=>{class i extends rd{constructor(t){super(),this._doc=t}sanitize(t,r){if(null==r)return null;switch(t){case n.q3G.NONE:return r;case n.q3G.HTML:return(0,n.qzn)(r,"HTML")?(0,n.z3N)(r):(0,n.EiD)(this._doc,String(r)).toString();case n.q3G.STYLE:return(0,n.qzn)(r,"Style")?(0,n.z3N)(r):r;case n.q3G.SCRIPT:if((0,n.qzn)(r,"Script"))return(0,n.z3N)(r);throw new Error("unsafe value used in a script context");case n.q3G.URL:return(0,n.qzn)(r,"URL")?(0,n.z3N)(r):(0,n.mCW)(String(r));case n.q3G.RESOURCE_URL:if((0,n.qzn)(r,"ResourceURL"))return(0,n.z3N)(r);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return(0,n.JVY)(t)}bypassSecurityTrustStyle(t){return(0,n.L6k)(t)}bypassSecurityTrustScript(t){return(0,n.eBb)(t)}bypassSecurityTrustUrl(t){return(0,n.LAX)(t)}bypassSecurityTrustResourceUrl(t){return(0,n.pB0)(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:function(t){let r=null;return r=t?new t:function tA(i){return new xb(i.get(ie))}(n.LFG(n.zs3)),r},providedIn:"root"}),i})();var Yo=S(4858),Vl=S(7507),ad=S(8005),p_=S(8403);function Et(...i){let o=i[i.length-1];return(0,Vl.K)(o)?(i.pop(),(0,p_.r)(i,o)):(0,ad.n)(i)}var Ht=S(2218),Sb=S(9086);class Qn extends Ht.xQ{constructor(o){super(),this._value=o}get value(){return this.getValue()}_subscribe(o){const t=super._subscribe(o);return t&&!t.closed&&o.next(this._value),t}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Sb.N;return this._value}next(o){super.next(this._value=o)}}const sd=(()=>{function i(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return i.prototype=Object.create(Error.prototype),i})();var Qr=S(4327),Ji=S(14);class vr extends Ji.L{notifyNext(o,t,r,s,l){this.destination.next(t)}notifyError(o,t){this.destination.error(o)}notifyComplete(o){this.destination.complete()}}class wb extends Ji.L{constructor(o,t,r){super(),this.parent=o,this.outerValue=t,this.outerIndex=r,this.index=0}_next(o){this.parent.notifyNext(this.outerValue,o,this.outerIndex,this.index++,this)}_error(o){this.parent.notifyError(o,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var Mb=S(3956),No=S(7473);function du(i,o,t,r,s=new wb(i,t,r)){if(!s.closed)return o instanceof No.y?o.subscribe(s):(0,Mb.s)(o)(s)}const bf={};function bl(...i){let o,t;return(0,Vl.K)(i[i.length-1])&&(t=i.pop()),"function"==typeof i[i.length-1]&&(o=i.pop()),1===i.length&&(0,Qr.k)(i[0])&&(i=i[0]),(0,ad.n)(i,t).lift(new vf(o))}class vf{constructor(o){this.resultSelector=o}call(o,t){return t.subscribe(new Ti(o,this.resultSelector))}}class Ti extends vr{constructor(o,t){super(o),this.resultSelector=t,this.active=0,this.values=[],this.observables=[]}_next(o){this.values.push(bf),this.observables.push(o)}_complete(){const o=this.observables,t=o.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(let r=0;r<t;r++)this.add(du(this,o[r],void 0,r))}}notifyComplete(o){0==(this.active-=1)&&this.destination.complete()}notifyNext(o,t,r){const s=this.values,u=this.toRespond?s[r]===bf?--this.toRespond:this.toRespond:0;s[r]=t,0===u&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(o){let t;try{t=this.resultSelector.apply(this,o)}catch(r){return void this.destination.error(r)}this.destination.next(t)}}var E=S(6675);function W(...i){return function B(){return(0,E.J)(1)}()(Et(...i))}const ae=new No.y(i=>i.complete());function be(i){return i?function Ne(i){return new No.y(o=>i.schedule(()=>o.complete()))}(i):ae}function at(i){return new No.y(o=>{let t;try{t=i()}catch(s){return void o.error(s)}return(t?(0,Yo.D)(t):be()).subscribe(o)})}var Wn=S(6800);function Ci(i,o){return new No.y(o?t=>o.schedule($r,0,{error:i,subscriber:t}):t=>t.error(i))}function $r({error:i,subscriber:o}){o.error(i)}var Wr=S(4483),ft=S(6942),Kr=S(2831);function kr(i,o){return"function"==typeof o?t=>t.pipe(kr((r,s)=>(0,Yo.D)(i(r,s)).pipe((0,ft.U)((l,u)=>o(r,l,s,u))))):t=>t.lift(new h_(i))}class h_{constructor(o){this.project=o}call(o,t){return t.subscribe(new iA(o,this.project))}}class iA extends Kr.Ds{constructor(o,t){super(o),this.project=t,this.index=0}_next(o){let t;const r=this.index++;try{t=this.project(o,r)}catch(s){return void this.destination.error(s)}this._innerSub(t)}_innerSub(o){const t=this.innerSubscription;t&&t.unsubscribe();const r=new Kr.IY(this),s=this.destination;s.add(r),this.innerSubscription=(0,Kr.ft)(o,r),this.innerSubscription!==r&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:o}=this;(!o||o.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(o){this.destination.next(o)}}const sw=(()=>{function i(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return i.prototype=Object.create(Error.prototype),i})();function $i(i){return o=>0===i?be():o.lift(new rO(i))}class rO{constructor(o){if(this.total=o,this.total<0)throw new sw}call(o,t){return t.subscribe(new Db(o,this.total))}}class Db extends Ji.L{constructor(o,t){super(o),this.total=t,this.count=0}_next(o){const t=this.total,r=++this.count;r<=t&&(this.destination.next(o),r===t&&(this.destination.complete(),this.unsubscribe()))}}function vl(...i){const o=i[i.length-1];return(0,Vl.K)(o)?(i.pop(),t=>W(i,t,o)):t=>W(i,t)}function Wt(i,o){return function(r){return r.lift(new lw(i,o))}}class lw{constructor(o,t){this.predicate=o,this.thisArg=t}call(o,t){return t.subscribe(new BU(o,this.predicate,this.thisArg))}}class BU extends Ji.L{constructor(o,t,r){super(o),this.predicate=t,this.thisArg=r,this.count=0}_next(o){let t;try{t=this.predicate.call(this.thisArg,o,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(o)}}var ps=S(522);function rA(i=null){return o=>o.lift(new aO(i))}class aO{constructor(o){this.defaultValue=o}call(o,t){return t.subscribe(new sO(o,this.defaultValue))}}class sO extends Ji.L{constructor(o,t){super(o),this.defaultValue=t,this.isEmpty=!0}_next(o){this.isEmpty=!1,this.destination.next(o)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function kb(i=aA){return o=>o.lift(new HU(i))}class HU{constructor(o){this.errorFactory=o}call(o,t){return t.subscribe(new $U(o,this.errorFactory))}}class $U extends Ji.L{constructor(o,t){super(o),this.errorFactory=t,this.hasValue=!1}_next(o){this.hasValue=!0,this.destination.next(o)}_complete(){if(this.hasValue)return this.destination.complete();{let o;try{o=this.errorFactory()}catch(t){o=t}this.destination.error(o)}}}function aA(){return new sd}var lO=S(1356);function Fh(i,o){const t=arguments.length>=2;return r=>r.pipe(i?Wt((s,l)=>i(s,l,r)):lO.y,$i(1),t?rA(o):kb(()=>new sd))}function ld(i,o){return(0,ps.zg)(i,o,1)}function pp(){}var cO=S(1900);function oi(i,o,t){return function(s){return s.lift(new cw(i,o,t))}}class cw{constructor(o,t,r){this.nextOrObserver=o,this.error=t,this.complete=r}call(o,t){return t.subscribe(new sA(o,this.nextOrObserver,this.error,this.complete))}}class sA extends Ji.L{constructor(o,t,r,s){super(o),this._tapNext=pp,this._tapError=pp,this._tapComplete=pp,this._tapError=r||pp,this._tapComplete=s||pp,(0,cO.m)(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||pp,this._tapError=t.error||pp,this._tapComplete=t.complete||pp)}_next(o){try{this._tapNext.call(this._context,o)}catch(t){return void this.destination.error(t)}this.destination.next(o)}_error(o){try{this._tapError.call(this._context,o)}catch(t){return void this.destination.error(t)}this.destination.error(o)}_complete(){try{this._tapComplete.call(this._context)}catch(o){return void this.destination.error(o)}return this.destination.complete()}}function hs(i){return function(t){const r=new dw(i),s=t.lift(r);return r.caught=s}}class dw{constructor(o){this.selector=o}call(o,t){return t.subscribe(new uw(o,this.selector,this.caught))}}class uw extends Kr.Ds{constructor(o,t,r){super(o),this.selector=t,this.caught=r}error(o){if(!this.isStopped){let t;try{t=this.selector(o,this.caught)}catch(l){return void super.error(l)}this._unsubscribeAndRecycle();const r=new Kr.IY(this);this.add(r);const s=(0,Kr.ft)(t,r);s!==r&&this.add(s)}}}function zl(i,o){let t=!1;return arguments.length>=2&&(t=!0),function(s){return s.lift(new dO(i,o,t))}}class dO{constructor(o,t,r=!1){this.accumulator=o,this.seed=t,this.hasSeed=r}call(o,t){return t.subscribe(new uO(o,this.accumulator,this.seed,this.hasSeed))}}class uO extends Ji.L{constructor(o,t,r,s){super(o),this.accumulator=t,this._seed=r,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(o){this.hasSeed=!0,this._seed=o}_next(o){if(this.hasSeed)return this._tryNext(o);this.seed=o,this.destination.next(o)}_tryNext(o){const t=this.index++;let r;try{r=this.accumulator(this.seed,o,t)}catch(s){this.destination.error(s)}this.seed=r,this.destination.next(r)}}function lA(i){return function(t){return 0===i?be():t.lift(new pw(i))}}class pw{constructor(o){if(this.total=o,this.total<0)throw new sw}call(o,t){return t.subscribe(new cA(o,this.total))}}class cA extends Ji.L{constructor(o,t){super(o),this.total=t,this.ring=new Array,this.count=0}_next(o){const t=this.ring,r=this.total,s=this.count++;t.length<r?t.push(o):t[s%r]=o}_complete(){const o=this.destination;let t=this.count;if(t>0){const r=this.count>=this.total?this.total:this.count,s=this.ring;for(let l=0;l<r;l++){const u=t++%r;o.next(s[u])}}o.complete()}}function hw(i,o){const t=arguments.length>=2;return r=>r.pipe(i?Wt((s,l)=>i(s,l,r)):lO.y,lA(1),t?rA(o):kb(()=>new sd))}function gw(i,o=!1){return t=>t.lift(new pO(i,o))}class pO{constructor(o,t){this.predicate=o,this.inclusive=t}call(o,t){return t.subscribe(new fw(o,this.predicate,this.inclusive))}}class fw extends Ji.L{constructor(o,t,r){super(o),this.predicate=t,this.inclusive=r,this.index=0}_next(o){const t=this.destination;let r;try{r=this.predicate(o,this.index++)}catch(s){return void t.error(s)}this.nextOrComplete(o,r)}nextOrComplete(o,t){const r=this.destination;Boolean(t)?r.next(o):(this.inclusive&&r.next(o),r.complete())}}class gO{constructor(o){this.value=o}call(o,t){return t.subscribe(new Ls(o,this.value))}}class Ls extends Ji.L{constructor(o,t){super(o),this.value=t}_next(o){this.destination.next(this.value)}}var bn=S(6957);function yf(i){return o=>o.lift(new dA(i))}class dA{constructor(o){this.callback=o}call(o,t){return t.subscribe(new gs(o,this.callback))}}class gs extends Ji.L{constructor(o,t){super(o),this.add(new bn.w(t))}}var uu=S(8331);const Ai="primary",g_=Symbol("RouteTitle");class fO{constructor(o){this.params=o||{}}has(o){return Object.prototype.hasOwnProperty.call(this.params,o)}get(o){if(this.has(o)){const t=this.params[o];return Array.isArray(t)?t[0]:t}return null}getAll(o){if(this.has(o)){const t=this.params[o];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Bh(i){return new fO(i)}function mO(i,o,t){const r=t.path.split("/");if(r.length>i.length||"full"===t.pathMatch&&(o.hasChildren()||r.length<i.length))return null;const s={};for(let l=0;l<r.length;l++){const u=r[l],p=i[l];if(u.startsWith(":"))s[u.substring(1)]=p;else if(u!==p.path)return null}return{consumed:i.slice(0,r.length),posParams:s}}function cd(i,o){const t=i?Object.keys(i):void 0,r=o?Object.keys(o):void 0;if(!t||!r||t.length!=r.length)return!1;let s;for(let l=0;l<t.length;l++)if(s=t[l],!uA(i[s],o[s]))return!1;return!0}function uA(i,o){if(Array.isArray(i)&&Array.isArray(o)){if(i.length!==o.length)return!1;const t=[...i].sort(),r=[...o].sort();return t.every((s,l)=>r[l]===s)}return i===o}function _w(i){return Array.prototype.concat.apply([],i)}function bw(i){return i.length>0?i[i.length-1]:null}function Ma(i,o){for(const t in i)i.hasOwnProperty(t)&&o(i[t],t)}function hp(i){return(0,n.CqO)(i)?i:(0,n.QGY)(i)?(0,Yo.D)(Promise.resolve(i)):Et(i)}const f_={exact:function Eb(i,o,t){if(!Uh(i.segments,o.segments)||!Cf(i.segments,o.segments,t)||i.numberOfChildren!==o.numberOfChildren)return!1;for(const r in o.children)if(!i.children[r]||!Eb(i.children[r],o.children[r],t))return!1;return!0},subset:bO},yw={exact:function pA(i,o){return cd(i,o)},subset:function Aw(i,o){return Object.keys(o).length<=Object.keys(i).length&&Object.keys(o).every(t=>uA(i[t],o[t]))},ignored:()=>!0};function Cw(i,o,t){return f_[t.paths](i.root,o.root,t.matrixParams)&&yw[t.queryParams](i.queryParams,o.queryParams)&&!("exact"===t.fragment&&i.fragment!==o.fragment)}function bO(i,o,t){return Hh(i,o,o.segments,t)}function Hh(i,o,t,r){if(i.segments.length>t.length){const s=i.segments.slice(0,t.length);return!(!Uh(s,t)||o.hasChildren()||!Cf(s,t,r))}if(i.segments.length===t.length){if(!Uh(i.segments,t)||!Cf(i.segments,t,r))return!1;for(const s in o.children)if(!i.children[s]||!bO(i.children[s],o.children[s],r))return!1;return!0}{const s=t.slice(0,i.segments.length),l=t.slice(i.segments.length);return!!(Uh(i.segments,s)&&Cf(i.segments,s,r)&&i.children[Ai])&&Hh(i.children[Ai],o,l,r)}}function Cf(i,o,t){return o.every((r,s)=>yw[t](i[s].parameters,r.parameters))}class gp{constructor(o,t,r){this.root=o,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bh(this.queryParams)),this._queryParamMap}toString(){return CO.serialize(this)}}class Di{constructor(o,t){this.segments=o,this.children=t,this.parent=null,Ma(t,(r,s)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return m_(this)}}class $h{constructor(o,t){this.path=o,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Bh(this.parameters)),this._parameterMap}toString(){return fp(this)}}function Uh(i,o){return i.length===o.length&&i.every((t,r)=>t.path===o[r].path)}let xw=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return new hA},providedIn:"root"}),i})();class hA{parse(o){const t=new Dw(o);return new gp(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(o){const t=`/${Yh(o.root,!0)}`,r=function Sw(i){const o=Object.keys(i).map(t=>{const r=i[t];return Array.isArray(r)?r.map(s=>`${Af(t)}=${Af(s)}`).join("&"):`${Af(t)}=${Af(r)}`}).filter(t=>!!t);return o.length?`?${o.join("&")}`:""}(o.queryParams);return`${t}${r}${"string"==typeof o.fragment?`#${function AO(i){return encodeURI(i)}(o.fragment)}`:""}`}}const CO=new hA;function m_(i){return i.segments.map(o=>fp(o)).join("/")}function Yh(i,o){if(!i.hasChildren())return m_(i);if(o){const t=i.children[Ai]?Yh(i.children[Ai],!1):"",r=[];return Ma(i.children,(s,l)=>{l!==Ai&&r.push(`${l}:${Yh(s,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function yO(i,o){let t=[];return Ma(i.children,(r,s)=>{s===Ai&&(t=t.concat(o(r,s)))}),Ma(i.children,(r,s)=>{s!==Ai&&(t=t.concat(o(r,s)))}),t}(i,(r,s)=>s===Ai?[Yh(i.children[Ai],!1)]:[`${s}:${Yh(r,!1)}`]);return 1===Object.keys(i.children).length&&null!=i.children[Ai]?`${m_(i)}/${t[0]}`:`${m_(i)}/(${t.join("//")})`}}function gA(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Af(i){return gA(i).replace(/%3B/gi,";")}function fA(i){return gA(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function __(i){return decodeURIComponent(i)}function mA(i){return __(i.replace(/\+/g,"%20"))}function fp(i){return`${fA(i.path)}${function Tw(i){return Object.keys(i).map(o=>`;${fA(o)}=${fA(i[o])}`).join("")}(i.parameters)}`}const xO=/^[^\/()?;=#]+/;function _A(i){const o=i.match(xO);return o?o[0]:""}const Pb=/^[^=?&#]+/,ww=/^[^&#]+/;class Dw{constructor(o){this.url=o,this.remaining=o}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Di([],{}):new Di([],this.parseChildren())}parseQueryParams(){const o={};if(this.consumeOptional("?"))do{this.parseQueryParam(o)}while(this.consumeOptional("&"));return o}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const o=[];for(this.peekStartsWith("(")||o.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),o.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(o.length>0||Object.keys(t).length>0)&&(r[Ai]=new Di(o,t)),r}parseSegment(){const o=_A(this.remaining);if(""===o&&this.peekStartsWith(";"))throw new n.vHH(4009,!1);return this.capture(o),new $h(__(o),this.parseMatrixParams())}parseMatrixParams(){const o={};for(;this.consumeOptional(";");)this.parseParam(o);return o}parseParam(o){const t=_A(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=_A(this.remaining);s&&(r=s,this.capture(r))}o[__(t)]=__(r)}parseQueryParam(o){const t=function TO(i){const o=i.match(Pb);return o?o[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const u=function Mw(i){const o=i.match(ww);return o?o[0]:""}(this.remaining);u&&(r=u,this.capture(r))}const s=mA(t),l=mA(r);if(o.hasOwnProperty(s)){let u=o[s];Array.isArray(u)||(u=[u],o[s]=u),u.push(l)}else o[s]=l}parseParens(o){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=_A(this.remaining),s=this.remaining[r.length];if("/"!==s&&")"!==s&&";"!==s)throw new n.vHH(4010,!1);let l;r.indexOf(":")>-1?(l=r.slice(0,r.indexOf(":")),this.capture(l),this.capture(":")):o&&(l=Ai);const u=this.parseChildren();t[l]=1===Object.keys(u).length?u[Ai]:new Di([],u),this.consumeOptional("//")}return t}peekStartsWith(o){return this.remaining.startsWith(o)}consumeOptional(o){return!!this.peekStartsWith(o)&&(this.remaining=this.remaining.substring(o.length),!0)}capture(o){if(!this.consumeOptional(o))throw new n.vHH(4011,!1)}}function b_(i){return i.segments.length>0?new Di([],{[Ai]:i}):i}function v_(i){const o={};for(const r of Object.keys(i.children)){const l=v_(i.children[r]);(l.segments.length>0||l.hasChildren())&&(o[r]=l)}return function Ob(i){if(1===i.numberOfChildren&&i.children[Ai]){const o=i.children[Ai];return new Di(i.segments.concat(o.segments),o.children)}return i}(new Di(i.segments,o))}function dd(i){return i instanceof gp}function y_(i,o,t,r,s){if(0===t.length)return Tf(o.root,o.root,o.root,r,s);const l=function Lb(i){if("string"==typeof i[0]&&1===i.length&&"/"===i[0])return new yA(!0,0,i);let o=0,t=!1;const r=i.reduce((s,l,u)=>{if("object"==typeof l&&null!=l){if(l.outlets){const p={};return Ma(l.outlets,(y,A)=>{p[A]="string"==typeof y?y.split("/"):y}),[...s,{outlets:p}]}if(l.segmentPath)return[...s,l.segmentPath]}return"string"!=typeof l?[...s,l]:0===u?(l.split("/").forEach((p,y)=>{0==y&&"."===p||(0==y&&""===p?t=!0:".."===p?o++:""!=p&&s.push(p))}),s):[...s,l]},[]);return new yA(t,o,r)}(t);return l.toRoot()?Tf(o.root,o.root,new Di([],{}),r,s):function u(y){const A=function jh(i,o,t,r){if(i.isAbsolute)return new pu(o.root,!0,0);if(-1===r)return new pu(t,t===o.root,0);return function Ew(i,o,t){let r=i,s=o,l=t;for(;l>s;){if(l-=s,r=r.parent,!r)throw new n.vHH(4005,!1);s=r.segments.length}return new pu(r,!1,s-l)}(t,r+(C_(i.commands[0])?0:1),i.numberOfDoubleDots)}(l,o,i.snapshot?._urlSegment,y),w=A.processChildren?A_(A.segmentGroup,A.index,l.commands):Pw(A.segmentGroup,A.index,l.commands);return Tf(o.root,A.segmentGroup,w,r,s)}(i.snapshot?._lastPathIndex)}function C_(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function xf(i){return"object"==typeof i&&null!=i&&i.outlets}function Tf(i,o,t,r,s){let u,l={};r&&Ma(r,(y,A)=>{l[A]=Array.isArray(y)?y.map(w=>`${w}`):`${y}`}),u=i===o?t:Iw(i,o,t);const p=b_(v_(u));return new gp(p,l,s)}function Iw(i,o,t){const r={};return Ma(i.children,(s,l)=>{r[l]=s===o?t:Iw(s,o,t)}),new Di(i.segments,r)}class yA{constructor(o,t,r){if(this.isAbsolute=o,this.numberOfDoubleDots=t,this.commands=r,o&&r.length>0&&C_(r[0]))throw new n.vHH(4003,!1);const s=r.find(xf);if(s&&s!==bw(r))throw new n.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class pu{constructor(o,t,r){this.segmentGroup=o,this.processChildren=t,this.index=r}}function Pw(i,o,t){if(i||(i=new Di([],{})),0===i.segments.length&&i.hasChildren())return A_(i,o,t);const r=function AA(i,o,t){let r=0,s=o;const l={match:!1,pathIndex:0,commandIndex:0};for(;s<i.segments.length;){if(r>=t.length)return l;const u=i.segments[s],p=t[r];if(xf(p))break;const y=`${p}`,A=r<t.length-1?t[r+1]:null;if(s>0&&void 0===y)break;if(y&&A&&"object"==typeof A&&void 0===A.outlets){if(!Rb(y,A,u))return l;r+=2}else{if(!Rb(y,{},u))return l;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(i,o,t),s=t.slice(r.commandIndex);if(r.match&&r.pathIndex<i.segments.length){const l=new Di(i.segments.slice(0,r.pathIndex),{});return l.children[Ai]=new Di(i.segments.slice(r.pathIndex),i.children),A_(l,0,s)}return r.match&&0===s.length?new Di(i.segments,{}):r.match&&!i.hasChildren()?xA(i,o,t):r.match?A_(i,0,s):xA(i,o,t)}function A_(i,o,t){if(0===t.length)return new Di(i.segments,{});{const r=function SO(i){return xf(i[0])?i[0].outlets:{[Ai]:i}}(t),s={};return Ma(r,(l,u)=>{"string"==typeof l&&(l=[l]),null!==l&&(s[u]=Pw(i.children[u],o,l))}),Ma(i.children,(l,u)=>{void 0===r[u]&&(s[u]=l)}),new Di(i.segments,s)}}function xA(i,o,t){const r=i.segments.slice(0,o);let s=0;for(;s<t.length;){const l=t[s];if(xf(l)){const y=Ow(l.outlets);return new Di(r,y)}if(0===s&&C_(t[0])){r.push(new $h(i.segments[o].path,x_(t[0]))),s++;continue}const u=xf(l)?l.outlets[Ai]:`${l}`,p=s<t.length-1?t[s+1]:null;u&&p&&C_(p)?(r.push(new $h(u,x_(p))),s+=2):(r.push(new $h(u,{})),s++)}return new Di(r,{})}function Ow(i){const o={};return Ma(i,(t,r)=>{"string"==typeof t&&(t=[t]),null!==t&&(o[r]=xA(new Di([],{}),0,t))}),o}function x_(i){const o={};return Ma(i,(t,r)=>o[r]=`${t}`),o}function Rb(i,o,t){return i==t.path&&cd(o,t.parameters)}class ud{constructor(o,t){this.id=o,this.url=t}}class Fb extends ud{constructor(o,t,r="imperative",s=null){super(o,t),this.type=0,this.navigationTrigger=r,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Ac extends ud{constructor(o,t,r){super(o,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pd extends ud{constructor(o,t,r,s){super(o,t),this.reason=r,this.code=s,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Nw extends ud{constructor(o,t,r,s){super(o,t),this.error=r,this.target=s,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class wO extends ud{constructor(o,t,r,s){super(o,t),this.urlAfterRedirects=r,this.state=s,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class MO extends ud{constructor(o,t,r,s){super(o,t),this.urlAfterRedirects=r,this.state=s,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class DO extends ud{constructor(o,t,r,s,l){super(o,t),this.urlAfterRedirects=r,this.state=s,this.shouldActivate=l,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class kO extends ud{constructor(o,t,r,s){super(o,t),this.urlAfterRedirects=r,this.state=s,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hu extends ud{constructor(o,t,r,s){super(o,t),this.urlAfterRedirects=r,this.state=s,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Sf{constructor(o){this.route=o,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class IO{constructor(o){this.route=o,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class EO{constructor(o){this.snapshot=o,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class PO{constructor(o){this.snapshot=o,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class OO{constructor(o){this.snapshot=o,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class NO{constructor(o){this.snapshot=o,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Lw{constructor(o,t,r){this.routerEvent=o,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Fw{constructor(o){this._root=o}get root(){return this._root.value}parent(o){const t=this.pathFromRoot(o);return t.length>1?t[t.length-2]:null}children(o){const t=TA(o,this._root);return t?t.children.map(r=>r.value):[]}firstChild(o){const t=TA(o,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(o){const t=SA(o,this._root);return t.length<2?[]:t[t.length-2].children.map(s=>s.value).filter(s=>s!==o)}pathFromRoot(o){return SA(o,this._root).map(t=>t.value)}}function TA(i,o){if(i===o.value)return o;for(const t of o.children){const r=TA(i,t);if(r)return r}return null}function SA(i,o){if(i===o.value)return[o];for(const t of o.children){const r=SA(i,t);if(r.length)return r.unshift(o),r}return[]}class gu{constructor(o,t){this.value=o,this.children=t}toString(){return`TreeNode(${this.value})`}}function fu(i){const o={};return i&&i.children.forEach(t=>o[t.value.outlet]=t),o}class hd extends Fw{constructor(o,t){super(o),this.snapshot=t,T_(this,o)}toString(){return this.snapshot.toString()}}function wf(i,o){const t=function Bw(i,o){const u=new MA([],{},{},"",{},Ai,o,null,i.root,-1,{});return new LO("",new gu(u,[]))}(i,o),r=new Qn([new $h("",{})]),s=new Qn({}),l=new Qn({}),u=new Qn({}),p=new Qn(""),y=new ci(r,s,u,p,l,Ai,o,t.root);return y.snapshot=t.root,new hd(new gu(y,[]),t)}class ci{constructor(o,t,r,s,l,u,p,y){this.url=o,this.params=t,this.queryParams=r,this.fragment=s,this.data=l,this.outlet=u,this.component=p,this.title=this.data?.pipe((0,ft.U)(A=>A[g_]))??Et(void 0),this._futureSnapshot=y}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,ft.U)(o=>Bh(o)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ft.U)(o=>Bh(o)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function wA(i,o="emptyOnly"){const t=i.pathFromRoot;let r=0;if("always"!==o)for(r=t.length-1;r>=1;){const s=t[r],l=t[r-1];if(s.routeConfig&&""===s.routeConfig.path)r--;else{if(l.component)break;r--}}return function UU(i){return i.reduce((o,t)=>({params:{...o.params,...t.params},data:{...o.data,...t.data},resolve:{...t.data,...o.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class MA{constructor(o,t,r,s,l,u,p,y,A,w,I,P){this.url=o,this.params=t,this.queryParams=r,this.fragment=s,this.data=l,this.outlet=u,this.component=p,this.title=this.data?.[g_],this.routeConfig=y,this._urlSegment=A,this._lastPathIndex=w,this._correctedLastPathIndex=P??w,this._resolve=I}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Bh(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Bh(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class LO extends Fw{constructor(o,t){super(t),this.url=o,T_(this,t)}toString(){return Bb(this._root)}}function T_(i,o){o.value._routerState=i,o.children.forEach(t=>T_(i,t))}function Bb(i){const o=i.children.length>0?` { ${i.children.map(Bb).join(", ")} } `:"";return`${i.value}${o}`}function Hw(i){if(i.snapshot){const o=i.snapshot,t=i._futureSnapshot;i.snapshot=t,cd(o.queryParams,t.queryParams)||i.queryParams.next(t.queryParams),o.fragment!==t.fragment&&i.fragment.next(t.fragment),cd(o.params,t.params)||i.params.next(t.params),function mw(i,o){if(i.length!==o.length)return!1;for(let t=0;t<i.length;++t)if(!cd(i[t],o[t]))return!1;return!0}(o.url,t.url)||i.url.next(t.url),cd(o.data,t.data)||i.data.next(t.data)}else i.snapshot=i._futureSnapshot,i.data.next(i._futureSnapshot.data)}function $w(i,o){const t=cd(i.params,o.params)&&function vO(i,o){return Uh(i,o)&&i.every((t,r)=>cd(t.parameters,o[r].parameters))}(i.url,o.url);return t&&!(!i.parent!=!o.parent)&&(!i.parent||$w(i.parent,o.parent))}function S_(i,o,t){if(t&&i.shouldReuseRoute(o.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=o.value;const s=function RO(i,o,t){return o.children.map(r=>{for(const s of t.children)if(i.shouldReuseRoute(r.value,s.value.snapshot))return S_(i,r,s);return S_(i,r)})}(i,o,t);return new gu(r,s)}{if(i.shouldAttach(o.value)){const l=i.retrieve(o.value);if(null!==l){const u=l.route;return u.value._futureSnapshot=o.value,u.children=o.children.map(p=>S_(i,p)),u}}const r=function FO(i){return new ci(new Qn(i.url),new Qn(i.params),new Qn(i.queryParams),new Qn(i.fragment),new Qn(i.data),i.outlet,i.component,i)}(o.value),s=o.children.map(l=>S_(i,l));return new gu(r,s)}}const DA="ngNavigationCancelingError";function kA(i,o){const{redirectTo:t,navigationBehaviorOptions:r}=dd(o)?{redirectTo:o,navigationBehaviorOptions:void 0}:o,s=w_(!1,0,o);return s.url=t,s.navigationBehaviorOptions=r,s}function w_(i,o,t){const r=new Error("NavigationCancelingError: "+(i||""));return r[DA]=!0,r.cancellationCode=o,t&&(r.url=t),r}function IA(i){return Hb(i)&&dd(i.url)}function Hb(i){return i&&i[DA]}class BO{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new sr,this.attachRef=null}}let sr=(()=>{class i{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const s=this.getOrCreateContext(t);s.outlet=r,this.contexts.set(t,s)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new BO,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const M_=!1;let $b=(()=>{class i{constructor(t,r,s,l,u){this.parentContexts=t,this.location=r,this.changeDetector=l,this.environmentInjector=u,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.vpe,this.deactivateEvents=new n.vpe,this.attachEvents=new n.vpe,this.detachEvents=new n.vpe,this.name=s||Ai,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.getContext(this.name)?.outlet===this&&this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new n.vHH(4012,M_);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new n.vHH(4012,M_);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new n.vHH(4012,M_);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new n.vHH(4013,M_);this._activatedRoute=t;const s=this.location,u=t._futureSnapshot.component,p=this.parentContexts.getOrCreateContext(this.name).children,y=new EA(t,p,s.injector);if(r&&function PA(i){return!!i.resolveComponentFactory}(r)){const A=r.resolveComponentFactory(u);this.activated=s.createComponent(A,s.length,y)}else this.activated=s.createComponent(u,{index:s.length,injector:y,environmentInjector:r??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(sr),n.Y36(n.s_b),n.$8M("name"),n.Y36(n.sBO),n.Y36(n.lqb))},i.\u0275dir=n.lG2({type:i,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0}),i})();class EA{constructor(o,t,r){this.route=o,this.childContexts=t,this.parent=r}get(o,t){return o===ci?this.route:o===sr?this.childContexts:this.parent.get(o,t)}}let OA=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-component"]],standalone:!0,features:[n.jDz],decls:1,vars:0,template:function(t,r){1&t&&n._UZ(0,"router-outlet")},dependencies:[$b],encapsulation:2}),i})();function Yw(i,o){return i.providers&&!i._injector&&(i._injector=(0,n.MMx)(i.providers,o,`Route: ${i.path}`)),i._injector??o}function Ub(i){const o=i.children&&i.children.map(Ub),t=o?{...i,children:o}:{...i};return!t.component&&!t.loadComponent&&(o||t.loadChildren)&&t.outlet&&t.outlet!==Ai&&(t.component=OA),t}function yl(i){return i.outlet||Ai}function Vw(i,o){const t=i.filter(r=>yl(r)===o);return t.push(...i.filter(r=>yl(r)!==o)),t}function Mf(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let o=i.parent;o;o=o.parent){const t=o.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class LA{constructor(o,t,r,s){this.routeReuseStrategy=o,this.futureState=t,this.currState=r,this.forwardEvent=s}activate(o){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,o),Hw(this.futureState.root),this.activateChildRoutes(t,r,o)}deactivateChildRoutes(o,t,r){const s=fu(t);o.children.forEach(l=>{const u=l.value.outlet;this.deactivateRoutes(l,s[u],r),delete s[u]}),Ma(s,(l,u)=>{this.deactivateRouteAndItsChildren(l,r)})}deactivateRoutes(o,t,r){const s=o.value,l=t?t.value:null;if(s===l)if(s.component){const u=r.getContext(s.outlet);u&&this.deactivateChildRoutes(o,t,u.children)}else this.deactivateChildRoutes(o,t,r);else l&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(o,t){o.value.component&&this.routeReuseStrategy.shouldDetach(o.value.snapshot)?this.detachAndStoreRouteSubtree(o,t):this.deactivateRouteAndOutlet(o,t)}detachAndStoreRouteSubtree(o,t){const r=t.getContext(o.value.outlet),s=r&&o.value.component?r.children:t,l=fu(o);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);if(r&&r.outlet){const u=r.outlet.detach(),p=r.children.onOutletDeactivated();this.routeReuseStrategy.store(o.value.snapshot,{componentRef:u,route:o,contexts:p})}}deactivateRouteAndOutlet(o,t){const r=t.getContext(o.value.outlet),s=r&&o.value.component?r.children:t,l=fu(o);for(const u of Object.keys(l))this.deactivateRouteAndItsChildren(l[u],s);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(o,t,r){const s=fu(t);o.children.forEach(l=>{this.activateRoutes(l,s[l.value.outlet],r),this.forwardEvent(new NO(l.value.snapshot))}),o.children.length&&this.forwardEvent(new PO(o.value.snapshot))}activateRoutes(o,t,r){const s=o.value,l=t?t.value:null;if(Hw(s),s===l)if(s.component){const u=r.getOrCreateContext(s.outlet);this.activateChildRoutes(o,t,u.children)}else this.activateChildRoutes(o,t,r);else if(s.component){const u=r.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const p=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),u.children.onOutletReAttached(p.contexts),u.attachRef=p.componentRef,u.route=p.route.value,u.outlet&&u.outlet.attach(p.componentRef,p.route.value),Hw(p.route.value),this.activateChildRoutes(o,null,u.children)}else{const p=Mf(s.snapshot),y=p?.get(n._Vd)??null;u.attachRef=null,u.route=s,u.resolver=y,u.injector=p,u.outlet&&u.outlet.activateWith(s,u.injector),this.activateChildRoutes(o,null,u.children)}}else this.activateChildRoutes(o,null,r)}}class HO{constructor(o){this.path=o,this.route=this.path[this.path.length-1]}}class Yb{constructor(o,t){this.component=o,this.route=t}}function RA(i,o,t){const r=i._root;return xc(r,o?o._root:null,t,[r.value])}function Zh(i,o){const t=Symbol(),r=o.get(i,t);return r===t?"function"!=typeof i||(0,n.Z0I)(i)?o.get(i):i:r}function xc(i,o,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=fu(o);return i.children.forEach(u=>{(function $O(i,o,t,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const l=i.value,u=o?o.value:null,p=t?t.getContext(i.value.outlet):null;if(u&&l.routeConfig===u.routeConfig){const y=function FA(i,o,t){if("function"==typeof t)return t(i,o);switch(t){case"pathParamsChange":return!Uh(i.url,o.url);case"pathParamsOrQueryParamsChange":return!Uh(i.url,o.url)||!cd(i.queryParams,o.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!$w(i,o)||!cd(i.queryParams,o.queryParams);default:return!$w(i,o)}}(u,l,l.routeConfig.runGuardsAndResolvers);y?s.canActivateChecks.push(new HO(r)):(l.data=u.data,l._resolvedData=u._resolvedData),xc(i,o,l.component?p?p.children:null:t,r,s),y&&p&&p.outlet&&p.outlet.isActivated&&s.canDeactivateChecks.push(new Yb(p.outlet.component,u))}else u&&mp(o,p,s),s.canActivateChecks.push(new HO(r)),xc(i,null,l.component?p?p.children:null:t,r,s)})(u,l[u.value.outlet],t,r.concat([u.value]),s),delete l[u.value.outlet]}),Ma(l,(u,p)=>mp(u,t.getContext(p),s)),s}function mp(i,o,t){const r=fu(i),s=i.value;Ma(r,(l,u)=>{mp(l,s.component?o?o.children.getContext(u):null:o,t)}),t.canDeactivateChecks.push(new Yb(s.component&&o&&o.outlet&&o.outlet.isActivated?o.outlet.component:null,s))}function k_(i){return"function"==typeof i}function _p(i){return i instanceof sd||"EmptyError"===i?.name}const Zb=Symbol("INITIAL_VALUE");function Df(){return kr(i=>bl(i.map(o=>o.pipe($i(1),vl(Zb)))).pipe((0,ft.U)(o=>{for(const t of o)if(!0!==t){if(t===Zb)return Zb;if(!1===t||t instanceof gp)return t}return!0}),Wt(o=>o!==Zb),$i(1)))}function kf(i){return(0,Wn.z)(oi(o=>{if(dd(o))throw kA(0,o)}),(0,ft.U)(o=>!0===o))}const bp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function If(i,o,t,r,s){const l=UA(i,o,t);return l.matched?function GO(i,o,t,r){const s=o.canMatch;return s&&0!==s.length?Et(s.map(u=>{const p=Zh(u,i);return hp(function UO(i){return i&&k_(i.canMatch)}(p)?p.canMatch(o,t):i.runInContext(()=>p(o,t)))})).pipe(Df(),kf()):Et(!0)}(r=Yw(o,r),o,t).pipe((0,ft.U)(u=>!0===u?l:{...bp})):Et(l)}function UA(i,o,t){if(""===o.path)return"full"===o.pathMatch&&(i.hasChildren()||t.length>0)?{...bp}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const s=(o.matcher||mO)(t,i,o);if(!s)return{...bp};const l={};Ma(s.posParams,(p,y)=>{l[y]=p.path});const u=s.consumed.length>0?{...l,...s.consumed[s.consumed.length-1].parameters}:l;return{matched:!0,consumedSegments:s.consumed,remainingSegments:t.slice(s.consumed.length),parameters:u,positionalParamSegments:s.posParams??{}}}function YA(i,o,t,r,s="corrected"){if(t.length>0&&function JO(i,o,t){return t.some(r=>I_(i,o,r)&&yl(r)!==Ai)}(i,t,r)){const u=new Di(o,function qO(i,o,t,r){const s={};s[Ai]=r,r._sourceSegment=i,r._segmentIndexShift=o.length;for(const l of t)if(""===l.path&&yl(l)!==Ai){const u=new Di([],{});u._sourceSegment=i,u._segmentIndexShift=o.length,s[yl(l)]=u}return s}(i,o,r,new Di(t,i.children)));return u._sourceSegment=i,u._segmentIndexShift=o.length,{segmentGroup:u,slicedSegments:[]}}if(0===t.length&&function QO(i,o,t){return t.some(r=>I_(i,o,r))}(i,t,r)){const u=new Di(i.segments,function Kw(i,o,t,r,s,l){const u={};for(const p of r)if(I_(i,t,p)&&!s[yl(p)]){const y=new Di([],{});y._sourceSegment=i,y._segmentIndexShift="legacy"===l?i.segments.length:o.length,u[yl(p)]=y}return{...s,...u}}(i,o,t,r,i.children,s));return u._sourceSegment=i,u._segmentIndexShift=o.length,{segmentGroup:u,slicedSegments:t}}const l=new Di(i.segments,i.children);return l._sourceSegment=i,l._segmentIndexShift=o.length,{segmentGroup:l,slicedSegments:t}}function I_(i,o,t){return(!(i.hasChildren()||o.length>0)||"full"!==t.pathMatch)&&""===t.path}function jA(i,o,t,r){return!!(yl(i)===r||r!==Ai&&I_(o,t,i))&&("**"===i.path||UA(o,i,t).matched)}function Vb(i,o,t){return 0===o.length&&!i.children[t]}const Ef=!1;class zb{constructor(o){this.segmentGroup=o||null}}class Gb{constructor(o){this.urlTree=o}}function mu(i){return Ci(new zb(i))}function Xw(i){return Ci(new Gb(i))}class eM{constructor(o,t,r,s,l){this.injector=o,this.configLoader=t,this.urlSerializer=r,this.urlTree=s,this.config=l,this.allowRedirects=!0}apply(){const o=YA(this.urlTree.root,[],[],this.config).segmentGroup,t=new Di(o.segments,o.children);return this.expandSegmentGroup(this.injector,this.config,t,Ai).pipe((0,ft.U)(l=>this.createUrlTree(v_(l),this.urlTree.queryParams,this.urlTree.fragment))).pipe(hs(l=>{if(l instanceof Gb)return this.allowRedirects=!1,this.match(l.urlTree);throw l instanceof zb?this.noMatchError(l):l}))}match(o){return this.expandSegmentGroup(this.injector,this.config,o.root,Ai).pipe((0,ft.U)(s=>this.createUrlTree(v_(s),o.queryParams,o.fragment))).pipe(hs(s=>{throw s instanceof zb?this.noMatchError(s):s}))}noMatchError(o){return new n.vHH(4002,Ef)}createUrlTree(o,t,r){const s=b_(o);return new gp(s,t,r)}expandSegmentGroup(o,t,r,s){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(o,t,r).pipe((0,ft.U)(l=>new Di([],l))):this.expandSegment(o,r,t,r.segments,s,!0)}expandChildren(o,t,r){const s=[];for(const l of Object.keys(r.children))"primary"===l?s.unshift(l):s.push(l);return(0,Yo.D)(s).pipe(ld(l=>{const u=r.children[l],p=Vw(t,l);return this.expandSegmentGroup(o,p,u,l).pipe((0,ft.U)(y=>({segment:y,outlet:l})))}),zl((l,u)=>(l[u.outlet]=u.segment,l),{}),hw())}expandSegment(o,t,r,s,l,u){return(0,Yo.D)(r).pipe(ld(p=>this.expandSegmentAgainstRoute(o,t,r,p,s,l,u).pipe(hs(A=>{if(A instanceof zb)return Et(null);throw A}))),Fh(p=>!!p),hs((p,y)=>{if(_p(p))return Vb(t,s,l)?Et(new Di([],{})):mu(t);throw p}))}expandSegmentAgainstRoute(o,t,r,s,l,u,p){return jA(s,t,l,u)?void 0===s.redirectTo?this.matchSegmentAgainstRoute(o,t,s,l,u):p&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(o,t,r,s,l,u):mu(t):mu(t)}expandSegmentAgainstRouteUsingRedirect(o,t,r,s,l,u){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(o,r,s,u):this.expandRegularSegmentAgainstRouteUsingRedirect(o,t,r,s,l,u)}expandWildCardWithParamsAgainstRouteUsingRedirect(o,t,r,s){const l=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Xw(l):this.lineralizeSegments(r,l).pipe((0,ps.zg)(u=>{const p=new Di(u,{});return this.expandSegment(o,p,t,u,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(o,t,r,s,l,u){const{matched:p,consumedSegments:y,remainingSegments:A,positionalParamSegments:w}=UA(t,s,l);if(!p)return mu(t);const I=this.applyRedirectCommands(y,s.redirectTo,w);return s.redirectTo.startsWith("/")?Xw(I):this.lineralizeSegments(s,I).pipe((0,ps.zg)(P=>this.expandSegment(o,t,r,P.concat(A),u,!1)))}matchSegmentAgainstRoute(o,t,r,s,l){return"**"===r.path?(o=Yw(r,o),r.loadChildren?(r._loadedRoutes?Et({routes:r._loadedRoutes,injector:r._loadedInjector}):this.configLoader.loadChildren(o,r)).pipe((0,ft.U)(p=>(r._loadedRoutes=p.routes,r._loadedInjector=p.injector,new Di(s,{})))):Et(new Di(s,{}))):If(t,r,s,o).pipe(kr(({matched:u,consumedSegments:p,remainingSegments:y})=>u?this.getChildConfig(o=r._injector??o,r,s).pipe((0,ps.zg)(w=>{const I=w.injector??o,P=w.routes,{segmentGroup:F,slicedSegments:V}=YA(t,p,y,P),oe=new Di(F.segments,F.children);if(0===V.length&&oe.hasChildren())return this.expandChildren(I,P,oe).pipe((0,ft.U)(Be=>new Di(p,Be)));if(0===P.length&&0===V.length)return Et(new Di(p,{}));const Ae=yl(r)===l;return this.expandSegment(I,oe,P,V,Ae?Ai:l,!0).pipe((0,ft.U)(Se=>new Di(p.concat(Se.segments),Se.children)))})):mu(t)))}getChildConfig(o,t,r){return t.children?Et({routes:t.children,injector:o}):t.loadChildren?void 0!==t._loadedRoutes?Et({routes:t._loadedRoutes,injector:t._loadedInjector}):function zO(i,o,t,r){const s=o.canLoad;return void 0===s||0===s.length?Et(!0):Et(s.map(u=>{const p=Zh(u,i);return hp(function jb(i){return i&&k_(i.canLoad)}(p)?p.canLoad(o,t):i.runInContext(()=>p(o,t)))})).pipe(Df(),kf())}(o,t,r).pipe((0,ps.zg)(s=>s?this.configLoader.loadChildren(o,t).pipe(oi(l=>{t._loadedRoutes=l.routes,t._loadedInjector=l.injector})):function KO(i){return Ci(w_(Ef,3))}())):Et({routes:[],injector:o})}lineralizeSegments(o,t){let r=[],s=t.root;for(;;){if(r=r.concat(s.segments),0===s.numberOfChildren)return Et(r);if(s.numberOfChildren>1||!s.children[Ai])return Ci(new n.vHH(4e3,Ef));s=s.children[Ai]}}applyRedirectCommands(o,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),o,r)}applyRedirectCreateUrlTree(o,t,r,s){const l=this.createSegmentGroup(o,t.root,r,s);return new gp(l,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(o,t){const r={};return Ma(o,(s,l)=>{if("string"==typeof s&&s.startsWith(":")){const p=s.substring(1);r[l]=t[p]}else r[l]=s}),r}createSegmentGroup(o,t,r,s){const l=this.createSegments(o,t.segments,r,s);let u={};return Ma(t.children,(p,y)=>{u[y]=this.createSegmentGroup(o,p,r,s)}),new Di(l,u)}createSegments(o,t,r,s){return t.map(l=>l.path.startsWith(":")?this.findPosParam(o,l,s):this.findOrReturn(l,r))}findPosParam(o,t,r){const s=r[t.path.substring(1)];if(!s)throw new n.vHH(4001,Ef);return s}findOrReturn(o,t){let r=0;for(const s of t){if(s.path===o.path)return t.splice(r),s;r++}return o}}class Pf{}class t5{constructor(o,t,r,s,l,u,p,y){this.injector=o,this.rootComponentType=t,this.config=r,this.urlTree=s,this.url=l,this.paramsInheritanceStrategy=u,this.relativeLinkResolution=p,this.urlSerializer=y}recognize(){const o=YA(this.urlTree.root,[],[],this.config.filter(t=>void 0===t.redirectTo),this.relativeLinkResolution).segmentGroup;return this.processSegmentGroup(this.injector,this.config,o,Ai).pipe((0,ft.U)(t=>{if(null===t)return null;const r=new MA([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ai,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new gu(r,t),l=new LO(this.url,s);return this.inheritParamsAndData(l._root),l}))}inheritParamsAndData(o){const t=o.value,r=wA(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),o.children.forEach(s=>this.inheritParamsAndData(s))}processSegmentGroup(o,t,r,s){return 0===r.segments.length&&r.hasChildren()?this.processChildren(o,t,r):this.processSegment(o,t,r,r.segments,s)}processChildren(o,t,r){return(0,Yo.D)(Object.keys(r.children)).pipe(ld(s=>{const l=r.children[s],u=Vw(t,s);return this.processSegmentGroup(o,u,l,s)}),zl((s,l)=>s&&l?(s.push(...l),s):null),gw(s=>null!==s),rA(null),hw(),(0,ft.U)(s=>{if(null===s)return null;const l=n5(s);return function GU(i){i.sort((o,t)=>o.value.outlet===Ai?-1:t.value.outlet===Ai?1:o.value.outlet.localeCompare(t.value.outlet))}(l),l}))}processSegment(o,t,r,s,l){return(0,Yo.D)(t).pipe(ld(u=>this.processSegmentAgainstRoute(u._injector??o,u,r,s,l)),Fh(u=>!!u),hs(u=>{if(_p(u))return Vb(r,s,l)?Et([]):Et(null);throw u}))}processSegmentAgainstRoute(o,t,r,s,l){if(t.redirectTo||!jA(t,r,s,l))return Et(null);let u;if("**"===t.path){const p=s.length>0?bw(s).parameters:{},y=ZA(r)+s.length;u=Et({snapshot:new MA(s,p,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,VA(t),yl(t),t.component??t._loadedComponent??null,t,i5(r),y,rM(t),y),consumedSegments:[],remainingSegments:[]})}else u=If(r,t,s,o).pipe((0,ft.U)(({matched:p,consumedSegments:y,remainingSegments:A,parameters:w})=>{if(!p)return null;const I=ZA(r)+y.length;return{snapshot:new MA(y,w,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,VA(t),yl(t),t.component??t._loadedComponent??null,t,i5(r),I,rM(t),I),consumedSegments:y,remainingSegments:A}}));return u.pipe(kr(p=>{if(null===p)return Et(null);const{snapshot:y,consumedSegments:A,remainingSegments:w}=p;o=t._injector??o;const I=t._loadedInjector??o,P=function qU(i){return i.children?i.children:i.loadChildren?i._loadedRoutes:[]}(t),{segmentGroup:F,slicedSegments:V}=YA(r,A,w,P.filter(Ae=>void 0===Ae.redirectTo),this.relativeLinkResolution);if(0===V.length&&F.hasChildren())return this.processChildren(I,P,F).pipe((0,ft.U)(Ae=>null===Ae?null:[new gu(y,Ae)]));if(0===P.length&&0===V.length)return Et([new gu(y,[])]);const oe=yl(t)===l;return this.processSegment(I,P,F,V,oe?Ai:l).pipe((0,ft.U)(Ae=>null===Ae?null:[new gu(y,Ae)]))}))}}function nM(i){const o=i.value.routeConfig;return o&&""===o.path&&void 0===o.redirectTo}function n5(i){const o=[],t=new Set;for(const r of i){if(!nM(r)){o.push(r);continue}const s=o.find(l=>r.value.routeConfig===l.value.routeConfig);void 0!==s?(s.children.push(...r.children),t.add(s)):o.push(r)}for(const r of t){const s=n5(r.children);o.push(new gu(r.value,s))}return o.filter(r=>!t.has(r))}function i5(i){let o=i;for(;o._sourceSegment;)o=o._sourceSegment;return o}function ZA(i){let o=i,t=o._segmentIndexShift??0;for(;o._sourceSegment;)o=o._sourceSegment,t+=o._segmentIndexShift??0;return t-1}function VA(i){return i.data||{}}function rM(i){return i.resolve||{}}function sM(i){return"string"==typeof i.title||null===i.title}function zA(i){return kr(o=>{const t=i(o);return t?(0,Yo.D)(t).pipe((0,ft.U)(()=>o)):Et(o)})}let GA=(()=>{class i{buildTitle(t){let r,s=t.root;for(;void 0!==s;)r=this.getResolvedTitleForRoute(s)??r,s=s.children.find(l=>l.outlet===Ai);return r}getResolvedTitleForRoute(t){return t.data[g_]}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(){return(0,n.f3M)(lM)},providedIn:"root"}),i})(),lM=(()=>{class i extends GA{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(qi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class l5{}class cM extends class ri{shouldDetach(o){return!1}store(o,t){}shouldAttach(o){return!1}retrieve(o){return null}shouldReuseRoute(o,t){return o.routeConfig===t.routeConfig}}{}const E_=new n.OlP("",{providedIn:"root",factory:()=>({})}),qA=new n.OlP("ROUTES");let Jb=(()=>{class i{constructor(t,r){this.injector=t,this.compiler=r,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return Et(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=hp(t.loadComponent()).pipe(oi(l=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=l}),yf(()=>{this.componentLoaders.delete(t)})),s=new Wr.c(r,()=>new Ht.xQ).pipe((0,uu.x)());return this.componentLoaders.set(t,s),s}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Et({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const l=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe((0,ft.U)(p=>{this.onLoadEndListener&&this.onLoadEndListener(r);let y,A,w=!1;Array.isArray(p)?A=p:(y=p.create(t).injector,A=_w(y.get(qA,[],n.XFs.Self|n.XFs.Optional)));return{routes:A.map(Ub),injector:y}}),yf(()=>{this.childrenLoaders.delete(r)})),u=new Wr.c(l,()=>new Ht.xQ).pipe((0,uu.x)());return this.childrenLoaders.set(r,u),u}loadModuleFactoryOrRoutes(t){return hp(t()).pipe((0,ps.zg)(r=>r instanceof n.YKP||Array.isArray(r)?Et(r):(0,Yo.D)(this.compiler.compileModuleAsync(r))))}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.zs3),n.LFG(n.Sil))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class c5{}class pM{shouldProcessUrl(o){return!0}extract(o){return o}merge(o,t){return o}}function d5(i){throw i}function QU(i,o,t){return o.parse("/")}const hM={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},gM={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function fM(){const i=(0,n.f3M)(xw),o=(0,n.f3M)(sr),t=(0,n.f3M)(_n),r=(0,n.f3M)(n.zs3),s=(0,n.f3M)(n.Sil),l=(0,n.f3M)(qA,{optional:!0})??[],u=(0,n.f3M)(E_,{optional:!0})??{},p=(0,n.f3M)(lM),y=(0,n.f3M)(GA,{optional:!0}),A=(0,n.f3M)(c5,{optional:!0}),w=(0,n.f3M)(l5,{optional:!0}),I=new Pn(null,i,o,t,r,s,_w(l));return A&&(I.urlHandlingStrategy=A),w&&(I.routeReuseStrategy=w),I.titleStrategy=y??p,function zh(i,o){i.errorHandler&&(o.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(o.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(o.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(o.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(o.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(o.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(o.canceledNavigationResolution=i.canceledNavigationResolution)}(u,I),I}let Pn=(()=>{class i{constructor(t,r,s,l,u,p,y){this.rootComponentType=t,this.urlSerializer=r,this.rootContexts=s,this.location=l,this.config=y,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Ht.xQ,this.errorHandler=d5,this.malformedUriErrorHandler=QU,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>Et(void 0),this.urlHandlingStrategy=new pM,this.routeReuseStrategy=new cM,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.configLoader=u.get(Jb),this.configLoader.onLoadEndListener=P=>this.triggerEvent(new IO(P)),this.configLoader.onLoadStartListener=P=>this.triggerEvent(new Sf(P)),this.ngModule=u.get(n.h0i),this.console=u.get(n.c2e);const I=u.get(n.R0b);this.isNgZoneEnabled=I instanceof n.R0b&&n.R0b.isInAngularZone(),this.resetConfig(y),this.currentUrlTree=function _O(){return new gp(new Di([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=wf(this.currentUrlTree,this.rootComponentType),this.transitions=new Qn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}setupNavigations(t){const r=this.events;return t.pipe(Wt(s=>0!==s.id),(0,ft.U)(s=>({...s,extractedUrl:this.urlHandlingStrategy.extract(s.rawUrl)})),kr(s=>{let l=!1,u=!1;return Et(s).pipe(oi(p=>{this.currentNavigation={id:p.id,initialUrl:p.rawUrl,extractedUrl:p.extractedUrl,trigger:p.source,extras:p.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),kr(p=>{const y=this.browserUrlTree.toString(),A=!this.navigated||p.extractedUrl.toString()!==y||y!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||A)&&this.urlHandlingStrategy.shouldProcessUrl(p.rawUrl))return mM(p.source)&&(this.browserUrlTree=p.extractedUrl),Et(p).pipe(kr(I=>{const P=this.transitions.getValue();return r.next(new Fb(I.id,this.serializeUrl(I.extractedUrl),I.source,I.restoredState)),P!==this.transitions.getValue()?ae:Promise.resolve(I)}),function tM(i,o,t,r){return kr(s=>function XO(i,o,t,r,s){return new eM(i,o,t,r,s).apply()}(i,o,t,s.extractedUrl,r).pipe((0,ft.U)(l=>({...s,urlAfterRedirects:l}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),oi(I=>{this.currentNavigation={...this.currentNavigation,finalUrl:I.urlAfterRedirects},s.urlAfterRedirects=I.urlAfterRedirects}),function o5(i,o,t,r,s,l){return(0,ps.zg)(u=>function e5(i,o,t,r,s,l,u="emptyOnly",p="legacy"){return new t5(i,o,t,r,s,u,p,l).recognize().pipe(kr(y=>null===y?function _u(i){return new No.y(o=>o.error(i))}(new Pf):Et(y)))}(i,o,t,u.urlAfterRedirects,r.serialize(u.urlAfterRedirects),r,s,l).pipe((0,ft.U)(p=>({...u,targetSnapshot:p}))))}(this.ngModule.injector,this.rootComponentType,this.config,this.urlSerializer,this.paramsInheritanceStrategy,this.relativeLinkResolution),oi(I=>{if(s.targetSnapshot=I.targetSnapshot,"eager"===this.urlUpdateStrategy){if(!I.extras.skipLocationChange){const F=this.urlHandlingStrategy.merge(I.urlAfterRedirects,I.rawUrl);this.setBrowserUrl(F,I)}this.browserUrlTree=I.urlAfterRedirects}const P=new wO(I.id,this.serializeUrl(I.extractedUrl),this.serializeUrl(I.urlAfterRedirects),I.targetSnapshot);r.next(P)}));if(A&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:P,extractedUrl:F,source:V,restoredState:oe,extras:Ae}=p,ue=new Fb(P,this.serializeUrl(F),V,oe);r.next(ue);const Se=wf(F,this.rootComponentType).snapshot;return Et(s={...p,targetSnapshot:Se,urlAfterRedirects:F,extras:{...Ae,skipLocationChange:!1,replaceUrl:!1}})}return this.rawUrlTree=p.rawUrl,p.resolve(null),ae}),oi(p=>{const y=new MO(p.id,this.serializeUrl(p.extractedUrl),this.serializeUrl(p.urlAfterRedirects),p.targetSnapshot);this.triggerEvent(y)}),(0,ft.U)(p=>s={...p,guards:RA(p.targetSnapshot,p.currentSnapshot,this.rootContexts)}),function YO(i,o){return(0,ps.zg)(t=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:l,canDeactivateChecks:u}}=t;return 0===u.length&&0===l.length?Et({...t,guardsResult:!0}):function jO(i,o,t,r){return(0,Yo.D)(i).pipe((0,ps.zg)(s=>function zU(i,o,t,r,s){const l=o&&o.routeConfig?o.routeConfig.canDeactivate:null;return l&&0!==l.length?Et(l.map(p=>{const y=Mf(o)??s,A=Zh(p,y);return hp(function HA(i){return i&&k_(i.canDeactivate)}(A)?A.canDeactivate(i,o,t,r):y.runInContext(()=>A(i,o,t,r))).pipe(Fh())})).pipe(Df()):Et(!0)}(s.component,s.route,t,o,r)),Fh(s=>!0!==s,!0))}(u,r,s,i).pipe((0,ps.zg)(p=>p&&function BA(i){return"boolean"==typeof i}(p)?function $A(i,o,t,r){return(0,Yo.D)(o).pipe(ld(s=>W(function Qw(i,o){return null!==i&&o&&o(new EO(i)),Et(!0)}(s.route.parent,r),function ZO(i,o){return null!==i&&o&&o(new OO(i)),Et(!0)}(s.route,r),function Ww(i,o,t){const r=o[o.length-1],l=o.slice(0,o.length-1).reverse().map(u=>function Gw(i){const o=i.routeConfig?i.routeConfig.canActivateChild:null;return o&&0!==o.length?{node:i,guards:o}:null}(u)).filter(u=>null!==u).map(u=>at(()=>Et(u.guards.map(y=>{const A=Mf(u.node)??t,w=Zh(y,A);return hp(function qw(i){return i&&k_(i.canActivateChild)}(w)?w.canActivateChild(r,i):A.runInContext(()=>w(r,i))).pipe(Fh())})).pipe(Df())));return Et(l).pipe(Df())}(i,s.path,t),function VO(i,o,t){const r=o.routeConfig?o.routeConfig.canActivate:null;if(!r||0===r.length)return Et(!0);const s=r.map(l=>at(()=>{const u=Mf(o)??t,p=Zh(l,u);return hp(function Vh(i){return i&&k_(i.canActivate)}(p)?p.canActivate(o,i):u.runInContext(()=>p(o,i))).pipe(Fh())}));return Et(s).pipe(Df())}(i,s.route,t))),Fh(s=>!0!==s,!0))}(r,l,i,o):Et(p)),(0,ft.U)(p=>({...t,guardsResult:p})))})}(this.ngModule.injector,p=>this.triggerEvent(p)),oi(p=>{if(s.guardsResult=p.guardsResult,dd(p.guardsResult))throw kA(0,p.guardsResult);const y=new DO(p.id,this.serializeUrl(p.extractedUrl),this.serializeUrl(p.urlAfterRedirects),p.targetSnapshot,!!p.guardsResult);this.triggerEvent(y)}),Wt(p=>!!p.guardsResult||(this.restoreHistory(p),this.cancelNavigationTransition(p,"",3),!1)),zA(p=>{if(p.guards.canActivateChecks.length)return Et(p).pipe(oi(y=>{const A=new kO(y.id,this.serializeUrl(y.extractedUrl),this.serializeUrl(y.urlAfterRedirects),y.targetSnapshot);this.triggerEvent(A)}),kr(y=>{let A=!1;return Et(y).pipe(function Tc(i,o){return(0,ps.zg)(t=>{const{targetSnapshot:r,guards:{canActivateChecks:s}}=t;if(!s.length)return Et(t);let l=0;return(0,Yo.D)(s).pipe(ld(u=>function r5(i,o,t,r){const s=i.routeConfig,l=i._resolve;return void 0!==s?.title&&!sM(s)&&(l[g_]=s.title),function aM(i,o,t,r){const s=function a5(i){return[...Object.keys(i),...Object.getOwnPropertySymbols(i)]}(i);if(0===s.length)return Et({});const l={};return(0,Yo.D)(s).pipe((0,ps.zg)(u=>function s5(i,o,t,r){const s=Mf(o)??r,l=Zh(i,s);return hp(l.resolve?l.resolve(o,t):s.runInContext(()=>l(o,t)))}(i[u],o,t,r).pipe(Fh(),oi(p=>{l[u]=p}))),lA(1),function hO(i){return o=>o.lift(new gO(i))}(l),hs(u=>_p(u)?ae:Ci(u)))}(l,i,o,r).pipe((0,ft.U)(u=>(i._resolvedData=u,i.data=wA(i,t).resolve,s&&sM(s)&&(i.data[g_]=s.title),null)))}(u.route,r,i,o)),oi(()=>l++),lA(1),(0,ps.zg)(u=>l===s.length?Et(t):ae))})}(this.paramsInheritanceStrategy,this.ngModule.injector),oi({next:()=>A=!0,complete:()=>{A||(this.restoreHistory(y),this.cancelNavigationTransition(y,"",2))}}))}),oi(y=>{const A=new hu(y.id,this.serializeUrl(y.extractedUrl),this.serializeUrl(y.urlAfterRedirects),y.targetSnapshot);this.triggerEvent(A)}))}),zA(p=>{const y=A=>{const w=[];A.routeConfig?.loadComponent&&!A.routeConfig._loadedComponent&&w.push(this.configLoader.loadComponent(A.routeConfig).pipe(oi(I=>{A.component=I}),(0,ft.U)(()=>{})));for(const I of A.children)w.push(...y(I));return w};return bl(y(p.targetSnapshot.root)).pipe(rA(),$i(1))}),zA(()=>this.afterPreactivation()),(0,ft.U)(p=>{const y=function Uw(i,o,t){const r=S_(i,o._root,t?t._root:void 0);return new hd(r,o)}(this.routeReuseStrategy,p.targetSnapshot,p.currentRouterState);return s={...p,targetRouterState:y}}),oi(p=>{this.currentUrlTree=p.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(p.urlAfterRedirects,p.rawUrl),this.routerState=p.targetRouterState,"deferred"===this.urlUpdateStrategy&&(p.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,p),this.browserUrlTree=p.urlAfterRedirects)}),((i,o,t)=>(0,ft.U)(r=>(new LA(o,r.targetRouterState,r.currentRouterState,t).activate(i),r)))(this.rootContexts,this.routeReuseStrategy,p=>this.triggerEvent(p)),oi({next(){l=!0},complete(){l=!0}}),yf(()=>{l||u||this.cancelNavigationTransition(s,"",1),this.currentNavigation?.id===s.id&&(this.currentNavigation=null)}),hs(p=>{if(u=!0,Hb(p)){IA(p)||(this.navigated=!0,this.restoreHistory(s,!0));const y=new pd(s.id,this.serializeUrl(s.extractedUrl),p.message,p.cancellationCode);if(r.next(y),IA(p)){const A=this.urlHandlingStrategy.merge(p.url,this.rawUrlTree),w={skipLocationChange:s.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||mM(s.source)};this.scheduleNavigation(A,"imperative",null,w,{resolve:s.resolve,reject:s.reject,promise:s.promise})}else s.resolve(!1)}else{this.restoreHistory(s,!0);const y=new Nw(s.id,this.serializeUrl(s.extractedUrl),p,s.targetSnapshot??void 0);r.next(y);try{s.resolve(this.errorHandler(p))}catch(A){s.reject(A)}}return ae}))}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}setTransition(t){this.transitions.next({...this.transitions.value,...t})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{const s={replaceUrl:!0},l=t.state?.navigationId?t.state:null;if(l){const p={...l};delete p.navigationId,delete p.\u0275routerPageId,0!==Object.keys(p).length&&(s.state=p)}const u=this.parseUrl(t.url);this.scheduleNavigation(u,r,l,s)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){this.config=t.map(Ub),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:s,queryParams:l,fragment:u,queryParamsHandling:p,preserveFragment:y}=r,A=s||this.routerState.root,w=y?this.currentUrlTree.fragment:u;let I=null;switch(p){case"merge":I={...this.currentUrlTree.queryParams,...l};break;case"preserve":I=this.currentUrlTree.queryParams;break;default:I=l||null}return null!==I&&(I=this.removeEmptyProps(I)),y_(A,this.currentUrlTree,t,I,w??null)}navigateByUrl(t,r={skipLocationChange:!1}){const s=dd(t)?t:this.parseUrl(t),l=this.urlHandlingStrategy.merge(s,this.rawUrlTree);return this.scheduleNavigation(l,"imperative",null,r)}navigate(t,r={skipLocationChange:!1}){return function JA(i){for(let o=0;o<i.length;o++){if(null==i[o])throw new n.vHH(4008,false)}}(t),this.navigateByUrl(this.createUrlTree(t,r),r)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){let r;try{r=this.urlSerializer.parse(t)}catch(s){r=this.malformedUriErrorHandler(s,this.urlSerializer,t)}return r}isActive(t,r){let s;if(s=!0===r?{...hM}:!1===r?{...gM}:r,dd(t))return Cw(this.currentUrlTree,t,s);const l=this.parseUrl(t);return Cw(this.currentUrlTree,l,s)}removeEmptyProps(t){return Object.keys(t).reduce((r,s)=>{const l=t[s];return null!=l&&(r[s]=l),r},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.currentPageId=t.targetPageId,this.events.next(new Ac(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.titleStrategy?.updateTitle(this.routerState.snapshot),t.resolve(!0)},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}scheduleNavigation(t,r,s,l,u){if(this.disposed)return Promise.resolve(!1);let p,y,A;u?(p=u.resolve,y=u.reject,A=u.promise):A=new Promise((P,F)=>{p=P,y=F});const w=++this.navigationId;let I;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(s=this.location.getState()),I=s&&s.\u0275routerPageId?s.\u0275routerPageId:l.replaceUrl||l.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):I=0,this.setTransition({id:w,targetPageId:I,source:r,restoredState:s,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:l,resolve:p,reject:y,promise:A,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),A.catch(P=>Promise.reject(P))}setBrowserUrl(t,r){const s=this.urlSerializer.serialize(t),l={...r.extras.state,...this.generateNgRouterState(r.id,r.targetPageId)};this.location.isCurrentPathEqualTo(s)||r.extras.replaceUrl?this.location.replaceState(s,"",l):this.location.go(s,"",l)}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-t.targetPageId;"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.currentNavigation?.finalUrl||0===s?this.currentUrlTree===this.currentNavigation?.finalUrl&&0===s&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(t,r,s){const l=new pd(t.id,this.serializeUrl(t.extractedUrl),r,s);this.triggerEvent(l),t.resolve(!1)}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return i.\u0275fac=function(t){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:function(){return fM()},providedIn:"root"}),i})();function mM(i){return"imperative"!==i}let P_=(()=>{class i{constructor(t,r,s){this.router=t,this.route=r,this.locationStrategy=s,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.commands=null,this.href=null,this.onChanges=new Ht.xQ,this.subscription=t.events.subscribe(l=>{l instanceof Ac&&this.updateTargetUrlAndHref()})}set preserveFragment(t){this._preserveFragment=(0,n.D6c)(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=(0,n.D6c)(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=(0,n.D6c)(t)}get replaceUrl(){return this._replaceUrl}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:null}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,r,s,l,u){return!!(0!==t||r||s||l||u||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!1)}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(ci),n.Y36(xt))},i.\u0275dir=n.lG2({type:i,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,r){1&t&&n.NdJ("click",function(l){return r.onClick(l.button,l.ctrlKey,l.shiftKey,l.altKey,l.metaKey)}),2&t&&n.uIk("target",r.target)("href",r.href,n.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[n.TTD]}),i})();class QA{}let Of=(()=>{class i{constructor(t,r,s,l,u){this.router=t,this.injector=s,this.preloadingStrategy=l,this.loader=u}setUpPreloading(){this.subscription=this.router.events.pipe(Wt(t=>t instanceof Ac),ld(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const s=[];for(const l of r){l.providers&&!l._injector&&(l._injector=(0,n.MMx)(l.providers,t,`Route: ${l.path}`));const u=l._injector??t,p=l._loadedInjector??u;l.loadChildren&&!l._loadedRoutes&&void 0===l.canLoad||l.loadComponent&&!l._loadedComponent?s.push(this.preloadConfig(u,l)):(l.children||l._loadedRoutes)&&s.push(this.processRoutes(p,l.children??l._loadedRoutes))}return(0,Yo.D)(s).pipe((0,E.J)())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let s;s=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):Et(null);const l=s.pipe((0,ps.zg)(u=>null===u?Et(void 0):(r._loadedRoutes=u.routes,r._loadedInjector=u.injector,this.processRoutes(u.injector??t,u.routes))));if(r.loadComponent&&!r._loadedComponent){const u=this.loader.loadComponent(r);return(0,Yo.D)([l,u]).pipe((0,E.J)())}return l})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Pn),n.LFG(n.Sil),n.LFG(n.lqb),n.LFG(QA),n.LFG(Jb))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WA=new n.OlP("");let KA=(()=>{class i{constructor(t,r,s={}){this.router=t,this.viewportScroller=r,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Fb?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Ac&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Lw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.router.triggerEvent(new Lw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return i.\u0275fac=function(t){n.$Z()},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function Nf(i,o){return{\u0275kind:i,\u0275providers:o}}function e2(i){return[{provide:qA,multi:!0,useValue:i}]}function bM(){const i=(0,n.f3M)(n.zs3);return o=>{const t=i.get(n.z2F);if(o!==t.components[0])return;const r=i.get(Pn),s=i.get(vM);1===i.get(Wb)&&r.initialNavigation(),i.get(Kb,null,n.XFs.Optional)?.setUpPreloading(),i.get(WA,null,n.XFs.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),s.closed||(s.next(),s.unsubscribe())}}const vM=new n.OlP("",{factory:()=>new Ht.xQ}),Wb=new n.OlP("",{providedIn:"root",factory:()=>1});const Kb=new n.OlP("");function tY(i){return Nf(0,[{provide:Kb,useExisting:Of},{provide:QA,useExisting:i}])}const qh=new n.OlP("ROUTER_FORROOT_GUARD"),xM=[_n,{provide:xw,useClass:hA},{provide:Pn,useFactory:fM},sr,{provide:ci,useFactory:function XA(i){return i.routerState.root},deps:[Pn]},Jb];function TM(){return new n.PXZ("Router",Pn)}let O_=(()=>{class i{constructor(t){}static forRoot(t,r){return{ngModule:i,providers:[xM,[],e2(t),{provide:qh,useFactory:t2,deps:[[Pn,new n.FiY,new n.tp0]]},{provide:E_,useValue:r||{}},r?.useHash?{provide:xt,useClass:xo}:{provide:xt,useClass:Mi},{provide:WA,useFactory:()=>{const i=(0,n.f3M)(Pn),o=(0,n.f3M)(Wc),t=(0,n.f3M)(E_);return t.scrollOffset&&o.setOffset(t.scrollOffset),new KA(i,o,t)}},r?.preloadingStrategy?tY(r.preloadingStrategy).\u0275providers:[],{provide:n.PXZ,multi:!0,useFactory:TM},r?.initialNavigation?bu(r):[],[{provide:ev,useFactory:bM},{provide:n.tb,multi:!0,useExisting:ev}]]}}static forChild(t){return{ngModule:i,providers:[e2(t)]}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(qh,8))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[OA]}),i})();function t2(i){return"guarded"}function bu(i){return["disabled"===i.initialNavigation?Nf(3,[{provide:n.ip1,multi:!0,useFactory:()=>{const o=(0,n.f3M)(Pn);return()=>{o.setUpLocationChangeListener()}}},{provide:Wb,useValue:2}]).\u0275providers:[],"enabledBlocking"===i.initialNavigation?Nf(2,[{provide:Wb,useValue:0},{provide:n.ip1,multi:!0,deps:[n.zs3],useFactory:o=>{const t=o.get(Ce,Promise.resolve());let r=!1;return()=>t.then(()=>new Promise(l=>{const u=o.get(Pn),p=o.get(vM);(function s(l){o.get(Pn).events.pipe(Wt(p=>p instanceof Ac||p instanceof pd||p instanceof Nw),(0,ft.U)(p=>p instanceof Ac||p instanceof pd&&(0===p.code||1===p.code)&&null),Wt(p=>null!==p),$i(1)).subscribe(()=>{l()})})(()=>{l(!0),r=!0}),u.afterPreactivation=()=>(l(!0),r||p.closed?Et(void 0):p),u.initialNavigation()}))}}]).\u0275providers:[]]}const ev=new n.OlP("");function g5(i,o,t,r,s,l,u){try{var p=i[l](u),y=p.value}catch(A){return void t(A)}p.done?o(y):Promise.resolve(y).then(r,s)}function sn(i){return function(){var o=this,t=arguments;return new Promise(function(r,s){var l=i.apply(o,t);function u(y){g5(l,r,s,u,p,"next",y)}function p(y){g5(l,r,s,u,p,"throw",y)}u(void 0)})}}const nY={0:"Falha de conex\xe3o com servidor",404:"Falha ao invocar servidor, recurso n\xe3o encontrado",500:"Falha ao tentar realizar opera\xe7\xe3o, tente de novo mais tarde.",504:"Falha ao tentar realizar opera\xe7\xe3o, tente de novo mais tarde."};class fs{constructor(o){this.http=o}salve(o,t){return t.id?this.http.put(o,t).toPromise().then(this.retorno).catch(this.handleError):this.http.post(o,t).toPromise().then(this.retorno).catch(this.handleError)}remova(o,t){return this.http.delete(o,t).toPromise().then(this.retorno).catch(this.handleError)}obtenha(o,t){return this.http.get(o,{params:t}).toPromise().then(this.retorno).catch(this.handleError)}facaPost(o,t){return this.http.post(o,t).toPromise().then(this.retorno).catch(this.handleError)}retorno(o){return o.sucesso?Promise.resolve(o.data):(console.log("Houve um erro ao enviar"),Promise.reject(o.erro))}handleError(o){if(!o)return Promise.reject(o);let t=o&&null!=o.status?nY[o.status]:o&&o.message||o;return!t&&o.url.indexOf("/login")>=0&&(t="Fa\xe7a login novamente para realizar essa opera\xe7\xe3o."),Promise.reject(t)}}class N_{}class Jh{}class Gl{constructor(o){this.normalizedNames=new Map,this.lazyUpdate=null,o?this.lazyInit="string"==typeof o?()=>{this.headers=new Map,o.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const s=t.slice(0,r),l=s.toLowerCase(),u=t.slice(r+1).trim();this.maybeSetNormalizedName(s,l),this.headers.has(l)?this.headers.get(l).push(u):this.headers.set(l,[u])}})}:()=>{this.headers=new Map,Object.keys(o).forEach(t=>{let r=o[t];const s=t.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(s,r),this.maybeSetNormalizedName(t,s))})}:this.headers=new Map}has(o){return this.init(),this.headers.has(o.toLowerCase())}get(o){this.init();const t=this.headers.get(o.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(o){return this.init(),this.headers.get(o.toLowerCase())||null}append(o,t){return this.clone({name:o,value:t,op:"a"})}set(o,t){return this.clone({name:o,value:t,op:"s"})}delete(o,t){return this.clone({name:o,value:t,op:"d"})}maybeSetNormalizedName(o,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,o)}init(){this.lazyInit&&(this.lazyInit instanceof Gl?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(o=>this.applyUpdate(o)),this.lazyUpdate=null))}copyFrom(o){o.init(),Array.from(o.headers.keys()).forEach(t=>{this.headers.set(t,o.headers.get(t)),this.normalizedNames.set(t,o.normalizedNames.get(t))})}clone(o){const t=new Gl;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Gl?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([o]),t}applyUpdate(o){const t=o.name.toLowerCase();switch(o.op){case"a":case"s":let r=o.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(o.name,t);const s=("a"===o.op?this.headers.get(t):void 0)||[];s.push(...r),this.headers.set(t,s);break;case"d":const l=o.value;if(l){let u=this.headers.get(t);if(!u)return;u=u.filter(p=>-1===l.indexOf(p)),0===u.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,u)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(o){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>o(this.normalizedNames.get(t),this.headers.get(t)))}}class iY{encodeKey(o){return kM(o)}encodeValue(o){return kM(o)}decodeKey(o){return decodeURIComponent(o)}decodeValue(o){return decodeURIComponent(o)}}const m5=/%(\d[a-f0-9])/gi,_5={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kM(i){return encodeURIComponent(i).replace(m5,(o,t)=>_5[t]??o)}function L_(i){return`${i}`}class Qh{constructor(o={}){if(this.updates=null,this.cloneFrom=null,this.encoder=o.encoder||new iY,o.fromString){if(o.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f5(i,o){const t=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(s=>{const l=s.indexOf("="),[u,p]=-1==l?[o.decodeKey(s),""]:[o.decodeKey(s.slice(0,l)),o.decodeValue(s.slice(l+1))],y=t.get(u)||[];y.push(p),t.set(u,y)}),t}(o.fromString,this.encoder)}else o.fromObject?(this.map=new Map,Object.keys(o.fromObject).forEach(t=>{const r=o.fromObject[t],s=Array.isArray(r)?r.map(L_):[L_(r)];this.map.set(t,s)})):this.map=null}has(o){return this.init(),this.map.has(o)}get(o){this.init();const t=this.map.get(o);return t?t[0]:null}getAll(o){return this.init(),this.map.get(o)||null}keys(){return this.init(),Array.from(this.map.keys())}append(o,t){return this.clone({param:o,value:t,op:"a"})}appendAll(o){const t=[];return Object.keys(o).forEach(r=>{const s=o[r];Array.isArray(s)?s.forEach(l=>{t.push({param:r,value:l,op:"a"})}):t.push({param:r,value:s,op:"a"})}),this.clone(t)}set(o,t){return this.clone({param:o,value:t,op:"s"})}delete(o,t){return this.clone({param:o,value:t,op:"d"})}toString(){return this.init(),this.keys().map(o=>{const t=this.encoder.encodeKey(o);return this.map.get(o).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(o=>""!==o).join("&")}clone(o){const t=new Qh({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(o),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(o=>this.map.set(o,this.cloneFrom.map.get(o))),this.updates.forEach(o=>{switch(o.op){case"a":case"s":const t=("a"===o.op?this.map.get(o.param):void 0)||[];t.push(L_(o.value)),this.map.set(o.param,t);break;case"d":if(void 0===o.value){this.map.delete(o.param);break}{let r=this.map.get(o.param)||[];const s=r.indexOf(L_(o.value));-1!==s&&r.splice(s,1),r.length>0?this.map.set(o.param,r):this.map.delete(o.param)}}}),this.cloneFrom=this.updates=null)}}class rY{constructor(){this.map=new Map}set(o,t){return this.map.set(o,t),this}get(o){return this.map.has(o)||this.map.set(o,o.defaultValue()),this.map.get(o)}delete(o){return this.map.delete(o),this}has(o){return this.map.has(o)}keys(){return this.map.keys()}}function n2(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function EM(i){return typeof Blob<"u"&&i instanceof Blob}function tv(i){return typeof FormData<"u"&&i instanceof FormData}class nv{constructor(o,t,r,s){let l;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=o.toUpperCase(),function IM(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==r?r:null,l=s):l=r,l&&(this.reportProgress=!!l.reportProgress,this.withCredentials=!!l.withCredentials,l.responseType&&(this.responseType=l.responseType),l.headers&&(this.headers=l.headers),l.context&&(this.context=l.context),l.params&&(this.params=l.params)),this.headers||(this.headers=new Gl),this.context||(this.context=new rY),this.params){const u=this.params.toString();if(0===u.length)this.urlWithParams=t;else{const p=t.indexOf("?");this.urlWithParams=t+(-1===p?"?":p<t.length-1?"&":"")+u}}else this.params=new Qh,this.urlWithParams=t}serializeBody(){return null===this.body?null:n2(this.body)||EM(this.body)||tv(this.body)||function aY(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Qh?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||tv(this.body)?null:EM(this.body)?this.body.type||null:n2(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Qh?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(o={}){const t=o.method||this.method,r=o.url||this.url,s=o.responseType||this.responseType,l=void 0!==o.body?o.body:this.body,u=void 0!==o.withCredentials?o.withCredentials:this.withCredentials,p=void 0!==o.reportProgress?o.reportProgress:this.reportProgress;let y=o.headers||this.headers,A=o.params||this.params;const w=o.context??this.context;return void 0!==o.setHeaders&&(y=Object.keys(o.setHeaders).reduce((I,P)=>I.set(P,o.setHeaders[P]),y)),o.setParams&&(A=Object.keys(o.setParams).reduce((I,P)=>I.set(P,o.setParams[P]),A)),new nv(t,r,l,{params:A,headers:y,context:w,reportProgress:p,responseType:s,withCredentials:u})}}var ha=(()=>((ha=ha||{})[ha.Sent=0]="Sent",ha[ha.UploadProgress=1]="UploadProgress",ha[ha.ResponseHeader=2]="ResponseHeader",ha[ha.DownloadProgress=3]="DownloadProgress",ha[ha.Response=4]="Response",ha[ha.User=5]="User",ha))();class PM{constructor(o,t=200,r="OK"){this.headers=o.headers||new Gl,this.status=void 0!==o.status?o.status:t,this.statusText=o.statusText||r,this.url=o.url||null,this.ok=this.status>=200&&this.status<300}}class OM extends PM{constructor(o={}){super(o),this.type=ha.ResponseHeader}clone(o={}){return new OM({headers:o.headers||this.headers,status:void 0!==o.status?o.status:this.status,statusText:o.statusText||this.statusText,url:o.url||this.url||void 0})}}class iv extends PM{constructor(o={}){super(o),this.type=ha.Response,this.body=void 0!==o.body?o.body:null}clone(o={}){return new iv({body:void 0!==o.body?o.body:this.body,headers:o.headers||this.headers,status:void 0!==o.status?o.status:this.status,statusText:o.statusText||this.statusText,url:o.url||this.url||void 0})}}class o2 extends PM{constructor(o){super(o,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${o.url||"(unknown url)"}`:`Http failure response for ${o.url||"(unknown url)"}: ${o.status} ${o.statusText}`,this.error=o.error||null}}function NM(i,o){return{body:o,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}let Wo=(()=>{class i{constructor(t){this.handler=t}request(t,r,s={}){let l;if(t instanceof nv)l=t;else{let y,A;y=s.headers instanceof Gl?s.headers:new Gl(s.headers),s.params&&(A=s.params instanceof Qh?s.params:new Qh({fromObject:s.params})),l=new nv(t,r,void 0!==s.body?s.body:null,{headers:y,context:s.context,params:A,reportProgress:s.reportProgress,responseType:s.responseType||"json",withCredentials:s.withCredentials})}const u=Et(l).pipe(ld(y=>this.handler.handle(y)));if(t instanceof nv||"events"===s.observe)return u;const p=u.pipe(Wt(y=>y instanceof iv));switch(s.observe||"body"){case"body":switch(l.responseType){case"arraybuffer":return p.pipe((0,ft.U)(y=>{if(null!==y.body&&!(y.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return y.body}));case"blob":return p.pipe((0,ft.U)(y=>{if(null!==y.body&&!(y.body instanceof Blob))throw new Error("Response is not a Blob.");return y.body}));case"text":return p.pipe((0,ft.U)(y=>{if(null!==y.body&&"string"!=typeof y.body)throw new Error("Response is not a string.");return y.body}));default:return p.pipe((0,ft.U)(y=>y.body))}case"response":return p;default:throw new Error(`Unreachable: unhandled observe type ${s.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new Qh).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,s={}){return this.request("PATCH",t,NM(s,r))}post(t,r,s={}){return this.request("POST",t,NM(s,r))}put(t,r,s={}){return this.request("PUT",t,NM(s,r))}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(N_))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class b5{constructor(o,t){this.next=o,this.interceptor=t}handle(o){return this.interceptor.intercept(o,this.next)}}const gd=new n.OlP("HTTP_INTERCEPTORS");let ov,r2=(()=>{class i{intercept(t,r){return r.handle(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),v5=0;class vu{}let l2=(()=>{class i{constructor(t,r){this.callbackMap=t,this.document=r,this.resolvedPromise=Promise.resolve()}nextCallback(){return"ng_jsonp_callback_"+v5++}handle(t){if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");if(t.headers.keys().length>0)throw new Error("JSONP requests do not support headers.");return new No.y(r=>{const s=this.nextCallback(),l=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,`=${s}$1`),u=this.document.createElement("script");u.src=l;let p=null,y=!1;this.callbackMap[s]=P=>{delete this.callbackMap[s],p=P,y=!0};const A=()=>{u.parentNode&&u.parentNode.removeChild(u),delete this.callbackMap[s]};return u.addEventListener("load",P=>{this.resolvedPromise.then(()=>{A(),y?(r.next(new iv({body:p,status:200,statusText:"OK",url:l})),r.complete()):r.error(new o2({url:l,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}))})}),u.addEventListener("error",P=>{A(),r.error(new o2({error:P,status:0,statusText:"JSONP Error",url:l}))}),this.document.body.appendChild(u),r.next({type:ha.Sent}),()=>{y||this.removeListeners(u),A()}})}removeListeners(t){ov||(ov=this.document.implementation.createHTMLDocument()),ov.adoptNode(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(vu),n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),C5=(()=>{class i{constructor(t){this.jsonp=t}intercept(t,r){return"JSONP"===t.method?this.jsonp.handle(t):r.handle(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(l2))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const A5=/^\)\]\}',?\n/;let FM=(()=>{class i{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new No.y(r=>{const s=this.xhrFactory.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((F,V)=>s.setRequestHeader(F,V.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const F=t.detectContentTypeHeader();null!==F&&s.setRequestHeader("Content-Type",F)}if(t.responseType){const F=t.responseType.toLowerCase();s.responseType="json"!==F?F:"text"}const l=t.serializeBody();let u=null;const p=()=>{if(null!==u)return u;const F=s.statusText||"OK",V=new Gl(s.getAllResponseHeaders()),oe=function RM(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(s)||t.url;return u=new OM({headers:V,status:s.status,statusText:F,url:oe}),u},y=()=>{let{headers:F,status:V,statusText:oe,url:Ae}=p(),ue=null;204!==V&&(ue=typeof s.response>"u"?s.responseText:s.response),0===V&&(V=ue?200:0);let Se=V>=200&&V<300;if("json"===t.responseType&&"string"==typeof ue){const Be=ue;ue=ue.replace(A5,"");try{ue=""!==ue?JSON.parse(ue):null}catch(Me){ue=Be,Se&&(Se=!1,ue={error:Me,text:ue})}}Se?(r.next(new iv({body:ue,headers:F,status:V,statusText:oe,url:Ae||void 0})),r.complete()):r.error(new o2({error:ue,headers:F,status:V,statusText:oe,url:Ae||void 0}))},A=F=>{const{url:V}=p(),oe=new o2({error:F,status:s.status||0,statusText:s.statusText||"Unknown Error",url:V||void 0});r.error(oe)};let w=!1;const I=F=>{w||(r.next(p()),w=!0);let V={type:ha.DownloadProgress,loaded:F.loaded};F.lengthComputable&&(V.total=F.total),"text"===t.responseType&&!!s.responseText&&(V.partialText=s.responseText),r.next(V)},P=F=>{let V={type:ha.UploadProgress,loaded:F.loaded};F.lengthComputable&&(V.total=F.total),r.next(V)};return s.addEventListener("load",y),s.addEventListener("error",A),s.addEventListener("timeout",A),s.addEventListener("abort",A),t.reportProgress&&(s.addEventListener("progress",I),null!==l&&s.upload&&s.upload.addEventListener("progress",P)),s.send(l),r.next({type:ha.Sent}),()=>{s.removeEventListener("error",A),s.removeEventListener("abort",A),s.removeEventListener("load",y),s.removeEventListener("timeout",A),t.reportProgress&&(s.removeEventListener("progress",I),null!==l&&s.upload&&s.upload.removeEventListener("progress",P)),s.readyState!==s.DONE&&s.abort()}})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(gl))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const c2=new n.OlP("XSRF_COOKIE_NAME"),Lf=new n.OlP("XSRF_HEADER_NAME");class Wh{}let d2=(()=>{class i{constructor(t,r,s){this.doc=t,this.platform=r,this.cookieName=s,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=zi(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie),n.LFG(n.Lbi),n.LFG(c2))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),vp=(()=>{class i{constructor(t,r){this.tokenService=t,this.headerName=r}intercept(t,r){const s=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||s.startsWith("http://")||s.startsWith("https://"))return r.handle(t);const l=this.tokenService.getToken();return null!==l&&!t.headers.has(this.headerName)&&(t=t.clone({headers:t.headers.set(this.headerName,l)})),r.handle(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wh),n.LFG(Lf))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),u2=(()=>{class i{constructor(t,r){this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=this.injector.get(gd,[]);this.chain=r.reduceRight((s,l)=>new b5(s,l),this.backend)}return this.chain.handle(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Jh),n.LFG(n.zs3))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function BM(){return"object"==typeof window?window:{}}let sv,HM=(()=>{class i{static disable(){return{ngModule:i,providers:[{provide:vp,useClass:r2}]}}static withOptions(t={}){return{ngModule:i,providers:[t.cookieName?{provide:c2,useValue:t.cookieName}:[],t.headerName?{provide:Lf,useValue:t.headerName}:[]]}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[vp,{provide:gd,useExisting:vp,multi:!0},{provide:Wh,useClass:d2},{provide:c2,useValue:"XSRF-TOKEN"},{provide:Lf,useValue:"X-XSRF-TOKEN"}]}),i})(),h2=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Wo,{provide:N_,useClass:u2},FM,{provide:Jh,useExisting:FM}],imports:[HM.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]}),i})(),g2=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[l2,{provide:vu,useFactory:BM},{provide:gd,useClass:C5,multi:!0}]}),i})(),Qi=(()=>{class i extends fs{constructor(t){super(t),this.http=t,this.kEYUSER="pkcontato",this.usuario=new Qn(null),this.sessao=new Qn(null),this.usuario$=this.usuario.asObservable(),this.sessao$=this.sessao.asObservable(),this.estaLogado().then(r=>{r.logado||this.limpeSessaoLocal()})}estaLogado(){return new Promise(t=>{this.http.get("/auth/contato/logado").subscribe(r=>{let s=this.getUsuario();this.sessao.next(r.sessao),s&&r.informarCpf&&(s.informarCpf=!0,this.salveUsuario(s)),s&&r.informarDataNascimento&&(s.informarDataNascimento=!0,this.salveUsuario(s)),!s&&r.logado?(this.usuario.next(s),this.atualizeUsuarioLogado().then(()=>{t(r)})):(this.usuario.next(s),t(r))})})}atualizeUsuarioLogado(){return localStorage.removeItem(this.kEYUSER),new Promise(t=>this.http.get("/auth/contato/me",{}).toPromise().then(r=>{r.data&&r.data.telefone?this.salveUsuario(r.data):this.usuario.next({}),t(null)}))}atualizeSaldoFidelidade(t){var r=this;return sn(function*(){let s=yield r.http.get("/auth/contato/me/saldo").toPromise(),l=s&&s.data?s.data:null;l&&(delete t.erroFidelidade,delete t.atualizarCadastro,delete t.fazerOptinUsarSaldo,delete t.fazerOptin,l.erroFidelidade||l.atualizarCadastro||l.fazerOptinUsarSaldo||l.fazerOptin?(t.saldoFidelidade=0,t.erroFidelidade=l.erroFidelidade,t.atualizarCadastro=l.atualizarCadastro,t.fazerOptinUsarSaldo=l.fazerOptinUsarSaldo,t.fazerOptin=l.fazerOptin,r.salveUsuario(t)):l.saldo!==t.saldoFidelidade&&(t.saldoFidelidade=l.saldo,t.saldoDescricao=l.saldoDescricao,t.descricaoProgramaFidelidade=l.descricaoProgramaFidelidade,r.salveUsuario(t)))})()}salveUsuario(t){if(t&&t.telefone){let r={};t.informarCpf&&t.cpf&&delete t.informarCpf,t.informarDataNascimento&&t.dataNascimento&&delete t.informarDataNascimento,Object.assign(r,t),this.usuario.next(r),localStorage.setItem(this.kEYUSER,JSON.stringify(r))}}getUsuario(){let t=localStorage.getItem(this.kEYUSER);return t?JSON.parse(t):null}obtenhaConfiguracoesUsuario(){return this.http.get("/auth/configuracoes").toPromise().then(this.retorno).catch(this.handleError)}atualizeConfiguracoesUsuario(t){return this.facaPost("/auth/configuracoes",t)}login(t,r){return this.http.post("/auth/contato/login",{login:t,senha:r}).toPromise().then(s=>{if(s.sucesso){const l={};return Object.assign(l,s.data),localStorage.setItem(this.kEYUSER,JSON.stringify(l)),this.usuario.next(l),Promise.resolve()}return this.usuario.next({}),Promise.resolve(s.erro)}).catch(()=>Promise.resolve("Ops! N\xe3o foi poss\xedvel fazer a autentica\xe7\xe3o no momento"))}envieEmailRecuperacao(t){return this.http.post("/auth/contato/recuperar",{telefone:t}).toPromise().then(r=>r.sucesso?Promise.resolve(r.data):Promise.reject(r.erro)).catch(r=>Promise.reject(r))}verifiqueCodigoConfirmacao(t,r){return this.http.post("/auth/token/verifique/"+t,{codigo:r}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject(s))}troqueSenha(t,r){return this.http.put("/auth/contato/troquesenha/"+t,{senha:r}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject(s))}limpeSessaoLocal(){localStorage.removeItem(this.kEYUSER)}logout(){return this.http.post("/auth/contato/logout",{}).toPromise().then(t=>(this.limpeSessaoLocal(),this.usuario.next({}),Promise.resolve())).catch(t=>Promise.resolve(t))}clearCookies(){return this.http.post("/auth/clear",{}).toPromise().then(t=>(this.limpeSessaoLocal(),Promise.resolve())).catch(t=>Promise.resolve(t))}verifiqueContato(t){return this.http.get("/api/contato/loja/"+t,{}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel verificar seu telefone no momento"))}valideContato(t,r){return this.http.post("/api/contato/valide/"+t,{codigo:r}).toPromise().then(l=>l.sucesso?Promise.resolve():Promise.reject(l.erro)).catch(l=>Promise.reject("string"==typeof l?l:"Ops! N\xe3o foi poss\xedvel validar seu codigo no momento"))}crieConta(t){return this.http.post("/api/contato/loja",t).toPromise().then(r=>r.sucesso?(this.limpeSessaoLocal(),Promise.resolve()):Promise.reject(r.erro)).catch(r=>Promise.reject("string"==typeof r?r:"Ops! N\xe3o foi poss\xedvel criar sua conta no momento"))}atualizeConta(t){var r=this;return this.http.post("/api/contato/loja",t).toPromise().then(function(){var s=sn(function*(l){return l.sucesso?(yield r.atualizeUsuarioLogado(),localStorage.recarregarSaldo=!0,Promise.resolve()):Promise.reject(l.erro)});return function(l){return s.apply(this,arguments)}}()).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel atualizar sua conta no momento"))}gereCodigoValidacao(t){return this.http.put("/api/contato/telefone/gereCodigo",{id:t.id,tel:t.telefone,pais:t.codigoPais}).toPromise().then(r=>r.sucesso?Promise.resolve(r.data):Promise.reject(r.erro)).catch(r=>Promise.reject("string"==typeof r?r:"Ops! N\xe3o foi poss\xedvel gerar codigo no momento"))}valideContatoWhatsapp(t,r){return this.http.put("/api/contato/telefone/valideCodigo",{id:t.id,codigo:r}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel validar codigo no momento"))}confirmeConta(t,r){return this.http.put("/api/contato/loja/"+t,r).toPromise().then(s=>s.sucesso?(this.limpeSessaoLocal(),Promise.resolve()):Promise.reject(s.erro)).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel confirmar sua conta no momento"))}obtenhaDadosToken(t){return this.http.get("/api/validacao/"+t,{}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel validar o token"))}obtenhaToken(t){return this.http.get("/auth/token/"+t,{}).toPromise().then(s=>s.sucesso?Promise.resolve(s.data):Promise.reject(s.erro)).catch(s=>Promise.reject("string"==typeof s?s:"Ops! N\xe3o foi poss\xedvel recuperar o token"))}obtenhaEnderecos(){return this.http.get("/api/enderecos/me",{}).toPromise().then(t=>t.sucesso?Promise.resolve(t.data):Promise.reject(t.erro)).catch(t=>Promise.reject("string"==typeof t?t:""))}removaConta(t){return this.remova("/auth/usuario/"+t.id,{})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function R_(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function rv(i,o){return function(t,r){o(t,r,i)}}try{sv=typeof Intl<"u"&&Intl.v8BreakIterator}catch{sv=!1}let dv,Kh,Da=(()=>{class i{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Wa(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!sv)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.Lbi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Jl=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function F_(){if("object"!=typeof document||!document)return 0;if(null==dv){const i=document.createElement("div"),o=i.style;i.dir="rtl",o.width="1px",o.overflow="auto",o.visibility="hidden",o.pointerEvents="none",o.position="absolute";const t=document.createElement("div"),r=t.style;r.width="2px",r.height="1px",i.appendChild(t),document.body.appendChild(i),dv=0,0===i.scrollLeft&&(i.scrollLeft=1,dv=0===i.scrollLeft?1:2),i.remove()}return dv}function fY(i,o){if(1&i&&n._UZ(0,"app-star",10),2&i){const t=o.index,r=n.oxw(2);n.Q6J("solid",r.reviewAverage<=t)}}const VM=function(){return[0,1,2,3,4]};function zM(i,o){1&i&&(n.TgZ(0,"div",8),n.YNc(1,fY,1,1,"app-star",9),n.qZA()),2&i&&(n.xp6(1),n.Q6J("ngForOf",n.DdM(1,VM)))}const GM=function(i){return{"background-image":i}};function qM(i,o){1&i&&(n.ynx(0),n.O4$(),n.TgZ(1,"svg",2),n._UZ(2,"path",3),n.qZA(),n.BQk())}function y2(i,o){1&i&&(n.O4$(),n.TgZ(0,"svg",4),n._UZ(1,"path",5),n.qZA())}const fd='.smartbanner[_ngcontent-%COMP%]{box-sizing:border-box;text-shadow:none;position:absolute;top:0;left:0;z-index:99999;padding:0 10px;width:100%;height:84px;display:flex;justify-content:space-between;align-items:center;background:#f3f3f3;font-family:Helvetica,sans,sans-serif}.smartbanner__exit[_ngcontent-%COMP%]{position:relative;display:block;margin-right:14px;background-color:#f3f3f3;width:12px;height:12px;border:0;text-align:center}.smartbanner__exit[_ngcontent-%COMP%]::after, .smartbanner__exit[_ngcontent-%COMP%]::before{position:absolute;top:0;width:1px;height:12px;background:#767676;content:""}.smartbanner__exit[_ngcontent-%COMP%]::before{transform:rotate(45deg)}.smartbanner__exit[_ngcontent-%COMP%]::after{transform:rotate(-45deg)}.smartbanner__icon[_ngcontent-%COMP%]{width:64px;height:64px;border-radius:15px;background-size:64px 64px}.smartbanner__info[_ngcontent-%COMP%]{margin-left:8px;display:flex;flex-direction:column;justify-content:space-between;width:45%;height:64px;color:#767676}.smartbanner__info--title[_ngcontent-%COMP%]{font-size:14px;color:#000}.smartbanner__info--rating[_ngcontent-%COMP%]{display:flex;margin:3px 0}.smartbanner__info--author[_ngcontent-%COMP%], .smartbanner__info--price[_ngcontent-%COMP%]{font-size:12px}.smartbanner__button[_ngcontent-%COMP%]{display:block;padding:0 10px;min-width:10%;background:#f3f3f3;color:#1474fc;font-size:14px;font-weight:700;text-align:center;text-decoration:none}.smartbanner__button__label[_ngcontent-%COMP%]{text-align:center}.smartbanner.smartbanner--android[_ngcontent-%COMP%]{background:url(data:image/gif;base64,R0lGODlhCAAIAIABAFVVVf///yH5BAEHAAEALAAAAAAIAAgAAAINRG4XudroGJBRsYcxKAA7) #3d3d3d}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__exit[_ngcontent-%COMP%]{margin-right:0;width:18px;height:17px;border-radius:14px;background:#1c1e21;box-shadow:0 1px 2px rgba(0,0,0,.8) inset,0 1px 1px rgba(255,255,255,.3);color:#b1b1b3;font-family:ArialRoundedMTBold,Arial;font-size:20px;line-height:17px;text-shadow:0 1px 1px #000}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__exit[_ngcontent-%COMP%]::after, .smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__exit[_ngcontent-%COMP%]::before{top:3px;left:8px;width:2px;height:11px;background:#b1b1b3}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__exit[_ngcontent-%COMP%]:active, .smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__exit[_ngcontent-%COMP%]:hover{color:#eee}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__icon[_ngcontent-%COMP%]{background-color:transparent;box-shadow:none}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__info[_ngcontent-%COMP%]{color:#ccc}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__info--title[_ngcontent-%COMP%]{color:#fff;font-weight:700}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button[_ngcontent-%COMP%]{color:#fff;background:#3eacc3;padding:5px 10px;border:2px solid #fff;min-width:12%;font-size:14px;font-weight:700}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button[_ngcontent-%COMP%]:active, .smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button[_ngcontent-%COMP%]:hover{background:0 0}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button__label[_ngcontent-%COMP%]{display:block;padding:0 10px;background:#42b6c9;background:linear-gradient(to bottom,#42b6c9,#39a9bb);box-shadow:none;line-height:24px;text-align:center;text-transform:none}.smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button__label[_ngcontent-%COMP%]:active, .smartbanner.smartbanner--android[_ngcontent-%COMP%]   .smartbanner__button__label[_ngcontent-%COMP%]:hover{background:#2ac7e1}.star-rating[_ngcontent-%COMP%]{font-size:12px;color:#e19620;margin-right:2px}';let Rf=(()=>{let i=class{constructor(t,r){this.document=r,this.isBrowser=Wa(t)}check(t){return!!this.isBrowser&&this.isBrowser&&this.document.cookie.includes(t)}set(t,r,s=null){var l,u;if(!this.isBrowser)return;const y=(null===(l=s)||void 0===l?void 0:l.toUTCString())?`; expires=${(null===(u=s)||void 0===u?void 0:u.toUTCString())||""}`:"";this.document.cookie=`${t}=${r}${y}; path=/; SameSite=Strict`}get(t){var r;return this.isBrowser?(null===(r=this.document.cookie.match(new RegExp(`(^| )${t}=([^;]+)`)))||void 0===r?void 0:r[2])||null:""}deleteAll(){!this.isBrowser||(this.document.cookie="")}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.Lbi),n.LFG(ie))},i.\u0275prov=(0,n.Yz7)({factory:function(){return new i((0,n.LFG)(n.Lbi),(0,n.LFG)(ie))},token:i,providedIn:"root"}),i=R_([rv(0,(0,n.tBr)(n.Lbi)),rv(1,(0,n.tBr)(ie))],i),i})(),hv=(()=>{let i=class{constructor(t,r){this.platform=t,this.cookieService=r,this.onClose=new n.vpe,this.platform.ANDROID&&(this.modifier="android"),this.platform.IOS&&(this.modifier="ios")}get icon(){var t,r,s,l;return this.platform.ANDROID?null===(r=null===(t=this.settings)||void 0===t?void 0:t.icon)||void 0===r?void 0:r.android:this.platform.IOS?null===(l=null===(s=this.settings)||void 0===s?void 0:s.icon)||void 0===l?void 0:l.ios:null}get buttonUrl(){var t,r,s,l;return this.platform.ANDROID?null===(r=null===(t=this.settings)||void 0===t?void 0:t.buttonUrl)||void 0===r?void 0:r.android:this.platform.IOS?null===(l=null===(s=this.settings)||void 0===s?void 0:s.buttonUrl)||void 0===l?void 0:l.ios:"#"}get priceSuffix(){return this.platform.ANDROID?this.settings.priceSuffix.android:this.platform.IOS?this.settings.priceSuffix.ios:""}exit(){this.cookieService.set("smartbanner_closed","1",this.endDate("exit")),this.onClose.emit(),this.componentRef.destroy()}view(){this.cookieService.set("smartbanner_closed","1",this.endDate("view")),this.onClose.emit(),this.componentRef.destroy()}endDate(t){const r=new Date;if(!this.settings.daysReminder)return null;const s="exit"===t?this.settings.daysHidden:this.settings.daysReminder;return r.setDate(r.getDate()+s),r}get reviewAverage(){var t,r,s;return this.platform.ANDROID?null===(t=this.settings)||void 0===t?void 0:t.rating.android:this.platform.IOS?null===(s=null===(r=this.settings)||void 0===r?void 0:r.rating)||void 0===s?void 0:s.ios:5}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Da),n.Y36(Rf))},i.\u0275cmp=n.Xpm({type:i,selectors:[["nc-ngx-smart-banner"]],inputs:{settings:"settings",componentRef:"componentRef"},decls:13,vars:15,consts:[[1,"smartbanner__exit",3,"click"],[1,"smartbanner__icon",3,"ngStyle"],[1,"smartbanner__info"],[1,"smartbanner__info--title"],[1,"smartbanner__info--author"],["class","smartbanner__info--rating",4,"ngIf"],[1,"smartbanner__info--price"],["target","_blank","rel","noopener",1,"smartbanner__button",3,"href","click"],[1,"smartbanner__info--rating"],[3,"solid",4,"ngFor","ngForOf"],[3,"solid"]],template:function(t,r){1&t&&(n.TgZ(0,"div")(1,"button",0),n.NdJ("click",function(){return r.exit()}),n.qZA(),n._UZ(2,"div",1),n.TgZ(3,"div",2)(4,"div",3),n._uU(5),n.qZA(),n.TgZ(6,"div",4),n._uU(7),n.qZA(),n.YNc(8,zM,2,2,"div",5),n.TgZ(9,"div",6),n._uU(10),n.qZA()(),n.TgZ(11,"a",7),n.NdJ("click",function(){return r.view()}),n._uU(12),n.qZA()()),2&t&&(n.Gre("smartbanner smartbanner--",r.modifier,""),n.xp6(1),n.uIk("aria-label",r.settings.closeLabel),n.xp6(1),n.Q6J("ngStyle",n.VKq(13,GM,"url("+r.icon+")")),n.xp6(3),n.hij(" ",r.settings.title," "),n.xp6(2),n.hij(" ",r.settings.author," "),n.xp6(1),n.Q6J("ngIf",!r.settings.hideRating),n.xp6(2),n.AsE(" ",r.settings.price,"",r.priceSuffix," "),n.xp6(1),n.s9C("href",r.buttonUrl,n.LSH),n.uIk("aria-label",r.settings.buttonLabel),n.xp6(1),n.hij(" ",r.settings.buttonLabel," "))},dependencies:function(){return[Bt,Ge,uo,B_]},styles:[fd]}),R_([(0,n.IIB)()],i.prototype,"settings",void 0),R_([(0,n.IIB)()],i.prototype,"componentRef",void 0),i})(),B_=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-star"]],inputs:{solid:"solid"},decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["regular",""],["width","16px","height","16px","viewBox","0 0 1792 1792","xmlns","http://www.w3.org/2000/svg"],["fill","orange","d","M1201 1004l306-297-422-62-189-382-189 382-422 62 306 297-73 421 378-199 377 199zm527-357q0 22-26 48l-363 354 86 500q1 7 1 20 0 50-41 50-19 0-40-12l-449-236-449 236q-22 12-40 12-21 0-31.5-14.5t-10.5-35.5q0-6 2-20l86-500-364-354q-25-27-25-48 0-37 56-46l502-73 225-455q19-41 49-41t49 41l225 455 502 73q56 9 56 46z"],["width","16px","height","16px","xmlns","http://www.w3.org/2000/svg","viewBox","0 0 576 512",1,"star-rating"],["fill","orange","d","M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z"]],template:function(t,r){if(1&t&&(n.YNc(0,qM,3,0,"ng-container",0),n.YNc(1,y2,2,0,"ng-template",null,1,n.W1O)),2&t){const s=n.MAs(2);n.Q6J("ngIf",r.solid)("ngIfElse",s)}},dependencies:[Ge],styles:[fd]}),R_([(0,n.IIB)()],i.prototype,"solid",void 0),i})(),O5=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Jl]}),i})();var yu=(()=>{return(i=yu||(yu={})).Android="android",i.IOS="ios",yu;var i})();let JM=(()=>{let i=class{constructor(t,r,s,l){this.platform=t,this.componentResolver=r,this.platformId=s,this.cookieService=l,this.smartBanner=null,this.onOpen=new n.vpe,this.onClose=new n.vpe,this.isServer=Jd(this.platformId),this.settings={title:"Smart application",author:"Smartbanner contributors",price:"FREE",closeLabel:"Close",buttonLabel:"VIEW",enabledPlatforms:[yu.Android,yu.IOS],viewContainerRef:null,priceSuffix:{ios:" - On the App Store",android:" - In Google play"},rating:{ios:2,android:5},hideRating:!1}}initialize(t){if(this.settings=Object.assign(Object.assign({},this.settings),t),!this.settings.viewContainerRef)throw new Error("No view container ref provided");if(!this.isServer&&!this.cookieService.check("smartbanner_closed")&&this.platformEnabled){if(null===this.smartBanner){const r=this.componentResolver.resolveComponentFactory(hv),s=this.settings.viewContainerRef.createComponent(r);this.onOpen.emit(),s.instance.componentRef=s,this.smartBanner=s.instance,this.onCloseSubscription$=this.smartBanner.onClose.subscribe(()=>{this.onClose.emit(),this.onCloseSubscription$.unsubscribe()})}this.smartBanner.settings=this.settings}}get platformEnabled(){return console.log(this.settings.enabledPlatforms),this.platform.ANDROID?this.settings.enabledPlatforms.includes(yu.Android):!!this.platform.IOS&&this.settings.enabledPlatforms.includes(yu.IOS)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Da),n.LFG(n._Vd),n.LFG(n.Lbi),n.LFG(Rf))},i.\u0275prov=(0,n.Yz7)({factory:function(){return new i((0,n.LFG)(Da),(0,n.LFG)(n._Vd),(0,n.LFG)(n.Lbi),(0,n.LFG)(Rf))},token:i,providedIn:"root"}),i=R_([rv(2,(0,n.tBr)(n.Lbi))],i),i})(),QM=(()=>{class i{constructor(t,r){this.document=t,this.platformId=r,this.documentIsAccessible=Wa(this.platformId)}check(t){return!!this.documentIsAccessible&&(t=encodeURIComponent(t),this.getCookieRegExp(t).test(this.document.cookie))}get(t){if(this.documentIsAccessible&&this.check(t)){t=encodeURIComponent(t);const s=this.getCookieRegExp(t).exec(this.document.cookie);return this.safeDecodeURIComponent(s[1])}return""}getAll(){if(!this.documentIsAccessible)return{};const t={},r=this.document;return r.cookie&&""!==r.cookie&&r.cookie.split(";").forEach(s=>{const[l,u]=s.split("=");t[this.safeDecodeURIComponent(l.replace(/^ /,""))]=this.safeDecodeURIComponent(u)}),t}set(t,r,s,l,u,p,y){if(!this.documentIsAccessible)return;if("number"==typeof s||s instanceof Date||l||u||p||y)return void this.set(t,r,{expires:s,path:l,domain:u,secure:p,sameSite:y||"Lax"});let A=encodeURIComponent(t)+"="+encodeURIComponent(r)+";";const w=s||{};w.expires&&(A+="number"==typeof w.expires?"expires="+new Date((new Date).getTime()+1e3*w.expires*60*60*24).toUTCString()+";":"expires="+w.expires.toUTCString()+";"),w.path&&(A+="path="+w.path+";"),w.domain&&(A+="domain="+w.domain+";"),!1===w.secure&&"None"===w.sameSite&&(w.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${t} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),w.secure&&(A+="secure;"),w.sameSite||(w.sameSite="Lax"),A+="sameSite="+w.sameSite+";",this.document.cookie=A}delete(t,r,s,l,u="Lax"){if(!this.documentIsAccessible)return;const p=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(t,"",{expires:p,path:r,domain:s,secure:l,sameSite:u})}deleteAll(t,r,s,l="Lax"){if(!this.documentIsAccessible)return;const u=this.getAll();for(const p in u)u.hasOwnProperty(p)&&this.delete(p,t,r,s,l)}getCookieRegExp(t){const r=t.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+r+"|;\\s*"+r+")=(.*?)(?:;|$)","g")}safeDecodeURIComponent(t){try{return decodeURIComponent(t)}catch{return t}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie),n.LFG(n.Lbi))},i.\u0275prov=(0,n.Yz7)({factory:function(){return new i((0,n.LFG)(ie),(0,n.LFG)(n.Lbi))},token:i,providedIn:"root"}),i})(),ka=(()=>{class i extends fs{constructor(t){super(t),this.http=t}confirmarContato(t){return this.obtenha("/api/cliente/confirmar/"+t,{})}obtenhaMesa(t){return this.obtenha("/api/mesas/"+t,{})}obtenhaMesaPorNome(t){return this.obtenha("/api/mesas/nome/"+t,{})}obtenhaMesaPeloHash(t){return this.obtenha("/api/mesas/hash/"+t,{})}obterLink(t){return this.obtenha("/api/cliente/enviarLink/"+t,{})}obtenhaCliente(t){return this.obtenha("/api/cliente/"+t,{})}obtenhaClientePorTelefone(t){return this.obtenha("/api/cliente/tel/"+t,{})}obtenhaCadastroCompletarPeloCpf(t){return t?11!==(t=t.replace(/\D/g,"")).length?Promise.resolve({}):this.obtenha("/api/cliente/cadastro/"+t,{}):Promise.resolve({})}existeClienteComEmail(t){return this.obtenha("/api/cliente/email/existe",{email:t})}obtenhaEmpresa(t,r=!1){let s="/api/empresa/",l=[];return t&&l.push("op="+t),r&&l.push("pre=1"),l.length&&(s=String(`${s}?${l.join(",")}`)),this.obtenha(s,{})}obtenhaFranquia(t){return this.obtenha("/api/franquia/",{g:t})}obtenhaLojasFranquia(t,r,s){let l={i:s,g:t.id};return r&&(l.q=r),this.obtenha("/api/franquia/lojas",l)}obtenhaImagensInstagram(){return this.obtenha("/api/empresa/instagram",{})}obtenhaRegras(){return this.obtenha("/api/regras",{})}envieiMensagem(t,r){return this.obtenha("/api/mensagens/enviei",{id:t,s:r})}idUltimaMensagem(){return this.obtenha("/api/mensagens/ultima?ngsw-bypass=true&h="+(new Date).getTime(),{})}obtenhaPlanoEmpresariais(){return this.obtenha("/api/planos-empresariais",{})}obtenhaIdEmpresa(){let t=window.location.hostname.split(".")[0];return("localhost"===t||"192"===t)&&(t="fibo"),t}valideCodigo(t,r){return this.obtenha("/api/cliente/valide",{codigo:t,telefone:r})}calculeDescontoCupom(t,r){return t?this.http.post("/cupons/desconto/",{pedido:r,codigo:t}).toPromise().then(this.retorno).catch(this.handleError):Promise.resolve(null)}calculeDescontoPromocoes(t,r){return r&&r.promocoes&&0!==r.promocoes.length?this.http.post("/promocoes/desconto",t).toPromise().then(this.retorno).catch(this.handleError):Promise.resolve(null)}soliciteGarcom(t){return this.http.post("/api/mesas/solicite-garcom/"+t,{}).toPromise().then(this.retorno).catch(this.handleError)}soliciteFecharMesa(t){return this.http.post("/api/mesas/solicite-fechar-mesa/"+t,{}).toPromise().then(this.retorno).catch(this.handleError)}valideCupom(t,r){return this.http.post("/cupons/valide/"+t,r).toPromise().then(this.retorno).catch(this.handleError)}obtenhaSaldoCartao(t){return this.obtenha("/api/cartao/saldo",{pid:t.id})}obtenhaSaldoCashback(){return this.obtenha(String("/api/cashback/saldo"),{})}facaOptinFidelidade(t){return this.facaPost(String("/api/fidelidade/gcom/optin"),t)}obtenhaHorariosIndisponiveis(t,r){var s=this;return sn(function*(){return s.obtenha("/api/pedidos/horarios/indisponiveis",{fid:t.id,dia:r})})()}obtenhaGrupoDaEmpresa(){return this.obtenha("/api/obtenhaGrupoDaEmpresa",{})}obtenhaGrupoDeLojas(t){return this.obtenha("/api/grupoDeLojas/obtenha",{hostname:t})}obtenhaGuidPedido(){return this.obtenha("/api/pedidos/guid/novo",{})}obtenhaCuponsSelecionaveis(){return this.obtenha("/cupons/selecionaveis",{})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class H_ extends bn.w{constructor(o,t){super()}schedule(o,t=0){return this}}class gv extends H_{constructor(o,t){super(o,t),this.scheduler=o,this.work=t,this.pending=!1}schedule(o,t=0){if(this.closed)return this;this.state=o;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(s,this.id,t),this}requestAsyncId(o,t,r=0){return setInterval(o.flush.bind(o,this),r)}recycleAsyncId(o,t,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)}execute(o,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(o,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(o,t){let s,r=!1;try{this.work(o)}catch(l){r=!0,s=!!l&&l||new Error(l)}if(r)return this.unsubscribe(),s}_unsubscribe(){const o=this.id,t=this.scheduler,r=t.actions,s=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&r.splice(s,1),null!=o&&(this.id=this.recycleAsyncId(t,o,null)),this.delay=null}}let WM=(()=>{class i{constructor(t,r=i.now){this.SchedulerAction=t,this.now=r}schedule(t,r=0,s){return new this.SchedulerAction(this,t).schedule(s,r)}}return i.now=()=>Date.now(),i})();class md extends WM{constructor(o,t=WM.now){super(o,()=>md.delegate&&md.delegate!==this?md.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(o,t=0,r){return md.delegate&&md.delegate!==this?md.delegate.schedule(o,t,r):super.schedule(o,t,r)}flush(o){const{actions:t}=this;if(this.active)return void t.push(o);let r;this.active=!0;do{if(r=o.execute(o.state,o.delay))break}while(o=t.shift());if(this.active=!1,r){for(;o=t.shift();)o.unsubscribe();throw r}}}const L5=new class N5 extends md{}(class mY extends gv{constructor(o,t){super(o,t),this.scheduler=o,this.work=t}schedule(o,t=0){return t>0?super.schedule(o,t):(this.delay=t,this.state=o,this.scheduler.flush(this),this)}execute(o,t){return t>0||this.closed?super.execute(o,t):this._execute(o,t)}requestAsyncId(o,t,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(o,t,r):o.flush(this)}});class ms{constructor(o,t,r){this.kind=o,this.value=t,this.error=r,this.hasValue="N"===o}observe(o){switch(this.kind){case"N":return o.next&&o.next(this.value);case"E":return o.error&&o.error(this.error);case"C":return o.complete&&o.complete()}}do(o,t,r){switch(this.kind){case"N":return o&&o(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}}accept(o,t,r){return o&&"function"==typeof o.next?this.observe(o):this.do(o,t,r)}toObservable(){switch(this.kind){case"N":return Et(this.value);case"E":return Ci(this.error);case"C":return be()}throw new Error("unexpected notification kind value")}static createNext(o){return typeof o<"u"?new ms("N",o):ms.undefinedValueNotification}static createError(o){return new ms("E",void 0,o)}static createComplete(){return ms.completeNotification}}ms.completeNotification=new ms("C"),ms.undefinedValueNotification=new ms("N",void 0);class fv extends Ji.L{constructor(o,t,r=0){super(o),this.scheduler=t,this.delay=r}static dispatch(o){const{notification:t,destination:r}=o;t.observe(r),this.unsubscribe()}scheduleMessage(o){this.destination.add(this.scheduler.schedule(fv.dispatch,this.delay,new F5(o,this.destination)))}_next(o){this.scheduleMessage(ms.createNext(o))}_error(o){this.scheduleMessage(ms.createError(o)),this.unsubscribe()}_complete(){this.scheduleMessage(ms.createComplete()),this.unsubscribe()}}class F5{constructor(o,t){this.notification=o,this.destination=t}}var B5=S(1722);class mv extends Ht.xQ{constructor(o=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=o<1?1:o,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(o){if(!this.isStopped){const t=this._events;t.push(o),t.length>this._bufferSize&&t.shift()}super.next(o)}nextTimeWindow(o){this.isStopped||(this._events.push(new H5(this._getNow(),o)),this._trimBufferThenGetEvents()),super.next(o)}_subscribe(o){const t=this._infiniteTimeWindow,r=t?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,l=r.length;let u;if(this.closed)throw new Sb.N;if(this.isStopped||this.hasError?u=bn.w.EMPTY:(this.observers.push(o),u=new B5.W(this,o)),s&&o.add(o=new fv(o,s)),t)for(let p=0;p<l&&!o.closed;p++)o.next(r[p]);else for(let p=0;p<l&&!o.closed;p++)o.next(r[p].value);return this.hasError?o.error(this.thrownError):this.isStopped&&o.complete(),u}_getNow(){return(this.scheduler||L5).now()}_trimBufferThenGetEvents(){const o=this._getNow(),t=this._bufferSize,r=this._windowTime,s=this._events,l=s.length;let u=0;for(;u<l&&!(o-s[u].time<r);)u++;return l>t&&(u=Math.max(u,l-t)),u>0&&s.splice(0,u),s}}class H5{constructor(o,t){this.time=o,this.value=t}}var $5=S(2787);function Ff(i,o,t,r){t&&"function"!=typeof t&&(r=t);const s="function"==typeof t?t:void 0,l=new mv(i,o,r);return u=>(0,$5.O)(()=>l,s)(u)}let Cl=(()=>{class i extends fs{constructor(t){super(t),this.httpCliente=t,this.cacheProdutosPorEmpresa={},this.INICIAL="INICIAL"}listeDaCategoria(t,r,s,l){let u=String(`idcat=${t}&indice=${r}&limite=${s}`);return l&&(u=u+"&termo="+l),this.obtenha(String(`/api/produtos/venda/delivery?${u}`),{})}listeDaVitrine(t,r,s){let l=String(`vit=true&indice=${t}&limite=${r}`);return s&&(l=l+"&termo="+s),this.obtenha(String(`/api/produtos/venda/delivery?${l}`),{})}listeAhVendaGrupo(t="DELIVERY",r=!1,s=null,l=null,u=null,p=""){return this.httpCliente.get("/api/grupo/produtos/venda").pipe((0,ft.U)(this.processeResposta),Ff(1),(0,uu.x)(),hs(this.handleError))}removaDaCache(t,r){delete this.cacheProdutosPorEmpresa[t.id]}listeAhVenda(t,r="DELIVERY",s=!1,l=null,u=null,p=null,y=""){let A,I=this.cacheProdutosPorEmpresa[t.id];console.log("cache: ",this.cacheProdutosPorEmpresa),this.cacheProdutosPorEmpresa[t.id]||(this.cacheProdutosPorEmpresa[t.id]=I=new vY);const P=r+y+(l||""),F=(l||this.INICIAL)+y;s?(I.mapProdutosMercado[F]||(I.mapProdutosMercado[F]={}),A=I.mapProdutosMercado[F][p]):A=I.mapProdutosPorTipoCardapio[P];let V=new Gl;if(V=V.set("nomeempresa",t.dominio),!A){let oe=String(`/api/produtos/venda/${r}?`);u&&(oe+="&limite="+u+"&indice="+p),y&&(oe+="&termo="+y),s?(oe+="&mc=1",l?oe+=l>0?"&idcat="+l:"&cat="+l:l="INICIAL",I.mapProdutosMercado[F][p]=this.httpCliente.get(oe,{headers:V}).pipe((0,ft.U)(this.processeResposta),Ff(1),(0,uu.x)(),hs(this.handleError))):(l&&(oe+=l>0?"&idcat="+l:"&cat="+l),console.log("header: "+V.get("nomeempresa")),I.mapProdutosPorTipoCardapio[P]=this.httpCliente.get(oe,{headers:V}).pipe((0,ft.U)(this.processeResposta),Ff(1),(0,uu.x)(),hs(this.handleError)))}return s?I.mapProdutosMercado[F][p]:I.mapProdutosPorTipoCardapio[P]}processeResposta(t){return t.sucesso?t.data:(console.log("Houve um erro ao enviar"),t.erro)}listeProdutosVitrine(){return this.obtenha("/api/produtos/vitrines",{})}listeCategoriasMegamenu(){return this.obtenha("/api/categorias/megamenu",{})}obtenhaProduto(t,r){return this.httpCliente.get("/api/empresa/"+t+"/produtos/"+r).toPromise().then(this.retorno).catch(this.handleError)}apagueCache(){}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();class vY{constructor(){this.mapProdutosPorTipoCardapio={},this.mapProdutosMercado={}}}let gi=(()=>{class i{constructor(t,r,s,l){this.httpClient=t,this.clienteService=r,this.produtoService=s,this.activatedRoute=l,this.moduloPedido=new Qn(null),this.moduloFidelidade=new Qn(null),this.moduloApp=new Qn(!1),this.empresa=new Qn(null),this.franquia=new Qn(null),this.campoCpf=new Qn(null),this.campoDataNascimento=new Qn(null),this.cardapioLoja=new Qn(null),this.tagsProdutos=new Qn(null),this.diasDaSemana=["Dom","Seg","Ter","Qua","Qui","Sex","S\xe1b"],this.moduloPedido$=this.moduloPedido.asObservable(),this.moduloFidelidade$=this.moduloFidelidade.asObservable(),this.moduloApp$=this.moduloApp.asObservable(),this.empresa$=this.empresa.asObservable(),this.franquia$=this.franquia.asObservable(),this.tagsProdutos$=this.tagsProdutos.asObservable(),this.campoCpf$=this.campoCpf.asObservable(),this.campoDataNascimento$=this.campoDataNascimento.asObservable(),this.produtosLoja=[],this.cardapioLoja$=this.cardapioLoja.asObservable(),this.categoriasDaLoja=[],this.carregou=!1,this.carregandoCardapio=!1}recarregueEmpresa(t=!1){let r=null;r||(r=localStorage.getItem("operador")),this.empresa.next(null),this.clienteService.obtenhaEmpresa(r,t).then(s=>{this.carregou=!0,this.carregueInformacoesDeHorarioDeFuncionamento(s.empresa),s.empresa.tagsProdutos=s.tagsProdutos||[],this.empresa.next(s.empresa),this.moduloPedido.next(this.possuiModulo(s.empresa,"pedidos")),this.moduloFidelidade.next(this.possuiModulo(s.empresa,"fidelidade")),this.moduloApp.next(this.possuiModulo(s.empresa,"app")),this.campoCpf.next(this.obtenhaCampoExtra(s.empresa,"cpf")),this.campoDataNascimento.next(this.obtenhaCampoExtra(s.empresa,"datanascimento"))})}obtenhaCarpadioCompleto(t,r){return this.categoriasDaLoja.length?setTimeout(()=>{let s={categorias:this.categoriasDaLoja};this.carregandoCardapio||(s.produtos=this.produtosLoja),this.cardapioLoja.next(s)}):this.carregueCardapio(t,r),this.cardapioLoja$}carregueCardapio(t,r){if(this.carregandoCardapio)return;this.carregandoCardapio=!0,console.log("chamou carregue");const s={headers:{nomeempresa:r.dominio}};let l=String(`/api/produtos/venda/${t}/async?`);this.eventSource=new EventSource(l,s),this.eventSource.addEventListener("categorias",u=>{console.log("chamou event listener categorias");const p=JSON.parse(u.data);this.categoriasDaLoja=p.categorias,this.cardapioLoja.next({categorias:this.categoriasDaLoja})}),this.eventSource.addEventListener("produtos",u=>{const p=JSON.parse(u.data);this.produtosLoja=p.produtos,this.cardapioLoja.next({produtos:this.produtosLoja}),this.carregandoCardapio=!1,this.eventSource.close()})}possuiCampoExtra(t,r){return!(!t||!t.camposExtras)&&t.camposExtras.some(s=>s.nome===r)}obtenhaCampoExtra(t,r){return t&&t.camposExtras?t.camposExtras.find(s=>s.nome===r):null}possuiModulo(t,r){return!(!t||!t.modulos)&&t.modulos.some(s=>s.nome===r)}carregueInformacoesDeHorarioDeFuncionamento(t){t.estaAberta&&t.formasDeEntrega.forEach(r=>{r.tempoMinimo&&r.tempoMaximo&&(t.descricaoTempoEntrega=String(`${r.tempoMinimo} ~ ${r.tempoMaximo} min`)),r.tempoMinimoRetirada&&r.tempoMaximoRetirada&&(t.descricaoTempoRetirada=String(`${r.tempoMinimoRetirada} ~ ${r.tempoMaximoRetirada} min`))})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo),n.LFG(ka),n.LFG(Cl),n.LFG(ci))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class U5{constructor(o,t,r=!1,s=0){this.selecionado=r,this.qtde=s,this.preco=0,this.obrigatorio=!1,this.nome=o.nome,this.descricao=o.descricao,this.produto=o.id,this.produtoTamanho=t,this.preco=t.preco,this.categoriaNome=o.categoria.nome,this.categoriaPosicao=o.categoria.posicao,this.camposAdicionais=o.camposAdicionais,this.camposAdicionais&&this.camposAdicionais.forEach(l=>{l.sabor=o.nome}),o.imagens&&o.imagens.length>0&&(this.linkImagem=o.imagens[0].linkImagem)}}class _v{constructor(){this.adicionais={}}atualizeTotal(){}configureAdicionais(){this.valoresAdicionais=[];const o=Object.keys(this.adicionais);for(let t=0;t<o.length;t++){let r=o[t];if(r.startsWith("lista"))for(let s in this.adicionais[r])if(s.startsWith("opcao")&&this.adicionais[r][s].selecionada){const l=this.obtenhaValorAdicional(this.adicionais[r]);this.valoresAdicionais.push({nome:this.adicionais[r][s].opcao.nome,qtde:this.adicionais[r][s].qtde,valor:l})}r.startsWith("campo")&&this.valoresAdicionais.push({nome:this.adicionais[r].nome,qtde:1,valor:this.adicionais[r].valor})}}valideCampoAdicional(o){if(o.esconder||o.semOpcaoDisponivel)return!0;if("escolha-simples"===o.tipo){let t=this.adicionais["campo"+o.posicao];return!o.obrigatorio||null!=t}if("multipla-escolha"===o.tipo){let t=this.adicionais["lista"+o.posicao],r=o.qtdMinima||0,s=o.qtdMaxima||Object.keys(t).length,l=0;for(let u in t){let p=t[u];if(p&&p.selecionada){let y=p.qtde;y||(y=1),l+=y}}return 0===l&&!o.obrigatorio||l>=r&&l<=s}}obtenhaValorAdicionais(){let o=0;for(let t in this.adicionais)t.startsWith("campo")&&null!=this.adicionais[t]?o+=this.adicionais[t].valor:t.startsWith("lista")&&(o+=this.obtenhaValorAdicional(this.adicionais[t]));return o}obtenhaValorAdicional(o){let t=0;switch(o.tipoDeCobranca){case"SOMA":for(let l in o)o[l]&&o[l].selecionada&&(t+=o[l].valorTotal);break;case"MEDIA":let s=0;for(let l in o)o[l]&&o[l].selecionada&&(s+=o[l].qtde,t+=o[l].valorTotal);s>0&&(t=+(t/s).toFixed(2));break;case"MAIOR":for(let l in o)o[l]&&o[l].selecionada&&o[l].valorTotal>t&&(t=o[l].valorTotal)}return t}}class el extends _v{constructor(o,t,r){super(),this.produto=o,this.qtde=t,this.observacao=r,this.sabores=[],this.total=o.preco*t,this.adicionais={};try{this.guid=crypto.randomUUID()}catch{this.guid=(new Date).getTime().toString()}}atualize(o,t,r,s,l){this.qtde=o,this.produtoTamanho=s,this.sabores=l||[],this.observacao=t,this.adicionais=r,this.atualizeTotal()}atualizeTotal(){this.total=this.obtenhaValor()}obtenhaValor(){return this.produto.tipoDeVenda&&"Peso"===this.produto.tipoDeVenda?this.obtenhaValorPorPeso():(this.obtenhaPreco()+this.obtenhaValorAdicionais())*this.qtde}obtenhaPontosFidelidade(o){if(null!=o.cashback){let s=o.cashback;return this.produtoTamanho&&null!=this.produtoTamanho.template.cashback?s=this.produtoTamanho.template.cashback/100:null!=this.produto.cashback&&(s=this.produto.cashback/100),Number((s*this.total).toFixed(2))}let t=o.pontosGanhos||0;return this.produtoTamanho&&null!=this.produtoTamanho.template.pontosGanhos?t=this.produtoTamanho.template.pontosGanhos:null!=this.produto.pontosGanhos&&(t=this.produto.pontosGanhos),t*this.qtde}obtenhaPreco(){return this.sabores&&this.sabores.length?class Y5{static calculeValorSabores(o,t){let r=o.tipoDeCobranca,s=0;if("maior"===r){let l=t[0].preco;t.forEach(u=>{u.preco>l&&(l=u.preco)}),s=l}else{if("media"!==r)throw Error("Tipo de conbra\xe7a n\xe3o suportado: "+r);{let l=t.reduce((p,y)=>y.qtde+p,0);s=t.reduce((p,y)=>p+y.qtde*y.preco,0)/l}}return o.taxaExtra>0&&t.length>1&&(s+=o.taxaExtra),Number(s.toFixed(2))}}.calculeValorSabores(this.produto.template,this.sabores):this.produtoTamanho?this.produtoTamanho.preco:this.produto.preco}obtenhaValorPorPeso(){let o=this.qtde;return this.produto.unidadeMedida&&"g"===this.produto.unidadeMedida.sigla&&(o=this.qtde/1e3),Number((this.produto.preco*o).toFixed(2))+this.obtenhaValorAdicionais()}obtenhaDescricao(){let o=this.produto.nome;if(this.produtoTamanho&&(o=String(`${this.produto.nome} ${this.produtoTamanho.descricao}`),this.sabores&&this.sabores.length)){let t=this.sabores.map(r=>r.nome);if(1===t.length)o=String(`${this.produto.template.identificador} ${this.produtoTamanho.descricao}  - ${t[0]}`);else{for(let r=0;r<t.length;r++)t[r]=String(`${r+1}\xb0: ${t[r]}`);o=String(`${this.produto.template.identificador} ${this.produtoTamanho.descricao} ${this.sabores.length} Sabores ( ${t.join("; ")} )`)}}return o}obtenhaUnidade(){return this.produto.tipoDeVenda&&"Peso"===this.produto.tipoDeVenda?this.produto.unidadeMedida.sigla.toLowerCase()+" de ":"x"}}var wo=(()=>{return(i=wo||(wo={})).RECEBER_EM_CASA="Receber em casa",i.RETIRAR="Retirar",i.COMERNOLOCAL="Comer no local",wo;var i})();class ga{constructor(){this.permiteEntrega=!0}foiPreenchida(){return!(!this.formaDeEntrega||!this.ehRetirada()&&null==this.endereco)}ehRetirada(){return this.formaDeEntrega&&(this.formaDeEntrega===wo.RETIRAR||this.formaDeEntrega===wo.COMERNOLOCAL)}ehDelivery(){return this.formaDeEntrega&&this.formaDeEntrega===wo.RECEBER_EM_CASA}obtenhaForma(){return this.formaDeEntrega===wo.RETIRAR?{id:1}:this.formaDeEntrega===wo.COMERNOLOCAL?{id:1,comerNoLocal:!0}:this.formaDeEntrega===wo.RECEBER_EM_CASA?{id:2}:void 0}setTaxaEntrega(o,t){t&&Object.assign(o,t),this.endereco=o,this.taxaDeEntrega=o.taxaDeEntrega,this.hash=o.hash,this.taxaCalculadaId=o.taxaCalculadaId,o.taxaRetorno&&(this.valorComRetorno=Number((this.taxaDeEntrega+o.taxaRetorno).toFixed(2)))}}class _d{constructor(){this.trocoPara=0,this.formaDePagamento=null}}class $_{constructor(o=null,t=null,r=null,s=!1,l=!1,u=!1,p=!1){this.id=o,this.desconto=t,this.codigo=r,this.aplicarNaTaxaDeEntrega=s,this.naoPontuarFidelidade=l,this.aplicarAuto=u,this.cashback=p}}class Al{static obtenhaPtsFormatado(o,t,r){if(!r)return null;let s="Selos"===t?"selo":"ponto";r>1&&(s+="s");let l=r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".");return String(`${l} ${s}`)}}const Ql={"por-valor":class A2{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o){return o?Math.floor(o/this.tipoDePontuacao.valorPorPonto):0}obtenhaPontosFormatado(o){let t=this.calculePontos(o);return Al.obtenhaPtsFormatado(this.tipoDePontuacao,this.tipoDeAcumulo,t)}},"por-pontos":class Bf{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o){return o?Math.floor(o*this.tipoDePontuacao.pontosPorValor):0}obtenhaPontosFormatado(o){let t=this.calculePontos(o);return Al.obtenhaPtsFormatado(this.tipoDePontuacao,this.tipoDeAcumulo,t)}},cashback:class Hf{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o){return!o||this.atividade.plano.valorMinimoPontuar&&this.atividade.plano.valorMinimoPontuar>o?0:Number((Math.round(o*this.atividade.cashback*100)/100).toFixed(2))}obtenhaPontosFormatado(o){let t=this.calculePontos(o);return t?String(`R$ ${t.toFixed(2).replace(".",",")}`):null}},"qtde-fixa":class Uf{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o){return this.tipoDePontuacao.selosPorAtividade}obtenhaPontosFormatado(o){let t=this.calculePontos(o);return String("Reais"===this.tipoDeAcumulo?`R$ ${t.toFixed(2).replace(".",",")}`:"Pontos"===this.tipoDeAcumulo?`${t} ${t<=1?"Ponto":"Pontos"}`:`${t} ${t<=1?"Selo":"Selos"}`)}},"qtde-fixa-por-atividade":class $f{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o){return this.atividade.pontosGanhos}obtenhaPontosFormatado(o){let t=this.calculePontos(o);return String("Reais"===this.tipoDeAcumulo?`R$ ${t.toFixed(2).replace(".",",")}`:"Pontos"===this.tipoDeAcumulo?`${t} ${t<=1?"Ponto":"Pontos"}`:`${t} ${t<=1?"Selo":"Selos"}`)}},"qtde-variavel-por-atividade":class Yf{constructor(o,t,r,s){this.empresa=o,this.tipoDePontuacao=t,this.tipoDeAcumulo=r,this.atividade=s}calculePontos(o,t){return t&&t.length?t.reduce((r,s)=>r+s.obtenhaPontosFidelidade(this.atividade),0):this.atividade.pontosGanhos}obtenhaPontosFormatado(o,t){let r=this.calculePontos(o,t);return String("Reais"===this.tipoDeAcumulo?`R$ ${r.toFixed(2).replace(".",",")}`:"Pontos"===this.tipoDeAcumulo?`${r} ${r<=1?"Ponto":"Pontos"}`:`${r>0?r:""} ${r<=1?"Selo":"Selos"}`)}}};class Cp{static factory(o,t,r,s,l){return new o(t,r,s,l)}static crie(o,t){return t.atividade.plano=t.plano,Cp.factory(Ql[t.plano.tipoDePontuacao.tipo],o,t.plano.tipoDePontuacao,t.plano.tipoDeAcumulo,t.atividade)}}class Xh{constructor(o,t,r,s,l=!1,u=[]){this.id=o,this.empresa=t,this.descricao=r,this.desconto=s,this.cumulativa=l,this.produtosAdicionados=u}}class U_ extends _v{constructor(o=null,t=null,r=null){super(),this.origem=o,this.itens=[],this.total=0,this.subTotal=0,this.qtde=0,this.novosEnderecos=[],this.promocoesAplicadas=[],this.disparouEventoIniciarCheckout=!1,this.disparouEventoAddedToCart=!1,this.itensPorEmpresa={},this.entrega=new ga,this.pagamento=new _d,this.mesa=r,this.setContato(t||{})}setContato(o){this.contato=o,this.contato.dataNascimento&&(this.contato.dataNascimento=class XM{static obtenhaDiaMesAno(o){let t;if(o&&o instanceof Date){let r=o.getFullYear(),s=(o.getMonth()+1).toString().padStart(2,"0"),l=o.getDate().toString().padStart(2,"0");t=String(`${r}-${s}-${l}`)}return t}static obtenhaDataDaString(o){if(!o||"string"!=typeof o)return o;let t=o.substring(0,10).split("-"),r=new Date,s=t[0],l=Number(t[1]),u=t[2];return r.setFullYear(s),r.setMonth(l-1),r.setDate(u),r}}.obtenhaDataDaString(this.contato.dataNascimento))}edite(o,t,r,s,l,u,p){let y=this.itens[o];return y.atualize(r,s,l,u,p),this.limpeTroco(),this.calculeTotal(),y}limpeTroco(){this.pagamento&&(this.pagamento.trocoPara=0)}expirou(){return!this.timestamp||((new Date).getTime()-this.timestamp)/1e3/60>240}adicione(o,t,r,s,l,u){const p=new el(o,t,r);return p.adicionais=s,p.produtoTamanho=l,p.sabores=u||[],p.atualizeTotal(),this.itens.push(p),this.limpeTroco(),this.calculeTotal(),this.itensPorEmpresa=Object.values(this.calculeItensPorEmpresa()),p}calculeItensPorEmpresa(){let o={};for(let t of this.itens){const r=t.produto.empresa;o[r.id]||(o[r.id]={empresa:r,itens:[]}),o[r.id].itens.push(t)}return o}obtenhaSubTotal(){let o=0;return this.itens.forEach(t=>{o+=t.obtenhaValor()}),Number(o.toFixed(2))}obtenhaValorAhPagar(){let o=this.total;return this.cashback&&(o-=this.cashback.valor),Number(o.toFixed(2))}obtenhaTotalSemTaxaEntrega(){let o=this.obtenhaSubTotal();return this.desconto&&(!this.cupom||!this.cupom.aplicarNaTaxaDeEntrega)&&(o-=this.desconto),this.descontoFormaDePagamento&&(o-=this.descontoFormaDePagamento),o}obtenhaValorPagoQuePontua(){if(this.cupom&&this.cupom.naoPontuarFidelidade)return 0;let o=this.obtenhaTotalSemTaxaEntrega();return this.cashback&&this.cashback.valor&&(o-=this.cashback.valor),o<0&&(o=0),o}atualizeTotal(){this.configureAdicionais(),this.calculeTotal()}calculeTotal(){if(this.qtde=this.itens.length,this.subTotal=this.obtenhaSubTotal(),this.total=this.subTotal,this.total+=this.obtenhaValorAdicionais(),this.desconto&&(this.total-=this.desconto),this.descontoFormaDePagamento=null,this.pagamento.formaDePagamento&&this.pagamento.formaDePagamento.possuiDesconto){let o=this.total;this.cashback&&this.cashback.podeUsarNoPedido&&(o=this.total-this.cashback.valor),this.descontoFormaDePagamento=Number((o*this.pagamento.formaDePagamento.desconto/100).toFixed(2)),this.total-=this.descontoFormaDePagamento}this.entrega&&this.entrega.taxaDeEntrega&&this.entrega.taxaDeEntrega>0&&(this.total+=this.obtenhaValorTaxaEntrega()),this.pagamento.formaDePagamento&&this.pagamento.formaDePagamento.taxaCobranca?(this.taxaFormaDePagamento=class jf{static calcule(o,t){return o.ativa?o.percentual?Number((o.percentual/100*t).toFixed(2)):o.valor:0}}.calcule(this.pagamento.formaDePagamento.taxaCobranca,this.obtenhaValorAhPagar()),this.total+=this.taxaFormaDePagamento):this.taxaFormaDePagamento=0,this.calculeTroco()}obtenhaValorTaxaEntrega(){return this.entrega?!this.entrega.valorComRetorno||this.pagamento&&this.pagamento.formaDePagamento&&!this.pagamento.formaDePagamento.cobrarTaxaRetorno?this.entrega.taxaDeEntrega:this.entrega.valorComRetorno:0}removaItem(o){let t=this.itens.indexOf(o);this.itens.splice(t,1),this.limpeTroco(),this.calculeTotal(),this.itensPorEmpresa=Object.values(this.calculeItensPorEmpresa())}obtenhaDescricaoPromocoes(){return this.promocoesAplicadas?this.promocoesAplicadas.map(o=>o.descricao).join(","):null}getItem(o){return this.itens.find(t=>t.produto.id===o.id)}calculeTroco(){this.troco=0,this.pagamento&&this.pagamento.trocoPara&&(this.troco=this.pagamento.trocoPara-this.pagamento.valor),this.troco<0&&(this.troco=0)}calculePontosAhReceber(o,t){t.pontuando&&(!this.mesa||t.pontuarMesas)&&(this.cupom&&this.cupom.cashback&&(t.atividade.cashback=this.cupom.cashback),this.pontosReceber=Cp.crie(o,t).obtenhaPontosFormatado(this.obtenhaValorPagoQuePontua(),this.itens))}obtenhaDadosEnvio(o){let t=this.obtenhaHorarioEntregaAgendada(o),r={contato:this.contato,itens:this.itens,mesa:this.mesa,guid:this.guid,cupom:this.cupom,promocoesAplicadas:this.promocoesAplicadas,codigo:this.codigo,pagamentos:[],horarioEntregaAgendada:t,textoHorarioEntregaAgendada:t?t.toLocaleString("pt-BR"):null,formaDeEntrega:this.entrega.obtenhaForma(),taxaEntrega:this.obtenhaValorTaxaEntrega(),taxaCalculadaId:this.entrega.taxaCalculadaId,hash:this.entrega.hash,adicionais:this.adicionais,valoresAdicionais:this.valoresAdicionais,total:this.total,origem:this.origem,op:localStorage.getItem("operador")};this.entrega.ehRetirada()||(r.endereco=this.entrega.endereco);let s=this.obtenhaValorAhPagar();if(s>0&&this.pagamento&&this.pagamento.formaDePagamento&&(r.pagamentos.push(Object.assign({},this.pagamento)),r.pagamentos[0].valor=s),this.cashback&&this.cashback.valor){let l={valor:this.cashback.valor,cartao:this.cashback.cartao,formaDePagamento:o.formasDePagamento.find(u=>"cashback"===u.nome)};this.cashback.cashbackExterno&&(l.cashbackExterno=this.cashback.cashbackExterno),r.pagamentos.push(l)}return this.fidelidadeGcom&&(this.contato.adicionarFidelidadeGcom=!0,this.contato.idCliente=this.fidelidadeGcom.id_cliente),r}informouFormaDePagamento(){return this.pagamento&&null!=this.pagamento.formaDePagamento||this.cashback&&this.cashback.valor===this.total}informouFormaDeEntrega(){return this.entrega&&null!=this.entrega.formaDeEntrega}setNovoPagamento(){this.pagamento=new _d}temValorMinimoDaFormaEscolhida(o){return!this.entrega||!this.entrega.formaDeEntrega||this.temValorMinimo(this.entrega.formaDeEntrega,o)}obtenhaValorMinimoDaFormaEscolhida(o){return!this.entrega||!this.entrega.formaDeEntrega||this.obtenhaValorMinimoParaEntrega(this.entrega.formaDeEntrega,o)}obtenhaFormaEscolhida(o,t=this.entrega.formaDeEntrega){return o?(t===wo.COMERNOLOCAL&&(t=wo.RETIRAR),o.find(r=>r.nome===t)):null}obtenhaLabelFormaSelecionada(){return this.entrega.formaDeEntrega?this.entrega.formaDeEntrega===wo.RECEBER_EM_CASA?"entrega":"retirada":""}temValorMinimo(o,t){let r=this.obtenhaFormaEscolhida(t,o);return!r||!r.valorMinimoPedido||this.obtenhaSubTotal()>=r.valorMinimoPedido}obtenhaValorMinimoParaEntrega(o,t){let r=this.obtenhaFormaEscolhida(t,o);return r&&r.valorMinimoPedido?r.valorMinimoPedido:0}ultrapassouValorMaximo(o,t){let r=this.obtenhaFormaEscolhida(t,o);return!(!r||!r.valorMaximoPedido)&&this.obtenhaTotalSemTaxaEntrega()>r.valorMaximoPedido}ultrapassouValorMaximoDaFormaEscolhida(o){return!(!this.entrega||!this.entrega.formaDeEntrega)&&this.ultrapassouValorMaximo(this.entrega.formaDeEntrega,o)}obtenhaValorMaximoParaEntrega(o,t){let r=this.obtenhaFormaEscolhida(t,o);return r&&r.valorMaximoPedido?r.valorMaximoPedido:0}obtenhaValorMaximoDaFormaEscolhida(o){return this.entrega&&this.entrega.formaDeEntrega?this.obtenhaValorMaximoParaEntrega(this.entrega.formaDeEntrega,o):0}permiteAgendamento(o,t){let r=this.obtenhaFormaEscolhida(t,o);return!!r&&r.permiteAgendamento}obtenhaIntervaloAgendamento(o,t){let r=this.obtenhaFormaEscolhida(t,o);return!!r&&r.intervaloAgendamento}naoInformarHorarioNoAgendamento(o,t){if(t){let r=t.find(s=>s.nome===o);return!!r&&r.naoPerguntarHorario}}obtenhaHorarioEntregaAgendada(o){if(!this.dataEntrega||!this.naoInformarHorarioNoAgendamento(this.entrega.formaDeEntrega,o.formasDeEntrega)&&!this.horarioEntrega)return null;let r=new Date(this.dataEntrega.toDateString());return this.horarioEntrega&&(r.setHours(parseInt(this.horarioEntrega.split(":")[0],10)),r.setMinutes(parseInt(this.horarioEntrega.split(":")[1],10))),r}apliqueCupom(o){o&&o.desconto>=0&&(this.cupom=new $_(o.id,o.desconto,o.codigo,o.aplicarNaTaxaDeEntrega,o.naoPontuarFidelidade,o.aplicarAuto,o.cashback),o.erro&&(this.cupom.erro=o.erro),this.desconto+=this.cupom.desconto,this.limpeTroco(),this.calculeTotal())}apliqueDescontoPromocional(o){if(this.promocoesAplicadas=[],o&&o.desconto>=0){for(let t of o.promocoesAplicadas){let r=new Xh(t.id,t.empresa,t.descricao,t.desconto,t.cumulativa,t.produtosAdicionados);if(t.produtosRemovidos)for(let s of t.produtosRemovidos)this.removaItem(this.getItem(s));if(this.promocoesAplicadas.push(r),console.log(r),this.desconto+=r.desconto,r.produtosAdicionados)for(let s of r.produtosAdicionados)this.adicione(s.produto,1,s.observacao,null,null,null)}this.calculeTotal()}}removaCupom(){delete this.codigoCupom,delete this.cupom,this.desconto=0,this.calculeTotal()}obtenhaDescricaoPagamento(){if(!this.pagamento||!this.pagamento.formaDePagamento)return this.cashback&&this.cashback.valor?"Fidelidade Cashback":"";let o=this.pagamento.formaDePagamento.descricao;return this.cashback&&this.cashback.valor&&(o=String(`Cashback + ${o}`)),o}ehDeMultiloja(){return"multiloja"===this.origem}obtenhaQtdeItens(o){let t=0;for(let r of this.itens)o&&o.guid!==r.guid&&(t+=r.qtde);return t}usandoCashbackNoPagamento(){return this.cashback&&this.cashback.valor}maisDeUmaFormaPagamento(){return this.pagamento&&this.pagamento.formaDePagamento&&this.usandoCashbackNoPagamento()}teveAutenticacaoPagamento(){return!!this.pagamento&&this.pagamento.dadosCartao&&this.pagamento.dadosCartao.autenticacao3ds}validarValorPedido(){return this.teveAutenticacaoPagamento()&&this.pagamento.dadosCartao.valorPagamento}}class Xr{constructor(o,t,r,s,l,u,p,y=null,A,w=null){this.gps=!1,this.hash="",this.id=o,this.cidade=t,this.cep=r,this.logradouro=s,this.complemento=l,this.bairro=u,this.numero=p,this.descricao=y,this.localizacao=A}obtenhaEnderecoCompleto(){return this.descricao?this.descricao:this.obtenhaEndereco()}obtenhaNomeAutocomplete(){let o=this.logradouro||"";return this.complemento&&(o=o+", "+this.complemento),this.cep&&(o=o+" "+this.cep),o=o[0].toUpperCase()+o.slice(1).toLocaleLowerCase(),o}obtenhaEndereco(){let o=this.logradouro||"";return this.complemento&&(o=o+", "+this.complemento),this.numero&&(o=o+" "+this.numero),""!==o&&(o=o[0].toUpperCase()+o.slice(1).toLocaleLowerCase()),this.bairro&&(o=o+" "+this.bairro[0].toUpperCase()+this.bairro.slice(1).toLocaleLowerCase()),this.pontoDeReferencia&&(o=o+" Ponto de refer\xeancia: "+this.pontoDeReferencia),this.cidade&&(o=o+", "+this.cidade.nome+"-"+this.cidade.estado.nome),o}static novo(){return new Xr(null,null,null,null,null,null,null,null,null,null)}informadoManualmente(){return null!=this.localizacao}calculouTaxaDeEntrega(){return null!=this.taxaDeEntrega&&void 0!==this.taxaDeEntrega}}var Ap=(()=>{return(i=Ap||(Ap={})).Loja="loja",i.Multiloja="multiloja",Ap;var i})();let wc=(()=>{class i extends fs{constructor(t){super(t)}obtenhaEstados(){return this.obtenha("/api/estados",{})}obtenhaCidades(t){return this.obtenha("/api/cidades/"+t.id,{})}busquePorCEP(t){return this.obtenha("/api/endereco/"+t,{})}obtenhaEnderecos(t){return this.obtenha("/contatos/"+t.id+"/enderecos",{})}encontreLoja(t,r){return this.facaPost("/api/encontreLoja/"+t,{endereco:r})}salveEnderecoLocal(t,r){t.novosEnderecos||(t.novosEnderecos=[]),t.novosEnderecos.push(r)}calculeLocalizacaoEndereco(t,r,s){return this.salve("/api/localizacaoEndereco",{forma:t,zona:r.zonaDeEntrega,endereco:r,valor:s})}calculeTaxaDeEntrega(t,r,s){return this.salve("/api/taxaDeEntrega",{forma:t,zona:r.zonaDeEntrega,endereco:r,valor:s})}autocomplete(t){return this.http.get("/api/autocomplete?q="+encodeURIComponent(t),{params:{}})}encontreLojaGPS(t,r){return this.facaPost("/api/encontreLojaGps/"+t,{p:r})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),Oi=(()=>{class i extends fs{constructor(t,r,s,l){super(l),this.autorizacao=t,this.clienteService=r,this.enderecoService=s,this.http=l,this._key="_pedido_",this._keyMultipedido="_multipedido_",this.keyultimo="_ultimopedido_",this.alterouPedido=new n.vpe}setContexto(t=!1){this.contexto=t?Ap.Multiloja:Ap.Loja}getKey(){return this.contexto===Ap.Multiloja?this._keyMultipedido:this._key}obtenhaPedidoLocal(t,r){if(!r)return null;let s=new U_(this.contexto,t);if(s.timestamp=r.timestamp,s.codigo=r.codigo,s.guid=r.guid,s.mesa=r.mesa,s.linkPagamento=r.linkPagamento,s.gerarLinkPagamento=r.gerarLinkPagamento,s.pago=r.pago,s.desconto=r.desconto,s.codigoCupom=r.codigoCupom,s.pontosReceber=r.pontosReceber,s.disparouEventoIniciarCheckout=r.disparouEventoIniciarCheckout,s.disparouEventoAddedToCart=r.disparouEventoAddedToCart,r.entrega&&(s.entrega=Object.assign(new ga,r.entrega),r.entrega.endereco)){const l=r.entrega.endereco;s.entrega.endereco=new Xr(l.id,l.cidade,l.cep,l.logradouro,l.complemento,l.bairro,l.numero,l.descricao,l.localizacao),s.entrega.endereco.taxaDeEntrega=l.taxaDeEntrega,s.entrega.endereco.zonaDeEntrega=l.zonaDeEntrega}(!s.contato||!s.contato.id)&&s.setContato(r.contato);for(const l of r.itens)s.adicione(l.produto,l.qtde,l.observacao,l.adicionais,l.produtoTamanho,l.sabores);if(r.cupom&&(s.cupom=Object.assign(new $_,r.cupom)),r.promocoesAplicadas)for(let l of r.promocoesAplicadas)s.promocoesAplicadas.push(new Xh(l.id,l.empresa,l.descricao,l.desconto));return r.cashback&&r.cashback.usar?(s.cashback=r.cashback,s.calculeTotal(),s.calculeTroco()):delete s.cashback,r.pagamento&&(s.pagamento=new _d,s.pagamento.formaDePagamento=r.pagamento.formaDePagamento,s.pagamento.trocoPara=r.pagamento.trocoPara,s.pagamento.dadosCartao=r.pagamento.dadosCartao,s.pagamento.dadosPix=r.pagamento.dadosPix,s.pagamento.temTroco=r.pagamento.temTroco,s.pagamento.tipoDePagamento=r.pagamento.tipoDePagamento,s.calculeTotal(),s.calculeTroco()),r.dataEntrega&&(s.dataEntrega=new Date(r.dataEntrega),s.horarioEntrega=r.horarioEntrega),s}obtenhaPedidoServer(t,r,s){let l=new U_(r.origem,t);if(l.timestamp=(new Date).getTime(),l.mesa=r.mesa,l.pago=!1,l.codigoCupom=r.codigoCupom,l.entrega=new ga,l.entrega.formaDeEntrega=r.formaDeEntrega,r.endereco){l.entrega.taxaDeEntrega=s;const u=r.endereco;l.entrega.endereco=new Xr(u.id,u.cidade,u.cep,u.logradouro,u.complemento,u.bairro,u.numero,u.descricao,u.localizacao)}r.dataEntrega&&(l.dataEntrega=new Date(r.dataEntrega),l.horarioEntrega=r.horarioEntrega);for(const u of r.itens)u.sabores&&u.sabores.length&&u.sabores.forEach(p=>{p.produto&&p.produto.id&&(p.nome=p.produto.nome,p.produto=p.produto.id,p.preco=p.produtoTamanho?p.produtoTamanho.preco:p.valor)}),l.adicione(u.produto,u.qtde,u.observacao,u.adicionais,u.produtoTamanho,u.sabores);return l}crieNovoPedido(t,r){this.pedido=new U_(this.contexto,t,r),this.pedido.origem=this.contexto,this.clienteService.obtenhaGuidPedido().then(s=>{this.pedido.guid=s,this.salvePedido(this.pedido)})}refazerPedido(t,r=null){let s=this.autorizacao.getUsuario(),l=this.obtenhaPedidoServer(s,t,r);this.pedido=l,this.salvePedido(this.pedido)}otenhaPedidoPrato(t){return this.obtenhaPedidoServer({},{itens:[t]},null).itens[0]}obtenhaPedido(t=null){let r=this.autorizacao.getUsuario();if(null==this.pedido){const s=localStorage.getItem(this.getKey());if(s){let l=this.obtenhaPedidoLocal(r,JSON.parse(s));l.expirou()?this.crieNovoPedido(r,t):this.pedido=l}else this.crieNovoPedido(r,t)}else r&&r.telefone&&(this.pedido.contato=r),t&&(t.id||t.expirada)&&(this.pedido.mesa=t,this.salvePedido(this.pedido));return this.pedido}atualizeTaxaDeEntrega(t){return new Promise(r=>{if(!t.entrega.ehDelivery()||!t.entrega.endereco)return t.calculeTotal(),r(null);this.enderecoService.calculeTaxaDeEntrega(t.entrega.formaDeEntrega,t.entrega.endereco,t.obtenhaSubTotal()).then(s=>{t.entrega.setTaxaEntrega(t.entrega.endereco,s),t.calculeTotal(),r(null)}).catch(s=>{r(s)})})}salvePedido(t){this.pedido.timestamp=(new Date).getTime(),this.alterouPedido.emit(t),localStorage.setItem(this.getKey(),JSON.stringify(t))}temPedidoNoCarrinho(){const t=localStorage.getItem(this.getKey());return!!t&&JSON.parse(t).qtde>0}limpePedido(t=null){this.pedido=null,localStorage.removeItem(this.getKey()),t&&t.mesa&&(this.pedido=this.obtenhaPedido(t.mesa),this.pedido.contato=t.contato),this.alterouPedido.emit(this.pedido)}limpeContatoPedido(){this.pedido&&this.pedido.contato&&(this.pedido.contato={},this.salvePedido(this.pedido))}salveUltimoPedido(t={}){t.pedido=this.pedido,localStorage.setItem(this.keyultimo,JSON.stringify(t)),this.limpePedido(t.pedido)}obtenhaDadosUltimoPedido(){let t=this.autorizacao.getUsuario();const r=localStorage.getItem(this.keyultimo);if(r){let s=JSON.parse(r);return s.pedido=this.obtenhaPedidoLocal(t,s.pedido),s}return null}obtenhaMesa(t){return new Promise(r=>{this.clienteService.obtenhaMesaPeloHash(t).then(s=>{if(!s)return this.limpePedido(),this.obtenhaPedido(),r(null);this.pedido&&(!this.pedido.mesa||this.pedido.mesa.id!==Number(s.id))&&(this.pedido=this.obtenhaPedido(s),this.salvePedido(this.pedido)),r(s)}).catch(s=>{this.limpePedido(),this.obtenhaPedido(),r(null)})})}obtenhaMesaPorNome(t){return new Promise(r=>{this.clienteService.obtenhaMesaPeloHash(t).then(s=>{})})}atualizeMesa(t){(!this.pedido.mesa||this.pedido.mesa.id!==Number(t))&&(this.limpePedido(),this.clienteService.obtenhaMesa(t).then(r=>{this.pedido=this.obtenhaPedido(r),this.salvePedido(this.pedido)}))}soliciteGarcom(){return new Promise(t=>{!this.pedido.mesa||this.clienteService.soliciteGarcom(this.pedido.mesa.id).then(r=>t(r))})}soliciteFecharMesa(){return new Promise(t=>{!this.pedido.mesa||this.clienteService.soliciteFecharMesa(this.pedido.mesa.id).then(r=>t(r))})}atualizeValorDesconto(t,r,s=!1){return new Promise(l=>{let u=this.pedido.cupom;!t&&this.pedido.cupom&&(t=this.pedido.cupom.codigo),delete this.pedido.cupom,this.pedido.desconto=0,this.pedido.codigoCupom=t,this.pedido.calculeTotal();let p=this.pedido.obtenhaDadosEnvio(r);this.clienteService.calculeDescontoPromocoes(p,r).then(y=>{if(y&&y.promocoesAplicadas&&y.promocoesAplicadas.length>0){this.pedido.apliqueDescontoPromocional(y);for(let A of this.pedido.promocoesAplicadas)if(!A.cumulativa)return this.salvePedido(this.pedido),l(null);t||this.salvePedido(this.pedido)}else this.pedido.promocoesAplicadas=[];if(!t)return l(null);this.clienteService.calculeDescontoCupom(t,this.pedido.obtenhaDadosEnvio(r)).then(A=>{if(A&&A.id)u&&(A.aplicarAuto=u.aplicarAuto),this.pedido.apliqueCupom(A);else if(s||u.aplicarAuto){let w={id:-1,codigo:t,aplicarAuto:!0,desconto:0};w.erro=A.erro,this.pedido.apliqueCupom(w)}this.salvePedido(this.pedido),l(null)})})})}atualizeDescontosETaxas(t,r){let s=t.cupom?t.cupom.codigo:null;return new Promise(l=>{this.atualizeValorDesconto(s,r).then(()=>{this.atualizeTaxaDeEntrega(t).then(u=>{this.pedido=t,this.salvePedido(this.pedido),l(u)})})})}notifiqueAdicionouCarrinho(t){super.facaPost("/carrinho/adicione-item",t)}notifiqueInicioCheckout(t,r){if(typeof gtag<"u"){const s=this.pedido.itens.map(l=>({id:l.produto.id,name:l.produto.nome,category:l.produto.categoria?l.produto.categoria.nome:"Sem Categoria",quantity:l.qtde,price:l.total/l.qtde}));gtag("event","begin_checkout",{currency:"BRL",value:this.pedido.total,items:s})}super.facaPost("/carrinho/inicie-checkout",{pedido:t,idEvento:r})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Qi),n.LFG(ka),n.LFG(wc),n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),e3=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){let I;this.router=t,this.autorizacao=r,this.ngxSmartBannerService=s,this.viewContainerRef=l,this.activatedRoute=u,this.cookieService=p,this.constantsService=y,this.carrinhoService=A,this.platform=w,this.title="loja",this.exibindoBanner=!1,this.router.events.subscribe(P=>{P instanceof Ac&&window.ga&&(window.ga("set","page",P.urlAfterRedirects),window.ga("send","pageview"),window.analytics&&(window.ga("custom.set","page",P.urlAfterRedirects),window.ga("custom.send","pageview")),window.dataLayer&&window.dataLayer.push({event:"pageview"}))}),this.carregueEmpresaExibaBanner(),window.addEventListener("beforeinstallprompt",P=>{this.carregueEmpresaExibaBanner(),I=P})}carregueEmpresaExibaBanner(){this.constantsService.empresa$.subscribe(t=>{!t||(this.ajusteVariaveisTema(t),"quiosque"!==t.tema&&(this.empresa=t,window.tema=t.tema,this.constantsService.moduloApp$.subscribe(r=>{this.possuiApp=r,this.possuiApp&&this.exibaBanner()})))})}exibaBanner(){if(!this.empresa.appIos&&this.platform.IOS||window.Flutter||window.flutter_inappwebview)return;this.cookieService.delete("smartbanner_closed"),this.ngxSmartBannerService.onOpen.subscribe(()=>{this.exibindoBanner=!0}),this.ngxSmartBannerService.onClose.subscribe(()=>{this.exibindoBanner=!1});const t=`https://${this.empresa.dominio}.meucardapio.ai/images/empresa/`+this.empresa?.logo;this.ngxSmartBannerService.initialize({viewContainerRef:this.viewContainerRef,daysHidden:0,daysReminder:0,closeLabel:"Fechar",author:this.empresa.nome,title:"Baixe agora o app",price:"Gratuito",priceSuffix:{ios:" - na Play Store",android:" - no Google Play"},icon:{ios:t,android:t},rating:{ios:5,android:5},buttonLabel:"Download",buttonUrl:{android:"https://play.google.com/store/apps/details?id=ai.meucardapio."+this.empresa.dominio,ios:this.empresa.appIos}})}extractHmFromUrl(t){const r=t.match(/\/local\/([a-zA-Z0-9]+)/);return r?r[1]:null}ngOnInit(){this.router.events.subscribe(t=>{if(t instanceof Ac&&!this.constantsService.carregou){const r=this.extractHmFromUrl(t.urlAfterRedirects);this.inicializePedido(r).then(s=>{this.constantsService.recarregueEmpresa(null!=r||s&&null!=s.mesa)})}}),this.estahNoApp()&&this.autorizacao.estaLogado().then(t=>{if(t.logado){const r=this.autorizacao.getUsuario();this.notifiqueAppFlutter({tipo:"usuario",usuario:r})}})}inicializePedido(t){return new Promise(r=>{t?this.carrinhoService.obtenhaMesa(t).then(s=>{s?(s.hash=t,r(this.carrinhoService.obtenhaPedido(s))):r(this.carrinhoService.obtenhaPedido({expirada:!0}))}):r(this.carrinhoService.obtenhaPedido())})}estahNoApp(){return window.Flutter||window.flutter_inappwebview}notifiqueAppFlutter(t){window.Flutter&&window.Flutter.postMessage(JSON.stringify(t)),window.flutter_inappwebview&&window.flutter_inappwebview.logou(t)}ajusteVariaveisTema(t){t.temaPersonalizado&&(document.documentElement.style.setProperty("--cor-fundo",t.temaPersonalizado.corFundo||"#f7f8f8"),document.documentElement.style.setProperty("--cor-texto",t.temaPersonalizado.corTextoFundo||"inherit"),document.documentElement.style.setProperty("--cor-texto-primaria",t.temaPersonalizado.corTextoPrimaria||"inherit"),document.documentElement.style.setProperty("--cor-texto-secundaria",t.temaPersonalizado.corTextoSecundaria||"inherit"),document.documentElement.style.setProperty("--cor-texto-muted",t.temaPersonalizado.corTexto?`color-mix(in srgb, ${t.temaPersonalizado.corTexto} 70%, black)`:"#6c757d"),document.documentElement.style.setProperty("--cor-botao",t.temaPersonalizado.corBotao||"#007bff"),document.documentElement.style.setProperty("--cor-texto-botao",t.temaPersonalizado.corTextoBotao||"#007bff"),document.documentElement.style.setProperty("--cor-preco-adicional",t.temaPersonalizado.corPrecoAdicional||"inherit"),document.documentElement.style.setProperty("--cor-fundo-site",t.temaPersonalizado.corFundoDoSite||"#f7f8f8"))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Qi),n.Y36(JM),n.Y36(n.s_b),n.Y36(ci),n.Y36(QM),n.Y36(gi),n.Y36(Oi),n.Y36(Da))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-root"]],decls:2,vars:2,consts:[["id","div_container"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0),n._UZ(1,"router-outlet"),n.qZA()),2&t&&n.ekj("banner",r.exibindoBanner)},dependencies:[$b],styles:[".carrinho_desktop[_ngcontent-%COMP%]{display:none;border-right:solid 1px #efefef;border-left:solid 1px #e2e2e2;position:fixed;height:100%;right:0}@media (min-width: 1025px){.carrinho_desktop[_ngcontent-%COMP%]{display:block}}.banner[_ngcontent-%COMP%]{margin-top:90px}"]}),i})();const Au=new md(gv);function xu(i,o=Au){return t=>t.lift(new P2(i,o))}class P2{constructor(o,t){this.dueTime=o,this.scheduler=t}call(o,t){return t.subscribe(new O2(o,this.dueTime,this.scheduler))}}class O2 extends Ji.L{constructor(o,t,r){super(o),this.dueTime=t,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(o){this.clearDebounce(),this.lastValue=o,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(eg,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:o}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(o)}}clearDebounce(){const o=this.debouncedSubscription;null!==o&&(this.remove(o),o.unsubscribe(),this.debouncedSubscription=null)}}function eg(i){i.debouncedNext()}function Z_(i){return o=>o.lift(new ON(i))}class ON{constructor(o){this.total=o}call(o,t){return t.subscribe(new Zf(o,this.total))}}class Zf extends Ji.L{constructor(o,t){super(o),this.total=t,this.count=0}_next(o){++this.count>this.total&&this.destination.next(o)}}function tg(i,o){return t=>t.lift(new N2(i,o))}class N2{constructor(o,t){this.compare=o,this.keySelector=t}call(o,t){return t.subscribe(new oj(o,this.compare,this.keySelector))}}class oj extends Ji.L{constructor(o,t,r){super(o),this.keySelector=r,this.hasKey=!1,"function"==typeof t&&(this.compare=t)}compare(o,t){return o===t}_next(o){let t;try{const{keySelector:s}=this;t=s?s(o):o}catch(s){return this.destination.error(s)}let r=!1;if(this.hasKey)try{const{compare:s}=this;r=s(this.key,t)}catch(s){return this.destination.error(s)}else this.hasKey=!0;r||(this.key=t,this.destination.next(o))}}function Si(i){return o=>o.lift(new v3(i))}class v3{constructor(o){this.notifier=o}call(o,t){const r=new rj(o),s=(0,Kr.ft)(this.notifier,new Kr.IY(r));return s&&!r.seenValue?(r.add(s),t.subscribe(r)):r}}class rj extends Kr.Ds{constructor(o){super(o),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function xp(i,o=0){return function NN(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}(i)?Number(i):o}function y3(i){return Array.isArray(i)?i:[i]}let z_=(()=>{class i{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),R2=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[z_]}),i})();const C3=new Set;let ig,A3=(()=>{class i{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):T3}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&function x3(i){if(!C3.has(i))try{ig||(ig=document.createElement("style"),ig.setAttribute("type","text/css"),document.head.appendChild(ig)),ig.sheet&&(ig.sheet.insertRule(`@media ${i} {body{ }}`,0),C3.add(i))}catch(o){console.error(o)}}(t),this._matchMedia(t)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Da))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function T3(i){return{matches:"all"===i||""===i,media:i,addListener:()=>{},removeListener:()=>{}}}let FN=(()=>{class i{constructor(t,r){this._mediaMatcher=t,this._zone=r,this._queries=new Map,this._destroySubject=new Ht.xQ}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return S3(y3(t)).some(s=>this._registerQuery(s).mql.matches)}observe(t){let l=bl(S3(y3(t)).map(u=>this._registerQuery(u).observable));return l=W(l.pipe($i(1)),l.pipe(Z_(1),xu(0))),l.pipe((0,ft.U)(u=>{const p={matches:!1,breakpoints:{}};return u.forEach(({matches:y,query:A})=>{p.matches=p.matches||y,p.breakpoints[A]=y}),p}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const r=this._mediaMatcher.matchMedia(t),l={observable:new No.y(u=>{const p=y=>this._zone.run(()=>u.next(y));return r.addListener(p),()=>{r.removeListener(p)}}).pipe(vl(r),(0,ft.U)(({matches:u})=>({query:t,matches:u})),Si(this._destroySubject)),mql:r};return this._queries.set(t,l),l}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(A3),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function S3(i){return i.map(o=>o.split(",")).reduce((o,t)=>o.concat(t)).map(o=>o.trim())}const O3="cdk-high-contrast-black-on-white",N3="cdk-high-contrast-white-on-black",J_="cdk-high-contrast-active";let L3=(()=>{class i{constructor(t,r){this._platform=t,this._document=r,this._breakpointSubscription=(0,n.f3M)(FN).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const r=this._document.defaultView||window,s=r&&r.getComputedStyle?r.getComputedStyle(t):null,l=(s&&s.backgroundColor||"").replace(/ /g,"");switch(t.remove(),l){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return 2;case"rgb(255,255,255)":case"rgb(255,250,239)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(J_,O3,N3),this._hasCheckedHighContrastMode=!0;const r=this.getHighContrastMode();1===r?t.add(J_,O3):2===r&&t.add(J_,N3)}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Da),n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),R3=(()=>{class i{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(L3))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[R2]}),i})(),U3=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const a8=new n.OlP("cdk-dir-doc",{providedIn:"root",factory:function s8(){return(0,n.f3M)(ie)}}),U2=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Mc=(()=>{class i{constructor(t){if(this.value="ltr",this.change=new n.vpe,t){const s=t.documentElement?t.documentElement.dir:null;this.value=function l8(i){const o=i?.toLowerCase()||"";return"auto"===o&&typeof navigator<"u"&&navigator?.language?U2.test(navigator.language)?"rtl":"ltr":"rtl"===o?"rtl":"ltr"}((t.body?t.body.dir:null)||s||"ltr")}}ngOnDestroy(){this.change.complete()}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(a8,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),K_=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const j3=new n.GfV("14.2.7"),Z2=new n.GfV("11.2.10"),G3=new n.OlP("mat-sanity-checks",{providedIn:"root",factory:function z3(){return!0}});let zf,Tu=(()=>{class i{constructor(t,r,s){this._hasDoneGlobalChecks=!1,this._document=s,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=r,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getWindow(){const t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}_checksAreEnabled(){return(0,n.X6Q)()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){if(!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme||!this._document.body||"function"!=typeof getComputedStyle)return;const r=this._document.createElement("div");r.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(r);const s=getComputedStyle(r);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(r)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Z2.full!==j3.full&&console.warn("The Angular Material version ("+Z2.full+") does not match the Angular CDK version ("+j3.full+").\nPlease ensure the versions of these two packages exactly match.")}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(L3),n.LFG(G3,8),n.LFG(ie))},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[K_,K_]}),i})();try{zf=typeof Intl<"u"}catch{zf=!1}let Iv=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Tu,Jl,Tu]}),i})();var Ko=S(8623);function jn(i,o,t,r){return(0,cO.m)(t)&&(r=t,t=void 0),r?jn(i,o,t).pipe((0,ft.U)(s=>(0,Qr.k)(s)?r(...s):r(s))):new No.y(s=>{Ev(i,o,function l(u){s.next(arguments.length>1?Array.prototype.slice.call(arguments):u)},s,t)})}function Ev(i,o,t,r,s){let l;if(function W2(i){return i&&"function"==typeof i.addEventListener&&"function"==typeof i.removeEventListener}(i)){const u=i;i.addEventListener(o,t,s),l=()=>u.removeEventListener(o,t,s)}else if(function Q2(i){return i&&"function"==typeof i.on&&"function"==typeof i.off}(i)){const u=i;i.on(o,t),l=()=>u.off(o,t)}else if(function cD(i){return i&&"function"==typeof i.addListener&&"function"==typeof i.removeListener}(i)){const u=i;i.addListener(o,t),l=()=>u.removeListener(o,t)}else{if(!i||!i.length)throw new TypeError("Invalid event target");for(let u=0,p=i.length;u<p;u++)Ev(i[u],o,t,r,s)}r.add(l)}function K2(i){return!(0,Qr.k)(i)&&i-parseFloat(i)+1>=0}function o1(i=0,o,t){let r=-1;return K2(o)?r=Number(o)<1?1:Number(o):(0,Vl.K)(o)&&(t=o),(0,Vl.K)(t)||(t=Au),new No.y(s=>{const l=K2(i)?i:+i-t.now();return t.schedule(I8,l,{index:0,period:r,subscriber:s})})}function I8(i){const{index:o,period:t,subscriber:r}=i;if(r.next(o),!r.closed){if(-1===t)return r.complete();i.index=o+1,this.schedule(i,t)}}class Wl{}const xl="*";function Tp(i,o){return{type:7,name:i,definitions:o,options:{}}}function Wi(i,o=null){return{type:4,styles:o,timings:i}}function r1(i,o=null){return{type:2,steps:i,options:o}}function Kt(i){return{type:6,styles:i,offset:null}}function Ad(i,o,t){return{type:0,name:i,styles:o,options:t}}function Dc(i,o,t=null){return{type:1,expr:i,animation:o,options:t}}function pD(i){Promise.resolve().then(i)}class Pv{constructor(o=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=o+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){pD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){const t="start"==o?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class L8{constructor(o){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=o;let t=0,r=0,s=0;const l=this.players.length;0==l?pD(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++t==l&&this._onFinish()}),u.onDestroy(()=>{++r==l&&this._onDestroy()}),u.onStart(()=>{++s==l&&this._onStart()})}),this.totalTime=this.players.reduce((u,p)=>Math.max(u,p.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){const t=o*this.totalTime;this.players.forEach(r=>{const s=r.totalTime?Math.min(1,t/r.totalTime):1;r.setPosition(s)})}getPosition(){const o=this.players.reduce((t,r)=>null===t||r.totalTime>t.totalTime?r:t,null);return null!=o?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){const t="start"==o?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}const gD=new class a1 extends md{flush(o){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,l=t.length;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while(++s<l&&(o=t.shift()));if(this.active=!1,r){for(;++s<l&&(o=t.shift());)o.unsubscribe();throw r}}}(class hD extends gv{constructor(o,t){super(o,t),this.scheduler=o,this.work=t}requestAsyncId(o,t,r=0){return null!==r&&r>0?super.requestAsyncId(o,t,r):(o.actions.push(this),o.scheduled||(o.scheduled=requestAnimationFrame(()=>o.flush(null))))}recycleAsyncId(o,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(o,t,r);0===o.actions.length&&(cancelAnimationFrame(t),o.scheduled=void 0)}});let R8=1;const mD=Promise.resolve(),Nv={};function _D(i){return i in Nv&&(delete Nv[i],!0)}const bD={setImmediate(i){const o=R8++;return Nv[o]=!0,mD.then(()=>_D(o)&&i()),o},clearImmediate(i){_D(i)}},Lv=new class CD extends md{flush(o){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let r,s=-1,l=t.length;o=o||t.shift();do{if(r=o.execute(o.state,o.delay))break}while(++s<l&&(o=t.shift()));if(this.active=!1,r){for(;++s<l&&(o=t.shift());)o.unsubscribe();throw r}}}(class yD extends gv{constructor(o,t){super(o,t),this.scheduler=o,this.work=t}requestAsyncId(o,t,r=0){return null!==r&&r>0?super.requestAsyncId(o,t,r):(o.actions.push(this),o.scheduled||(o.scheduled=bD.setImmediate(o.flush.bind(o,null))))}recycleAsyncId(o,t,r=0){if(null!==r&&r>0||null===r&&this.delay>0)return super.recycleAsyncId(o,t,r);0===o.actions.length&&(bD.clearImmediate(t),o.scheduled=void 0)}});function F8(i){return!!i&&(i instanceof No.y||"function"==typeof i.lift&&"function"==typeof i.subscribe)}class B8{constructor(o){this.durationSelector=o}call(o,t){return t.subscribe(new TD(o,this.durationSelector))}}class TD extends Kr.Ds{constructor(o,t){super(o),this.durationSelector=t,this.hasValue=!1}_next(o){if(this.value=o,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:s}=this;t=s(o)}catch(s){return this.destination.error(s)}const r=(0,Kr.ft)(t,new Kr.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}}clearThrottle(){const{value:o,hasValue:t,throttled:r}=this;r&&(this.remove(r),this.throttled=void 0,r.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(o))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function Kl(i,o=Au){return function xD(i){return function(t){return t.lift(new B8(i))}}(()=>o1(i,o))}class SD{call(o,t){return t.subscribe(new X2(o))}}class X2 extends Ji.L{constructor(o){super(o),this.hasPrev=!1}_next(o){let t;this.hasPrev?t=[this.prev,o]:this.hasPrev=!0,this.prev=o,t&&this.destination.next(t)}}class Y8 extends class Rj{}{constructor(o){super(),this._data=o}connect(){return F8(this._data)?this._data:Et(this._data)}disconnect(){}}class wD{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(o,t,r,s,l){o.forEachOperation((u,p,y)=>{let A,w;null==u.previousIndex?(A=this._insertView(()=>r(u,p,y),y,t,s(u)),w=A?1:0):null==y?(this._detachAndCacheView(p,t),w=3):(A=this._moveView(p,y,t,s(u)),w=2),l&&l({context:A?.context,operation:w,record:u})})}detach(){for(const o of this._viewCache)o.destroy();this._viewCache=[]}_insertView(o,t,r,s){const l=this._insertViewFromCache(t,r);if(l)return void(l.context.$implicit=s);const u=o();return r.createEmbeddedView(u.templateRef,u.context,u.index)}_detachAndCacheView(o,t){const r=t.detach(o);this._maybeCacheView(r,t)}_moveView(o,t,r,s){const l=r.get(o);return r.move(l,t),l.context.$implicit=s,l}_maybeCacheView(o,t){if(this._viewCache.length<this.viewCacheSize)this._viewCache.push(o);else{const r=t.indexOf(o);-1===r?o.destroy():t.remove(r)}}_insertViewFromCache(o,t){const r=this._viewCache.pop();return r&&t.insert(r,o),r||null}}const ex=new n.OlP("_ViewRepeater"),V8=["contentWrapper"],z8=["*"],tx=new n.OlP("VIRTUAL_SCROLL_STRATEGY");class G8{constructor(o,t,r){this._scrolledIndexChange=new Ht.xQ,this.scrolledIndexChange=this._scrolledIndexChange.pipe(tg()),this._viewport=null,this._itemSize=o,this._minBufferPx=t,this._maxBufferPx=r}attach(o){this._viewport=o,this._updateTotalContentSize(),this._updateRenderedRange()}detach(){this._scrolledIndexChange.complete(),this._viewport=null}updateItemAndBufferSize(o,t,r){this._itemSize=o,this._minBufferPx=t,this._maxBufferPx=r,this._updateTotalContentSize(),this._updateRenderedRange()}onContentScrolled(){this._updateRenderedRange()}onDataLengthChanged(){this._updateTotalContentSize(),this._updateRenderedRange()}onContentRendered(){}onRenderedOffsetChanged(){}scrollToIndex(o,t){this._viewport&&this._viewport.scrollToOffset(o*this._itemSize,t)}_updateTotalContentSize(){!this._viewport||this._viewport.setTotalContentSize(this._viewport.getDataLength()*this._itemSize)}_updateRenderedRange(){if(!this._viewport)return;const o=this._viewport.getRenderedRange(),t={start:o.start,end:o.end},r=this._viewport.getViewportSize(),s=this._viewport.getDataLength();let l=this._viewport.measureScrollOffset(),u=this._itemSize>0?l/this._itemSize:0;if(t.end>s){const y=Math.ceil(r/this._itemSize),A=Math.max(0,Math.min(u,s-y));u!=A&&(u=A,l=A*this._itemSize,t.start=Math.floor(u)),t.end=Math.max(0,Math.min(s,t.start+y))}const p=l-t.start*this._itemSize;if(p<this._minBufferPx&&0!=t.start){const y=Math.ceil((this._maxBufferPx-p)/this._itemSize);t.start=Math.max(0,t.start-y),t.end=Math.min(s,Math.ceil(u+(r+this._minBufferPx)/this._itemSize))}else{const y=t.end*this._itemSize-(l+r);if(y<this._minBufferPx&&t.end!=s){const A=Math.ceil((this._maxBufferPx-y)/this._itemSize);A>0&&(t.end=Math.min(s,t.end+A),t.start=Math.max(0,Math.floor(u-this._minBufferPx/this._itemSize)))}}this._viewport.setRenderedRange(t),this._viewport.setRenderedContentOffset(this._itemSize*t.start),this._scrolledIndexChange.next(Math.floor(u))}}function MD(i){return i._scrollStrategy}let DD=(()=>{class i{constructor(){this._itemSize=20,this._minBufferPx=100,this._maxBufferPx=200,this._scrollStrategy=new G8(this.itemSize,this.minBufferPx,this.maxBufferPx)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSize=xp(t)}get minBufferPx(){return this._minBufferPx}set minBufferPx(t){this._minBufferPx=xp(t)}get maxBufferPx(){return this._maxBufferPx}set maxBufferPx(t){this._maxBufferPx=xp(t)}ngOnChanges(){this._scrollStrategy.updateItemAndBufferSize(this.itemSize,this.minBufferPx,this.maxBufferPx)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["cdk-virtual-scroll-viewport","itemSize",""]],inputs:{itemSize:"itemSize",minBufferPx:"minBufferPx",maxBufferPx:"maxBufferPx"},features:[n._Bn([{provide:tx,useFactory:MD,deps:[(0,n.Gpc)(()=>i)]}]),n.TTD]}),i})(),Rv=(()=>{class i{constructor(t,r,s){this._ngZone=t,this._platform=r,this._scrolled=new Ht.xQ,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=s}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const r=this.scrollContainers.get(t);r&&(r.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new No.y(r=>{this._globalSubscription||this._addGlobalListener();const s=t>0?this._scrolled.pipe(Kl(t)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{s.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Et()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(t,r){const s=this.getAncestorScrollContainers(t);return this.scrolled(r).pipe(Wt(l=>!l||s.indexOf(l)>-1))}getAncestorScrollContainers(t){const r=[];return this.scrollContainers.forEach((s,l)=>{this._scrollableContainsElement(l,t)&&r.push(l)}),r}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,r){let s=function ng(i){return i instanceof n.SBq?i.nativeElement:i}(r),l=t.getElementRef().nativeElement;do{if(s==l)return!0}while(s=s.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>jn(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.R0b),n.LFG(Da),n.LFG(ie,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),ID=(()=>{class i{constructor(t,r,s,l){this.elementRef=t,this.scrollDispatcher=r,this.ngZone=s,this.dir=l,this._destroyed=new Ht.xQ,this._elementScrolled=new No.y(u=>this.ngZone.runOutsideAngular(()=>jn(this.elementRef.nativeElement,"scroll").pipe(Si(this._destroyed)).subscribe(u)))}ngOnInit(){this.scrollDispatcher.register(this)}ngOnDestroy(){this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){const r=this.elementRef.nativeElement,s=this.dir&&"rtl"==this.dir.value;null==t.left&&(t.left=s?t.end:t.start),null==t.right&&(t.right=s?t.start:t.end),null!=t.bottom&&(t.top=r.scrollHeight-r.clientHeight-t.bottom),s&&0!=F_()?(null!=t.left&&(t.right=r.scrollWidth-r.clientWidth-t.left),2==F_()?t.left=t.right:1==F_()&&(t.left=t.right?-t.right:t.right)):null!=t.right&&(t.left=r.scrollWidth-r.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){const r=this.elementRef.nativeElement;!function m2(){if(null==Kh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Kh=!1,Kh;if("scrollBehavior"in document.documentElement.style)Kh=!0;else{const i=Element.prototype.scrollTo;Kh=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Kh}()?(null!=t.top&&(r.scrollTop=t.top),null!=t.left&&(r.scrollLeft=t.left)):r.scrollTo(t)}measureScrollOffset(t){const r="left",s="right",l=this.elementRef.nativeElement;if("top"==t)return l.scrollTop;if("bottom"==t)return l.scrollHeight-l.clientHeight-l.scrollTop;const u=this.dir&&"rtl"==this.dir.value;return"start"==t?t=u?s:r:"end"==t&&(t=u?r:s),u&&2==F_()?t==r?l.scrollWidth-l.clientWidth-l.scrollLeft:l.scrollLeft:u&&1==F_()?t==r?l.scrollLeft+l.scrollWidth-l.clientWidth:-l.scrollLeft:t==r?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(Rv),n.Y36(n.R0b),n.Y36(Mc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),i})(),s1=(()=>{class i{constructor(t,r,s){this._platform=t,this._change=new Ht.xQ,this._changeListener=l=>{this._change.next(l)},this._document=s,r.runOutsideAngular(()=>{if(t.isBrowser){const l=this._getWindow();l.addEventListener("resize",this._changeListener),l.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:r,height:s}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+s,right:t.left+r,height:s,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,r=this._getWindow(),s=t.documentElement,l=s.getBoundingClientRect();return{top:-l.top||t.body.scrollTop||r.scrollY||s.scrollTop||0,left:-l.left||t.body.scrollLeft||r.scrollX||s.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Kl(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Da),n.LFG(n.R0b),n.LFG(ie,8))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const nx=new n.OlP("VIRTUAL_SCROLLABLE");let Hj=(()=>{class i extends ID{constructor(t,r,s,l){super(t,r,s,l)}measureViewportSize(t){const r=this.elementRef.nativeElement;return"horizontal"===t?r.clientWidth:r.clientHeight}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(Rv),n.Y36(n.R0b),n.Y36(Mc,8))},i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const Uj=typeof requestAnimationFrame<"u"?gD:Lv;let ix=(()=>{class i extends Hj{constructor(t,r,s,l,u,p,y,A){super(t,p,s,u),this.elementRef=t,this._changeDetectorRef=r,this._scrollStrategy=l,this.scrollable=A,this._platform=(0,n.f3M)(Da),this._detachedSubject=new Ht.xQ,this._renderedRangeSubject=new Ht.xQ,this._orientation="vertical",this._appendOnly=!1,this.scrolledIndexChange=new No.y(w=>this._scrollStrategy.scrolledIndexChange.subscribe(I=>Promise.resolve().then(()=>this.ngZone.run(()=>w.next(I))))),this.renderedRangeStream=this._renderedRangeSubject,this._totalContentSize=0,this._totalContentWidth="",this._totalContentHeight="",this._renderedRange={start:0,end:0},this._dataLength=0,this._viewportSize=0,this._renderedContentOffset=0,this._renderedContentOffsetNeedsRewrite=!1,this._isChangeDetectionPending=!1,this._runAfterChangeDetection=[],this._viewportChanges=bn.w.EMPTY,this._viewportChanges=y.change().subscribe(()=>{this.checkViewportSize()}),this.scrollable||(this.elementRef.nativeElement.classList.add("cdk-virtual-scrollable"),this.scrollable=this)}get orientation(){return this._orientation}set orientation(t){this._orientation!==t&&(this._orientation=t,this._calculateSpacerSize())}get appendOnly(){return this._appendOnly}set appendOnly(t){this._appendOnly=function hn(i){return null!=i&&"false"!=`${i}`}(t)}ngOnInit(){!this._platform.isBrowser||(this.scrollable===this&&super.ngOnInit(),this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._measureViewportSize(),this._scrollStrategy.attach(this),this.scrollable.elementScrolled().pipe(vl(null),Kl(0,Uj)).subscribe(()=>this._scrollStrategy.onContentScrolled()),this._markChangeDetectionNeeded()})))}ngOnDestroy(){this.detach(),this._scrollStrategy.detach(),this._renderedRangeSubject.complete(),this._detachedSubject.complete(),this._viewportChanges.unsubscribe(),super.ngOnDestroy()}attach(t){this.ngZone.runOutsideAngular(()=>{this._forOf=t,this._forOf.dataStream.pipe(Si(this._detachedSubject)).subscribe(r=>{const s=r.length;s!==this._dataLength&&(this._dataLength=s,this._scrollStrategy.onDataLengthChanged()),this._doChangeDetection()})})}detach(){this._forOf=null,this._detachedSubject.next()}getDataLength(){return this._dataLength}getViewportSize(){return this._viewportSize}getRenderedRange(){return this._renderedRange}measureBoundingClientRectWithScrollOffset(t){return this.getElementRef().nativeElement.getBoundingClientRect()[t]}setTotalContentSize(t){this._totalContentSize!==t&&(this._totalContentSize=t,this._calculateSpacerSize(),this._markChangeDetectionNeeded())}setRenderedRange(t){(function $j(i,o){return i.start==o.start&&i.end==o.end})(this._renderedRange,t)||(this.appendOnly&&(t={start:0,end:Math.max(this._renderedRange.end,t.end)}),this._renderedRangeSubject.next(this._renderedRange=t),this._markChangeDetectionNeeded(()=>this._scrollStrategy.onContentRendered()))}getOffsetToRenderedContentStart(){return this._renderedContentOffsetNeedsRewrite?null:this._renderedContentOffset}setRenderedContentOffset(t,r="to-start"){t=this.appendOnly&&"to-start"===r?0:t;const l="horizontal"==this.orientation,u=l?"X":"Y";let y=`translate${u}(${Number((l&&this.dir&&"rtl"==this.dir.value?-1:1)*t)}px)`;this._renderedContentOffset=t,"to-end"===r&&(y+=` translate${u}(-100%)`,this._renderedContentOffsetNeedsRewrite=!0),this._renderedContentTransform!=y&&(this._renderedContentTransform=y,this._markChangeDetectionNeeded(()=>{this._renderedContentOffsetNeedsRewrite?(this._renderedContentOffset-=this.measureRenderedContentSize(),this._renderedContentOffsetNeedsRewrite=!1,this.setRenderedContentOffset(this._renderedContentOffset)):this._scrollStrategy.onRenderedOffsetChanged()}))}scrollToOffset(t,r="auto"){const s={behavior:r};"horizontal"===this.orientation?s.start=t:s.top=t,this.scrollable.scrollTo(s)}scrollToIndex(t,r="auto"){this._scrollStrategy.scrollToIndex(t,r)}measureScrollOffset(t){let r;return r=this.scrollable==this?s=>super.measureScrollOffset(s):s=>this.scrollable.measureScrollOffset(s),Math.max(0,r(t??("horizontal"===this.orientation?"start":"top"))-this.measureViewportOffset())}measureViewportOffset(t){let r;const s="left",l="right",u="rtl"==this.dir?.value;r="start"==t?u?l:s:"end"==t?u?s:l:t||("horizontal"===this.orientation?"left":"top");const p=this.scrollable.measureBoundingClientRectWithScrollOffset(r);return this.elementRef.nativeElement.getBoundingClientRect()[r]-p}measureRenderedContentSize(){const t=this._contentWrapper.nativeElement;return"horizontal"===this.orientation?t.offsetWidth:t.offsetHeight}measureRangeSize(t){return this._forOf?this._forOf.measureRangeSize(t,this.orientation):0}checkViewportSize(){this._measureViewportSize(),this._scrollStrategy.onDataLengthChanged()}_measureViewportSize(){this._viewportSize=this.scrollable.measureViewportSize(this.orientation)}_markChangeDetectionNeeded(t){t&&this._runAfterChangeDetection.push(t),this._isChangeDetectionPending||(this._isChangeDetectionPending=!0,this.ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>{this._doChangeDetection()})))}_doChangeDetection(){this._isChangeDetectionPending=!1,this._contentWrapper.nativeElement.style.transform=this._renderedContentTransform,this.ngZone.run(()=>this._changeDetectorRef.markForCheck());const t=this._runAfterChangeDetection;this._runAfterChangeDetection=[];for(const r of t)r()}_calculateSpacerSize(){this._totalContentHeight="horizontal"===this.orientation?"":`${this._totalContentSize}px`,this._totalContentWidth="horizontal"===this.orientation?`${this._totalContentSize}px`:""}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(tx,8),n.Y36(Mc,8),n.Y36(Rv),n.Y36(s1),n.Y36(nx,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cdk-virtual-scroll-viewport"]],viewQuery:function(t,r){if(1&t&&n.Gf(V8,7),2&t){let s;n.iGM(s=n.CRH())&&(r._contentWrapper=s.first)}},hostAttrs:[1,"cdk-virtual-scroll-viewport"],hostVars:4,hostBindings:function(t,r){2&t&&n.ekj("cdk-virtual-scroll-orientation-horizontal","horizontal"===r.orientation)("cdk-virtual-scroll-orientation-vertical","horizontal"!==r.orientation)},inputs:{orientation:"orientation",appendOnly:"appendOnly"},outputs:{scrolledIndexChange:"scrolledIndexChange"},features:[n._Bn([{provide:ID,useFactory:(o,t)=>o||t,deps:[[new n.FiY,new n.tBr(nx)],i]}]),n.qOj],ngContentSelectors:z8,decls:4,vars:4,consts:[[1,"cdk-virtual-scroll-content-wrapper"],["contentWrapper",""],[1,"cdk-virtual-scroll-spacer"]],template:function(t,r){1&t&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.qZA(),n._UZ(3,"div",2)),2&t&&(n.xp6(3),n.Udp("width",r._totalContentWidth)("height",r._totalContentHeight))},styles:["cdk-virtual-scroll-viewport{display:block;position:relative;transform:translateZ(0)}.cdk-virtual-scrollable{overflow:auto;will-change:scroll-position;contain:strict;-webkit-overflow-scrolling:touch}.cdk-virtual-scroll-content-wrapper{position:absolute;top:0;left:0;contain:content}[dir=rtl] .cdk-virtual-scroll-content-wrapper{right:0;left:auto}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper{min-height:100%}.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-horizontal .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-left:0;padding-right:0;margin-left:0;margin-right:0;border-left-width:0;border-right-width:0;outline:none}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper{min-width:100%}.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>dl:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ol:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>table:not([cdkVirtualFor]),.cdk-virtual-scroll-orientation-vertical .cdk-virtual-scroll-content-wrapper>ul:not([cdkVirtualFor]){padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;border-top-width:0;border-bottom-width:0;outline:none}.cdk-virtual-scroll-spacer{height:1px;transform-origin:0 0;flex:0 0 auto}[dir=rtl] .cdk-virtual-scroll-spacer{transform-origin:100% 0}"],encapsulation:2,changeDetection:0}),i})();function ED(i,o,t){if(!t.getBoundingClientRect)return 0;const s=t.getBoundingClientRect();return"horizontal"===i?"start"===o?s.left:s.right:"start"===o?s.top:s.bottom}let J8=(()=>{class i{constructor(t,r,s,l,u,p){this._viewContainerRef=t,this._template=r,this._differs=s,this._viewRepeater=l,this._viewport=u,this.viewChange=new Ht.xQ,this._dataSourceChanges=new Ht.xQ,this.dataStream=this._dataSourceChanges.pipe(vl(null),function H8(){return i=>i.lift(new SD)}(),kr(([y,A])=>this._changeDataSource(y,A)),function Lj(i,o,t){let r;return r=i&&"object"==typeof i?i:{bufferSize:i,windowTime:o,refCount:!1,scheduler:t},s=>s.lift(function $8({bufferSize:i=Number.POSITIVE_INFINITY,windowTime:o=Number.POSITIVE_INFINITY,refCount:t,scheduler:r}){let s,u,l=0,p=!1,y=!1;return function(w){let I;l++,!s||p?(p=!1,s=new mv(i,o,r),I=s.subscribe(this),u=w.subscribe({next(P){s.next(P)},error(P){p=!0,s.error(P)},complete(){y=!0,u=void 0,s.complete()}}),y&&(u=void 0)):I=s.subscribe(this),this.add(()=>{l--,I.unsubscribe(),I=void 0,u&&!y&&t&&0===l&&(u.unsubscribe(),u=void 0,s=void 0)})}}(r))}(1)),this._differ=null,this._needsUpdate=!1,this._destroyed=new Ht.xQ,this.dataStream.subscribe(y=>{this._data=y,this._onRenderedDataChange()}),this._viewport.renderedRangeStream.pipe(Si(this._destroyed)).subscribe(y=>{this._renderedRange=y,this.viewChange.observers.length&&p.run(()=>this.viewChange.next(this._renderedRange)),this._onRenderedDataChange()}),this._viewport.attach(this)}get cdkVirtualForOf(){return this._cdkVirtualForOf}set cdkVirtualForOf(t){this._cdkVirtualForOf=t,function U8(i){return i&&"function"==typeof i.connect&&!(i instanceof Wr.c)}(t)?this._dataSourceChanges.next(t):this._dataSourceChanges.next(new Y8(F8(t)?t:Array.from(t||[])))}get cdkVirtualForTrackBy(){return this._cdkVirtualForTrackBy}set cdkVirtualForTrackBy(t){this._needsUpdate=!0,this._cdkVirtualForTrackBy=t?(r,s)=>t(r+(this._renderedRange?this._renderedRange.start:0),s):void 0}set cdkVirtualForTemplate(t){t&&(this._needsUpdate=!0,this._template=t)}get cdkVirtualForTemplateCacheSize(){return this._viewRepeater.viewCacheSize}set cdkVirtualForTemplateCacheSize(t){this._viewRepeater.viewCacheSize=xp(t)}measureRangeSize(t,r){if(t.start>=t.end)return 0;const s=t.start-this._renderedRange.start,l=t.end-t.start;let u,p;for(let y=0;y<l;y++){const A=this._viewContainerRef.get(y+s);if(A&&A.rootNodes.length){u=p=A.rootNodes[0];break}}for(let y=l-1;y>-1;y--){const A=this._viewContainerRef.get(y+s);if(A&&A.rootNodes.length){p=A.rootNodes[A.rootNodes.length-1];break}}return u&&p?ED(r,"end",p)-ED(r,"start",u):0}ngDoCheck(){if(this._differ&&this._needsUpdate){const t=this._differ.diff(this._renderedItems);t?this._applyChanges(t):this._updateContext(),this._needsUpdate=!1}}ngOnDestroy(){this._viewport.detach(),this._dataSourceChanges.next(void 0),this._dataSourceChanges.complete(),this.viewChange.complete(),this._destroyed.next(),this._destroyed.complete(),this._viewRepeater.detach()}_onRenderedDataChange(){!this._renderedRange||(this._renderedItems=this._data.slice(this._renderedRange.start,this._renderedRange.end),this._differ||(this._differ=this._differs.find(this._renderedItems).create((t,r)=>this.cdkVirtualForTrackBy?this.cdkVirtualForTrackBy(t,r):r)),this._needsUpdate=!0)}_changeDataSource(t,r){return t&&t.disconnect(this),this._needsUpdate=!0,r?r.connect(this):Et()}_updateContext(){const t=this._data.length;let r=this._viewContainerRef.length;for(;r--;){const s=this._viewContainerRef.get(r);s.context.index=this._renderedRange.start+r,s.context.count=t,this._updateComputedContextProperties(s.context),s.detectChanges()}}_applyChanges(t){this._viewRepeater.applyChanges(t,this._viewContainerRef,(l,u,p)=>this._getEmbeddedViewArgs(l,p),l=>l.item),t.forEachIdentityChange(l=>{this._viewContainerRef.get(l.currentIndex).context.$implicit=l.item});const r=this._data.length;let s=this._viewContainerRef.length;for(;s--;){const l=this._viewContainerRef.get(s);l.context.index=this._renderedRange.start+s,l.context.count=r,this._updateComputedContextProperties(l.context)}}_updateComputedContextProperties(t){t.first=0===t.index,t.last=t.index===t.count-1,t.even=t.index%2==0,t.odd=!t.even}_getEmbeddedViewArgs(t,r){return{templateRef:this._template,context:{$implicit:t.item,cdkVirtualForOf:this._cdkVirtualForOf,index:-1,count:-1,first:!1,last:!1,odd:!1,even:!1},index:r}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4),n.Y36(ex),n.Y36(ix,4),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","cdkVirtualFor","","cdkVirtualForOf",""]],inputs:{cdkVirtualForOf:"cdkVirtualForOf",cdkVirtualForTrackBy:"cdkVirtualForTrackBy",cdkVirtualForTemplate:"cdkVirtualForTemplate",cdkVirtualForTemplateCacheSize:"cdkVirtualForTemplateCacheSize"},features:[n._Bn([{provide:ex,useClass:wD}])]}),i})(),l1=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),jj=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[K_,l1,K_,l1]}),i})(),QD=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Tu,U3,Iv,R2,R3,Tu]}),i})();var d1=function i(){},Jf=S(4514),WD=function(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)},ux=function(i,o){return function(t,r){o(t,r,i)}},u1=function(){function i(t,r,s,l,u,p){this._appBase=t,this._location=r,this._config=s,this._http=s&&!s.bypassHttpClientInterceptorChain?l:new Wo(u),this._renderer=p.createRenderer(null,null),this.setBaseUrl(),o._cache||(o._cache=new Map),o._inProgressReqs||(o._inProgressReqs=new Map)}var o;return o=i,i.prototype.getSVG=function(t,r,s){var l=this;void 0===s&&(s=!0);var u=(r?this.getAbsoluteUrl(t):t).replace(/#.+$/,"");if(s&&o._cache.has(u))return Et(this._cloneSVG(o._cache.get(u)));if(o._inProgressReqs.has(u))return o._inProgressReqs.get(u);var p=this._http.get(u,{responseType:"text"}).pipe(yf(function(){o._inProgressReqs.delete(u)}),(0,Jf.B)(),(0,ft.U)(function(y){var A=l._svgElementFromString(y);return o._cache.set(u,A),l._cloneSVG(A)}));return o._inProgressReqs.set(u,p),p},i.prototype.setBaseUrl=function(){this._config?this._baseUrl=this._config.baseUrl:null!==this._appBase?this._baseUrl=this._appBase:null!==this._location&&(this._baseUrl=this._location.getBaseHrefFromDOM())},i.prototype.getAbsoluteUrl=function(t){this._baseUrl&&!/^https?:\/\//i.test(t)&&0===(t=this._baseUrl+t).indexOf("//")&&(t=t.substring(1));var r=this._renderer.createElement("BASE");return r.href=t,r.href},i.prototype._svgElementFromString=function(t){var r=this._renderer.createElement("DIV");r.innerHTML=t;var s=r.querySelector("svg");if(!s)throw new Error("No SVG found in loaded contents");return s},i.prototype._cloneSVG=function(t){return t.cloneNode(!0)},i.ngInjectableDef=n.Yz7({factory:function(){return new i(n.LFG(ln,8),n.LFG(pe,8),n.LFG(d1,8),n.LFG(Wo),n.LFG(Jh),n.LFG(n.FYo))},token:i,providedIn:"root"}),i=o=function(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}([ux(0,(0,n.FiY)()),ux(0,(0,n.tBr)(ln)),ux(1,(0,n.FiY)()),ux(2,(0,n.FiY)()),WD("design:paramtypes",[String,pe,d1,Wo,Jh,n.FYo])],i),i.\u0275fac=function(r){return new(r||i)(n.LFG(ln,8),n.LFG(pe,8),n.LFG(d1,8),n.LFG(Wo),n.LFG(Jh),n.LFG(n.FYo))},i.\u0275prov=n.Yz7({token:i,factory:function(t){return i.\u0275fac(t)},providedIn:"root"}),i}(),XD=function(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)},p1=function(){function i(o){this._ranScripts={},this._renderer=o.createRenderer(null,null)}return i.prototype.insertEl=function(o,t,r,s,l){if(s&&!l){var u=o._prevSVG&&o._prevSVG.parentNode;u&&this._renderer.removeChild(u,o._prevSVG),t.innerHTML=""}l?this._renderer.insertBefore(t,r,t.firstChild):this._renderer.appendChild(t,r),"svg"===r.nodeName&&(o._prevSVG=r)},i.prototype.evalScripts=function(o,t,r){for(var s=o.querySelectorAll("script"),l=[],u=0;u<s.length;u++){var p=s[u].getAttribute("type");p&&"application/ecmascript"!==p&&"application/javascript"!==p||(l.push(s[u].innerText||s[u].textContent),this._renderer.removeChild(s[u].parentNode,s[u]))}if(l.length>0&&("always"===r||"once"===r&&!this._ranScripts[t])){for(u=0;u<l.length;u++)new Function(l[u])(window);this._ranScripts[t]=!0}},i.ngInjectableDef=n.Yz7({factory:function(){return new i(n.LFG(n.FYo))},token:i,providedIn:"root"}),i=function(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}([XD("design:paramtypes",[n.FYo])],i),i.\u0275fac=function(t){return new(t||i)(n.LFG(n.FYo))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)},providedIn:"root"}),i}(),Qf=function(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l},Wf=function(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)},h1=function(){function i(o,t){this._inlineSVGService=o,this._el=t}return i.prototype.ngAfterViewInit=function(){this._updateContent()},i.prototype.ngOnChanges=function(o){o.content&&this._updateContent()},i.prototype._updateContent=function(){this._inlineSVGService.insertEl(this.context,this._el.nativeElement,this.content,this.replaceContents,this.prepend)},Qf([(0,n.IIB)(),Wf("design:type",Wj)],i.prototype,"context",void 0),Qf([(0,n.IIB)(),Wf("design:type",Object)],i.prototype,"content",void 0),Qf([(0,n.IIB)(),Wf("design:type",Boolean)],i.prototype,"replaceContents",void 0),Qf([(0,n.IIB)(),Wf("design:type",Boolean)],i.prototype,"prepend",void 0),(i=Qf([Wf("design:paramtypes",[p1,n.SBq])],i)).\u0275fac=function(t){return new(t||i)(n.Y36(p1),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["inline-svg"]],inputs:{context:"context",content:"content",replaceContents:"replaceContents",prepend:"prepend"},features:[n.TTD],decls:0,vars:0,template:function(t,r){},encapsulation:2,changeDetection:0}),i}();function px(i,o){for(var t=0;t<o.length;t++)i.getAttribute(o[t])&&i.removeAttribute(o[t]);var s=i.getElementsByTagName("*");for(t=0;t<s.length;t++)px(s[t],o)}var Rs=function(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l},Fs=function(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)},p9=function(i,o){return function(t,r){o(t,r,i)}},Wj=function(){function i(o,t,r,s,l,u,p,y){this._el=o,this._viewContainerRef=t,this._resolver=r,this._svgCache=s,this._renderer=l,this._inlineSVGService=u,this._config=p,this.platformId=y,this.resolveSVGUrl=!0,this.replaceContents=!0,this.prepend=!1,this.injectComponent=!1,this.cacheSVG=!0,this.forceEvalStyles=!1,this.evalScripts="always",this.onSVGInserted=new n.vpe,this.onSVGFailed=new n.vpe,this._supportsSVG=function ek(){return typeof SVGRect<"u"}(),!Jd(this.platformId)&&!this._supportsSVG&&this._fail("Embed SVG are not supported by this browser")}return i.prototype.ngOnInit=function(){!this._isValidPlatform()||this._isSSRDisabled()||this._insertSVG()},i.prototype.ngOnChanges=function(o){if(this._isValidPlatform()&&!this._isSSRDisabled()){var t=Boolean(o.setSVGAttributes);(o.inlineSVG||t)&&this._insertSVG(t)}},i.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},i.prototype._insertSVG=function(o){var t=this;if(void 0===o&&(o=!1),Jd(this.platformId)||this._supportsSVG){if(!this.inlineSVG)return void this._fail("No URL passed to [inlineSVG]");!o&&this.inlineSVG===this._prevUrl||(this._prevUrl=this.inlineSVG,this._subscription=this._svgCache.getSVG(this.inlineSVG,this.resolveSVGUrl,this.cacheSVG).subscribe(function(r){if(function Hv(i){return"#"===i.charAt(0)||i.indexOf(".svg#")>-1}(t.inlineSVG)){var s=t.inlineSVG.split("#")[1];r=function u9(i,o,t){var r=o.querySelector('[id="'+t+'"]');if(!r)throw new Error('Symbol "'+t+'" not found');var s=i.createElement("svg","svg");i.appendChild(s,r);var l=i.createElement("use","svg");return i.setAttribute(l,"href","#"+t,"xlink"),i.appendChild(s,l),s}(t._renderer,r,s)}t._processSvg(r)},function(r){t._fail(r)}))}},i.prototype._processSvg=function(o){if(o){if(this.removeSVGAttributes&&Wa(this.platformId)&&px(o,this.removeSVGAttributes),this.setSVGAttributes&&function tk(i,o){for(var t in o)i.setAttribute(t,o[t])}(o,this.setSVGAttributes),this.onSVGLoaded&&(o=this.onSVGLoaded(o,this._el.nativeElement)),this._insertEl(o),Wa(this.platformId)&&this._inlineSVGService.evalScripts(o,this.inlineSVG,this.evalScripts),this.forceEvalStyles){var t=o.querySelectorAll("style");Array.from(t).forEach(function(r){return r.textContent+=""})}this.onSVGInserted.emit(o)}},i.prototype._insertEl=function(o){if(this.injectComponent){if(!this._svgComp){var t=this._resolver.resolveComponentFactory(h1);this._svgComp=this._viewContainerRef.createComponent(t)}this._svgComp.instance.context=this,this._svgComp.instance.replaceContents=this.replaceContents,this._svgComp.instance.prepend=this.prepend,this._svgComp.instance.content=o,this._renderer.appendChild(this._el.nativeElement,this._svgComp.injector.get(h1)._el.nativeElement)}else this._inlineSVGService.insertEl(this,this._el.nativeElement,o,this.replaceContents,this.prepend)},i.prototype._fail=function(o){if(this.onSVGFailed.emit(o),this.fallbackImgUrl){var t=this._renderer.createElement("IMG");this._renderer.setAttribute(t,"src",this.fallbackImgUrl),this._insertEl(t)}},i.prototype._isValidPlatform=function(){return Jd(this.platformId)||Wa(this.platformId)},i.prototype._isSSRDisabled=function(){return Jd(this.platformId)&&this._config&&this._config.clientOnly},Rs([(0,n.IIB)(),Fs("design:type",String)],i.prototype,"inlineSVG",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"resolveSVGUrl",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"replaceContents",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"prepend",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"injectComponent",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"cacheSVG",void 0),Rs([(0,n.IIB)(),Fs("design:type",Object)],i.prototype,"setSVGAttributes",void 0),Rs([(0,n.IIB)(),Fs("design:type",Array)],i.prototype,"removeSVGAttributes",void 0),Rs([(0,n.IIB)(),Fs("design:type",Boolean)],i.prototype,"forceEvalStyles",void 0),Rs([(0,n.IIB)(),Fs("design:type",String)],i.prototype,"evalScripts",void 0),Rs([(0,n.IIB)(),Fs("design:type",String)],i.prototype,"fallbackImgUrl",void 0),Rs([(0,n.IIB)(),Fs("design:type",Function)],i.prototype,"onSVGLoaded",void 0),Rs([(0,n.r_U)(),Fs("design:type",n.vpe)],i.prototype,"onSVGInserted",void 0),Rs([(0,n.r_U)(),Fs("design:type",n.vpe)],i.prototype,"onSVGFailed",void 0),(i=Rs([p9(6,(0,n.FiY)()),p9(7,(0,n.tBr)(n.Lbi)),Fs("design:paramtypes",[n.SBq,n.s_b,n._Vd,u1,n.Qsj,p1,d1,Object])],i)).\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.s_b),n.Y36(n._Vd),n.Y36(u1),n.Y36(n.Qsj),n.Y36(p1),n.Y36(d1,8),n.Y36(n.Lbi))},i.\u0275dir=n.lG2({type:i,selectors:[["","inlineSVG",""]],inputs:{resolveSVGUrl:"resolveSVGUrl",replaceContents:"replaceContents",prepend:"prepend",injectComponent:"injectComponent",cacheSVG:"cacheSVG",forceEvalStyles:"forceEvalStyles",evalScripts:"evalScripts",inlineSVG:"inlineSVG",setSVGAttributes:"setSVGAttributes",removeSVGAttributes:"removeSVGAttributes",fallbackImgUrl:"fallbackImgUrl",onSVGLoaded:"onSVGLoaded"},outputs:{onSVGInserted:"onSVGInserted",onSVGFailed:"onSVGFailed"},features:[n._Bn([u1]),n.TTD]}),i}(),g9=function(){function i(){}var o;return o=i,i.forRoot=function(t){return{ngModule:o,providers:[{provide:d1,useValue:t}]}},i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i}(),f9=S(6549);function hx(i,o){return new No.y(t=>{const r=i.length;if(0===r)return void t.complete();const s=new Array(r);let l=0,u=0;for(let p=0;p<r;p++){const y=(0,Yo.D)(i[p]);let A=!1;t.add(y.subscribe({next:w=>{A||(A=!0,u++),s[p]=w},error:w=>t.error(w),complete:()=>{l++,(l===r||!A)&&(u===r&&t.next(o?o.reduce((w,I,P)=>(w[I]=s[P],w),{}):s),t.complete())}}))}})}let _9=(()=>{class i{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=s=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i}),i})(),Kf=(()=>{class i extends _9{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,features:[n.qOj]}),i})();const Ri=new n.OlP("NgValueAccessor"),Kj={provide:Ri,useExisting:(0,n.Gpc)(()=>wp),multi:!0};let wp=(()=>{class i extends Kf{writeValue(t){this.setProperty("checked",t)}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&n.NdJ("change",function(l){return r.onChange(l.target.checked)})("blur",function(){return r.onTouched()})},features:[n._Bn([Kj]),n.qOj]}),i})();const $v={provide:Ri,useExisting:(0,n.Gpc)(()=>wi),multi:!0},v9=new n.OlP("CompositionEventMode");let wi=(()=>{class i extends _9{constructor(t,r,s){super(t,r),this._compositionMode=s,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function b9(){const i=R()?R().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(v9,8))},i.\u0275dir=n.lG2({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){1&t&&n.NdJ("input",function(l){return r._handleInput(l.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(l){return r._compositionEnd(l.target.value)})},features:[n._Bn([$v]),n.qOj]}),i})();function wu(i){return null==i||("string"==typeof i||Array.isArray(i))&&0===i.length}function Uv(i){return null!=i&&"number"==typeof i.length}const Ui=new n.OlP("NgValidators"),Mp=new n.OlP("NgAsyncValidators"),gx=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;function C9(i){return wu(i.value)?{required:!0}:null}function x9(i){return wu(i.value)||gx.test(i.value)?null:{email:!0}}function Yv(i){return null}function rk(i){return null!=i}function mx(i){return(0,n.QGY)(i)?(0,Yo.D)(i):i}function _x(i){let o={};return i.forEach(t=>{o=null!=t?{...o,...t}:o}),0===Object.keys(o).length?null:o}function bx(i,o){return o.map(t=>t(i))}function ak(i){return i.map(o=>function T9(i){return!i.validate}(o)?o:t=>o.validate(t))}function f1(i){return null!=i?function vx(i){if(!i)return null;const o=i.filter(rk);return 0==o.length?null:function(t){return _x(bx(t,o))}}(ak(i)):null}function jv(i){return null!=i?function S9(i){if(!i)return null;const o=i.filter(rk);return 0==o.length?null:function(t){return function m9(...i){if(1===i.length){const o=i[0];if((0,Qr.k)(o))return hx(o,null);if((0,f9.K)(o)&&Object.getPrototypeOf(o)===Object.prototype){const t=Object.keys(o);return hx(t.map(r=>o[r]),t)}}if("function"==typeof i[i.length-1]){const o=i.pop();return hx(i=1===i.length&&(0,Qr.k)(i[0])?i[0]:i,null).pipe((0,ft.U)(t=>o(...t)))}return hx(i,null)}(bx(t,o).map(mx)).pipe((0,ft.U)(_x))}}(ak(i)):null}function Zv(i,o){return null===i?[o]:Array.isArray(i)?[...i,o]:[i,o]}function ck(i){return i?Array.isArray(i)?i:[i]:[]}function yx(i,o){return Array.isArray(i)?i.includes(o):i===o}function dk(i,o){const t=ck(o);return ck(i).forEach(s=>{yx(t,s)||t.push(s)}),t}function uk(i,o){return ck(o).filter(t=>!yx(i,t))}class pk{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(o){this._rawValidators=o||[],this._composedValidatorFn=f1(this._rawValidators)}_setAsyncValidators(o){this._rawAsyncValidators=o||[],this._composedAsyncValidatorFn=jv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(o){this._onDestroyCallbacks.push(o)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(o=>o()),this._onDestroyCallbacks=[]}reset(o){this.control&&this.control.reset(o)}hasError(o,t){return!!this.control&&this.control.hasError(o,t)}getError(o,t){return this.control?this.control.getError(o,t):null}}class fa extends pk{get formDirective(){return null}get path(){return null}}class jo extends pk{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class w9{constructor(o){this._cd=o}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ti=(()=>{class i extends w9{constructor(t){super(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(jo,2))},i.\u0275dir=n.lG2({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&n.ekj("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[n.qOj]}),i})(),ma=(()=>{class i extends w9{constructor(t){super(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(fa,10))},i.\u0275dir=n.lG2({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&n.ekj("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[n.qOj]}),i})();const Fe="VALID",nt="INVALID",Ct="PENDING",Pt="DISABLED";function Jt(i){return(Yi(i)?i.validators:i)||null}function Cn(i){return Array.isArray(i)?f1(i):i||null}function lt(i,o){return(Yi(o)?o.asyncValidators:i)||null}function On(i){return Array.isArray(i)?jv(i):i||null}function Yi(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}class Vv{constructor(o,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=o,this._rawAsyncValidators=t,this._composedValidatorFn=Cn(this._rawValidators),this._composedAsyncValidatorFn=On(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(o){this._rawValidators=this._composedValidatorFn=o}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(o){this._rawAsyncValidators=this._composedAsyncValidatorFn=o}get parent(){return this._parent}get valid(){return this.status===Fe}get invalid(){return this.status===nt}get pending(){return this.status==Ct}get disabled(){return this.status===Pt}get enabled(){return this.status!==Pt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(o){this._rawValidators=o,this._composedValidatorFn=Cn(o)}setAsyncValidators(o){this._rawAsyncValidators=o,this._composedAsyncValidatorFn=On(o)}addValidators(o){this.setValidators(dk(o,this._rawValidators))}addAsyncValidators(o){this.setAsyncValidators(dk(o,this._rawAsyncValidators))}removeValidators(o){this.setValidators(uk(o,this._rawValidators))}removeAsyncValidators(o){this.setAsyncValidators(uk(o,this._rawAsyncValidators))}hasValidator(o){return yx(this._rawValidators,o)}hasAsyncValidator(o){return yx(this._rawAsyncValidators,o)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(o={}){this.touched=!0,this._parent&&!o.onlySelf&&this._parent.markAsTouched(o)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(o=>o.markAllAsTouched())}markAsUntouched(o={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}markAsDirty(o={}){this.pristine=!1,this._parent&&!o.onlySelf&&this._parent.markAsDirty(o)}markAsPristine(o={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}markAsPending(o={}){this.status=Ct,!1!==o.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!o.onlySelf&&this._parent.markAsPending(o)}disable(o={}){const t=this._parentMarkedDirty(o.onlySelf);this.status=Pt,this.errors=null,this._forEachChild(r=>{r.disable({...o,onlySelf:!0})}),this._updateValue(),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...o,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(o={}){const t=this._parentMarkedDirty(o.onlySelf);this.status=Fe,this._forEachChild(r=>{r.enable({...o,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent}),this._updateAncestors({...o,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(o){this._parent&&!o.onlySelf&&(this._parent.updateValueAndValidity(o),o.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(o){this._parent=o}getRawValue(){return this.value}updateValueAndValidity(o={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Fe||this.status===Ct)&&this._runAsyncValidator(o.emitEvent)),!1!==o.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!o.onlySelf&&this._parent.updateValueAndValidity(o)}_updateTreeValidity(o={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(o)),this.updateValueAndValidity({onlySelf:!0,emitEvent:o.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Pt:Fe}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(o){if(this.asyncValidator){this.status=Ct,this._hasOwnPendingAsyncValidator=!0;const t=mx(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:o})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(o,t={}){this.errors=o,this._updateControlsErrors(!1!==t.emitEvent)}get(o){let t=o;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,s)=>r&&r._find(s),this)}getError(o,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[o]:null}hasError(o,t){return!!this.getError(o,t)}get root(){let o=this;for(;o._parent;)o=o._parent;return o}_updateControlsErrors(o){this.status=this._calculateStatus(),o&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(o)}_initObservables(){this.valueChanges=new n.vpe,this.statusChanges=new n.vpe}_calculateStatus(){return this._allControlsDisabled()?Pt:this.errors?nt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ct)?Ct:this._anyControlsHaveStatus(nt)?nt:Fe}_anyControlsHaveStatus(o){return this._anyControls(t=>t.status===o)}_anyControlsDirty(){return this._anyControls(o=>o.dirty)}_anyControlsTouched(){return this._anyControls(o=>o.touched)}_updatePristine(o={}){this.pristine=!this._anyControlsDirty(),this._parent&&!o.onlySelf&&this._parent._updatePristine(o)}_updateTouched(o={}){this.touched=this._anyControlsTouched(),this._parent&&!o.onlySelf&&this._parent._updateTouched(o)}_registerOnCollectionChange(o){this._onCollectionChange=o}_setUpdateStrategy(o){Yi(o)&&null!=o.updateOn&&(this._updateOn=o.updateOn)}_parentMarkedDirty(o){return!o&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(o){return null}}class m1 extends Vv{constructor(o,t,r){super(Jt(t),lt(r,t)),this.controls=o,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(o,t){return this.controls[o]?this.controls[o]:(this.controls[o]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(o,t,r={}){this.registerControl(o,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(o,t={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(o,t,r={}){this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),delete this.controls[o],t&&this.registerControl(o,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(o){return this.controls.hasOwnProperty(o)&&this.controls[o].enabled}setValue(o,t={}){(function Dp(i,o,t){i._forEachChild((r,s)=>{if(void 0===t[s])throw new n.vHH(1002,"")})})(this,0,o),Object.keys(o).forEach(r=>{(function lr(i,o,t){const r=i.controls;if(!(o?Object.keys(r):r).length)throw new n.vHH(1e3,"");if(!r[t])throw new n.vHH(1001,"")})(this,!0,r),this.controls[r].setValue(o[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(o,t={}){null!=o&&(Object.keys(o).forEach(r=>{const s=this.controls[r];s&&s.patchValue(o[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(o={},t={}){this._forEachChild((r,s)=>{r.reset(o[s],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(o,t,r)=>(o[r]=t.getRawValue(),o))}_syncPendingControls(){let o=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return o&&this.updateValueAndValidity({onlySelf:!0}),o}_forEachChild(o){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&o(r,t)})}_setUpControls(){this._forEachChild(o=>{o.setParent(this),o._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(o){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&o(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,s)=>((r.enabled||this.disabled)&&(t[s]=r.value),t))}_reduceChildren(o,t){let r=o;return this._forEachChild((s,l)=>{r=t(r,s,l)}),r}_allControlsDisabled(){for(const o of Object.keys(this.controls))if(this.controls[o].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(o){return this.controls.hasOwnProperty(o)?this.controls[o]:null}}function lg(i,o){M9(i,o),o.valueAccessor.writeValue(i.value),i.disabled&&o.valueAccessor.setDisabledState?.(!0),function aae(i,o){o.valueAccessor.registerOnChange(t=>{i._pendingValue=t,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&tZ(i,o)})}(i,o),function lae(i,o){const t=(r,s)=>{o.valueAccessor.writeValue(r),s&&o.viewToModelUpdate(r)};i.registerOnChange(t),o._registerOnDestroy(()=>{i._unregisterOnChange(t)})}(i,o),function sae(i,o){o.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&tZ(i,o),"submit"!==i.updateOn&&i.markAsTouched()})}(i,o),function rae(i,o){if(o.valueAccessor.setDisabledState){const t=r=>{o.valueAccessor.setDisabledState(r)};i.registerOnDisabledChange(t),o._registerOnDestroy(()=>{i._unregisterOnDisabledChange(t)})}}(i,o)}function _k(i,o){i.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(o)})}function M9(i,o){const t=function sk(i){return i._rawValidators}(i);null!==o.validator?i.setValidators(Zv(t,o.validator)):"function"==typeof t&&i.setValidators([t]);const r=function lk(i){return i._rawAsyncValidators}(i);null!==o.asyncValidator?i.setAsyncValidators(Zv(r,o.asyncValidator)):"function"==typeof r&&i.setAsyncValidators([r]);const s=()=>i.updateValueAndValidity();_k(o._rawValidators,s),_k(o._rawAsyncValidators,s)}function tZ(i,o){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),o.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}const hae={provide:fa,useExisting:(0,n.Gpc)(()=>Zo)},Tx=(()=>Promise.resolve())();let Zo=(()=>{class i extends fa{constructor(t,r){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new n.vpe,this.form=new m1({},f1(t),jv(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Tx.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),lg(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Tx.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Tx.then(()=>{const r=this._findContainer(t.path),s=new m1({});(function nZ(i,o){M9(i,o)})(s,t),r.registerControl(t.name,s),s.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Tx.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){Tx.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function oZ(i,o){i._syncPendingControls(),o.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Ui,10),n.Y36(Mp,10))},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&n.NdJ("submit",function(l){return r.onSubmit(l)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[n._Bn([hae]),n.qOj]}),i})();function rZ(i,o){const t=i.indexOf(o);t>-1&&i.splice(t,1)}function aZ(i){return"object"==typeof i&&null!==i&&2===Object.keys(i).length&&"value"in i&&"disabled"in i}const sZ=class extends Vv{constructor(o=null,t,r){super(Jt(t),lt(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(o),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yi(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=aZ(o)?o.value:o)}setValue(o,t={}){this.value=this._pendingValue=o,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(o,t={}){this.setValue(o,t)}reset(o=this.defaultValue,t={}){this._applyFormState(o),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(o){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(o){this._onChange.push(o)}_unregisterOnChange(o){rZ(this._onChange,o)}registerOnDisabledChange(o){this._onDisabledChange.push(o)}_unregisterOnDisabledChange(o){rZ(this._onDisabledChange,o)}_forEachChild(o){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(o){aZ(o)?(this.value=this._pendingValue=o.value,o.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=o}},mae={provide:jo,useExisting:(0,n.Gpc)(()=>ni)},dZ=(()=>Promise.resolve())();let ni=(()=>{class i extends jo{constructor(t,r,s,l,u){super(),this._changeDetectorRef=u,this.control=new sZ,this._registered=!1,this.update=new n.vpe,this._parent=t,this._setValidators(r),this._setAsyncValidators(s),this.valueAccessor=function k9(i,o){if(!o)return null;let t,r,s;return Array.isArray(o),o.forEach(l=>{l.constructor===wi?t=l:function uae(i){return Object.getPrototypeOf(i.constructor)===Kf}(l)?r=l:s=l}),s||r||t||null}(0,l)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function D9(i,o){if(!i.hasOwnProperty("model"))return!1;const t=i.model;return!!t.isFirstChange()||!Object.is(o,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){lg(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){dZ.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,s=0!==r&&(0,n.D6c)(r);dZ.then(()=>{s&&!this.control.disabled?this.control.disable():!s&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function Xf(i,o){return[...o.path,i]}(t,this._parent):[t]}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(fa,9),n.Y36(Ui,10),n.Y36(Mp,10),n.Y36(Ri,10),n.Y36(n.sBO,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[n._Bn([mae]),n.qOj,n.TTD]}),i})(),Ia=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i})();const _ae={provide:Ri,useExisting:(0,n.Gpc)(()=>vk),multi:!0};let vk=(()=>{class i extends Kf{writeValue(t){this.setProperty("value",t??"")}registerOnChange(t){this.onChange=r=>{t(""==r?null:parseFloat(r))}}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,r){1&t&&n.NdJ("input",function(l){return r.onChange(l.target.value)})("blur",function(){return r.onTouched()})},features:[n._Bn([_ae]),n.qOj]}),i})();const bae={provide:Ri,useExisting:(0,n.Gpc)(()=>tc),multi:!0};let uZ=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),vae=(()=>{class i{constructor(){this._accessors=[]}add(t,r){this._accessors.push([t,r])}remove(t){for(let r=this._accessors.length-1;r>=0;--r)if(this._accessors[r][1]===t)return void this._accessors.splice(r,1)}select(t){this._accessors.forEach(r=>{this._isSameGroup(r,t)&&r[1]!==t&&r[1].fireUncheck(t.value)})}_isSameGroup(t,r){return!!t[0].control&&t[0]._parent===r._control._parent&&t[1].name===r.name}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:uZ}),i})(),tc=(()=>{class i extends Kf{constructor(t,r,s,l){super(t,r),this._registry=s,this._injector=l,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(jo),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this.setProperty("checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(vae),n.Y36(n.zs3))},i.\u0275dir=n.lG2({type:i,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,r){1&t&&n.NdJ("change",function(){return r.onChange()})("blur",function(){return r.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[n._Bn([bae]),n.qOj]}),i})();function vZ(i){return"number"==typeof i?i:parseInt(i,10)}let _1=(()=>{class i{constructor(){this._validator=Yv}ngOnChanges(t){if(this.inputName in t){const r=this.normalizeInput(t[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Yv,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return null!=t}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const Oae={provide:Ui,useExisting:(0,n.Gpc)(()=>L9),multi:!0};let L9=(()=>{class i extends _1{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=t=>function yZ(i){return"number"==typeof i?i:parseFloat(i)}(t),this.createValidator=t=>function g1(i){return o=>{if(wu(o.value)||wu(i))return null;const t=parseFloat(o.value);return!isNaN(t)&&t<i?{min:{min:i,actual:o.value}}:null}}(t)}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("min",r._enabled?r.min:null)},inputs:{min:"min"},features:[n._Bn([Oae]),n.qOj]}),i})();const Nae={provide:Ui,useExisting:(0,n.Gpc)(()=>Lo),multi:!0};let Lo=(()=>{class i extends _1{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n.D6c,this.createValidator=t=>C9}enabled(t){return t}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("required",r._enabled?"":null)},inputs:{required:"required"},features:[n._Bn([Nae]),n.qOj]}),i})();const Rae={provide:Ui,useExisting:(0,n.Gpc)(()=>b1),multi:!0};let b1=(()=>{class i extends _1{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=n.D6c,this.createValidator=t=>x9}enabled(t){return t}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[n._Bn([Rae]),n.qOj]}),i})();const Fae={provide:Ui,useExisting:(0,n.Gpc)(()=>zv),multi:!0};let zv=(()=>{class i extends _1{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=t=>vZ(t),this.createValidator=t=>function fx(i){return o=>wu(o.value)||!Uv(o.value)?null:o.value.length<i?{minlength:{requiredLength:i,actualLength:o.value.length}}:null}(t)}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("minlength",r._enabled?r.minlength:null)},inputs:{minlength:"minlength"},features:[n._Bn([Fae]),n.qOj]}),i})();const Bae={provide:Ui,useExisting:(0,n.Gpc)(()=>yk),multi:!0};let yk=(()=>{class i extends _1{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=t=>vZ(t),this.createValidator=t=>function ik(i){return o=>Uv(o.value)&&o.value.length>i?{maxlength:{requiredLength:i,actualLength:o.value.length}}:null}(t)}}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("maxlength",r._enabled?r.maxlength:null)},inputs:{maxlength:"maxlength"},features:[n._Bn([Bae]),n.qOj]}),i})(),$ae=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[uZ]}),i})(),Sx=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[$ae]}),i})();function xd(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function SZ(i,o){return function(t,r){o(t,r,i)}}const Ak=new n.OlP("config"),DZ=new n.OlP("NEW_CONFIG"),kZ=new n.OlP("INITIAL_CONFIG"),Vae={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},zae=["Hh:m0:s0","Hh:m0","m0:s0"],Gae=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let F9=(()=>{class i{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(r,s,l,u)=>{const p=r.split(l),y=p.length>1?`${l}${p[1]}`:"";let A=p[0];const w=this.separatorLimit.replace(/\s/g,"");w&&+w&&(A="-"===A[0]?`-${A.slice(1,A.length).slice(0,w.length)}`:A.slice(0,w.length));const I=/(\d+)(\d{3})/;for(;s&&I.test(A);)A=A.replace(I,"$1"+s+"$2");return void 0===u?A+y:0===u?A:A+y.substr(0,u+1)},this.percentage=r=>Number(r)>=0&&Number(r)<=100,this.getPrecision=r=>{const s=r.split(".");return s.length>1?Number(s[s.length-1]):1/0},this.checkAndRemoveSuffix=r=>{var s,l,u;for(let p=(null===(s=this.suffix)||void 0===s?void 0:s.length)-1;p>=0;p--){const y=this.suffix.substr(p,null===(l=this.suffix)||void 0===l?void 0:l.length);if(r.includes(y)&&(p-1<0||!r.includes(this.suffix.substr(p-1,null===(u=this.suffix)||void 0===u?void 0:u.length))))return r.replace(y,"")}return r},this.checkInputPrecision=(r,s,l)=>{if(s<1/0){const u=new RegExp(this._charToRegExpExpression(l)+`\\d{${s}}.*$`),p=r.match(u);p&&p[0].length-1>s&&(r=r.substring(0,r.length-(p[0].length-1-s))),0===s&&r.endsWith(l)&&(r=r.substring(0,r.length-1))}return r},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,r){const[s,l]=r;return this.customPattern=l,this.applyMask(t,s)}applyMask(t,r,s=0,l=!1,u=!1,p=(()=>{})){if(null==t||void 0===r)return"";let y=0,A="",w=!1,I=!1,P=1,F=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&t?.length>0&&(t=this.checkAndRemoveSuffix(t));const V=t.toString().split("");"IP"===r&&(this.ipError=V.filter(Me=>"."===Me).length<3&&V.length<7,r="099.099.099.099");const oe=[];for(let Me=0;Me<t.length;Me++)t[Me].match("\\d")&&oe.push(t[Me]);if("CPF_CNPJ"===r&&(this.cpfCnpjError=11!==oe.length&&14!==oe.length,r=oe.length>11?"00.000.000/0000-00":"000.000.000-00"),r.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const Me=this.getPrecision(r);t=this.checkInputPrecision(t,Me,this.decimalMarker)}t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))&&(t=`${t.substring(0,t.indexOf(".")-1)}${t.substring(t.indexOf("."),t.length)}`),A=this.percentage(t)?t:t.substring(0,t.length-1)}else if(r.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const Me=this._charToRegExpExpression(this.thousandSeparator),He=this._charToRegExpExpression(this.decimalMarker),Ye='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(Me,"").replace(He,""),Le=new RegExp("["+Ye+"]");t.match(Le)&&(t=t.substring(0,t.length-1));const tt=this.getPrecision(r),kt=(t=this.checkInputPrecision(t,tt,this.decimalMarker)).replace(new RegExp(Me,"g"),"");A=this._formatWithSeparators(kt,this.thousandSeparator,this.decimalMarker,tt);const Ke=A.indexOf(",")-t.indexOf(","),Re=A.length-t.length;if(Re>0&&","!==A[s]){I=!0;let ot=0;do{this._shift.add(s+ot),ot++}while(ot<Re)}else 0!==Ke&&s>0&&!(A.indexOf(",")>=s&&s>3)||!(A.indexOf(".")>=s&&s>3)&&Re<=0?(this._shift.clear(),I=!0,P=Re,this._shift.add(s+=Re)):this._shift.clear()}else for(let Me=0,He=V[0];Me<V.length&&y!==r.length;Me++,He=V[Me])if(this._checkSymbolMask(He,r[y])&&"?"===r[y+1])A+=He,y+=2;else if("*"===r[y+1]&&w&&this._checkSymbolMask(He,r[y+2]))A+=He,y+=3,w=!1;else if(this._checkSymbolMask(He,r[y])&&"*"===r[y+1])A+=He,w=!0;else if("?"===r[y+1]&&this._checkSymbolMask(He,r[y+2]))A+=He,y+=3;else if(this._checkSymbolMask(He,r[y])){if("H"===r[y]&&Number(He)>2){y+=1,this._shiftStep(r,y,V.length),Me--,this.leadZeroDateTime&&(A+="0");continue}if("h"===r[y]&&"2"===A&&Number(He)>3){y+=1,Me--;continue}if("m"===r[y]&&Number(He)>5){y+=1,this._shiftStep(r,y,V.length),Me--,this.leadZeroDateTime&&(A+="0");continue}if("s"===r[y]&&Number(He)>5){y+=1,this._shiftStep(r,y,V.length),Me--,this.leadZeroDateTime&&(A+="0");continue}const Ye=31;if("d"===r[y]&&(Number(He)>3&&this.leadZeroDateTime||Number(t.slice(y,y+2))>Ye||"/"===t[y+1])){y+=1,this._shiftStep(r,y,V.length),Me--,this.leadZeroDateTime&&(A+="0");continue}if("M"===r[y]){const tt=0===y&&(Number(He)>2||Number(t.slice(y,y+2))>12||"/"===t[y+1]),kt=t.slice(y-3,y-1).includes("/")&&("/"===t[y-2]&&Number(t.slice(y-1,y+1))>12&&"/"!==t[y]||"/"===t[y]||"/"===t[y-3]&&Number(t.slice(y-2,y))>12&&"/"!==t[y-1]||"/"===t[y-1]),Ke=Number(t.slice(y-3,y-1))<=Ye&&!t.slice(y-3,y-1).includes("/")&&"/"===t[y-1]&&(Number(t.slice(y,y+2))>12||"/"===t[y+1]),Re=Number(t.slice(y-3,y-1))>Ye&&!t.slice(y-3,y-1).includes("/")&&!t.slice(y-2,y).includes("/")&&Number(t.slice(y-2,y))>12,ot=Number(t.slice(y-3,y-1))<=Ye&&!t.slice(y-3,y-1).includes("/")&&"/"!==t[y-1]&&Number(t.slice(y-1,y+1))>12;if(Number(He)>1&&this.leadZeroDateTime||tt||kt||Ke||Re||ot){y+=1,this._shiftStep(r,y,V.length),Me--,this.leadZeroDateTime&&(A+="0");continue}}A+=He,y++}else-1!==this.maskSpecialCharacters.indexOf(r[y])?(A+=r[y],y++,this._shiftStep(r,y,V.length),Me--):this.maskSpecialCharacters.indexOf(He)>-1&&this.maskAvailablePatterns[r[y]]&&this.maskAvailablePatterns[r[y]].optional?(!!V[y]&&"099.099.099.099"!==r&&"000.000.000-00"!==r&&"00.000.000/0000-00"!==r&&(A+=V[y]),y++,Me--):"*"===this.maskExpression[y+1]&&this._findSpecialChar(this.maskExpression[y+2])&&this._findSpecialChar(He)===this.maskExpression[y+2]&&w||"?"===this.maskExpression[y+1]&&this._findSpecialChar(this.maskExpression[y+2])&&this._findSpecialChar(He)===this.maskExpression[y+2]&&w?(y+=3,A+=He):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(He)<0&&He!==this.placeHolderCharacter&&(F=!0);A.length+1===r.length&&-1!==this.maskSpecialCharacters.indexOf(r[r.length-1])&&(A+=r[r.length-1]);let Ae=s+1;for(;this._shift.has(Ae);)P++,Ae++;let ue=l?y:this._shift.has(s)?P:0;F&&ue--,p(ue,I),P<0&&this._shift.clear();let Se=!1;u&&(Se=V.every(Me=>this.maskSpecialCharacters.includes(Me)));let Be=`${this.prefix}${Se?"":A}${this.suffix}`;return 0===A.length&&(Be=`${this.prefix}${A}`),Be}_findSpecialChar(t){return this.maskSpecialCharacters.find(r=>r===t)}_checkSymbolMask(t,r){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[r]&&this.maskAvailablePatterns[r].pattern&&this.maskAvailablePatterns[r].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((r,s)=>r.match("^-?\\d")||r.match("\\s")||"."===r||","===r||"-"===r&&0===s&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){return t&&(" "===t?"\\s":"[\\^$.|?*+()".indexOf(t)>=0?"\\"+t:t)}_shiftStep(t,r,s){const l=/[*?]/g.test(t.slice(0,r))?s:r;this._shift.add(l+this.prefix.length||0)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Ak))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),IZ=(()=>{class i extends F9{constructor(t,r,s,l){super(r),this.document=t,this._config=r,this._elementRef=s,this._renderer=l,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=u=>{}}applyMask(t,r,s=0,l=!1,u=!1,p=(()=>{})){if(!r)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const y=t&&"number"==typeof this.selStart?t[this.selStart]:"";let A="";if(this.hiddenInput&&!this.writingValue){let F=this.actualValue.split("");""!==t&&F.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>F.length?F.splice(this.selStart,0,y):t.length<F.length&&(F.length-t.length==1?F.splice(this.selStart-1,1):F.splice(this.selStart,this.selEnd-this.selStart))):F=[],A=this.actualValue.length&&F.length<=t.length?this.shiftTypedSymbols(F.join("")):t}A=Boolean(A)&&A.length?A:t;const w=super.applyMask(A,r,s,l,u,p);if(this.actualValue=this.getActualValue(w),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(F=>F!==this.decimalMarker)),this.formControlResult(w),!this.showMaskTyped)return this.hiddenInput&&w&&w.length?this.hideInput(w,this.maskExpression):w;const I=w.length,P=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const F=this._numberSkipedSymbols(w);return w+P.slice(I+F)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?w+P:w+P.slice(I)}_numberSkipedSymbols(t){const r=/(^|\D)(\d\D)/g;let s=r.exec(t),l=0;for(;null!=s;)l+=1,s=r.exec(t);return l}applyValueChanges(t=0,r,s,l=(()=>{})){const u=this._elementRef.nativeElement;u.value=this.applyMask(u.value,this.maskExpression,t,r,s,l),u!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,r){return t.split("").map((s,l)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[r[l]]&&this.maskAvailablePatterns[r[l]].symbol?this.maskAvailablePatterns[r[l]].symbol:s).join("")}getActualValue(t){const r=t.split("").filter((s,l)=>this._checkSymbolMask(s,this.maskExpression[l])||this.maskSpecialCharacters.includes(this.maskExpression[l])&&s===this.maskExpression[l]);return r.join("")===t?r.join(""):t}shiftTypedSymbols(t){let r="";return(t&&t.split("").map((l,u)=>{if(this.maskSpecialCharacters.includes(t[u+1])&&t[u+1]!==this.maskExpression[u+1])return r=l,t[u+1];if(r.length){const p=r;return r="",p}return l})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,r]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,r))}checkSpecialCharAmount(t){return t.split("").filter(s=>this._findSpecialChar(s)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const r=[];for(let s=0;s<t.length;s++)t[s].match("\\d")&&r.push(t[s]);return r.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>3&&r.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:r.length>6&&r.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const r=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,s=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return r;const l=[];for(let u=0;u<t.length;u++)t[u].match("\\d")&&l.push(t[u]);return l.length<=3?r.slice(l.length,r.length):l.length>3&&l.length<=6?r.slice(l.length+1,r.length):l.length>6&&l.length<=9?r.slice(l.length+2,r.length):l.length>9&&l.length<11?r.slice(l.length+3,r.length):11===l.length?"":12===l.length?s.slice(17===t.length?16:15,s.length):l.length>12&&l.length<=14?s.slice(l.length+4,s.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const r=Number(t);return Number.isNaN(r)?t:r}_removeMask(t,r){return t&&t.replace(this._regExpForRemove(r),"")}_removePrefix(t){return this.prefix?t&&t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix?t&&t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(r=>`\\${r}`).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const r=this._retrieveSeparatorPrecision(this.maskExpression);let s=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(s=s.replace(this.decimalMarker,".")),this.isNumberValue?r?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,s):Number(s):s}_retrieveSeparatorPrecision(t){const r=t.match(new RegExp("^separator\\.([^d]*)"));return r?Number(r[1]):null}_checkPrecision(t,r){return t.indexOf("2")>0?Number(r).toFixed(2):Number(r)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie),n.LFG(Ak),n.LFG(n.SBq),n.LFG(n.Qsj))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),ja=(()=>{class i{constructor(t,r,s){this.document=t,this._maskService=r,this._config=s,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=l=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:r,specialCharacters:s,patterns:l,prefix:u,suffix:p,thousandSeparator:y,decimalMarker:A,dropSpecialCharacters:w,hiddenInput:I,showMaskTyped:P,placeHolderCharacter:F,shownMaskExpression:V,showTemplate:oe,clearIfNotMatch:Ae,validation:ue,separatorLimit:Se,allowNegativeNumbers:Be,leadZeroDateTime:Me}=t;if(r&&(this._maskValue=r.currentValue||"",r.currentValue&&r.currentValue.split("||").length>1&&(this._maskExpressionArray=r.currentValue.split("||").sort((He,Ye)=>He.length-Ye.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),s){if(!s.currentValue||!Array.isArray(s.currentValue))return;this._maskService.maskSpecialCharacters=s.currentValue||[]}l&&l.currentValue&&(this._maskService.maskAvailablePatterns=l.currentValue),u&&(this._maskService.prefix=u.currentValue),p&&(this._maskService.suffix=p.currentValue),y&&(this._maskService.thousandSeparator=y.currentValue),A&&(this._maskService.decimalMarker=A.currentValue),w&&(this._maskService.dropSpecialCharacters=w.currentValue),I&&(this._maskService.hiddenInput=I.currentValue),P&&(this._maskService.showMaskTyped=P.currentValue),F&&(this._maskService.placeHolderCharacter=F.currentValue),V&&(this._maskService.shownMaskExpression=V.currentValue),oe&&(this._maskService.showTemplate=oe.currentValue),Ae&&(this._maskService.clearIfNotMatch=Ae.currentValue),ue&&(this._maskService.validation=ue.currentValue),Se&&(this._maskService.separatorLimit=Se.currentValue),Be&&(this._maskService.allowNegativeNumbers=Be.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(He=>"-"!==He))),Me&&(this._maskService.leadZeroDateTime=Me.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator")||Gae.includes(this._maskValue)||this._maskService.clearIfNotMatch)return null;if(zae.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let r=0;for(const s in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[s].optional&&!0===this._maskService.maskAvailablePatterns[s].optional&&(this._maskValue.indexOf(s)!==this._maskValue.lastIndexOf(s)?r+=this._maskValue.split("").filter(u=>u===s).join("").length:-1!==this._maskValue.indexOf(s)&&r++,-1!==this._maskValue.indexOf(s)&&t.toString().length>=this._maskValue.indexOf(s)||r===this._maskValue.length))return null;if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4||1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const s=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-r:this._maskValue.length-r;if(t.toString().length<s)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const r=t.target;if(this._inputValue=r.value,this._setMask(),!this._maskValue)return void this.onChange(r.value);const s=1===r.selectionStart?r.selectionStart+this._maskService.prefix.length:r.selectionStart;let l=0,u=!1;if(this._maskService.applyValueChanges(s,this._justPasted,"Backspace"===this._code,(y,A)=>{this._justPasted=!1,l=y,u=A}),this.document.activeElement!==r)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let p=this._position?this._inputValue.length+s+l:s+("Backspace"!==this._code||u?l:0);p>this._getActualInputLength()&&(p=this._getActualInputLength()),r.setSelectionRange(p,p),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const r=t.target;null!==r&&null!==r.selectionStart&&r.selectionStart===r.selectionEnd&&r.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),r.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===r.value?(r.focus(),r.setSelectionRange(0,0)):r.selectionStart>this._maskService.actualValue.length&&r.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const u=r.value&&r.value!==this._maskService.prefix?r.value:this._maskService.prefix+this._maskService.maskIsShown;r.value!==u&&(r.value=u),(r.selectionStart||r.selectionEnd)<=this._maskService.prefix.length?r.selectionStart=this._maskService.prefix.length:r.selectionEnd>this._getActualInputLength()&&(r.selectionEnd=this._getActualInputLength())}onKeyDown(t){var r;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const s=t.target;if(this._inputValue=s.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===s.value.length&&(s.selectionStart=s.selectionEnd),8===t.keyCode&&0!==s.selectionStart)if(this.specialCharacters=null!==(r=this.specialCharacters)&&void 0!==r&&r.length?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&s.selectionStart<=this.prefix.length)s.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==s.selectionStart&&1!==s.selectionStart)for(;this.specialCharacters.includes(this._inputValue[s.selectionStart-1].toString())&&(this.prefix.length>=1&&s.selectionStart>this.prefix.length||0===this.prefix.length);)s.setSelectionRange(s.selectionStart-1,s.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,s)}this.suffixCheckOnPressDelete(t.keyCode,s),this._maskService.prefix.length&&s.selectionStart<=this._maskService.prefix.length&&s.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const l=s.selectionStart;8===t.keyCode&&!s.readOnly&&0===l&&s.selectionEnd===s.value.length&&0!==s.value.length&&(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<s.selectionStart?s.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(s.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=s.selectionStart,this._maskService.selEnd=s.selectionEnd}writeValue(t){return function Yae(i,o,t,r){return new(t||(t=Promise))(function(l,u){function p(w){try{A(r.next(w))}catch(I){u(I)}}function y(w){try{A(r.throw(w))}catch(I){u(I)}}function A(w){w.done?l(w.value):function s(l){return l instanceof t?l:new t(function(u){u(l)})}(w.value).then(p,y)}A((r=r.apply(i,o||[])).next())})}(this,void 0,void 0,function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),this._inputValue=t,this._setMask(),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t})}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,r){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=r.selectionStart&&r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<r.selectionStart&&r.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===r.selectionStart&&r.setSelectionRange(r.selectionStart-1,r.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((r,s,l)=>{if(this._start="{"===s?l:this._start,"}"!==s)return this._maskService._findSpecialChar(s)?r+s:r;this._end=l;const u=Number(t.slice(this._start+1,this._end));return r+new Array(u+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const r=this._maskValue.split("").filter(s=>":"!==s).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<r||t.length<=r-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const r=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&r)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,r;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ie),n.Y36(IZ),n.Y36(Ak))},i.\u0275dir=n.lG2({type:i,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,r){1&t&&n.NdJ("paste",function(){return r.onPaste()})("input",function(l){return r.onInput(l)})("blur",function(){return r.onBlur()})("click",function(l){return r.onFocus(l)})("keydown",function(l){return r.onKeyDown(l)})},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>i),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>i),multi:!0},IZ]),n.TTD]}),i})(),xk=(()=>{class i{constructor(t){this._maskService=t}transform(t,r,s=null){return t||"number"==typeof t?(s&&(this._maskService.thousandSeparator=s),"string"==typeof r?this._maskService.applyMask(`${t}`,r):this._maskService.applyMaskWithPattern(`${t}`,r)):""}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(F9,16))},i.\u0275pipe=n.Yjl({name:"mask",type:i,pure:!0}),i})(),B9=(()=>{class i{static forRoot(t){return{ngModule:i,providers:[{provide:DZ,useValue:t},{provide:kZ,useValue:Vae},{provide:Ak,useFactory:qae,deps:[kZ,DZ]},F9]}}static forChild(){return{ngModule:i}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function qae(i,o){return Object.assign(Object.assign({},i),o instanceof Function?o():o)}const EZ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ye(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Mu(i,o){return function(t,r){o(t,r,i)}}function ce(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}function wx(i=0,o=Au){return(!K2(i)||i<0)&&(i=0),(!o||"function"!=typeof o.schedule)&&(o=Au),new No.y(t=>(t.add(o.schedule(Qae,i,{subscriber:t,counter:0,period:i})),t))}function Qae(i){const{subscriber:o,counter:t,period:r}=i;o.next(t),this.schedule({subscriber:o,counter:t+1,period:r},r)}function Sk(i,o){return function(t,r){o(t,r,i)}}function Kae(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}EZ.KeyboardEvent||(EZ.KeyboardEvent=function(i,o){});let Mk=(()=>{let i=class{constructor(){this.changes=new Qn({rtl:void 0})}notify(t){this.changes.next({rtl:t})}get(t){}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),Xa=(()=>{class i{get override(){return!1}ngOnChanges(t){this.register(t),Object.keys(t).some(r=>!t[r].isFirstChange())&&this.service.notifyChanges()}ngOnInit(){this.subscription=this.service.changes.pipe(Z_(1)).subscribe(()=>this.register(this))}register(t){Object.keys(t).forEach(s=>this.service.register(s,this[s],this.override))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,features:[n.TTD]}),i})();const nc=new n.OlP("Kendo UI Right-to-Left token"),gn=new n.OlP("Localization key prefix");let Te=(()=>{let i=class{constructor(t,r,s){this.prefix=t,this.messageService=r,this._rtl=s,this.changes=new Qn({rtl:this._rtl}),this.dictionary={},r&&(this.subscription=r.changes.pipe((0,ft.U)(({rtl:l})=>void 0!==l?l:this._rtl),oi(l=>this._rtl=l)).subscribe(l=>{this.dictionary={},this.changes.next({rtl:l})}))}get rtl(){return this._rtl}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}get(t){const r=this.key(t);return this.dictionary[r]}register(t,r,s=!1){const l=this.key(t);let u=r;if(!s){if(this.dictionary.hasOwnProperty(l))return;u=this.defaultValue(l,r)}this.dictionary[l]=u}notifyChanges(){this.changes.next({rtl:this.rtl})}key(t){return this.prefix+"."+t}defaultValue(t,r){if(!this.messageService)return r;const s=this.messageService.get(t);return void 0===s?r:s}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(gn),n.LFG(Mk,8),n.LFG(nc,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=function Wae(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}([Sk(0,(0,n.tBr)(gn)),Sk(1,(0,n.FiY)()),Sk(2,(0,n.FiY)()),Sk(2,(0,n.tBr)(nc)),Kae("design:paramtypes",[String,Mk,Boolean])],i),i})();function Td(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Sd(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const Gv=(i,o)=>t=>o(i(t)),Du=(i,o,t)=>i.addEventListener&&i.addEventListener(o,t),Tl=(i,o,t)=>i&&i.removeEventListener&&i.removeEventListener(o,t),qv=()=>{},Y9=i=>i.preventDefault(),tse=/touch/;function Jv(i){return i.type.match(tse)?{pageX:i.changedTouches[0].pageX,pageY:i.changedTouches[0].pageY,clientX:i.changedTouches[0].clientX,clientY:i.changedTouches[0].clientY,type:i.type,originalEvent:i,isTouch:!0}:{pageX:i.pageX,pageY:i.pageY,clientX:i.clientX,clientY:i.clientY,offsetX:i.offsetX,offsetY:i.offsetY,type:i.type,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,altKey:i.altKey,originalEvent:i}}const j9=(()=>{class i{static supportPointerEvent(){return typeof window<"u"&&window.PointerEvent}get document(){return this._element?this._element.ownerDocument:document}constructor({press:t=qv,drag:r=qv,release:s=qv,mouseOnly:l=!1}){this._pressHandler=Gv(Jv,t),this._dragHandler=Gv(Jv,r),this._releaseHandler=Gv(Jv,s),this._ignoreMouse=!1,this._mouseOnly=l,this._touchstart=u=>{1===u.touches.length&&this._pressHandler(u)},this._touchmove=u=>{1===u.touches.length&&this._dragHandler(u)},this._touchend=u=>{0===u.touches.length&&1===u.changedTouches.length&&(this._releaseHandler(u),this._ignoreMouse=!0,setTimeout(this._restoreMouse,2e3))},this._restoreMouse=()=>{this._ignoreMouse=!1},this._mousedown=u=>{const{which:p}=u;p&&p>1||this._ignoreMouse||(Du(this.document,"mousemove",this._mousemove),Du(this.document,"mouseup",this._mouseup),this._pressHandler(u))},this._mousemove=u=>{this._dragHandler(u)},this._mouseup=u=>{Tl(this.document,"mousemove",this._mousemove),Tl(this.document,"mouseup",this._mouseup),this._releaseHandler(u)},this._pointerdown=u=>{u.isPrimary&&0===u.button&&(Du(this.document,"pointermove",this._pointermove),Du(this.document,"pointerup",this._pointerup),Du(this.document,"pointercancel",this._pointerup),Du(this.document,"contextmenu",Y9),this._pressHandler(u))},this._pointermove=u=>{u.isPrimary&&this._dragHandler(u)},this._pointerup=u=>{u.isPrimary&&(Tl(this.document,"pointermove",this._pointermove),Tl(this.document,"pointerup",this._pointerup),Tl(this.document,"pointercancel",this._pointerup),Tl(this.document,"contextmenu",Y9),this._releaseHandler(u))}}bindTo(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())}_bindToCurrent(){const t=this._element;this._usePointers()?Du(t,"pointerdown",this._pointerdown):(Du(t,"mousedown",this._mousedown),this._mouseOnly||(Du(t,"touchstart",this._touchstart),Du(t,"touchmove",this._touchmove),Du(t,"touchend",this._touchend)))}_unbindFromCurrent(){const t=this._element;if(this._usePointers())return Tl(t,"pointerdown",this._pointerdown),Tl(this.document,"pointermove",this._pointermove),Tl(this.document,"pointerup",this._pointerup),Tl(this.document,"contextmenu",Y9),void Tl(this.document,"pointercancel",this._pointerup);Tl(t,"mousedown",this._mousedown),this._mouseOnly||(Tl(t,"touchstart",this._touchstart),Tl(t,"touchmove",this._touchmove),Tl(t,"touchend",this._touchend))}_usePointers(){return!this._mouseOnly&&i.supportPointerEvent()}update({press:t=qv,drag:r=qv,release:s=qv,mouseOnly:l=!1}){this._pressHandler=Gv(Jv,t),this._dragHandler=Gv(Jv,r),this._releaseHandler=Gv(Jv,s),this._mouseOnly=l}destroy(){this._unbindFromCurrent(),this._element=null}}return i.default=i,i})(),Dt=()=>typeof document<"u",cr=(i,o,t=!0)=>typeof o[i]<"u"&&(!o[i].isFirstChange()||!t)&&o[i].previousValue!==o[i].currentValue,_s=(i,o,t=!0)=>i.some(r=>cr(r,o,t)),Ut=i=>i&&i.observers.length>0,to=()=>{let i="";for(let o=0;o<32;o++){const t=16*Math.random()|0;(8===o||12===o||16===o||20===o)&&(i+="-"),i+=(12===o?4:16===o?3&t|8:t).toString(16)}return i};let kp=(()=>{let i=class{constructor(t,r){this.element=t,this.ngZone=r,this.enableDrag=!0,this.kendoPress=new n.vpe,this.kendoDrag=new n.vpe,this.kendoRelease=new n.vpe}ngOnInit(){this.toggleDraggable()}ngOnChanges(t){cr("enableDrag",t)&&this.toggleDraggable()}ngOnDestroy(){this.destroyDraggable()}toggleDraggable(){Dt()&&(this.destroyDraggable(),this.enableDrag&&(this.draggable=new j9({drag:t=>this.kendoDrag.next(t),press:t=>this.kendoPress.next(t),release:t=>this.kendoRelease.next(t)}),this.ngZone.runOutsideAngular(()=>this.draggable.bindTo(this.element.nativeElement))))}destroyDraggable(){this.draggable&&(this.draggable.destroy(),this.draggable=null)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDraggable",""]],inputs:{enableDrag:"enableDrag"},outputs:{kendoPress:"kendoPress",kendoDrag:"kendoDrag",kendoRelease:"kendoRelease"},features:[n.TTD]}),Td([(0,n.IIB)(),Sd("design:type",Boolean)],i.prototype,"enableDrag",void 0),Td([(0,n.r_U)(),Sd("design:type",n.vpe)],i.prototype,"kendoPress",void 0),Td([(0,n.r_U)(),Sd("design:type",n.vpe)],i.prototype,"kendoDrag",void 0),Td([(0,n.r_U)(),Sd("design:type",n.vpe)],i.prototype,"kendoRelease",void 0),i=Td([Sd("design:paramtypes",[n.SBq,n.R0b])],i),i})(),Mx=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),_a=(()=>{let i=class{constructor(t,r,s){this.element=t,this.ngZone=r,this.renderer=s,this.events={}}ngOnInit(){if(!this.element||!this.element.nativeElement)return;const t=this.events;this.subscriptions=[],this.ngZone.runOutsideAngular(()=>{for(let r in t)t.hasOwnProperty(r)&&this.subscriptions.push(this.renderer.listen(this.element.nativeElement,r,this.scope?t[r].bind(this.scope):t[r]))})}ngOnDestroy(){if(this.subscriptions){for(let t=0;t<this.subscriptions.length;t++)this.subscriptions[t]();this.subscriptions=null}}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoEventsOutsideAngular",""]],inputs:{events:["kendoEventsOutsideAngular","events"],scope:"scope"}}),Td([(0,n.IIB)("kendoEventsOutsideAngular"),Sd("design:type",Object)],i.prototype,"events",void 0),Td([(0,n.IIB)(),Sd("design:type",Object)],i.prototype,"scope",void 0),i=Td([Sd("design:paramtypes",[n.SBq,n.R0b,n.Qsj])],i),i})(),bs=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();class UZ{constructor(o){this.resizeBatchService=o,this.resize=new n.vpe,this.acceptedSize=!1,this.state=0}acceptSize(o=this.measure()){this.lastWidth=o.width,this.lastHeight=o.height,this.acceptedSize=!0}checkChanges(){!Dt()||0===this.state&&(this.state=1,this.resizeBatchService.schedule(this,this.init))}destroy(){this.resizeBatchService.cancel(this)}checkSize(){if(!this.parentElement)return;const{width:o,height:t}=this.measure();return o!==this.lastWidth||t!==this.lastHeight?(this.lastWidth=o,this.lastHeight=t,this.acceptedSize=!1,this.resize.emit(),!0):void 0}initSize(){const o=this.measure();this.lastWidth=o.width,this.lastHeight=o.height}measure(){let o=0,t=0;return this.parentElement&&(t=this.parentElement.offsetHeight,o=this.parentElement.offsetWidth),{height:t,width:o}}}const kk=i=>{const o=document.createElement("div");return o.style.cssText=i,o},z9="position: absolute; display: block; left: 0; top: 0; right: 0; bottom: 0; z-index: -1;overflow: hidden; visibility: hidden;";class cse extends UZ{constructor(o,t,r){super(o),this.element=t,this.ngZone=r}checkChanges(){2!==this.state?super.checkChanges():this.resizeBatchService.isScheduled(this)||this.resizeBatchService.schedule(this,this.checkSize)}destroy(){if(super.destroy(),this.subscription&&this.subscription.unsubscribe(),this.expand){const o=this.element.nativeElement;o.removeChild(this.expand),o.removeChild(this.shrink),this.expand.removeChild(this.expandChild),this.expand=this.expandChild=this.shrink=this.element=null}}checkSize(){if(super.checkSize())return this.reset(),!0}init(){const o=this.parentElement=this.element.nativeElement.parentElement;"static"===((i,o)=>getComputedStyle(i,null).getPropertyValue("position"))(o)&&(o.style.position="relative"),this.state=2,this.render(),this.reset(),this.initSize(),this.subscribe()}render(){const o=this.element.nativeElement;o.style.cssText=z9,o.setAttribute("dir","ltr"),this.expand=kk(z9),this.expandChild=kk("position: absolute; left: 0; top: 0; transition: 0s;"),this.expand.appendChild(this.expandChild),o.appendChild(this.expand),this.shrink=kk(z9);const t=kk("position: absolute; left: 0; top: 0; transition: 0s;width: 200%; height: 200%;");this.shrink.appendChild(t),o.appendChild(this.shrink)}reset(){const o=this.expandChild;o.style.width="100000px",o.style.height="100000px";const t=this.expand;t.scrollLeft=1e5,t.scrollTop=1e5;const r=this.shrink;r.scrollLeft=1e5,r.scrollTop=1e5}subscribe(){this.ngZone.runOutsideAngular(()=>{this.subscription=(0,Ko.T)(jn(this.shrink,"scroll"),jn(this.expand,"scroll")).subscribe(()=>{this.checkSize()})})}}const dse=typeof ResizeObserver<"u";class jZ extends UZ{constructor(o,t,r){super(o),this.element=t,this.ngZone=r}static supported(){return dse}destroy(){super.destroy(),this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null),this.parentElement=null}init(){this.parentElement=this.element.nativeElement.parentElement,this.initSize(),this.state=2,this.ngZone.runOutsideAngular(()=>{this.resizeObserver=new ResizeObserver(()=>{this.checkSize()}),this.resizeObserver.observe(this.parentElement)})}}let G9=(()=>{let i=class{constructor(t){this.ngZone=t,this.scheduled=[],this.resolvedPromise=Promise.resolve(null),this.flush=this.flush.bind(this)}schedule(t,r){this.scheduled.push({instance:t,method:r}),this.subscription||this.ngZone.runOutsideAngular(()=>{this.subscription=(0,Yo.D)(this.resolvedPromise).subscribe(this.flush)})}isScheduled(t){return Boolean(this.scheduled.find(r=>r.instance===t))}cancel(t){const r=this.scheduled,s=r.length;for(let l=0;l<s;l++)if(r[l].instance===t)return r.splice(l,1),void(r.length||this.unsubscribe())}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}flush(){this.scheduled.forEach(t=>{t.method.call(t.instance)}),this.scheduled=[],this.unsubscribe()}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=Td([Sd("design:paramtypes",[n.R0b])],i),i})(),Bs=(()=>{let i=class{constructor(t,r,s){this.rateLimit=10,this.resize=new n.vpe;const l=jZ.supported()?jZ:cse;this.resizeService=new l(t,r,s),this.subscription=this.resizeService.resize.pipe(Kl(1e3/(this.rateLimit||10))).subscribe(()=>{this.resizeService.acceptedSize||this.resize.emit()})}ngAfterViewChecked(){this.resizeService.checkChanges()}ngOnDestroy(){this.subscription.unsubscribe(),this.resizeService.destroy()}acceptSize(t){this.resizeService.acceptSize(t)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(G9),n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-resize-sensor"]],inputs:{rateLimit:"rateLimit"},outputs:{resize:"resize"},decls:0,vars:0,template:function(t,r){},encapsulation:2}),Td([(0,n.IIB)(),Sd("design:type",Number)],i.prototype,"rateLimit",void 0),Td([(0,n.r_U)(),Sd("design:type",n.vpe)],i.prototype,"resize",void 0),i=Td([Sd("design:paramtypes",[G9,n.SBq,n.R0b])],i),i})(),cg=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[G9]}),i})();class Mo{}var Ie=(()=>{return(i=Ie||(Ie={}))[i.Alt=18]="Alt",i[i.ArrowDown=40]="ArrowDown",i[i.ArrowLeft=37]="ArrowLeft",i[i.ArrowRight=39]="ArrowRight",i[i.ArrowUp=38]="ArrowUp",i[i.Backspace=8]="Backspace",i[i.Control=17]="Control",i[i.Delete=46]="Delete",i[i.Digit0=48]="Digit0",i[i.Digit1=49]="Digit1",i[i.Digit2=50]="Digit2",i[i.Digit3=51]="Digit3",i[i.Digit4=52]="Digit4",i[i.Digit5=53]="Digit5",i[i.Digit6=54]="Digit6",i[i.Digit7=55]="Digit7",i[i.Digit8=56]="Digit8",i[i.Digit9=57]="Digit9",i[i.End=35]="End",i[i.Enter=13]="Enter",i[i.Escape=27]="Escape",i[i.F1=112]="F1",i[i.F2=113]="F2",i[i.F10=121]="F10",i[i.Home=36]="Home",i[i.Insert=45]="Insert",i[i.KeyA=65]="KeyA",i[i.KeyB=66]="KeyB",i[i.KeyC=67]="KeyC",i[i.KeyD=68]="KeyD",i[i.KeyE=69]="KeyE",i[i.KeyF=70]="KeyF",i[i.KeyG=71]="KeyG",i[i.KeyH=72]="KeyH",i[i.KeyI=73]="KeyI",i[i.KeyJ=74]="KeyJ",i[i.KeyK=75]="KeyK",i[i.KeyL=76]="KeyL",i[i.KeyM=77]="KeyM",i[i.KeyN=78]="KeyN",i[i.KeyO=79]="KeyO",i[i.KeyP=80]="KeyP",i[i.KeyQ=81]="KeyQ",i[i.KeyR=82]="KeyR",i[i.KeyS=83]="KeyS",i[i.KeyT=84]="KeyT",i[i.KeyU=85]="KeyU",i[i.KeyV=86]="KeyV",i[i.KeyW=87]="KeyW",i[i.KeyX=88]="KeyX",i[i.KeyY=89]="KeyY",i[i.KeyZ=90]="KeyZ",i[i.NumpadDecimal=110]="NumpadDecimal",i[i.PageDown=34]="PageDown",i[i.PageUp=33]="PageUp",i[i.Shift=16]="Shift",i[i.Space=32]="Space",i[i.Tab=9]="Tab",Ie;var i})(),mi=S(719);const VZ=()=>typeof window<"u",q9={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.(\d+(\.\d+)?)/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},pse={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},J9={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},hse={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},zZ=(i,o,t)=>{for(let r in o)if(o.hasOwnProperty(r)&&o[r].test(i))return r;return void 0!==t?t:i},Ik=VZ()&&window.navigator?window.navigator.userAgent:null,Qv=Ik?(i=>{let o=null,t=[];for(let r in J9)if(J9.hasOwnProperty(r)&&(t=i.match(J9[r]),t)){o={},o[r]=!0,o[t[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,o.version=parseInt(document.documentMode||t[2],10);break}return o})(Ik):null,GZ=Ik?(i=>{let o,t=[];for(let r in q9)if(q9.hasOwnProperty(r)){if(t=i.match(q9[r]),!t)continue;if("windows"===r&&"plugins"in window.navigator)return null;const s={};return s.device=r,s.browser=zZ(i,hse,"default"),s.name=zZ(r,pse),s[s.name]=!0,s.majorVersion=t[2],s.minorVersion=t[3].replace("_","."),o=s.minorVersion.replace(".","").substr(0,2),s.flatVersion=s.majorVersion+o+new Array(3-(o.length<3?o.length:2)).join("0"),s.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,s.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||s.cordova,s}return null})(Ik):null;VZ()&&window,Qv&&!Qv.chrome&&window,Qv&&!Qv.chrome&&window;var _i=S(3608);function ea(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Wv(i,o){return function(t,r){o(t,r,i)}}function ta(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}function KZ(i){return i.ownerDocument||i.document||i}const W9=i=>KZ(i).defaultView,Pk=i=>KZ(i).documentElement;let K9=0;function Ok(i){const o=W9(i),t=Pk(i),r={height:o.innerHeight,width:o.innerWidth};return t.scrollHeight-t.clientHeight>0&&(r.width-=function yse(){if(!K9&&typeof document<"u"){const i=document.createElement("div");i.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",i.innerHTML="&nbsp;",document.body.appendChild(i),K9=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return K9}()),r}const ku=i=>{let o=i.getBoundingClientRect(),{left:t,top:r}=o;return!o.height&&!o.width&&(o=(i=>{const{display:o,left:t,position:r}=i.style;i.style.display="",i.style.left="-10000px",i.style.position="absolute";const s=i.getBoundingClientRect();return i.style.display=o,i.style.left=t,i.style.position=r,s})(i)),{top:r,left:t,height:o.height,width:o.width}},X9=(i,o)=>{const t=[];let r=i.parentNode;for(;r&&(t.push(r),r!==o);)r=r.parentNode;return t};function Nk(i){const o=Pk(i),t=W9(i);return{x:t.pageXOffset||o.scrollLeft||0,y:t.pageYOffset||o.scrollTop||0}}const eV=i=>i===(i.ownerDocument||{}).body?Nk(i):{x:i.scrollLeft,y:i.scrollTop},eL=i=>{let o=i.offsetParent;for(;o&&"static"===o.style.position;)o=o.offsetParent;return o||Pk(i)},tL=(i,o,t=1)=>{const r=o?eL(o):null,{top:s,left:l,height:u,width:p}=((i,o)=>{const t=W9(i),r=t.getComputedStyle(i),s=ku(i),l=o||eL(i),u=i.ownerDocument;let y={top:0,left:0};if("fixed"!==r.position&&l!==u.body&&l!==u.documentElement){const A=t.getComputedStyle(l);y=ku(l),y.top+=parseInt(A.borderTopWidth,10),y.left+=parseInt(A.borderLeftWidth,10)}return{top:s.top-y.top,left:s.left-y.left,height:s.height,width:s.width}})(i,r),{x:y,y:A}=((i,o)=>i?eV(i):function Ase(i){const o=eL(i);return o?eV(o):{x:0,y:0}}(o))(r,i),w=i.ownerDocument,I=r===w.body||r===w.documentElement?1:t;return{top:s+A*I,left:l+y*I,height:u,width:p}};const nV=function(i,o,t){let r=0;return i+o>t&&(r=t-(i+o)),i<0&&(r=-i),r},iV=function({offset:i,size:o,anchorSize:t,viewPortSize:r,anchorAlignPoint:s,elementAlignPoint:l,margin:u}){let p=0;const w=2*u;if(l!==s&&"center"!==l&&"middle"!==l&&"center"!==s&&"middle"!==s){const I="top"===s||"left"===s;i<0&&I?(p=o+t+w,i+p+o>r&&(p=0)):i>=0&&!I&&(i+o>r&&(p+=-(t+o+w)),i+p<0&&(p=0))}return p},Sse=i=>{const o=[];let t=i.parentNode.firstElementChild;for(;t;)t!==i&&o.push(t),t=t.nextElementSibling;return o};!function kse(i){let o,t=!1}(i=>{if(!aV())return!1;const o=i?i.ownerDocument:document;if(!o||!o.body)return!1;const r=o.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',o.body.appendChild(r);const s=10!==r.children[0].getBoundingClientRect().top;return o.body.removeChild(r),s});const aV=()=>Boolean(typeof window<"u"&&window.document&&window.document.createElement),Qse=["container"];function Wse(i,o){}const Kse=["*"],nL=(i,o)=>i||{height:0,left:o.left,top:o.top,width:0},Rk=()=>typeof window<"u",tle=/auto|scroll/,ole=i=>(i=>`${i.style.overflow}${i.style.overflowX}${i.style.overflowY}`)(i)||(i=>{const o=window.getComputedStyle(i);return`${o.overflow}${o.overflowX}${o.overflowY}`})(i),cV=1e3/60,sle=function ale(i){let o,t=!1;return(...r)=>(t||(o=i(...r),t=!0),o)}(()=>{if(!Dt()&&null!==document.body)return!1;const o=document.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)",o.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(o);const t=10!==o.children[0].getBoundingClientRect().top;return document.body.removeChild(o),t}),Ix=(i,o)=>i&&1!==o?{height:i.height/o,left:i.left/o,top:i.top/o,width:i.width/o}:i,cle=["font-size","font-family","font-stretch","font-style","font-weight","line-height"];let Iu=(()=>{let i=class{addOffset(t,r){return{left:t.left+r.left,top:t.top+r.top}}addScroll(t,r){return function WZ(i,o){return{top:i.top+o.y,left:i.left+o.x,height:i.height,width:i.width}}(t,r)}align(t){return(i=>{const{anchorRect:o,anchorAlign:t,elementRect:r,elementAlign:s,margin:l={}}=i,u=t.horizontal,p=t.vertical,y=s.horizontal,A=s.vertical;let w=l.horizontal||0,I=l.vertical||0,P=o.top,F=o.left;return"bottom"===p&&(P+=o.height),("center"===p||"middle"===p)&&(P+=Math.round(o.height/2)),"bottom"===A&&(P-=r.height,I*=-1),("center"===A||"middle"===A)&&(P-=Math.round(r.height/2),I*=-1),"right"===u&&(F+=o.width),("center"===u||"middle"===u)&&(F+=Math.round(o.width/2)),"right"===y&&(F-=r.width,w*=-1),("center"===y||"middle"===y)&&(F-=Math.round(r.width/2),w*=-1),{top:P+I,left:F+w}})(t)}boundingOffset(t){return(i=>{if(!i.getBoundingClientRect){const l=Ok(i);return{bottom:l.height,left:0,right:l.width,top:0}}const{bottom:o,left:t,right:r,top:s}=i.getBoundingClientRect();return{bottom:o,left:t,right:r,top:s}})(t)}getFontStyles(t){const r=this.getWindow();if(!r||!t)return[];const s=r.getComputedStyle(t);return cle.map(l=>({key:l,value:s[l]}))}getWindow(){return Rk()?window:null}hasOffsetParent(t){return!!t&&!!this.nativeElement(t).offsetParent}offset(t){return t?ku(t):null}offsetAtPoint(t,r){if(!t)return null;const s=this.nativeElement(t),{left:l,top:u,transition:p}=s.style;s.style.transition="none",s.style.left=`${r.left}px`,s.style.top=`${r.top}px`;const y=ku(s);return s.style.left=l,s.style.top=u,s.style.transition=p,y}nativeElement(t){return t?t.nativeElement||t:null}position(t,r,s=1){return t&&r?tL(t,this.nativeElement(r),s):null}removeScroll(t,r){return function tV(i,o){return{top:i.top-o.y,left:i.left-o.x,height:i.height,width:i.width}}(t,r)}restrictToView(t){return(i=>{const{anchorRect:o,anchorAlign:t,elementRect:r,elementAlign:s,collisions:l,viewPort:u,margin:p={}}=i,{top:y,left:A,height:w,width:I}=r,{height:P,width:F}=u,V=p.horizontal||0,oe=p.vertical||0;let Ae=0,ue=0;const Se="fit"===l.vertical,Be="fit"===l.horizontal,Me="flip"===l.vertical,He="flip"===l.horizontal;Se&&(ue+=nV(y,w,P)),Be&&(Ae+=nV(A,I,F)),Me&&(ue+=iV({margin:oe,offset:y,size:w,anchorSize:o.height,viewPortSize:P,anchorAlignPoint:t.vertical,elementAlignPoint:s.vertical})),He&&(Ae+=iV({margin:V,offset:A,size:I,anchorSize:o.width,viewPortSize:F,anchorAlignPoint:t.horizontal,elementAlignPoint:s.horizontal}));const Ye=Me&&0!==ue,Le=He&&0!==Ae,tt=Se&&0!==ue,kt=Be&&0!==Ae;return{flipped:Le||Ye,fitted:tt||kt,flip:{horizontal:Le,vertical:Ye},fit:{horizontal:kt,vertical:tt},offset:{left:Ae,top:ue}}})(t)}scrollPosition(t){return Nk(this.nativeElement(t))}scrollableParents(t){return(i=>{const o=[];if(!Dt()||!Rk())return o;let t=i.parentElement;for(;t;)(tle.test(ole(t))||t.hasAttribute("data-scrollable"))&&o.push(t),t=t.parentElement;return o.push(window),o})(t)}stackingElementOffset(t){const r=this.getRelativeContextElement(t);return r?ku(r):null}stackingElementScroll(t){const r=this.getRelativeContextElement(t);return r?{x:r.scrollLeft,y:r.scrollTop}:{x:0,y:0}}getRelativeContextElement(t){if(!t||!sle())return null;let r=this.nativeElement(t).parentElement;for(;r;){if("none"!==window.getComputedStyle(r).transform)return r;r=r.parentElement}return null}useRelativePosition(t){return!!this.getRelativeContextElement(t)}windowViewPort(t){return Ok(this.nativeElement(t))}zIndex(t,r){return((i,o)=>{if(!i||!Dt()||!Rk())return null;const t=((i,o)=>{const t=X9(i);let s,l,r=o;for(;r&&(s=Sse(r),l=t.reduce((u,p)=>u.concat(s.filter(y=>y===p)),[])[0],!l);)r=r.parentElement;return l})(i,o);if(!t)return null;const r=[i].concat(X9(i,t)).reduce((s,l)=>{const u=l.style.zIndex||window.getComputedStyle(l).zIndex,p=parseInt(u,10);return p>s?p:s},0);return r?r+1:null})(t,this.nativeElement(r))}zoomLevel(){return Dt()&&Rk()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1}isZoomed(){return this.zoomLevel()>1}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const Fk=new n.OlP("Popup Document Scale");let iL=(()=>{let i=class{constructor(t,r=1){this._dom=t,this.scale=r}alignElement(t){const{anchor:r,element:s,anchorAlign:l,elementAlign:u,margin:p,offset:y,positionMode:A}=t,w=this.scale||1,P="fixed"!==A&&this._dom.hasOffsetParent(s)?this.relativeRect(r,s,y,w):this.absoluteRect(r,s,y,w),F=Ix(this._dom.offset(s.nativeElement),w);return this._dom.align({anchorAlign:l,anchorRect:P,elementAlign:u,elementRect:F,margin:p})}absoluteRect(t,r,s,l){const u=this.elementScrollPosition(t,r),p=nL(this._dom.offset(t),s),y=2*l,A=this._dom.stackingElementScroll(r);1!==l&&A&&(A.x/=y,A.y/=y);const w=this._dom.stackingElementOffset(r);return 1!==l&&w&&(w.left/=y,w.top/=y),this._dom.removeScroll(this._dom.addScroll(((i,o)=>o?{height:i.height,left:i.left-o.left,top:i.top-o.top,width:i.width}:i)(Ix(p,l),w),A),u)}elementScrollPosition(t,r){return t?{x:0,y:0}:this._dom.scrollPosition(r)}relativeRect(t,r,s,l){const u=nL(this._dom.position(t,r,l),s);return Ix(u,l)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Iu),n.LFG(Fk,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([Wv(1,(0,n.tBr)(Fk)),Wv(1,(0,n.FiY)()),ta("design:paramtypes",[Iu,Number])],i),i})(),oL=(()=>{let i=class{constructor(t,r=1){this._dom=t,this.scale=r}positionElement(t){const{anchor:r,currentLocation:s,element:l,anchorAlign:u,elementAlign:p,collisions:y,margin:A}=t,w=this._dom,I=this.scale||1,P=w.offsetAtPoint(l,s),F=Ix(P,I),V=Ix(w.offset(r),I),oe=nL(V,s),Ae=t.viewPort||w.windowViewPort(l);Ae.width=Ae.width/I,Ae.height=Ae.height/I;const ue=w.restrictToView({anchorAlign:u,anchorRect:oe,collisions:y,elementAlign:p,elementRect:F,margin:A,viewPort:Ae}),Se=w.addOffset(s,ue.offset);return{flip:ue.flip,flipped:ue.flipped,offset:Se}}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Iu),n.LFG(Fk,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([Wv(1,(0,n.tBr)(Fk)),Wv(1,(0,n.FiY)()),ta("design:paramtypes",[Iu,Number])],i),i})(),rL=(()=>{let i=class{constructor(t,r){this._dom=t,this._zone=r}subscribe(t){!Dt()||this._zone.runOutsideAngular(()=>{this.subscription=jn(this._dom.getWindow(),"resize").pipe(Kl(cV)).subscribe(()=>t())})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isUnsubscribed(){return this.subscription&&this.subscription.closed}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Iu),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([ta("design:paramtypes",[Iu,n.R0b])],i),i})(),aL=(()=>{let i=class{constructor(t,r){this._dom=t,this._zone=r}forElement(t){return this.unsubscribe(),this.element=t,this}subscribe(t){if(!t||!Dt()||!this.element)return;const r=this._dom.scrollableParents(this.element);this._zone.runOutsideAngular(()=>{const s=r.map(u=>jn(u,"scroll").pipe(Kl(cV)));this.subscription=(0,Ko.T)(...s).subscribe(u=>{const p=u.target;(r.filter(I=>I===p).length>0||p===document||p===window)&&t(this.isVisible(this.element,p))})})}unsubscribe(){!this.subscription||this.subscription.unsubscribe()}isVisible(t,r){const s=this._dom.boundingOffset(t),l=this._dom.boundingOffset(this._dom.nativeElement(r));return!(1<l.top-s.bottom||1<s.top-l.bottom||1<s.left-l.right||1<l.left-s.right)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Iu),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([ta("design:paramtypes",[Iu,n.R0b])],i),i})();const Ex="left",Kv="right",Xv="down",Px={expand:i=>{const o="up"===i||i===Xv?"scaleY":"scaleX";let s;return s=i===Xv?"top":i===Ex?Kv:i===Kv?Ex:"bottom",{start:{transform:`${o}(0)`,transformOrigin:s},end:{transform:`${o}(1)`}}},slide:i=>{const o=i===Ex||i===Kv?"translateX":"translateY";return{start:{transform:`${o}(${i===Kv||i===Xv?-100:100}%)`},end:{transform:`${o}(0%)`}}},fade:()=>({start:{opacity:0},end:{opacity:1}}),zoom:()=>({start:{transform:"scale(0)"},end:{transform:"scale(1)"}})};let lL=(()=>{let i=class{constructor(t){this.animationBuilder=t,this.start=new n.vpe,this.end=new n.vpe}play(t,r,s){if(!this.flip||this.flip.horizontal!==s.horizontal||this.flip.vertical!==s.vertical){this.flip=s;const l=r.type||"slide",u=Px[l];if(u){const y=u(this.getDirection(s,r));this.playStates(t,y,r)}else if((0,n.X6Q)())throw new Error(`Unsupported animation type: "${l}". The supported types are slide, expand, fade and zoom.`)}}ngOnDestroy(){this.stopPlayer()}playStates(t,r,s){this.stopPlayer();const l=s.duration||100,u=this.animationBuilder.build([Kt(r.start),Wi(`${l}ms ease-in`,Kt(r.end))]),p=this.player=u.create(t);p.onDone(()=>{this.end.emit(),this.stopPlayer()}),this.start.emit(),p.play()}getDirection(t,r){let s=r.direction||Xv;return t.horizontal&&(s===Ex?s=Kv:s===Kv&&(s=Ex)),t.vertical&&(s===Xv?s="up":"up"===s&&(s=Xv)),s}stopPlayer(){this.player&&(this.player.destroy(),this.player=null)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wl))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([ta("design:paramtypes",[Wl])],i),i})();const ple={name:"@progress/kendo-angular-popup",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1648554200,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},dV={left:-1e4,top:0};let uV=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A,w){this.container=t,this._alignService=r,this.domService=s,this._positionService=l,this._resizeService=u,this._scrollableService=p,this.animationService=y,this._renderer=A,this._zone=w,this.animate=!0,this.anchorAlign={horizontal:"left",vertical:"bottom"},this.collision={horizontal:"fit",vertical:"flip"},this.popupAlign={horizontal:"left",vertical:"top"},this.copyAnchorStyles=!1,this.positionMode="fixed",this.offset=dV,this.anchorViewportLeave=new n.vpe,this.close=new n.vpe,this.open=new n.vpe,this.positionChange=new n.vpe,this.resolvedPromise=Promise.resolve(null),this.initialCheck=!0,(0,mi.s)(ple),this._renderer.addClass(t.nativeElement,"k-animation-container"),this.updateFixedClass()}ngOnInit(){this.reposition=this.reposition.bind(this),this._resizeService.subscribe(this.reposition),this.animationSubscriptions=this.animationService.start.subscribe(this.onAnimationStart.bind(this)),this.animationSubscriptions.add(this.animationService.end.subscribe(this.onAnimationEnd.bind(this))),this._scrollableService.forElement(this.domService.nativeElement(this.anchor)||this.container.nativeElement).subscribe(this.onScroll.bind(this)),this.currentOffset=dV,this.setZIndex(),this.copyFontStyles(),this.updateFixedClass(),this.reposition()}ngOnChanges(t){t.copyAnchorStyles&&this.copyFontStyles(),t.positionMode&&this.updateFixedClass()}ngAfterViewInit(){this.animate||this.resolvedPromise.then(()=>{this.onAnimationEnd()})}ngAfterViewChecked(){this.initialCheck?this.initialCheck=!1:this._zone.runOutsideAngular(()=>{this.unsubscribeReposition(),this.repositionSubscription=(0,Yo.D)(this.resolvedPromise).subscribe(this.reposition)})}ngOnDestroy(){this.anchorViewportLeave.complete(),this.positionChange.complete(),this.close.emit(),this.close.complete(),this._resizeService.unsubscribe(),this._scrollableService.unsubscribe(),this.animationSubscriptions.unsubscribe(),this.unsubscribeReposition()}onResize(){this.reposition()}onAnimationStart(){this._renderer.removeClass(this.container.nativeElement,"k-animation-container-shown")}onAnimationEnd(){this._renderer.addClass(this.container.nativeElement,"k-animation-container-shown"),this.open.emit(),this.open.complete()}get currentOffset(){return this._currentOffset}set currentOffset(t){this.setContainerStyle("left",`${t.left}px`),this.setContainerStyle("top",`${t.top}px`),this._currentOffset=t}setZIndex(){this.anchor&&this.setContainerStyle("z-index",String(this.domService.zIndex(this.domService.nativeElement(this.anchor),this.container)))}reposition(){if(!Dt())return;const{flip:t,offset:r}=this.position();(!this.currentOffset||((i,o)=>{const{left:t,top:r}=i,{left:s,top:l}=o;return Math.abs(t-s)>=1||Math.abs(r-l)>=1})(this.currentOffset,r))&&(this.currentOffset=r,Ut(this.positionChange)&&this._zone.run(()=>this.positionChange.emit({offset:r,flip:t}))),this.animate&&this.animationService.play(this.contentContainer.nativeElement,this.animate,t),this.resizeSensor.acceptSize()}position(){const t=this._alignService.alignElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,element:this.container,elementAlign:this.popupAlign,margin:this.margin,offset:this.offset,positionMode:this.positionMode});return this._positionService.positionElement({anchor:this.domService.nativeElement(this.anchor),anchorAlign:this.anchorAlign,collisions:this.collision,currentLocation:t,element:this.container,elementAlign:this.popupAlign,margin:this.margin})}onScroll(t){const r=Ut(this.anchorViewportLeave);t||!r?this.reposition():r&&this._zone.run(()=>{this.anchorViewportLeave.emit()})}copyFontStyles(){!this.anchor||!this.copyAnchorStyles||this.domService.getFontStyles(this.domService.nativeElement(this.anchor)).forEach(t=>this.setContainerStyle(t.key,t.value))}updateFixedClass(){this._renderer["fixed"===this.positionMode?"addClass":"removeClass"](this.container.nativeElement,"k-animation-container-fixed")}setContainerStyle(t,r){this._renderer.setStyle(this.container.nativeElement,t,r)}unsubscribeReposition(){this.repositionSubscription&&this.repositionSubscription.unsubscribe()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(iL),n.Y36(Iu),n.Y36(oL),n.Y36(rL),n.Y36(aL),n.Y36(lL),n.Y36(n.Qsj),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-popup"]],viewQuery:function(t,r){if(1&t&&(n.Gf(Qse,7),n.Gf(Bs,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.contentContainer=s.first),n.iGM(s=n.CRH())&&(r.resizeSensor=s.first)}},inputs:{animate:"animate",anchorAlign:"anchorAlign",collision:"collision",popupAlign:"popupAlign",copyAnchorStyles:"copyAnchorStyles",positionMode:"positionMode",offset:"offset",anchor:"anchor",popupClass:"popupClass",margin:"margin"},outputs:{anchorViewportLeave:"anchorViewportLeave",close:"close",open:"open",positionChange:"positionChange"},exportAs:["kendo-popup"],features:[n._Bn([iL,lL,Iu,oL,rL,aL]),n.TTD],ngContentSelectors:Kse,decls:5,vars:4,consts:[[1,"k-popup",3,"ngClass"],["container",""],[3,"ngTemplateOutlet","ngIf"],[3,"rateLimit","resize"]],template:function(t,r){1&t&&(n.F$t(),n.TgZ(0,"div",0,1),n.Hsn(2),n.YNc(3,Wse,0,0,"ng-template",2),n.TgZ(4,"kendo-resize-sensor",3),n.NdJ("resize",function(){return r.onResize()}),n.qZA()()),2&t&&(n.Q6J("ngClass",r.popupClass),n.xp6(3),n.Q6J("ngTemplateOutlet",r.content)("ngIf",r.content),n.xp6(1),n.Q6J("rateLimit",100))},dependencies:[gt,Ge,Pi,Bs],encapsulation:2}),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"animate",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"anchor",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"anchorAlign",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"collision",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"popupAlign",void 0),ea([(0,n.IIB)(),ta("design:type",Boolean)],i.prototype,"copyAnchorStyles",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"popupClass",void 0),ea([(0,n.IIB)(),ta("design:type",String)],i.prototype,"positionMode",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"offset",void 0),ea([(0,n.IIB)(),ta("design:type",Object)],i.prototype,"margin",void 0),ea([(0,n.r_U)(),ta("design:type",n.vpe)],i.prototype,"anchorViewportLeave",void 0),ea([(0,n.r_U)(),ta("design:type",n.vpe)],i.prototype,"close",void 0),ea([(0,n.r_U)(),ta("design:type",n.vpe)],i.prototype,"open",void 0),ea([(0,n.r_U)(),ta("design:type",n.vpe)],i.prototype,"positionChange",void 0),ea([(0,n.i9L)("container",{static:!0}),ta("design:type",n.SBq)],i.prototype,"contentContainer",void 0),ea([(0,n.i9L)(Bs,{static:!0}),ta("design:type",Bs)],i.prototype,"resizeSensor",void 0),i=ea([ta("design:paramtypes",[n.SBq,iL,Iu,oL,rL,aL,lL,n.Qsj,n.R0b])],i),i})();const pV=new n.OlP("Popup Container");let Do=(()=>{let i=class{constructor(t,r,s,l){this.applicationRef=t,this.componentFactoryResolver=r,this.injector=s,this.container=l}get rootViewContainer(){const t=this.applicationRef.components||[];if(t[0])return t[0];throw new Error("\n            View Container not found! Inject the POPUP_CONTAINER or define a specific ViewContainerRef via the appendTo option.\n            See http://www.telerik.com/kendo-angular-ui/components/popup/api/POPUP_CONTAINER/ for more details.\n        ")}get rootViewContainerNode(){return this.container?this.container.nativeElement:this.getComponentRootNode(this.rootViewContainer)}open(t={}){const{component:r,nodes:s}=this.contentFrom(t.content),l=this.appendPopup(s,t.appendTo),u=l.instance;this.projectComponentInputs(l,t),l.changeDetectorRef.detectChanges(),r&&r.changeDetectorRef.detectChanges();const p=this.getComponentRootNode(l);return{close:()=>{r&&r.destroy(),l.destroy(),(i=>{i&&i.parentNode&&i.parentNode.removeChild(i)})(p)},content:r,popup:l,popupAnchorViewportLeave:u.anchorViewportLeave,popupClose:u.close,popupElement:p,popupOpen:u.open,popupPositionChange:u.positionChange}}appendPopup(t,r){const s=this.createComponent(uV,t,r);return r||this.rootViewContainerNode.appendChild(this.getComponentRootNode(s)),s}getComponentRootNode(t){return t.location.nativeElement}getComponentFactory(t){return this.componentFactoryResolver.resolveComponentFactory(t)}createComponent(t,r,s){const l=this.getComponentFactory(t);if(s)return s.createComponent(l,void 0,this.injector,r);{const u=l.create(this.injector,r);return this.applicationRef.attachView(u.hostView),u}}projectComponentInputs(t,r){return Object.getOwnPropertyNames(r).filter(s=>"content"!==s||r.content instanceof n.Rgc).map(s=>{t.instance[s]=r[s]}),t}contentFrom(t){if(!t||t instanceof n.Rgc)return{component:null,nodes:[[]]};const r=this.createComponent(t);return{component:r,nodes:[r?[r.location.nativeElement]:[]]}}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.z2F),n.LFG(n._Vd),n.LFG(n.zs3),n.LFG(pV,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ea([Wv(3,(0,n.tBr)(pV)),Wv(3,(0,n.FiY)()),ta("design:paramtypes",[n.z2F,n._Vd,n.zs3,n.SBq])],i),i})(),Eu=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Do],imports:[Lt,cg]}),i})();const wd={extend:function(i){for(let o in this)"extend"!==o&&(i[o]=this[o])},observers:function(){return this._observers=this._observers||[],this._observers},addObserver:function(i){return this._observers?this._observers.push(i):this._observers=[i],this},removeObserver:function(i){const o=this.observers(),t=o.indexOf(i);return-1!==t&&o.splice(t,1),this},trigger:function(i,o){const t=this._observers;if(t&&!this._suspended)for(let r=0;r<t.length;r++){let s=t[r];s[i]&&s[i](o)}return this},optionsChange:function(i={}){i.element=this,this.trigger("optionsChange",i)},geometryChange:function(){this.trigger("geometryChange",{element:this})},suspend:function(){return this._suspended=(this._suspended||0)+1,this},resume:function(){return this._suspended=Math.max((this._suspended||0)-1,0),this},_observerField:function(i,o){this[i]&&this[i].removeObserver(this),this[i]=o,o.addObserver(this)}},ey=typeof window<"u"?window:{},mle=ey.requestAnimationFrame||ey.webkitRequestAnimationFrame||ey.mozRequestAnimationFrame||ey.oRequestAnimationFrame||ey.msRequestAnimationFrame||function(i){setTimeout(i,1e3/60)};function hV(i){mle.call(ey,i)}class dr{}const _le=/&/g,ble=/</g,vle=/"/g,yle=/'/g,Cle=/>/g;function cL(i){return String(i).replace(_le,"&amp;").replace(ble,"&lt;").replace(Cle,"&gt;").replace(vle,"&quot;").replace(yle,"&#39;")}function gV(i){return"function"==typeof i}function fV(i){return"string"==typeof i?[i]:i}function Tle(){this._defaultPrevented=!0}function Sle(){return!0===this._defaultPrevented}const wle=class xle extends dr{constructor(){super(),this._events={}}bind(o,t,r){const s=fV(o),l=gV(t),u=s.length;if(void 0===t){for(let p in o)this.bind(p,o[p]);return this}for(let p=0;p<u;p++){const y=s[p];let A=l?t:t[y];if(A){if(r){const I=A;A=()=>{this.unbind(y,A),I.apply(this,arguments)},A.original=I}(this._events[y]=this._events[y]||[]).push(A)}}return this}one(o,t){return this.bind(o,t,!0)}first(o,t){const r=fV(o),s=gV(t);for(let l=0,u=r.length;l<u;l++){const p=r[l],y=s?t:t[p];y&&(this._events[p]=this._events[p]||[]).unshift(y)}return this}trigger(o,t={}){let r=this._events[o];if(r){const s=r.length;t.sender=this,t._defaultPrevented=!1,t.preventDefault=Tle,t.isDefaultPrevented=Sle,r=r.slice();for(let l=0;l<s;l++)r[l].call(this,t);return!0===t._defaultPrevented}return!1}unbind(o,t){const r=this._events[o];if(void 0===o)this._events={};else if(r)if(t)for(let s=r.length-1;s>=0;s--)(r[s]===t||r[s].original===t)&&r.splice(s,1);else this._events[o]=[];return this}},mV={};typeof window<"u"&&(mV.browser=function(i){const o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};let t;for(let r in o)if(o.hasOwnProperty(r)){const s=i.match(o[r]);if(s){t={},t[r]=!0,t[s[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,t.version=parseInt(document.documentMode||s[2],10);break}}return t}(window.navigator.userAgent));const dg=mV;function _V(){return(new Date).getTime()}const ty={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},bV=dg.browser;let vV=i=>{const o=Object.keys(ty);o.push("transparent");const t=new RegExp("^("+o.join("|")+")(\\W|$)","i");return vV=r=>t.exec(r),t.exec(i)};class Hk extends dr{constructor(){super()}toHSV(){return this}toRGB(){return this}toHex(){return this.toBytes().toHex()}toBytes(){return this}toCss(){return"#"+this.toHex()}toCssRgba(){const o=this.toBytes();return`rgba(${o.r}, ${o.g}, ${o.b}, ${parseFloat(Number(this.a).toFixed(3))})`}toDisplay(){return bV.msie&&bV.version<9?this.toCss():this.toCssRgba()}equals(o){return o===this||null!==o&&this.toCssRgba()===Ip(o).toCssRgba()}diff(o){if(null===o)return NaN;const t=this.toBytes(),r=o.toBytes();return Math.sqrt(Math.pow(.3*(t.r-r.r),2)+Math.pow(.59*(t.g-r.g),2)+Math.pow(.11*(t.b-r.b),2))}clone(){let o=this.toBytes();return o===this&&(o=new v1(o.r,o.g,o.b,o.a)),o}}class tm extends Hk{constructor(o,t,r,s){super(),this.r=o,this.g=t,this.b=r,this.a=s}toHSV(){const{r:o,g:t,b:r}=this,s=Math.min(o,t,r),l=Math.max(o,t,r),u=l-s,p=l;let y,A;return 0===u?new uL(0,0,p,this.a):(0!==l?(A=u/l,y=o===l?(t-r)/u:t===l?2+(r-o)/u:4+(o-t)/u,y*=60,y<0&&(y+=360)):(A=0,y=-1),new uL(y,A,p,this.a))}toHSL(){const{r:o,g:t,b:r}=this,s=Math.max(o,t,r),l=Math.min(o,t,r);let u,p,y=(s+l)/2;if(s===l)u=p=0;else{const A=s-l;switch(p=y>.5?A/(2-s-l):A/(s+l),s){case o:u=(t-r)/A+(t<r?6:0);break;case t:u=(r-o)/A+2;break;case r:u=(o-t)/A+4}}return new yV(60*u,100*p,100*y,this.a)}toBytes(){return new v1(255*this.r,255*this.g,255*this.b,this.a)}}class v1 extends tm{constructor(o,t,r,s){super(Math.round(o),Math.round(t),Math.round(r),s)}toRGB(){return new tm(this.r/255,this.g/255,this.b/255,this.a)}toHSV(){return this.toRGB().toHSV()}toHSL(){return this.toRGB().toHSL()}toHex(){return dL(this.r,2)+dL(this.g,2)+dL(this.b,2)}toBytes(){return this}}function dL(i,o,t="0"){let r=i.toString(16);for(;o>r.length;)r=t+r;return r}class uL extends Hk{constructor(o,t,r,s){super(),this.h=o,this.s=t,this.v=r,this.a=s}toRGB(){let s,l,u,{h:o,s:t,v:r}=this;if(0===t)s=l=u=r;else{o/=60;const p=Math.floor(o),y=o-p,A=r*(1-t),w=r*(1-t*y),I=r*(1-t*(1-y));switch(p){case 0:s=r,l=I,u=A;break;case 1:s=w,l=r,u=A;break;case 2:s=A,l=r,u=I;break;case 3:s=A,l=w,u=r;break;case 4:s=I,l=A,u=r;break;default:s=r,l=A,u=w}}return new tm(s,l,u,this.a)}toHSL(){return this.toRGB().toHSL()}toBytes(){return this.toRGB().toBytes()}}class yV extends Hk{constructor(o,t,r,s){super(),this.h=o,this.s=t,this.l=r,this.a=s}toRGB(){let s,l,u,o=this.h/360,t=this.s/100,r=this.l/100;if(0===t)s=l=u=r;else{const p=r<.5?r*(1+t):r+t-r*t,y=2*r-p;s=pL(y,p,o+1/3),l=pL(y,p,o),u=pL(y,p,o-1/3)}return new tm(s,l,u,this.a)}toHSV(){return this.toRGB().toHSV()}toBytes(){return this.toRGB().toBytes()}}function pL(i,o,t){let r=t;return r<0&&(r+=1),r>1&&(r-=1),r<1/6?i+6*(o-i)*r:r<.5?o:r<2/3?i+(o-i)*(2/3-r)*6:i}function Ip(i,o){let t,r;if(null==i||"none"===i)return null;if(i instanceof Hk)return i;let s=i.toLowerCase();if(t=vV(s))return s="transparent"===t[1]?new tm(1,1,1,0):Ip(ty[t[1]],o),s.match=[t[1]],s;if((t=/^#?([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})\b/i.exec(s))?r=new v1(parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),1):(t=/^#?([0-9a-f])([0-9a-f])([0-9a-f])\b/i.exec(s))?r=new v1(parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),1):(t=/^rgb\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/.exec(s))?r=new v1(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),1):(t=/^rgba\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9.]+)\s*\)/.exec(s))?r=new v1(parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])):(t=/^rgb\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*\)/.exec(s))?r=new tm(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,1):(t=/^rgba\(\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9]*\.?[0-9]+)%\s*,\s*([0-9.]+)\s*\)/.exec(s))&&(r=new tm(parseFloat(t[1])/100,parseFloat(t[2])/100,parseFloat(t[3])/100,parseFloat(t[4]))),r)r.match=t;else if(!o)throw new Error("Cannot parse color: "+s);return r}const CV=(()=>{class i extends dr{constructor(t){if(super(),1===arguments.length){const r=i.formats,s=this.resolveColor(t);for(let l=0;l<r.length;l++){const p=r[l].process,y=r[l].re.exec(s);if(y){const A=p(y);this.r=A[0],this.g=A[1],this.b=A[2]}}}else this.r=arguments[0],this.g=arguments[1],this.b=arguments[2];this.r=this.normalizeByte(this.r),this.g=this.normalizeByte(this.g),this.b=this.normalizeByte(this.b)}toHex(){const t=this.padDigit,r=this.r.toString(16),s=this.g.toString(16),l=this.b.toString(16);return"#"+t(r)+t(s)+t(l)}resolveColor(t){let r=t||"black";return"#"===r.charAt(0)&&(r=r.substr(1,6)),r=r.replace(/ /g,""),r=r.toLowerCase(),r=i.namedColors[r]||r,r}normalizeByte(t){return t<0||isNaN(t)?0:t>255?255:t}padDigit(t){return 1===t.length?"0"+t:t}brightness(t){const r=Math.round;return this.r=r(this.normalizeByte(this.r*t)),this.g=r(this.normalizeByte(this.g*t)),this.b=r(this.normalizeByte(this.b*t)),this}percBrightness(){return Math.sqrt(.241*this.r*this.r+.691*this.g*this.g+.068*this.b*this.b)}isDark(){return this.percBrightness()<180}static fromBytes(t,r,s,l){return new v1(t,r,s,l??1)}static fromRGB(t,r,s,l){return new tm(t,r,s,l??1)}static fromHSV(t,r,s,l){return new uL(t,r,s,l??1)}static fromHSL(t,r,s,l){return new yV(t,r,s,l??1)}}return i.formats=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(o){return[parseInt(o[1],10),parseInt(o[2],10),parseInt(o[3],10)]}},{re:/^(\w{2})(\w{2})(\w{2})$/,process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],i.namedColors=ty,i})();function $k(i,o){return i.push.apply(i,o),i}const Ile={1:"i",10:"x",100:"c",2:"ii",20:"xx",200:"cc",3:"iii",30:"xxx",300:"ccc",4:"iv",40:"xl",400:"cd",5:"v",50:"l",500:"d",6:"vi",60:"lx",600:"dc",7:"vii",70:"lxx",700:"dcc",8:"viii",80:"lxxx",800:"dccc",9:"ix",90:"xc",900:"cm",1e3:"m"};function hL(i){const o=[1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1];let t="";for(;i>0;)i<o[0]?o.shift():(t+=Ile[o[0]],i-=o[0]);return t}function Uk(){let i,o;const t=new Promise((r,s)=>{i=l=>(t._state="resolved",r(l),t),o=l=>(t._state="rejected",s(l),t)});return t._state="pending",t.resolve=i,t.reject=o,t.state=()=>t._state,t}function Zn(i){return void 0!==i}let Ple=1;function gL(){return"kdef"+Ple++}const AV=Math.PI/180,Ox=Number.MAX_VALUE,Nx=-Number.MAX_VALUE;function y1(i){return i/AV}function iy(i){return""===i||null===i||"none"===i||"transparent"===i||!Zn(i)}function Md(i){if(i)return i[i.length-1]}function fL(i,o){return i.length<2?i.slice():function r(s){if(s.length<=1)return s;var l=Math.floor(s.length/2),u=s.slice(0,l),p=s.slice(l);return function t(r,s){for(var l=[],u=0,p=0,y=0;u<r.length&&p<s.length;)o(r[u],s[p])<=0?l[y++]=r[u++]:l[y++]=s[p++];return u<r.length&&l.push.apply(l,r.slice(u)),p<s.length&&l.push.apply(l,s.slice(p)),l}(u=r(u),p=r(p))}(i)}function ug(i){return i*AV}function Ir(i,o){const t=function Ble(i){return i?Math.pow(10,i):1}(o);return Math.round(i*t)/t}function xV(i,o){return Zn(i)?i:o}function TV(i,o){for(let t in o){const r=t.trim().split(" ");for(let s=0;s<r.length;s++)i.addEventListener(r[s],o[t],!1)}}function mL(i,o){const t={},r=window.getComputedStyle(i)||{},s=Array.isArray(o)?o:[o];for(let l=0;l<s.length;l++){let u=s[l];t[u]=r[u]}return t}function SV(i){return isNaN(i)?i:i+"px"}function jk(i,o){if(!o){const t=mL(i,["width","height"]);return{width:parseInt(t.width,10),height:parseInt(t.height,10)}}{const{width:t,height:r}=o;Zn(t)&&(i.style.width=SV(t)),Zn(r)&&(i.style.height=SV(r))}}function wV(i,o={}){for(let t in o){const r=t.trim().split(" ");for(let s=0;s<r.length;s++)i.removeEventListener(r[s],o[t],!1)}}const Ule=class $le extends dr{constructor(o){super(),this._size=o,this._length=0,this._map={}}put(o,t){const r=this._map,s={key:o,value:t};r[o]=s,this._head?(this._tail.newer=s,s.older=this._tail,this._tail=s):this._head=this._tail=s,this._length>=this._size?(r[this._head.key]=null,this._head=this._head.newer,this._head.older=null):this._length++}get(o){const t=this._map[o];if(t)return t===this._head&&t!==this._tail&&(this._head=t.newer,this._head.older=null),t!==this._tail&&(t.older&&(t.older.newer=t.newer,t.newer.older=t.older),t.older=this._tail,t.newer=null,this._tail.newer=t,this._tail=t),t.value}},Yle=/\r?\n|\r|\t/g;function MV(i){return String(i).replace(Yle," ")}const zle={baselineMarkerSize:1};let _L;typeof document<"u"&&(_L=document.createElement("div"),_L.style.cssText="position: absolute !important; top: -4000px !important; width: auto !important; height: auto !important;padding: 0 !important; margin: 0 !important; border: 0 !important;line-height: normal !important; visibility: hidden !important; white-space: pre!important;");class bL extends dr{constructor(o){super(),this._cache=new Ule(1e3),this.options=Object.assign({},zle,o)}measure(o,t,r={}){if(!o)return{width:0,height:0,baseline:0};const s=function Zle(i){const o=[];for(let t in i)o.push(t+i[t]);return o.sort().join("")}(t),l=function Vle(i){let o=2166136261;for(let t=0;t<i.length;++t)o+=(o<<1)+(o<<4)+(o<<7)+(o<<8)+(o<<24),o^=i.charCodeAt(t);return o>>>0}(o+s),u=this._cache.get(l);if(u)return u;const p={width:0,height:0,baseline:0},y=r.box||_L,A=this._baselineMarker().cloneNode(!1);for(let I in t){let P=t[I];typeof P<"u"&&(y.style[I]=P)}const w=!1!==r.normalizeText?MV(o):String(o);return y.textContent=w,y.appendChild(A),document.body.appendChild(y),w.length&&(p.width=y.offsetWidth-this.options.baselineMarkerSize,p.height=y.offsetHeight,p.baseline=A.offsetTop+this.options.baselineMarkerSize),p.width>0&&p.height>0&&this._cache.put(l,p),y.parentNode.removeChild(y),p}_baselineMarker(){const o=document.createElement("div");return o.style.cssText="display: inline-block; vertical-align: baseline;width: "+this.options.baselineMarkerSize+"px; height: "+this.options.baselineMarkerSize+"px;overflow: hidden;",o}}bL.current=new bL;const Gle=bL;function kV(i,o,t){return Gle.current.measure(i,o,t)}const qle={}.toString;class oy extends dr{constructor(o,t=""){super(),this.prefix=t;for(let r in o){let s=o[r];s=this._wrap(s,r),this[r]=s}}get(o){const t=o.split(".");let r=this;for(;t.length&&r;)r=r[t.shift()];return r}set(o,t){this.get(o)!==t&&(this._set(o,this._wrap(t,o)),this.optionsChange({field:this.prefix+o,value:t}))}_set(o,t){const r=o.indexOf(".")>=0;let s=this,l=o;if(r){const u=l.split(".");let p=this.prefix;for(;u.length>1;){l=u.shift(),p+=l+".";let y=s[l];y||(y=new oy({},p),y.addObserver(this),s[l]=y),s=y}l=u[0]}s._clear(l),s[l]=t}_clear(o){const t=this[o];t&&t.removeObserver&&t.removeObserver(this)}_wrap(o,t){const r=qle.call(o);let s=o;return null!==s&&Zn(s)&&"[object Object]"===r&&(!(o instanceof oy)&&!(o instanceof dr)&&(s=new oy(s,this.prefix+t+".")),s.addObserver(this)),s}}wd.extend(oy.prototype);const IV=oy;function Jle(i){return function(o){return this[i]!==o&&(this[i]=o,this.geometryChange()),this}}function Qle(i){return function(){return this[i]}}function Zk(i,o){for(let t=0;t<o.length;t++){let r=o[t],s=r.charAt(0).toUpperCase()+r.substring(1,r.length);i["set"+s]=Jle(r),i["get"+s]=Qle(r)}}class Pu extends dr{constructor(o=0,t=0,r=0,s=0,l=0,u=0){super(),this.a=o,this.b=t,this.c=r,this.d=s,this.e=l,this.f=u}multiplyCopy(o){return new Pu(this.a*o.a+this.c*o.b,this.b*o.a+this.d*o.b,this.a*o.c+this.c*o.d,this.b*o.c+this.d*o.d,this.a*o.e+this.c*o.f+this.e,this.b*o.e+this.d*o.f+this.f)}invert(){const{a:o,b:t,c:r,d:s,e:l,f:u}=this,p=o*s-t*r;return 0===p?null:new Pu(s/p,-t/p,-r/p,o/p,(r*u-s*l)/p,(t*l-o*u)/p)}clone(){return new Pu(this.a,this.b,this.c,this.d,this.e,this.f)}equals(o){return!!o&&this.a===o.a&&this.b===o.b&&this.c===o.c&&this.d===o.d&&this.e===o.e&&this.f===o.f}round(o){return this.a=Ir(this.a,o),this.b=Ir(this.b,o),this.c=Ir(this.c,o),this.d=Ir(this.d,o),this.e=Ir(this.e,o),this.f=Ir(this.f,o),this}toArray(o){const t=[this.a,this.b,this.c,this.d,this.e,this.f];if(Zn(o))for(let r=0;r<t.length;r++)t[r]=Ir(t[r],o);return t}toString(o,t=","){return this.toArray(o).join(t)}static translate(o,t){return new Pu(1,0,0,1,o,t)}static unit(){return new Pu(1,0,0,1,0,0)}static rotate(o,t,r){const s=new Pu;return s.a=Math.cos(ug(o)),s.b=Math.sin(ug(o)),s.c=-s.b,s.d=s.a,s.e=t-t*s.a+r*s.b||0,s.f=r-r*s.a-t*s.b||0,s}static scale(o,t){return new Pu(o,0,0,t,0,0)}}Pu.IDENTITY=Pu.unit();const Dd=Pu;function C1(i){return i&&"function"==typeof i.matrix?i.matrix():i}class Sl extends dr{constructor(o,t){super(),this.x=o||0,this.y=t||0}equals(o){return o&&o.x===this.x&&o.y===this.y}clone(){return new Sl(this.x,this.y)}rotate(o,t){const r=Sl.create(t)||Sl.ZERO;return this.transform(Dd.rotate(o,r.x,r.y))}translate(o,t){return this.x+=o,this.y+=t,this.geometryChange(),this}translateWith(o){return this.translate(o.x,o.y)}move(o,t){return this.x=this.y=0,this.translate(o,t)}scale(o,t=o){return this.x*=o,this.y*=t,this.geometryChange(),this}scaleCopy(o,t){return this.clone().scale(o,t)}transform(o){const t=C1(o),{x:r,y:s}=this;return this.x=t.a*r+t.c*s+t.e,this.y=t.b*r+t.d*s+t.f,this.geometryChange(),this}transformCopy(o){const t=this.clone();return o&&t.transform(o),t}distanceTo(o){const t=this.x-o.x,r=this.y-o.y;return Math.sqrt(t*t+r*r)}round(o){return this.x=Ir(this.x,o),this.y=Ir(this.y,o),this.geometryChange(),this}toArray(o){const t=Zn(o);return[t?Ir(this.x,o):this.x,t?Ir(this.y,o):this.y]}toString(o,t=" "){let{x:r,y:s}=this;return Zn(o)&&(r=Ir(r,o),s=Ir(s,o)),r+t+s}static create(o,t){if(Zn(o))return o instanceof Sl?o:1===arguments.length&&2===o.length?new Sl(o[0],o[1]):new Sl(o,t)}static min(){let o=Ox,t=Ox;for(let r=0;r<arguments.length;r++){let s=arguments[r];o=Math.min(s.x,o),t=Math.min(s.y,t)}return new Sl(o,t)}static max(){let o=Nx,t=Nx;for(let r=0;r<arguments.length;r++){const s=arguments[r];o=Math.max(s.x,o),t=Math.max(s.y,t)}return new Sl(o,t)}static minPoint(){return new Sl(Nx,Nx)}static maxPoint(){return new Sl(Ox,Ox)}static get ZERO(){return new Sl(0,0)}}Zk(Sl.prototype,["x","y"]),wd.extend(Sl.prototype);const Sn=Sl;class pg extends dr{constructor(o,t){super(),this.width=o||0,this.height=t||0}equals(o){return o&&o.width===this.width&&o.height===this.height}clone(){return new pg(this.width,this.height)}toArray(o){const t=Zn(o);return[t?Ir(this.width,o):this.width,t?Ir(this.height,o):this.height]}static create(o,t){if(Zn(o))return o instanceof pg?o:1===arguments.length&&2===o.length?new pg(o[0],o[1]):new pg(o,t)}static get ZERO(){return new pg(0,0)}}Zk(pg.prototype,["width","height"]),wd.extend(pg.prototype);const Vk=pg;class hg extends dr{constructor(o=new Sn,t=new Vk){super(),this.setOrigin(o),this.setSize(t)}clone(){return new hg(this.origin.clone(),this.size.clone())}equals(o){return o&&o.origin.equals(this.origin)&&o.size.equals(this.size)}setOrigin(o){return this._observerField("origin",Sn.create(o)),this.geometryChange(),this}getOrigin(){return this.origin}setSize(o){return this._observerField("size",Vk.create(o)),this.geometryChange(),this}getSize(){return this.size}width(){return this.size.width}height(){return this.size.height}topLeft(){return this.origin.clone()}bottomRight(){return this.origin.clone().translate(this.width(),this.height())}topRight(){return this.origin.clone().translate(this.width(),0)}bottomLeft(){return this.origin.clone().translate(0,this.height())}center(){return this.origin.clone().translate(this.width()/2,this.height()/2)}bbox(o){const t=this.topLeft().transformCopy(o),r=this.topRight().transformCopy(o),s=this.bottomRight().transformCopy(o),l=this.bottomLeft().transformCopy(o);return hg.fromPoints(t,r,s,l)}transformCopy(o){return hg.fromPoints(this.topLeft().transform(o),this.bottomRight().transform(o))}expand(o,t=o){return this.size.width+=2*o,this.size.height+=2*t,this.origin.translate(-o,-t),this}expandCopy(o,t){return this.clone().expand(o,t)}containsPoint(o){const t=this.origin,r=this.bottomRight();return!(o.x<t.x||o.y<t.y||r.x<o.x||r.y<o.y)}_isOnPath(o,t){const r=this.expandCopy(t,t),s=this.expandCopy(-t,-t);return r.containsPoint(o)&&!s.containsPoint(o)}static fromPoints(){const o=Sn.min.apply(null,arguments),t=Sn.max.apply(null,arguments),r=new Vk(t.x-o.x,t.y-o.y);return new hg(o,r)}static union(o,t){return hg.fromPoints(Sn.min(o.topLeft(),t.topLeft()),Sn.max(o.bottomRight(),t.bottomRight()))}static intersect(o,t){const r={left:o.topLeft().x,top:o.topLeft().y,right:o.bottomRight().x,bottom:o.bottomRight().y},s={left:t.topLeft().x,top:t.topLeft().y,right:t.bottomRight().x,bottom:t.bottomRight().y};if(r.left<=s.right&&s.left<=r.right&&r.top<=s.bottom&&s.top<=r.bottom)return hg.fromPoints(new Sn(Math.max(r.left,s.left),Math.max(r.top,s.top)),new Sn(Math.min(r.right,s.right),Math.min(r.bottom,s.bottom)))}}wd.extend(hg.prototype);const na=hg;class zk extends dr{constructor(o=Dd.unit()){super(),this._matrix=o}clone(){return new zk(this._matrix.clone())}equals(o){return o&&o._matrix.equals(this._matrix)}translate(o,t){return this._matrix=this._matrix.multiplyCopy(Dd.translate(o,t)),this._optionsChange(),this}scale(o,t=o,r=null){let s=r;return s&&(s=Sn.create(s),this._matrix=this._matrix.multiplyCopy(Dd.translate(s.x,s.y))),this._matrix=this._matrix.multiplyCopy(Dd.scale(o,t)),s&&(this._matrix=this._matrix.multiplyCopy(Dd.translate(-s.x,-s.y))),this._optionsChange(),this}rotate(o,t){const r=Sn.create(t)||Sn.ZERO;return this._matrix=this._matrix.multiplyCopy(Dd.rotate(o,r.x,r.y)),this._optionsChange(),this}multiply(o){const t=C1(o);return this._matrix=this._matrix.multiplyCopy(t),this._optionsChange(),this}matrix(o){return o?(this._matrix=o,this._optionsChange(),this):this._matrix}_optionsChange(){this.optionsChange({field:"transform",value:this})}}wd.extend(zk.prototype);const EV=zk;function Ep(i){return null===i?null:i instanceof EV?i:new EV(i)}class vL extends dr{constructor(o){super(),this._initOptions(o)}_initOptions(o={}){const{clip:t,transform:r}=o;r&&(o.transform=Ep(r)),t&&!t.id&&(t.id=gL()),this.options=new IV(o),this.options.addObserver(this)}transform(o){if(!Zn(o))return this.options.get("transform");this.options.set("transform",Ep(o))}parentTransform(){let t,o=this;for(;o.parent;){o=o.parent;let r=o.transform();r&&(t=r.matrix().multiplyCopy(t||Dd.unit()))}if(t)return Ep(t)}currentTransform(o=this.parentTransform()){const r=C1(this.transform());let l,s=C1(o);if(l=r&&s?s.multiplyCopy(r):r||s,l)return Ep(l)}visible(o){return Zn(o)?(this.options.set("visible",o),this):!1!==this.options.get("visible")}clip(o){const t=this.options;return Zn(o)?(o&&!o.id&&(o.id=gL()),t.set("clip",o),this):t.get("clip")}opacity(o){return Zn(o)?(this.options.set("opacity",o),this):xV(this.options.get("opacity"),1)}clippedBBox(o){const t=this._clippedBBox(o);if(t){const r=this.clip();return r?na.intersect(t,r.bbox(o)):t}}containsPoint(o,t){if(this.visible()){const r=this.currentTransform(t);let s=o;return r&&(s=o.transformCopy(r.matrix().invert())),this._hasFill()&&this._containsPoint(s)||this._isOnPath&&this._hasStroke()&&this._isOnPath(s)}return!1}_hasFill(){const o=this.options.fill;return o&&!iy(o.color)}_hasStroke(){const o=this.options.stroke;return o&&o.width>0&&!iy(o.color)}_clippedBBox(o){return this.bbox(o)}}vL.prototype.nodeType="Element",wd.extend(vL.prototype);const gg=vL;function PV(i,o,t,r){let s=0,l=0;return r&&(s=Math.atan2(r.c*t,r.a*o),0!==r.b&&(l=Math.atan2(r.d*t,r.b*o))),{x:s,y:l}}const OV=Math.PI/2;class Lx extends dr{constructor(o=new Sn,t=0){super(),this.setCenter(o),this.setRadius(t)}setCenter(o){return this._observerField("center",Sn.create(o)),this.geometryChange(),this}getCenter(){return this.center}equals(o){return o&&o.center.equals(this.center)&&o.radius===this.radius}clone(){return new Lx(this.center.clone(),this.radius)}pointAt(o){return this._pointAt(ug(o))}bbox(o){const t=PV(0,this.radius,this.radius,o);let r=Sn.maxPoint(),s=Sn.minPoint();for(let l=0;l<4;l++){let u=this._pointAt(t.x+l*OV).transformCopy(o),p=this._pointAt(t.y+l*OV).transformCopy(o),y=new Sn(u.x,p.y);r=Sn.min(r,y),s=Sn.max(s,y)}return na.fromPoints(r,s)}_pointAt(o){const{center:t,radius:r}=this;return new Sn(t.x+r*Math.cos(o),t.y+r*Math.sin(o))}containsPoint(o){const{center:t,radius:r}=this;return Math.pow(o.x-t.x,2)+Math.pow(o.y-t.y,2)<=Math.pow(r,2)}_isOnPath(o,t){const{center:r,radius:s}=this,l=r.distanceTo(o);return s-t<=l&&l<=s+t}}Zk(Lx.prototype,["radius"]),wd.extend(Lx.prototype);const yL=Lx,ry={extend:function(i){i.fill=this.fill,i.stroke=this.stroke},fill:function(i,o){const t=this.options;if(Zn(i)){if(i&&"Gradient"!==i.nodeType){const r={color:i};Zn(o)&&(r.opacity=o),t.set("fill",r)}else t.set("fill",i);return this}return t.get("fill")},stroke:function(i,o,t){return Zn(i)?(this.options.set("stroke.color",i),Zn(o)&&this.options.set("stroke.width",o),Zn(t)&&this.options.set("stroke.opacity",t),this):this.options.get("stroke")}},Kle=Dd.IDENTITY.toString(),Rx={extend:function(i){i.bbox=this.bbox,i.geometryChange=this.geometryChange},bbox:function(i){const o=C1(this.currentTransform(i)),t=o?o.toString():Kle;let r;this._bboxCache&&this._matrixHash===t?r=this._bboxCache.clone():(r=this._bbox(o),this._bboxCache=r?r.clone():null,this._matrixHash=t);const s=this.options.get("stroke.width");return s&&r&&r.expand(s/2),r},geometryChange:function(){delete this._bboxCache,this.trigger("geometryChange",{element:this})}};function Xle(i){const o="_"+i;return function(t){return Zn(t)?(this._observerField(o,t),this.geometryChange(),this):this[o]}}function Gk(i,o){for(let t=0;t<o.length;t++)i[o[t]]=Xle(o[t])}class Fx extends gg{constructor(o=new yL,t={}){super(t),this.geometry(o),Zn(this.options.stroke)||this.stroke("#000")}rawBBox(){return this._geometry.bbox()}_bbox(o){return this._geometry.bbox(o)}_containsPoint(o){return this.geometry().containsPoint(o)}_isOnPath(o){return this.geometry()._isOnPath(o,this.options.stroke.width/2)}}Fx.prototype.nodeType="Circle",ry.extend(Fx.prototype),Rx.extend(Fx.prototype),Gk(Fx.prototype,["geometry"]);const NV=Fx;function LV(i,o,t=10){return 0===Ir(Math.abs(i-o),t)}function CL(i,o,t){return i<o||LV(i,o,t)}const qk=Math.pow;class ay extends dr{constructor(o=new Sn,t={}){super(),this.setCenter(o),this.radiusX=t.radiusX,this.radiusY=t.radiusY||t.radiusX,this.startAngle=t.startAngle,this.endAngle=t.endAngle,this.anticlockwise=t.anticlockwise||!1,this.xRotation=t.xRotation}clone(){return new ay(this.center,{radiusX:this.radiusX,radiusY:this.radiusY,startAngle:this.startAngle,endAngle:this.endAngle,anticlockwise:this.anticlockwise})}setCenter(o){return this._observerField("center",Sn.create(o)),this.geometryChange(),this}getCenter(){return this.center}pointAt(o){const t=this.center,r=ug(o);return new Sn(t.x+this.radiusX*Math.cos(r),t.y+this.radiusY*Math.sin(r))}curvePoints(){const o=this.startAngle,t=this.anticlockwise?-1:1,r=[this.pointAt(o)],s=this._arcInterval(),l=s.endAngle-s.startAngle,u=Math.ceil(l/45),p=l/u;let A,y=o;this.xRotation&&(A=Ep().rotate(this.xRotation,this.center));for(let w=1;w<=u;w++){const I=y+t*p,P=this._intervalCurvePoints(y,I,A);r.push(P.cp1,P.cp2,P.p2),y=I}return r}bbox(o){const t=this._arcInterval(),r=t.startAngle,s=t.endAngle,l=PV(0,this.radiusX,this.radiusY,o),u=y1(l.x),p=y1(l.y),y=this.pointAt(s).transformCopy(o);let A=FV(u,r),w=FV(p,r),I=this.pointAt(r).transformCopy(o),P=Sn.min(I,y),F=Sn.max(I,y);for(;A<s||w<s;){let V,oe;A<s&&(V=this.pointAt(A).transformCopy(o),A+=90),w<s&&(oe=this.pointAt(w).transformCopy(o),w+=90),I=new Sn(V.x,oe.y),P=Sn.min(P,I),F=Sn.max(F,I)}return na.fromPoints(P,F)}_arcInterval(){let{startAngle:o,endAngle:t,anticlockwise:r}=this;if(r){let s=o;o=t,t=s}return(o>t||r&&o===t)&&(t+=360),{startAngle:o,endAngle:t}}_intervalCurvePoints(o,t,r){const s=this.pointAt(o),l=this.pointAt(t),u=this._derivativeAt(o),p=this._derivativeAt(t),y=(ug(t)-ug(o))/3,A=new Sn(s.x+y*u.x,s.y+y*u.y),w=new Sn(l.x-y*p.x,l.y-y*p.y);return r&&(s.transform(r),l.transform(r),A.transform(r),w.transform(r)),{p1:s,cp1:A,cp2:w,p2:l}}_derivativeAt(o){const t=ug(o);return new Sn(-this.radiusX*Math.sin(t),this.radiusY*Math.cos(t))}containsPoint(o){const t=this._arcInterval(),r=t.endAngle-t.startAngle,{center:s,radiusX:l,radiusY:u}=this,p=s.distanceTo(o),y=Math.atan2(o.y-s.y,o.x-s.x),A=l*u/Math.sqrt(qk(l,2)*qk(Math.sin(y),2)+qk(u,2)*qk(Math.cos(y),2)),w=this.pointAt(this.startAngle).round(10),I=this.pointAt(this.endAngle).round(10),P=function tce(i,o,t,r){const s=o.x-i.x,l=r.x-t.x,u=o.y-i.y,p=r.y-t.y,y=i.x-t.x,A=i.y-t.y,w=s*p-l*u,I=(s*A-u*y)/w,P=(l*A-p*y)/w;if(I>=0&&I<=1&&P>=0&&P<=1)return new Sn(i.x+P*s,i.y+P*u)}(s,o.round(10),w,I);let F;if(r<180)F=P&&CL(s.distanceTo(P),p)&&CL(p,A);else{let V=RV(s.x,s.y,l,u,o.x,o.y);360!==V&&(V=(360+V)%360);let oe=t.startAngle<=V&&V<=t.endAngle;F=oe&&CL(p,A)||!oe&&(!P||P.equals(o))}return F}_isOnPath(o,t){const r=this._arcInterval(),s=this.center;let l=RV(s.x,s.y,this.radiusX,this.radiusY,o.x,o.y);return 360!==l&&(l=(360+l)%360),r.startAngle<=l&&l<=r.endAngle&&this.pointAt(l).distanceTo(o)<=t}static fromPoints(o,t,r,s,l,u,p){const y=function ice(i){let{x1:o,y1:t,x2:r,y2:s,rx:l,ry:u,largeArc:p,swipe:y,rotation:A=0}=i;const w=ug(A),I=Math.cos(w),P=Math.sin(w),F=I*(o-r)/2+P*(t-s)/2,V=-P*(o-r)/2+I*(t-s)/2,oe=p!==y?1:-1,Ae=Math.pow(F,2),ue=Math.pow(V,2);let Se=Math.pow(l,2),Be=Math.pow(u,2),Me=Ae/Se+ue/Be;Me>1&&(Me=Math.sqrt(Ae/Se+ue/Be),l*=Me,Se=Math.pow(l,2),u*=Me,Be=Math.pow(u,2));let He=oe*Math.sqrt((Se*Be-Se*ue-Be*Ae)/(Se*ue+Be*Ae));isNaN(He)&&(He=0);const Ye=He*(l*V)/u,Le=u*F*-He/l,tt=I*Ye-P*Le+(o+r)/2,kt=P*Ye+I*Le+(t+s)/2,Ke=(F-Ye)/l,Re=(V-Le)/u,ot=-(F+Ye)/l,Ze=-(V+Le)/u,At=(Re>=0?1:-1)*y1(Math.acos(Ke/Math.sqrt(Ke*Ke+Re*Re))),Xe=Ir((Ke*ot+Re*Ze)/(Math.sqrt(Ke*Ke+Re*Re)*Math.sqrt(ot*ot+Ze*Ze)),10);let Oe=(Ke*Ze-Re*ot>=0?1:-1)*y1(Math.acos(Xe));!y&&Oe>0&&(Oe-=360),y&&Oe<0&&(Oe+=360);let ze=At+Oe;const it=ze>=0?1:-1;return ze=Math.abs(ze)%360*it,{center:new Sn(tt,kt),startAngle:At,endAngle:ze,radiusX:l,radiusY:u,xRotation:A}}({x1:o.x,y1:o.y,x2:t.x,y2:t.y,rx:r,ry:s,largeArc:l,swipe:u,rotation:p});return new ay(y.center,{startAngle:y.startAngle,endAngle:y.endAngle,radiusX:y.radiusX,radiusY:y.radiusY,xRotation:y.xRotation,anticlockwise:0===u})}}function RV(i,o,t,r,s,l){const u=Ir((s-i)/t,3),p=Ir((l-o)/r,3);return Ir(y1(Math.atan2(p,u)))}function FV(i,o){let t=i;for(;t<o;)t+=90;return t}Zk(ay.prototype,["radiusX","radiusY","startAngle","endAngle","anticlockwise"]),wd.extend(ay.prototype);const Jk=ay,oce=[].push,rce=[].pop,ace=[].splice,sce=[].shift,BV=[].slice,lce=[].unshift;class HV extends dr{constructor(o=[]){super(),this.length=0,this._splice(0,o.length,o)}elements(o){return o?(this._splice(0,this.length,o),this._change(),this):this.slice(0)}push(){const o=arguments,t=oce.apply(this,o);return this._add(o),t}slice(){return BV.call(this)}pop(){const o=this.length,t=rce.apply(this);return o&&this._remove([t]),t}splice(o,t){const r=BV.call(arguments,2),s=this._splice(o,t,r);return this._change(),s}shift(){const o=this.length,t=sce.apply(this);return o&&this._remove([t]),t}unshift(){const o=arguments,t=lce.apply(this,o);return this._add(o),t}indexOf(o){const t=this.length;for(let r=0;r<t;r++)if(this[r]===o)return r;return-1}_splice(o,t,r){const s=ace.apply(this,[o,t].concat(r));return this._clearObserver(s),this._setObserver(r),s}_add(o){this._setObserver(o),this._change()}_remove(o){this._clearObserver(o),this._change()}_setObserver(o){for(let t=0;t<o.length;t++)o[t].addObserver(this)}_clearObserver(o){for(let t=0;t<o.length;t++)o[t].removeObserver(this)}_change(){}}wd.extend(HV.prototype);const $V=HV,UV=class cce extends $V{_change(){this.geometryChange()}};function dce(i){const o="_"+i;return function(t){return Zn(t)?(this._observerField(o,Sn.create(t)),this.geometryChange(),this):this[o]}}function Qk(i,o){for(let t=0;t<o.length;t++)i[o[t]]=dce(o[t])}function YV(i,o,t){const r=y1(Math.atan2(o.y-i.y,o.x-i.x));return t.transformCopy(Ep().rotate(-r,i)).x<i.x}function Wk(i,o,t){const r=1-i;return Math.pow(r,3)*t[0][o]+3*Math.pow(r,2)*i*t[1][o]+3*Math.pow(i,2)*r*t[2][o]+Math.pow(i,3)*t[3][o]}function jV(i,o){return[3*i[1][o]-i[0][o]-3*i[2][o]+i[3][o],3*(i[0][o]-2*i[1][o]+i[2][o]),3*(-i[0][o]+i[1][o]),i[0][o]]}class nm extends dr{constructor(o=0,t=0){super(),this.real=o,this.img=t}add(o){return new nm(Ir(this.real+o.real,10),Ir(this.img+o.img,10))}addConstant(o){return new nm(this.real+o,this.img)}negate(){return new nm(-this.real,-this.img)}multiply(o){return new nm(this.real*o.real-this.img*o.img,this.real*o.img+this.img*o.real)}multiplyConstant(o){return new nm(this.real*o,this.img*o)}nthRoot(o){const t=Math.atan2(this.img,this.real),r=Math.sqrt(Math.pow(this.img,2)+Math.pow(this.real,2)),s=Math.pow(r,1/o);return new nm(s*Math.cos(t/o),s*Math.sin(t/o))}equals(o){return this.real===o.real&&this.img===o.img}isReal(){return 0===this.img}}const Bx=nm;function ZV(i){return i<0?-1:1}function VV(i,o,t,r){if(0===i)return function uce(i,o,t){const r=Math.sqrt(Math.pow(o,2)-4*i*t);return[(-o+r)/(2*i),(-o-r)/(2*i)]}(o,t,r);const s=(3*i*t-Math.pow(o,2))/(3*Math.pow(i,2)),l=(2*Math.pow(o,3)-9*i*o*t+27*Math.pow(i,2)*r)/(27*Math.pow(i,3)),u=Math.pow(s/3,3)+Math.pow(l/2,2),p=new Bx(0,1),y=-o/(3*i);let A,w,I,P,F,V,oe;u<0?(A=new Bx(-l/2,Math.sqrt(-u)).nthRoot(3),w=new Bx(-l/2,-Math.sqrt(-u)).nthRoot(3)):(A=-l/2+Math.sqrt(u),A=new Bx(ZV(A)*Math.pow(Math.abs(A),1/3)),w=-l/2-Math.sqrt(u),w=new Bx(ZV(w)*Math.pow(Math.abs(w),1/3))),I=A.add(w),V=A.add(w).multiplyConstant(-.5),oe=A.add(w.negate()).multiplyConstant(Math.sqrt(3)/2),P=V.add(p.multiply(oe)),F=V.add(p.negate().multiply(oe));const Ae=[];return I.isReal()&&Ae.push(Ir(I.real+y,10)),P.isReal()&&Ae.push(Ir(P.real+y,10)),F.isReal()&&Ae.push(Ir(F.real+y,10)),Ae}function Kk(i,o,t,r,s){const l=jV(i,r),u=VV(l[0],l[1],l[2],l[3]-o[r]);let p;for(let y=0;y<u.length;y++)if(0<=u[y]&&u[y]<=1&&(p=Wk(u[y],t,i),Math.abs(p-o[t])<=s))return!0}function zV(i,o,t){let r;if(i.x!==o.x){const s=Math.min(i.x,o.x),l=Math.max(i.x,o.x),u=Math.min(i.y,o.y),p=Math.max(i.y,o.y),y=s<=t.x&&t.x<l;r=u===p?t.y<=u&&y:y&&(p-u)*((i.x-o.x)*(i.y-o.y)>0?t.x-s:l-t.x)/(l-s)+u-t.y>=0}return r?1:0}class AL extends dr{constructor(o,t,r){super(),this.anchor(o||new Sn),this.controlIn(t),this.controlOut(r)}bboxTo(o,t){const r=this.anchor().transformCopy(t),s=o.anchor().transformCopy(t);let l;return l=this.controlOut()&&o.controlIn()?this._curveBoundingBox(r,this.controlOut().transformCopy(t),o.controlIn().transformCopy(t),s):this._lineBoundingBox(r,s),l}_lineBoundingBox(o,t){return na.fromPoints(o,t)}_curveBoundingBox(o,t,r,s){const l=[o,t,r,s],u=this._curveExtremesFor(l,"x"),p=this._curveExtremesFor(l,"y"),y=GV([u.min,u.max,o.x,s.x]),A=GV([p.min,p.max,o.y,s.y]);return na.fromPoints(new Sn(y.min,A.min),new Sn(y.max,A.max))}_curveExtremesFor(o,t){const r=this._curveExtremes(o[0][t],o[1][t],o[2][t],o[3][t]);return{min:Wk(r.min,t,o),max:Wk(r.max,t,o)}}_curveExtremes(o,t,r,s){const l=o-3*t+3*r-s,u=-2*(o-2*t+r),p=o-t,y=Math.sqrt(u*u-4*l*p);let A=0,w=1;0===l?0!==u&&(A=w=-p/u):isNaN(y)||(A=(-u+y)/(2*l),w=(-u-y)/(2*l));let I=Math.max(Math.min(A,w),0);(I<0||I>1)&&(I=0);let P=Math.min(Math.max(A,w),1);return(P>1||P<0)&&(P=1),{min:I,max:P}}_intersectionsTo(o,t){let r;return r=this.controlOut()&&o.controlIn()?function pce(i,o,t){const r=jV(i,"x"),s=VV(r[0],r[1],r[2],r[3]-o.x);let l,u,p=0;for(let y=0;y<s.length;y++)l=Wk(s[y],"y",i),u=LV(l,o.y)||l>o.y,u&&((0===s[y]||1===s[y])&&t.bottomRight().x>o.x||0<s[y]&&s[y]<1)&&p++;return p}([this.anchor(),this.controlOut(),o.controlIn(),o.anchor()],t,this.bboxTo(o)):zV(this.anchor(),o.anchor(),t),r}_isOnCurveTo(o,t,r,s){if(this.bboxTo(o).expand(r,r).containsPoint(t)){const u=this.anchor(),p=this.controlOut(),y=o.controlIn(),A=o.anchor();if("start"===s&&u.distanceTo(t)<=r)return!YV(u,p,t);if("end"===s&&A.distanceTo(t)<=r)return!YV(A,y,t);const w=[u,p,y,A];if(Kk(w,t,"x","y",r)||Kk(w,t,"y","x",r))return!0;const I=Ep().rotate(45,t),P=[u.transformCopy(I),p.transformCopy(I),y.transformCopy(I),A.transformCopy(I)];return Kk(P,t,"x","y",r)||Kk(P,t,"y","x",r)}}_isOnLineTo(o,t,r){const s=this.anchor(),l=o.anchor(),u=y1(Math.atan2(l.y-s.y,l.x-s.x));return new na([s.x,s.y-r/2],[s.distanceTo(l),r]).containsPoint(t.transformCopy(Ep().rotate(-u,s)))}_isOnPathTo(o,t,r,s){let l;return l=this.controlOut()&&o.controlIn()?this._isOnCurveTo(o,t,r/2,s):this._isOnLineTo(o,t,r),l}}function GV(i){let o=i.length,t=Ox,r=Nx;for(let s=0;s<o;s++)r=Math.max(r,i[s]),t=Math.min(t,i[s]);return{min:t,max:r}}Qk(AL.prototype,["anchor","controlIn","controlOut"]),wd.extend(AL.prototype);const qV=AL;function Xk(i,o,t){let r;for(let s=0;s<i.length;s++){let l=i[s];if(l.visible()){let u=o?l.bbox(t):l.rawBBox();u&&(r=r?na.union(r,u):u)}}return r}function JV(i,o){let t;for(let r=0;r<i.length;r++){let s=i[r];if(s.visible()){let l=s.clippedBBox(o);l&&(t=t?na.union(t,l):l)}}return t}class eI extends gg{constructor(o){super(o),this.paths=new UV,this.paths.addObserver(this),Zn(this.options.stroke)||this.stroke("#000")}moveTo(o,t){const r=new nl;return r.moveTo(o,t),this.paths.push(r),this}lineTo(o,t){return this.paths.length>0&&Md(this.paths).lineTo(o,t),this}curveTo(o,t,r){return this.paths.length>0&&Md(this.paths).curveTo(o,t,r),this}arc(o,t,r,s,l){return this.paths.length>0&&Md(this.paths).arc(o,t,r,s,l),this}arcTo(o,t,r,s,l,u){return this.paths.length>0&&Md(this.paths).arcTo(o,t,r,s,l,u),this}close(){return this.paths.length>0&&Md(this.paths).close(),this}_bbox(o){return Xk(this.paths,!0,o)}rawBBox(){return Xk(this.paths,!1)}_containsPoint(o){const t=this.paths;for(let r=0;r<t.length;r++)if(t[r]._containsPoint(o))return!0;return!1}_isOnPath(o){const t=this.paths,r=this.options.stroke.width;for(let s=0;s<t.length;s++)if(t[s]._isOnPath(o,r))return!0;return!1}_clippedBBox(o){return JV(this.paths,this.currentTransform(o))}}eI.prototype.nodeType="MultiPath",ry.extend(eI.prototype),Rx.extend(eI.prototype);const hce=eI,gce={l:function(i,o){const{parameters:t,position:r}=o;for(let s=0;s<t.length;s+=2){let l=new Sn(t[s],t[s+1]);o.isRelative&&l.translateWith(r),i.lineTo(l.x,l.y),r.x=l.x,r.y=l.y}},c:function(i,o){const{parameters:t,position:r}=o;for(let s=0;s<t.length;s+=6){let l=new Sn(t[s],t[s+1]),u=new Sn(t[s+2],t[s+3]),p=new Sn(t[s+4],t[s+5]);o.isRelative&&(u.translateWith(r),l.translateWith(r),p.translateWith(r)),i.curveTo(l,u,p),r.x=p.x,r.y=p.y}},v:function(i,o){QV(o.parameters,!0,o.isRelative?0:o.position.x),this.l(i,o)},h:function(i,o){QV(o.parameters,!1,o.isRelative?0:o.position.y),this.l(i,o)},a:function(i,o){const{parameters:t,position:r}=o;for(let s=0;s<t.length;s+=7){const l=t[s],u=t[s+1],p=t[s+2],y=t[s+3],A=t[s+4],w=new Sn(t[s+5],t[s+6]);o.isRelative&&w.translateWith(r),(r.x!==w.x||r.y!==w.y)&&(i.arcTo(w,l,u,y,A,p),r.x=w.x,r.y=w.y)}},s:function(i,o){const{parameters:t,position:r,previousCommand:s}=o;let l;("s"===s||"c"===s)&&(l=Md(Md(i.paths).segments).controlIn());for(let u=0;u<t.length;u+=4){let A,p=new Sn(t[u],t[u+1]),y=new Sn(t[u+2],t[u+3]);o.isRelative&&(p.translateWith(r),y.translateWith(r)),A=l?WV(l,r):r.clone(),l=p,i.curveTo(A,p,y),r.x=y.x,r.y=y.y}},q:function(i,o){const{parameters:t,position:r}=o;for(let s=0;s<t.length;s+=4){let l=new Sn(t[s],t[s+1]),u=new Sn(t[s+2],t[s+3]);o.isRelative&&(l.translateWith(r),u.translateWith(r));let p=XV(r,l,u);i.curveTo(p.controlOut,p.controlIn,u),r.x=u.x,r.y=u.y}},t:function(i,o){const{parameters:t,position:r,previousCommand:s}=o;let l;("q"===s||"t"===s)&&(l=Md(Md(i.paths).segments).controlIn().clone().translateWith(r.scaleCopy(-1/3)).scale(1.5));for(let u=0;u<t.length;u+=2){let p=new Sn(t[u],t[u+1]);o.isRelative&&p.translateWith(r),l=l?WV(l,r):r.clone();let y=XV(r,l,p);i.curveTo(y.controlOut,y.controlIn,p),r.x=p.x,r.y=p.y}}};function QV(i,o,t){const r=o?0:1;for(let s=0;s<i.length;s+=2)i.splice(s+r,0,t)}function WV(i,o){if(i&&o)return o.scaleCopy(2).translate(-i.x,-i.y)}const KV=1/3;function XV(i,o,t){const r=o.clone().scale(.6666666666666666);return{controlOut:r.clone().translateWith(i.scaleCopy(KV)),controlIn:r.translateWith(t.scaleCopy(KV))}}const ez=gce,fce=/([a-df-z]{1})([^a-df-z]*)(z)?/gi,mce=/[,\s]?([+\-]?(?:\d*\.\d+|\d+)(?:[eE][+\-]?\d+)?)/g;class xL extends dr{parse(o,t){const r=new hce(t),s=new Sn;let l;return o.replace(fce,(u,p,y,A)=>{let w=p.toLowerCase();const I=w===p,P=function bce(i){const o=[];return i.replace(mce,function(t,r){o.push(parseFloat(r))}),o}(y.trim());if("m"===w&&(I?(s.x+=P[0],s.y+=P[1]):(s.x=P[0],s.y=P[1]),r.moveTo(s.x,s.y),P.length>2&&(w="l",P.splice(0,2))),ez[w])ez[w](r,{parameters:P,position:s,isRelative:I,previousCommand:l}),A&&"z"===A.toLowerCase()&&r.close();else if("m"!==w)throw new Error("Error while parsing SVG path. Unsupported command: "+w);l=w}),r}}xL.current=new xL;const vce=xL;class mg extends gg{constructor(o){super(o),this.segments=new UV,this.segments.addObserver(this),Zn(this.options.stroke)||(this.stroke("#000"),Zn(this.options.stroke.lineJoin)||this.options.set("stroke.lineJoin","miter"))}moveTo(o,t){return this.suspend(),this.segments.elements([]),this.resume(),this.lineTo(o,t),this}lineTo(o,t){const r=Zn(t)?new Sn(o,t):o,s=new qV(r);return this.segments.push(s),this}curveTo(o,t,r){if(this.segments.length>0){const s=Md(this.segments),l=new qV(r,t);this.suspend(),s.controlOut(o),this.resume(),this.segments.push(l)}return this}arc(o,t,r,s,l){if(this.segments.length>0){const p=Md(this.segments).anchor(),y=ug(o),A=new Sn(p.x-r*Math.cos(y),p.y-s*Math.sin(y)),w=new Jk(A,{startAngle:o,endAngle:t,radiusX:r,radiusY:s,anticlockwise:l});this._addArcSegments(w)}return this}arcTo(o,t,r,s,l,u){if(this.segments.length>0){const y=Md(this.segments).anchor(),A=Jk.fromPoints(y,o,t,r,s,l,u);this._addArcSegments(A)}return this}_addArcSegments(o){this.suspend();const t=o.curvePoints();for(let r=1;r<t.length;r+=3)this.curveTo(t[r],t[r+1],t[r+2]);this.resume(),this.geometryChange()}close(){return this.options.closed=!0,this.geometryChange(),this}rawBBox(){return this._bbox()}_containsPoint(o){const t=this.segments,r=t.length;let l,u,s=0;for(let p=1;p<r;p++)l=t[p-1],u=t[p],s+=l._intersectionsTo(u,o);return(this.options.closed||!t[0].anchor().equals(t[r-1].anchor()))&&(s+=zV(t[0].anchor(),t[r-1].anchor(),o)),s%2!=0}_isOnPath(o,t){const r=this.segments,s=r.length,l=t||this.options.stroke.width;if(s>1){if(r[0]._isOnPathTo(r[1],o,l,"start"))return!0;for(let u=2;u<=s-2;u++)if(r[u-1]._isOnPathTo(r[u],o,l))return!0;if(r[s-2]._isOnPathTo(r[s-1],o,l,"end"))return!0}return!1}_bbox(o){const t=this.segments,r=t.length;let s;if(1===r){let l=t[0].anchor().transformCopy(o);s=new na(l,Vk.ZERO)}else if(r>0)for(let l=1;l<r;l++){let u=t[l-1].bboxTo(t[l],o);s=s?na.union(s,u):u}return s}static fromRect(o,t){return new mg(t).moveTo(o.topLeft()).lineTo(o.topRight()).lineTo(o.bottomRight()).lineTo(o.bottomLeft()).close()}static fromPoints(o,t){if(o){const r=new mg(t);for(let s=0;s<o.length;s++){let l=Sn.create(o[s]);l&&(0===s?r.moveTo(l):r.lineTo(l))}return r}}static fromArc(o,t){const r=new mg(t),s=o.startAngle,l=o.pointAt(s);return r.moveTo(l.x,l.y),r.arc(s,o.endAngle,o.radiusX,o.radiusY,o.anticlockwise),r}}mg.prototype.nodeType="Path",ry.extend(mg.prototype),Rx.extend(mg.prototype),mg.parse=function(i,o){return vce.current.parse(i,o)};const nl=mg;class tI extends gg{constructor(o=new Jk,t={}){super(t),this.geometry(o),Zn(this.options.stroke)||this.stroke("#000")}_bbox(o){return this._geometry.bbox(o)}rawBBox(){return this.geometry().bbox()}toPath(){const o=new nl,t=this.geometry().curvePoints();if(t.length>0){o.moveTo(t[0].x,t[0].y);for(let r=1;r<t.length;r+=3)o.curveTo(t[r],t[r+1],t[r+2])}return o}_containsPoint(o){return this.geometry().containsPoint(o)}_isOnPath(o){return this.geometry()._isOnPath(o,this.options.stroke.width/2)}}tI.prototype.nodeType="Arc",ry.extend(tI.prototype),Rx.extend(tI.prototype),Gk(tI.prototype,["geometry"]);class nI extends gg{constructor(o,t=new Sn,r={}){super(r),this.content(o),this.position(t),this.options.font||(this.options.font="12px sans-serif"),Zn(this.options.fill)||this.fill("#000")}content(o){return Zn(o)?(this.options.set("content",o),this):this.options.get("content")}measure(){return kV(this.content(),{font:this.options.get("font")})}rect(){const o=this.measure(),t=this.position().clone();return new na(t,[o.width,o.height])}bbox(o){const t=C1(this.currentTransform(o));return this.rect().bbox(t)}rawBBox(){return this.rect().bbox()}_containsPoint(o){return this.rect().containsPoint(o)}}nI.prototype.nodeType="Text",ry.extend(nI.prototype),Qk(nI.prototype,["position"]);const xce=nI;class TL extends gg{constructor(o,t=new na,r={}){super(r),this.src(o),this.rect(t)}src(o){return Zn(o)?(this.options.set("src",o),this):this.options.get("src")}bbox(o){const t=C1(this.currentTransform(o));return this._rect.bbox(t)}rawBBox(){return this._rect.bbox()}_containsPoint(o){return this._rect.containsPoint(o)}_hasFill(){return this.src()}}TL.prototype.nodeType="Image",Gk(TL.prototype,["rect"]);const nz=TL,SL_extend=function(i,o){i.traverse=function(t){const r=this[o];for(let s=0;s<r.length;s++){let l=r[s];l.traverse?l.traverse(t):t(l)}return this}};class wL extends gg{constructor(o){super(o),this.children=[]}childrenChange(o,t,r){this.trigger("childrenChange",{action:o,items:t,index:r})}append(){return $k(this.children,arguments),this._reparent(arguments,this),this.childrenChange("add",arguments),this}insert(o,t){return this.children.splice(o,0,t),t.parent=this,this.childrenChange("add",[t],o),this}insertAt(o,t){return this.insert(t,o)}remove(o){const t=this.children.indexOf(o);return t>=0&&(this.children.splice(t,1),o.parent=null,this.childrenChange("remove",[o],t)),this}removeAt(o){if(0<=o&&o<this.children.length){let t=this.children[o];this.children.splice(o,1),t.parent=null,this.childrenChange("remove",[t],o)}return this}clear(){const o=this.children;return this.children=[],this._reparent(o,null),this.childrenChange("remove",o,0),this}bbox(o){return Xk(this.children,!0,this.currentTransform(o))}rawBBox(){return Xk(this.children,!1)}_clippedBBox(o){return JV(this.children,this.currentTransform(o))}currentTransform(o){return gg.prototype.currentTransform.call(this,o)||null}containsPoint(o,t){if(this.visible()){const r=this.children,s=this.currentTransform(t);for(let l=0;l<r.length;l++)if(r[l].containsPoint(o,s))return!0}return!1}_reparent(o,t){for(let r=0;r<o.length;r++){const s=o[r],l=s.parent;l&&l!==this&&l.remove&&l.remove(s),s.parent=t}}}wL.prototype.nodeType="Group",SL_extend(wL.prototype,"children");const kd=wL;class iI extends gg{constructor(o=new na,t={}){super(t),this.geometry(o),Zn(this.options.stroke)||this.stroke("#000")}_bbox(o){return this._geometry.bbox(o)}rawBBox(){return this._geometry.bbox()}_containsPoint(o){return this._geometry.containsPoint(o)}_isOnPath(o){return this.geometry()._isOnPath(o,this.options.stroke.width/2)}}iI.prototype.nodeType="Rect",ry.extend(iI.prototype),Rx.extend(iI.prototype),Gk(iI.prototype,["geometry"]);const kce=class Dce extends $V{_change(){this.optionsChange({field:"stops"})}};function Ice(i){return function(o){return Zn(o)?(this.options.set(i,o),this):this.options.get(i)}}class A1 extends dr{constructor(o,t,r){super(),this.options=new IV({offset:o,color:t,opacity:Zn(r)?r:1}),this.options.addObserver(this)}static create(o){if(Zn(o)){let t;return t=o instanceof A1?o:o.length>1?new A1(o[0],o[1],o[2]):new A1(o.offset,o.color,o.opacity),t}}}(function Ece(i,o){for(let t=0;t<o.length;t++)i[o[t]]=Ice(o[t])})(A1.prototype,["offset","color","opacity"]),wd.extend(A1.prototype);const iz=A1;class oI extends dr{constructor(o={}){super(),this.stops=new kce(this._createStops(o.stops)),this.stops.addObserver(this),this._userSpace=o.userSpace,this.id=gL()}userSpace(o){return Zn(o)?(this._userSpace=o,this.optionsChange(),this):this._userSpace}_createStops(o=[]){const t=[];for(let r=0;r<o.length;r++)t.push(iz.create(o[r]));return t}addStop(o,t,r){this.stops.push(new iz(o,t,r))}removeStop(o){const t=this.stops.indexOf(o);t>=0&&this.stops.splice(t,1)}}oI.prototype.nodeType="Gradient",wd.extend(oI.prototype),Object.assign(oI.prototype,{optionsChange:function(i){this.trigger("optionsChange",{field:"gradient"+(i?"."+i.field:""),value:this})},geometryChange:function(){this.optionsChange()}});const oz=oI;class rz extends oz{constructor(o={}){super(o),this.start(o.start||new Sn),this.end(o.end||new Sn(1,0))}}Qk(rz.prototype,["start","end"]);const ML=rz;class az extends oz{constructor(o={}){super(o),this.center(o.center||new Sn),this._radius=Zn(o.radius)?o.radius:1,this._fallbackFill=o.fallbackFill}radius(o){return Zn(o)?(this._radius=o,this.geometryChange(),this):this._radius}fallbackFill(o){return Zn(o)?(this._fallbackFill=o,this.optionsChange(),this):this._fallbackFill}}Qk(az.prototype,["center"]);const sz=az;function Pce(i){return.5-Math.cos(i*Math.PI)/2}function Oce(i){return i}function Nce(i,o,t,r){let s=1.70158,l=0,u=r;return 0===i?t:1===i?t+r:(l||(l=.5),u<Math.abs(r)?(u=r,s=l/4):s=l/(2*Math.PI)*Math.asin(r/u),u*Math.pow(2,-10*i)*Math.sin((Number(i)-s)*(1.1*Math.PI)/l)+r+t)}class DL extends dr{constructor(){super(),this._items=[]}register(o,t){this._items.push({name:o,type:t})}create(o,t){const r=this._items;let s;if(t&&t.type){const l=t.type.toLowerCase();for(let u=0;u<r.length;u++)if(r[u].name.toLowerCase()===l){s=r[u];break}}if(s)return new s.type(o,t)}}DL.current=new DL;const Lce=DL,lz=Date.now||function(){return(new Date).getTime()};class cz extends dr{constructor(o,t){super(),this.options=Object.assign({},this.options,t),this.element=o}setup(){}step(){}play(){const o=this.options,{duration:t,delay:r=0}=o,s=D[o.easing],l=lz()+r,u=l+t;0===t?(this.step(1),this.abort()):setTimeout(()=>{const p=()=>{if(this._stopped)return;const y=lz(),A=function Rle(i,o,t){return Math.max(Math.min(i,t),o)}(y-l,0,t),I=s(A/t,A,0,1,t);this.step(I),y<u?hV(p):this.abort()};p()},r)}abort(){this._stopped=!0}destroy(){this.abort()}}cz.prototype.options={duration:500,easing:"swing"},cz.create=function(i,o,t){return Lce.current.create(i,o,t)};class kL extends dr{constructor(){super(),this._items=[]}register(o,t,r){const s=this._items,l=s[0],u={name:o,type:t,order:r};!l||r<l.order?s.unshift(u):s.push(u)}create(o,t){const r=this._items;let s=r[0];if(t&&t.type){const l=t.type.toLowerCase();for(let u=0;u<r.length;u++)if(r[u].name===l){s=r[u];break}}if(s)return new s.type(o,t);!function Ale(i){const o=window.console;typeof o<"u"&&o.log&&o.log(i)}(`Warning: Unable to create Kendo UI Drawing Surface. Possible causes:\n- The browser does not support SVG and Canvas. User agent: ${navigator.userAgent}`)}}kL.current=new kL;const IL=kL,Rce=["click","mouseenter","mouseleave","mousemove","resize"],rI=(()=>{class i extends wle{constructor(t,r){super(),this.options=Object.assign({},r),this.element=t,this.element._kendoExportVisual=this.exportVisual.bind(this),this._click=this._handler("click"),this._mouseenter=this._handler("mouseenter"),this._mouseleave=this._handler("mouseleave"),this._mousemove=this._handler("mousemove"),this._visual=new kd,jk(t,this.options),this.bind(Rce,this.options),this._enableTracking()}draw(t){this._visual.children.push(t)}clear(){this._visual.children=[]}destroy(){this._visual=null,this.element._kendoExportVisual=null,this.unbind()}eventTarget(t){let s,r=function Lle(i={}){return i.touch?i.touch.initialTouch:i.target}(t);for(;!s&&r&&(s=r._kendoNode,r!==this.element);)r=r.parentElement;if(s)return s.srcElement}exportVisual(){return this._visual}getSize(){return jk(this.element)}currentSize(t){if(!t)return this._size;this._size=t}setSize(t){jk(this.element,t),this.currentSize(t),this._resize()}resize(t){const r=this.getSize(),s=this.currentSize();(t||(r.width>0||r.height>0)&&(!s||r.width!==s.width||r.height!==s.height))&&(this.currentSize(r),this._resize(r,t),this.trigger("resize",r))}size(t){if(!t)return this.getSize();this.setSize(t)}suspendTracking(){this._suspendedTracking=!0}resumeTracking(){this._suspendedTracking=!1}_enableTracking(){}_resize(){}_handler(t){return r=>{const s=this.eventTarget(r);s&&!this._suspendedTracking&&this.trigger(t,{element:s,originalEvent:r,type:t})}}_elementOffset(){const t=this.element,{paddingLeft:r,paddingTop:s}=mL(t,["paddingLeft","paddingTop"]),{left:l,top:u}=function Hle(i){const o=i.getBoundingClientRect(),t=document.documentElement;return{top:o.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0),left:o.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}}(t);return{left:l+parseInt(r,10),top:u+parseInt(s,10)}}_surfacePoint(t){const r=this._elementOffset(),s=function Nle(i){return Zn((i.x||{}).location)?{x:i.x.location,y:i.y.location}:{x:i.pageX||i.clientX||0,y:i.pageY||i.clientY||0}}(t);return new Sn(s.x-r.left,s.y-r.top)}}return i.create=function(o,t){return IL.current.create(o,t)},i.support={},i})(),aI=class Fce extends dr{constructor(o){super(),this.childNodes=[],this.parent=null,o&&(this.srcElement=o,this.observe())}destroy(){this.srcElement&&this.srcElement.removeObserver(this);const o=this.childNodes;for(let t=0;t<o.length;t++)this.childNodes[t].destroy();this.parent=null}load(){}observe(){this.srcElement&&this.srcElement.addObserver(this)}append(o){this.childNodes.push(o),o.parent=this}insertAt(o,t){this.childNodes.splice(t,0,o),o.parent=this}remove(o,t){const r=o+t;for(let s=o;s<r;s++)this.childNodes[s].removeSelf();this.childNodes.splice(o,t)}removeSelf(){this.clear(),this.destroy()}clear(){this.remove(0,this.childNodes.length)}invalidate(){this.parent&&this.parent.invalidate()}geometryChange(){this.invalidate()}optionsChange(){this.invalidate()}childrenChange(o){"add"===o.action?this.load(o.items,o.index):"remove"===o.action&&this.remove(o.index,o.items.length),this.invalidate()}};function x1(i,o){return Zn(o)&&null!==o?` ${i}="${o}" `:""}function T1(i){let o="";for(let t=0;t<i.length;t++)o+=x1(i[t][0],i[t][1]);return o}function dz(i){let o="";for(let t=0;t<i.length;t++){let r=i[t][1];Zn(r)&&(o+=i[t][0]+":"+r+";")}if(""!==o)return o}const _g={},sI="http://www.w3.org/2000/svg",lI="none";let uz=function(i,o){i.innerHTML=o};if(typeof document<"u"){const i="<svg xmlns='"+sI+"'></svg>",o=document.createElement("div"),t=typeof DOMParser<"u";o.innerHTML=i,t&&o.firstChild.namespaceURI!==sI&&(uz=function(r,s){const u=(new DOMParser).parseFromString(s,"text/xml"),p=document.adoptNode(u.documentElement);r.innerHTML="",r.appendChild(p)})}const pz=uz,hz="transform",cI={clip:"clip-path",fill:"fill"};function gz(i,o){return"clip"===i||"fill"===i&&(!o||"Gradient"===o.nodeType)}const S1=class Hce extends aI{constructor(o,t){super(o),this.definitions={},this.options=t}destroy(){this.element&&(this.element._kendoNode=null,this.element=null),this.clearDefinitions(),super.destroy()}load(o,t){for(let r=0;r<o.length;r++){const s=o[r],l=s.children,u=new _g[s.nodeType](s,this.options);Zn(t)?this.insertAt(u,t):this.append(u),u.createDefinitions(),l&&l.length>0&&u.load(l);const p=this.element;p&&u.attachTo(p,t)}}root(){let o=this;for(;o.parent;)o=o.parent;return o}attachTo(o,t){const r=document.createElement("div");pz(r,"<svg xmlns='"+sI+"' version='1.1'>"+this.render()+"</svg>");const s=r.firstChild.firstChild;s&&(Zn(t)?o.insertBefore(s,o.childNodes[t]||null):o.appendChild(s),this.setElement(s))}setElement(o){this.element&&(this.element._kendoNode=null),this.element=o,this.element._kendoNode=this;const t=this.childNodes;for(let r=0;r<t.length;r++)t[r].setElement(o.childNodes[r])}clear(){this.clearDefinitions(),this.element&&(this.element.innerHTML="");const o=this.childNodes;for(let t=0;t<o.length;t++)o[t].destroy();this.childNodes=[]}removeSelf(){if(this.element){const o=this.element.parentNode;o&&o.removeChild(this.element),this.element=null}super.removeSelf()}template(){return this.renderChildren()}render(){return this.template()}renderChildren(){const o=this.childNodes;let t="";for(let r=0;r<o.length;r++)t+=o[r].render();return t}optionsChange(o){const{field:t,value:r}=o;"visible"===t?this.css("display",r?"":lI):cI[t]&&gz(t,r)?this.updateDefinition(t,r):"opacity"===t?this.attr("opacity",r):"cursor"===t?this.css("cursor",r):"id"===t&&(r?this.attr("id",r):this.removeAttr("id")),super.optionsChange(o)}attr(o,t){this.element&&this.element.setAttribute(o,t)}allAttr(o){for(let t=0;t<o.length;t++)this.attr(o[t][0],o[t][1])}css(o,t){this.element&&(this.element.style[o]=t)}allCss(o){for(let t=0;t<o.length;t++)this.css(o[t][0],o[t][1])}removeAttr(o){this.element&&this.element.removeAttribute(o)}mapTransform(o){const t=[];return o&&t.push([hz,"matrix("+o.matrix().toString(6)+")"]),t}renderTransform(){return T1(this.mapTransform(this.srcElement.transform()))}transformChange(o){o?this.allAttr(this.mapTransform(o)):this.removeAttr(hz)}mapStyle(){const o=this.srcElement.options,t=[["cursor",o.cursor]];return!1===o.visible&&t.push(["display",lI]),t}renderStyle(){return x1("style",dz(this.mapStyle(!0)))}renderOpacity(){return x1("opacity",this.srcElement.options.opacity)}renderId(){return x1("id",this.srcElement.options.id)}createDefinitions(){const o=this.srcElement,t=this.definitions;if(o){const r=o.options;let s;for(let l in cI){let u=r.get(l);u&&gz(l,u)&&(t[l]=u,s=!0)}s&&this.definitionChange({action:"add",definitions:t})}}definitionChange(o){this.parent&&this.parent.definitionChange(o)}updateDefinition(o,t){const r=this.definitions,s=r[o],l=cI[o],u={};s&&(u[o]=s,this.definitionChange({action:"remove",definitions:u}),delete r[o]),t?(u[o]=t,this.definitionChange({action:"add",definitions:u}),r[o]=t,this.attr(l,this.refUrl(t.id))):s&&this.removeAttr(l)}clearDefinitions(){this.definitionChange({action:"remove",definitions:this.definitions}),this.definitions={}}renderDefinitions(){return T1(this.mapDefinitions())}mapDefinitions(){const o=this.definitions,t=[];for(let r in o)t.push([cI[r],this.refUrl(o[r].id)]);return t}refUrl(o){const t=(this.options||{}).skipBaseHref,r=this.baseUrl().replace(/'/g,"\\'");return`url(${t?"":r}#${o})`}baseUrl(){return function Bce(){const i=document.getElementsByTagName("base")[0];let o=document.location.href,t="";if(i&&!(dg.browser||{}).msie){const r=o.indexOf("#");-1!==r&&(o=o.substring(0,r)),t=o}return t}()}},Uce=class $ce extends S1{template(){return`<stop ${this.renderOffset()} ${this.renderStyle()} />`}renderOffset(){return x1("offset",this.srcElement.offset())}mapStyle(){const o=this.srcElement;return[["stop-color",o.color()],["stop-opacity",o.opacity()]]}optionsChange(o){"offset"===o.field?this.attr(o.field,o.value):("color"===o.field||"opacity"===o.field)&&this.css("stop-"+o.field,o.value)}},fz=class Yce extends S1{constructor(o){super(o),this.id=o.id,this.loadStops()}loadStops(){const o=this.srcElement.stops,t=this.element;for(let r=0;r<o.length;r++){let s=new Uce(o[r]);this.append(s),t&&s.attachTo(t)}}optionsChange(o){"gradient.stops"===o.field?(aI.prototype.clear.call(this),this.loadStops()):"gradient"===o.field&&this.allAttr(this.mapCoordinates())}renderCoordinates(){return T1(this.mapCoordinates())}mapSpace(){return["gradientUnits",this.srcElement.userSpace()?"userSpaceOnUse":"objectBoundingBox"]}},Zce=class jce extends fz{template(){return`<linearGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</linearGradient>`}mapCoordinates(){const o=this.srcElement,t=o.start(),r=o.end();return[["x1",t.x],["y1",t.y],["x2",r.x],["y2",r.y],this.mapSpace()]}},zce=class Vce extends fz{template(){return`<radialGradient id='${this.id}' ${this.renderCoordinates()}>${this.renderChildren()}</radialGradient>`}mapCoordinates(){const o=this.srcElement,t=o.center(),r=o.radius();return[["cx",t.x],["cy",t.y],["r",r],this.mapSpace()]}},qce=class Gce extends S1{constructor(o){super(),this.srcElement=o,this.id=o.id,this.load([o])}template(){return`<clipPath id='${this.id}'>${this.renderChildren()}</clipPath>`}},Qce=class Jce extends S1{constructor(){super(),this.definitionMap={}}attachTo(o){this.element=o}template(){return`<defs>${this.renderChildren()}</defs>`}definitionChange(o){const{definitions:t,action:r}=o;"add"===r?this.addDefinitions(t):"remove"===r&&this.removeDefinitions(t)}createDefinition(o,t){let r;return"clip"===o?r=qce:"fill"===o&&(t instanceof ML?r=Zce:t instanceof sz&&(r=zce)),new r(t)}addDefinitions(o){for(let t in o)this.addDefinition(t,o[t])}addDefinition(o,t){const{element:r,definitionMap:s}=this,l=t.id,u=s[l];if(u)u.count++;else{const p=this.createDefinition(o,t);s[l]={element:p,count:1},this.append(p),r&&p.attachTo(this.element)}}removeDefinitions(o){for(let t in o)this.removeDefinition(o[t])}removeDefinition(o){const t=this.definitionMap,r=o.id,s=t[r];s&&(s.count--,0===s.count&&(this.remove(this.childNodes.indexOf(s.element),1),delete t[r]))}},Kce=class Wce extends S1{constructor(o){super(),this.options=o,this.defs=new Qce}attachTo(o){this.element=o,this.defs.attachTo(o.firstElementChild)}clear(){aI.prototype.clear.call(this)}template(){return this.defs.render()+this.renderChildren()}definitionChange(o){this.defs.definitionChange(o)}};class mz extends rI{constructor(o,t){super(o,t),this._root=new Kce(Object.assign({rtl:"rtl"===mL(o,"direction").direction},this.options)),pz(this.element,this._template()),this._rootElement=this.element.firstElementChild,function ede(i){let o;try{o=i.getScreenCTM?i.getScreenCTM():null}catch{}if(o){const t=-o.e%1,r=-o.f%1,s=i.style;(0!==t||0!==r)&&(s.left=t+"px",s.top=r+"px")}}(this._rootElement),this._root.attachTo(this._rootElement),TV(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove}),this.resize()}destroy(){this._root&&(this._root.destroy(),this._root=null,this._rootElement=null,wV(this.element,{click:this._click,mouseover:this._mouseenter,mouseout:this._mouseleave,mousemove:this._mousemove})),super.destroy()}translate(o){const t=`${Math.round(o.x)} ${Math.round(o.y)} ${this._size.width} ${this._size.height}`;this._offset=o,this._rootElement.setAttribute("viewBox",t)}draw(o){super.draw(o),this._root.load([o])}clear(){super.clear(),this._root.clear()}svg(){return"<?xml version='1.0' ?>"+this._template()}exportVisual(){let{_visual:o,_offset:t}=this;if(t){const r=new kd;r.children.push(o),r.transform(Ep().translate(-t.x,-t.y)),o=r}return o}_resize(){this._offset&&this.translate(this._offset)}_template(){return`<svg style='width: 100%; height: 100%; overflow: hidden;' xmlns='${sI}' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1'>${this._root.render()}</svg>`}}mz.prototype.type="svg",typeof document<"u"&&document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")&&(rI.support.svg=!0,IL.current.register("svg",mz,10)),_g.Group=class tde extends S1{template(){return`<g${this.renderId()+this.renderTransform()+this.renderStyle()+this.renderOpacity()+this.renderDefinitions()}>${this.renderChildren()}</g>`}optionsChange(o){"transform"===o.field&&this.transformChange(o.value),super.optionsChange(o)}};const _z={dot:[1.5,3.5],dash:[4,3.5],longdash:[8,3.5],dashdot:[3.5,3.5,1.5,3.5],longdashdot:[8,3.5,1.5,3.5],longdashdotdot:[8,3.5,1.5,3.5,1.5,3.5]},EL="solid",nde={"fill.opacity":"fill-opacity","stroke.color":"stroke","stroke.width":"stroke-width","stroke.opacity":"stroke-opacity"};class yz extends S1{geometryChange(){this.attr("d",this.renderData()),this.invalidate()}optionsChange(o){switch(o.field){case"fill":o.value?this.allAttr(this.mapFill(o.value)):this.removeAttr("fill");break;case"fill.color":this.allAttr(this.mapFill({color:o.value}));break;case"stroke":o.value?this.allAttr(this.mapStroke(o.value)):this.removeAttr("stroke");break;case"transform":this.transformChange(o.value);break;default:const t=nde[o.field];t&&this.attr(t,o.value)}super.optionsChange(o)}content(){this.element&&(this.element.textContent=this.srcElement.content())}renderData(){return this.printPath(this.srcElement)}printPath(o){const t=o.segments,r=t.length;if(r>0){const s=[];let l,u;for(let p=1;p<r;p++){let y=this.segmentType(t[p-1],t[p]);y!==u&&(u=y,s.push(y)),s.push("L"===y?this.printPoints(t[p].anchor()):this.printPoints(t[p-1].controlOut(),t[p].controlIn(),t[p].anchor()))}return l="M"+this.printPoints(t[0].anchor())+" "+s.join(" "),o.options.closed&&(l+="Z"),l}}printPoints(){const o=arguments,t=o.length,r=[];for(let s=0;s<t;s++)r.push(o[s].toString(3));return r.join(" ")}segmentType(o,t){return o.controlOut()&&t.controlIn()?"C":"L"}mapStroke(o){const t=[];return o&&!iy(o.color)?(t.push(["stroke",o.color]),t.push(["stroke-width",o.width]),t.push(["stroke-linecap",this.renderLinecap(o)]),t.push(["stroke-linejoin",o.lineJoin]),Zn(o.opacity)&&t.push(["stroke-opacity",o.opacity]),Zn(o.dashType)&&t.push(["stroke-dasharray",this.renderDashType(o)])):t.push(["stroke",lI]),t}renderStroke(){return T1(this.mapStroke(this.srcElement.options.stroke))}renderDashType(o){const{dashType:t,width:r=1}=o;if(t&&t!==EL){const s=_z[t.toLowerCase()],l=[];for(let u=0;u<s.length;u++)l.push(s[u]*r);return l.join(" ")}}renderLinecap(o){const{dashType:t,lineCap:r}=o;return t&&"solid"!==t?"butt":r}mapFill(o){const t=[];return o&&"Gradient"===o.nodeType||(o&&!iy(o.color)?(t.push(["fill",o.color]),Zn(o.opacity)&&t.push(["fill-opacity",o.opacity])):t.push(["fill",lI])),t}renderFill(){return T1(this.mapFill(this.srcElement.options.fill))}template(){return`<path ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} ${x1("d",this.renderData())}${this.renderStroke()}${this.renderFill()}${this.renderDefinitions()}${this.renderTransform()}></path>`}}_g.Path=yz;const sy=yz;_g.Arc=class ide extends sy{renderData(){return this.printPath(this.srcElement.toPath())}},_g.Circle=class ode extends sy{geometryChange(){const o=this.center();this.attr("cx",o.x),this.attr("cy",o.y),this.attr("r",this.radius()),this.invalidate()}center(){return this.srcElement.geometry().center}radius(){return this.srcElement.geometry().radius}template(){return`<circle ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()}cx='${this.center().x}' cy='${this.center().y}' r='${this.radius()}'${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()}${this.renderTransform()} ></circle>`}},_g.Rect=class rde extends sy{geometryChange(){const o=this.srcElement.geometry();this.attr("x",o.origin.x),this.attr("y",o.origin.y),this.attr("width",o.size.width),this.attr("height",o.size.height),this.invalidate()}size(){return this.srcElement.geometry().size}origin(){return this.srcElement.geometry().origin}template(){return`<rect ${this.renderId()} ${this.renderStyle()} ${this.renderOpacity()} x='${this.origin().x}' y='${this.origin().y}' width='${this.size().width}' height='${this.size().height}' ${this.renderStroke()} ${this.renderFill()} ${this.renderDefinitions()} ${this.renderTransform()} />`}},_g.Image=class ade extends sy{geometryChange(){this.allAttr(this.mapPosition()),this.invalidate()}optionsChange(o){"src"===o.field&&this.allAttr(this.mapSource()),super.optionsChange(o)}mapPosition(){const o=this.srcElement.rect(),t=o.topLeft();return[["x",t.x],["y",t.y],["width",o.width()+"px"],["height",o.height()+"px"]]}renderPosition(){return T1(this.mapPosition())}mapSource(o){let t=this.srcElement.src();return o&&(t=cL(t)),[["xlink:href",t]]}renderSource(){return T1(this.mapSource(!0))}template(){return`<image preserveAspectRatio='none' ${this.renderId()} ${this.renderStyle()} ${this.renderTransform()} ${this.renderOpacity()}${this.renderPosition()} ${this.renderSource()} ${this.renderDefinitions()}></image>`}};const PL=/&(?:[a-zA-Z]+|#\d+);/g;function OL(i){if(!i||"string"!=typeof i||!PL.test(i))return i;const o=OL._element;return PL.lastIndex=0,i.replace(PL,t=>(o.innerHTML=t,o.textContent||o.innerText))}typeof document<"u"&&(OL._element=document.createElement("span")),_g.Text=class sde extends sy{geometryChange(){const o=this.pos();this.attr("x",o.x),this.attr("y",o.y),this.invalidate()}optionsChange(o){"font"===o.field?(this.attr("style",dz(this.mapStyle())),this.geometryChange()):"content"===o.field&&super.content(this.srcElement.content()),super.optionsChange(o)}mapStyle(o){const t=super.mapStyle(o);let r=this.srcElement.options.font;return o&&(r=cL(r)),t.push(["font",r],["white-space","pre"]),t}pos(){const o=this.srcElement.position(),t=this.srcElement.measure();return o.clone().setY(o.y+t.baseline)}renderContent(){let o=this.srcElement.content();return o=OL(o),o=cL(o),MV(o)}renderTextAnchor(){let o;return(this.options||{}).rtl&&!(dg.browser.msie||dg.browser.edge)&&(o="end"),x1("text-anchor",o)}template(){return`<text ${this.renderId()} ${this.renderTextAnchor()} ${this.renderStyle()} ${this.renderOpacity()}x='${this.pos().x}' y='${this.pos().y}' ${this.renderStroke()} ${this.renderTransform()} ${this.renderDefinitions()}${this.renderFill()}>${this.renderContent()}</text>`}},_g.MultiPath=class lde extends sy{renderData(){const o=this.srcElement.paths;if(o.length>0){const t=[];for(let r=0;r<o.length;r++)t.push(this.printPath(o[r]));return t.join(" ")}}};const bg={};function dI(i,o){const t=o.segments;if(0===t.length)return;let r=t[0],s=r.anchor();i.moveTo(s.x,s.y);for(let l=1;l<t.length;l++){r=t[l],s=r.anchor();let p=t[l-1].controlOut(),y=r.controlIn();p&&y?i.bezierCurveTo(p.x,p.y,y.x,y.y,s.x,s.y):i.lineTo(s.x,s.y)}o.options.closed&&i.closePath()}const Cz=class cde extends aI{constructor(o){super(o),o&&this.initClip()}initClip(){const o=this.srcElement.clip();o&&(this.clip=o,o.addObserver(this))}clear(){this.srcElement&&this.srcElement.removeObserver(this),this.clearClip(),super.clear()}clearClip(){this.clip&&(this.clip.removeObserver(this),delete this.clip)}setClip(o){this.clip&&(o.beginPath(),dI(o,this.clip),o.clip())}optionsChange(o){"clip"===o.field&&(this.clearClip(),this.initClip()),super.optionsChange(o)}setTransform(o){if(this.srcElement){const t=this.srcElement.transform();t&&o.transform.apply(o,t.matrix().toArray(6))}}loadElements(o,t,r){for(let s=0;s<o.length;s++){let l=o[s],u=l.children,p=new bg[l.nodeType](l,r);u&&u.length>0&&p.load(u,t,r),Zn(t)?this.insertAt(p,t):this.append(p)}}load(o,t,r){this.loadElements(o,t,r),this.invalidate()}setOpacity(o){if(this.srcElement){const t=this.srcElement.opacity();Zn(t)&&this.globalAlpha(o,t)}}globalAlpha(o,t){let r=t;r&&o.globalAlpha&&(r*=o.globalAlpha),o.globalAlpha=r}visible(){const o=this.srcElement;return!o||o&&!1!==o.options.visible}};class NL extends Cz{renderTo(o){if(!this.visible())return;o.save(),this.setTransform(o),this.setClip(o),this.setOpacity(o);const t=this.childNodes;for(let r=0;r<t.length;r++){let s=t[r];s.visible()&&s.renderTo(o)}o.restore()}}SL_extend(NL.prototype,"childNodes"),bg.Group=NL;const dde=NL;class Az extends dde{constructor(o,t){super(),this.canvas=o,this.size=t,this.ctx=o.getContext("2d");const r=this._invalidate.bind(this);this.invalidate=function Dle(i,o){let r,t=0;if(!o||o<=0)return i;const s=function(){const l=_V()-t,u=arguments,p=function(){i.apply(null,u),t=_V()};if(!t)return p();r&&clearTimeout(r),l>o?p():r=setTimeout(p,o-l)};return s.cancel=function(){clearTimeout(r)},s}(()=>{hV(r)},16.666666666666668)}destroy(){super.destroy(),this.canvas=null,this.ctx=null}load(o,t,r){this.loadElements(o,t,r),this._invalidate()}_rescale(){const{canvas:o,size:t}=this;let r=1;"number"==typeof window.devicePixelRatio&&(r=window.devicePixelRatio),o.width=t.width*r,o.height=t.height*r,this.ctx.scale(r,r)}_invalidate(){!this.ctx||(this._rescale(),this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.renderTo(this.ctx))}}SL_extend(Az.prototype,"childNodes");const pde=Az,xz=class hde extends dr{constructor(){super(),this.shapes=[]}_add(o,t){this.shapes.push({bbox:t,shape:o}),o._quadNode=this}pointShapes(o){const t=this.shapes,r=t.length,s=[];for(let l=0;l<r;l++)t[l].bbox.containsPoint(o)&&s.push(t[l].shape);return s}insert(o,t){this._add(o,t)}remove(o){const t=this.shapes,r=t.length;for(let s=0;s<r;s++)if(t[s].shape===o){t.splice(s,1);break}}};class ly extends xz{constructor(o){super(),this.children=[],this.rect=o}inBounds(o){const t=this.rect,r=t.bottomRight(),s=o.bottomRight();return t.origin.x<=o.origin.x&&t.origin.y<=o.origin.y&&s.x<=r.x&&s.y<=r.y}pointShapes(o){const t=this.children,r=t.length,s=super.pointShapes(o);for(let l=0;l<r;l++)$k(s,t[l].pointShapes(o));return s}insert(o,t){const r=this.children;let s=!1;if(this.inBounds(t)){if(this.shapes.length<4)this._add(o,t);else{r.length||this._initChildren();for(let l=0;l<r.length;l++)if(r[l].insert(o,t)){s=!0;break}s||this._add(o,t)}s=!0}return s}_initChildren(){const{rect:o,children:t}=this,r=o.center(),s=o.width()/2,l=o.height()/2;t.push(new ly(new na([o.origin.x,o.origin.y],[s,l])),new ly(new na([r.x,o.origin.y],[s,l])),new ly(new na([o.origin.x,r.y],[s,l])),new ly(new na([r.x,r.y],[s,l])))}}const gde=ly,Pp=3e3;function _de(i,o){return i._zIndex<o._zIndex?1:i._zIndex>o._zIndex?-1:0}const Sz=class mde extends dr{constructor(){super(),this.initRoots()}initRoots(){this.rootMap={},this.root=new xz,this.rootElements=[]}clear(){const o=this.rootElements;for(let t=0;t<o.length;t++)this.remove(o[t]);this.initRoots()}pointShape(o){const t=(this.rootMap[Math.floor(o.x/Pp)]||{})[Math.floor(o.y/Pp)];let r=this.root.pointShapes(o);t&&(r=r.concat(t.pointShapes(o))),this.assignZindex(r),r.sort(_de);for(let s=0;s<r.length;s++)if(r[s].containsPoint(o))return r[s]}assignZindex(o){for(let t=0;t<o.length;t++){let r=o[t],s=0,l=Math.pow(1e4,75),u=[];for(;r;)u.push(r),r=r.parent;for(;u.length;)r=u.pop(),s+=((r.parent?r.parent.children:this.rootElements).indexOf(r)+1)*l,l/=1e4;o[t]._zIndex=s}}optionsChange(o){("transform"===o.field||"stroke.width"===o.field)&&this.bboxChange(o.element)}geometryChange(o){this.bboxChange(o.element)}bboxChange(o){if("Group"===o.nodeType)for(let t=0;t<o.children.length;t++)this.bboxChange(o.children[t]);else o._quadNode&&o._quadNode.remove(o),this._insertShape(o)}add(o){const t=Array.isArray(o)?o.slice(0):[o];$k(this.rootElements,t),this._insert(t)}childrenChange(o){if("remove"===o.action)for(let t=0;t<o.items.length;t++)this.remove(o.items[t]);else this._insert(Array.prototype.slice.call(o.items,0))}_insert(o){let t;for(;o.length>0;)t=o.pop(),t.addObserver(this),"Group"===t.nodeType?$k(o,t.children):this._insertShape(t)}_insertShape(o){const t=o.bbox();if(t){const r=this.getSectors(t),s=r[0][0],l=r[1][0];if(this.inRoot(r))this.root.insert(o,t);else{const u=this.rootMap;u[s]||(u[s]={}),u[s][l]||(u[s][l]=new gde(new na([s*Pp,l*Pp],[Pp,Pp]))),u[s][l].insert(o,t)}}}remove(o){if(o.removeObserver(this),"Group"===o.nodeType){const t=o.children;for(let r=0;r<t.length;r++)this.remove(t[r])}else o._quadNode&&(o._quadNode.remove(o),delete o._quadNode)}inRoot(o){return o[0].length>1||o[1].length>1}getSectors(o){const t=o.bottomRight(),r=Math.floor(t.x/Pp),s=Math.floor(t.y/Pp),l=[[],[]];for(let u=Math.floor(o.origin.x/Pp);u<=r;u++)l[0].push(u);for(let u=Math.floor(o.origin.y/Pp);u<=s;u++)l[1].push(u);return l}};class wz extends rI{constructor(o,t){super(o,t),this.element.innerHTML=this._template(this);const r=this.element.firstElementChild,s=jk(o);r.width=s.width,r.height=s.height,this._rootElement=r,this._root=new pde(r,s),this._mouseTrackHandler=this._trackMouse.bind(this),TV(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}destroy(){super.destroy(),this._root&&(this._root.destroy(),this._root=null),this._searchTree&&(this._searchTree.clear(),delete this._searchTree),this._cursor&&(this._cursor.destroy(),delete this._cursor),wV(this.element,{click:this._mouseTrackHandler,mousemove:this._mouseTrackHandler})}draw(o){super.draw(o),this._root.load([o],void 0,this.options.cors),this._searchTree&&this._searchTree.add([o])}clear(){super.clear(),this._root.clear(),this._searchTree&&this._searchTree.clear(),this._cursor&&this._cursor.clear()}eventTarget(o){if(this._searchTree){const t=this._surfacePoint(o);return this._searchTree.pointShape(t)}}image(){const{_root:o,_rootElement:t}=this,r=[];o.traverse(u=>{u.loading&&r.push(u.loading)});const s=Uk(),l=()=>{o._invalidate();try{const u=t.toDataURL();s.resolve(u)}catch(u){s.reject(u)}};return function Fle(i){return Promise.all(i)}(r).then(l,l),s}suspendTracking(){super.suspendTracking(),this._searchTree&&(this._searchTree.clear(),delete this._searchTree)}resumeTracking(){if(super.resumeTracking(),!this._searchTree){this._searchTree=new Sz;const o=this._root.childNodes,t=[];for(let r=0;r<o.length;r++)t.push(o[r].srcElement);this._searchTree.add(t)}}_resize(){this._rootElement.width=this._size.width,this._rootElement.height=this._size.height,this._root.size=this._size,this._root.invalidate()}_template(){return"<canvas style='width: 100%; height: 100%;'></canvas>"}_enableTracking(){this._searchTree=new Sz,this._cursor=new class bde{constructor(o){o.bind("mouseenter",this._mouseenter.bind(this)),o.bind("mouseleave",this._mouseleave.bind(this)),this.element=o.element}clear(){this._resetCursor()}destroy(){this._resetCursor(),delete this.element}_mouseenter(o){const t=this._shapeCursor(o);t?(this._current||(this._defaultCursor=this._getCursor()),this._setCursor(t)):this._resetCursor()}_mouseleave(){this._resetCursor()}_shapeCursor(o){let t=o.element;for(;t&&!Zn(t.options.cursor);)t=t.parent;if(t)return t.options.cursor}_getCursor(){if(this.element)return this.element.style.cursor}_setCursor(o){this.element&&(this.element.style.cursor=o,this._current=o)}_resetCursor(){this._current&&(this._setCursor(this._defaultCursor||""),delete this._current)}}(this),super._enableTracking()}_trackMouse(o){if(this._suspendedTracking)return;const t=this.eventTarget(o);if("click"!==o.type){const r=this._currentShape;r&&r!==t&&this.trigger("mouseleave",{element:r,originalEvent:o,type:"mouseleave"}),t&&r!==t&&this.trigger("mouseenter",{element:t,originalEvent:o,type:"mouseenter"}),this.trigger("mousemove",{element:t,originalEvent:o,type:"mousemove"}),this._currentShape=t}else t&&this.trigger("click",{element:t,originalEvent:o,type:"click"})}}wz.prototype.type="canvas",typeof document<"u"&&document.createElement("canvas").getContext&&(rI.support.canvas=!0,IL.current.register("canvas",wz,20));class Mz extends Cz{renderTo(o){o.save(),this.setTransform(o),this.setClip(o),this.setOpacity(o),o.beginPath(),this.renderPoints(o,this.srcElement),this.setLineDash(o),this.setLineCap(o),this.setLineJoin(o),this.setFill(o),this.setStroke(o),o.restore()}setFill(o){const t=this.srcElement.options.fill;let r=!1;return t&&("Gradient"===t.nodeType?(this.setGradientFill(o,t),r=!0):iy(t.color)||(o.fillStyle=t.color,o.save(),this.globalAlpha(o,t.opacity),o.fill(),o.restore(),r=!0)),r}setGradientFill(o,t){const r=this.srcElement.rawBBox();let s;if(t instanceof ML){let l=t.start(),u=t.end();s=o.createLinearGradient(l.x,l.y,u.x,u.y)}else if(t instanceof sz){let l=t.center();s=o.createRadialGradient(l.x,l.y,0,l.x,l.y,t.radius())}(function yde(i,o){for(let t=0;t<o.length;t++){let r=o[t],s=Ip(r.color());s.a*=r.opacity(),i.addColorStop(r.offset(),s.toCssRgba())}})(s,t.stops),o.save(),t.userSpace()||o.transform(r.width(),0,0,r.height(),r.origin.x,r.origin.y),o.fillStyle=s,o.fill(),o.restore()}setStroke(o){const t=this.srcElement.options.stroke;if(t&&!iy(t.color)&&t.width>0)return o.strokeStyle=t.color,o.lineWidth=xV(t.width,1),o.save(),this.globalAlpha(o,t.opacity),o.stroke(),o.restore(),!0}dashType(){const o=this.srcElement.options.stroke;if(o&&o.dashType)return o.dashType.toLowerCase()}setLineDash(o){const t=this.dashType();if(t&&t!==EL){const r=_z[t];o.setLineDash?o.setLineDash(r):(o.mozDash=r,o.webkitLineDash=r)}}setLineCap(o){const t=this.dashType(),r=this.srcElement.options.stroke;t&&t!==EL?o.lineCap="butt":r&&r.lineCap&&(o.lineCap=r.lineCap)}setLineJoin(o){const t=this.srcElement.options.stroke;t&&t.lineJoin&&(o.lineJoin=t.lineJoin)}renderPoints(o,t){dI(o,t)}}bg.Path=Mz;const cy=Mz;bg.Arc=class Cde extends cy{renderPoints(o){dI(o,this.srcElement.toPath())}},bg.Circle=class Ade extends cy{renderPoints(o){const{center:t,radius:r}=this.srcElement.geometry();o.arc(t.x,t.y,r,0,2*Math.PI)}},bg.Rect=class xde extends cy{renderPoints(o){const{origin:t,size:r}=this.srcElement.geometry();o.rect(t.x,t.y,r.width,r.height)}},bg.Image=class Tde extends cy{constructor(o,t){super(o),this.onLoad=this.onLoad.bind(this),this.onError=this.onError.bind(this),this.loading=Uk();const r=this.img=new Image;t&&!/^data:/i.test(o.src())&&(r.crossOrigin=t),r.src=o.src(),r.complete?this.onLoad():(r.onload=this.onLoad,r.onerror=this.onError)}renderTo(o){"resolved"===this.loading.state()&&(o.save(),this.setTransform(o),this.setClip(o),this.drawImage(o),o.restore())}optionsChange(o){"src"===o.field?(this.loading=Uk(),this.img.src=this.srcElement.src()):super.optionsChange(o)}onLoad(){this.loading.resolve(),this.invalidate()}onError(){this.loading.reject(new Error("Unable to load image '"+this.img.src+"'. Check for connectivity and verify CORS headers."))}drawImage(o){const t=this.srcElement.rect(),r=t.topLeft();o.drawImage(this.img,r.x,r.y,t.width(),t.height())}},bg.Text=class Sde extends cy{renderTo(o){const t=this.srcElement,r=t.position(),s=t.measure();o.save(),this.setTransform(o),this.setClip(o),this.setOpacity(o),o.beginPath(),o.font=t.options.font,o.textAlign="left",this.setFill(o)&&o.fillText(t.content(),r.x,r.y+s.baseline),this.setStroke(o)&&(this.setLineDash(o),o.strokeText(t.content(),r.x,r.y+s.baseline)),o.restore()}},bg.MultiPath=class wde extends cy{renderPoints(o){const t=this.srcElement.paths;for(let r=0;r<t.length;r++)dI(o,t[r])}};const im=typeof Uint8Array<"u"&&dg.browser&&(!dg.browser.msie||dg.browser.version>9),LL=(i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",{decode:function(o){for(var t=o.replace(/[^A-Za-z0-9\+\/\=]/g,""),r=0,s=t.length,l=[];r<s;){var u=i.indexOf(t.charAt(r++)),p=i.indexOf(t.charAt(r++)),y=i.indexOf(t.charAt(r++)),A=i.indexOf(t.charAt(r++)),I=(15&p)<<4|y>>>2,P=(3&y)<<6|A;l.push(u<<2|p>>>4),64!=y&&l.push(I),64!=A&&l.push(P)}return l},encode:function(o){for(var t=0,r=o.length,s="";t<r;){var l=o[t++],u=o[t++],p=o[t++],A=(3&l)<<4|u>>>4,w=(15&u)<<2|p>>>6,I=63&p;t-r==2?w=I=64:t-r==1&&(I=64),s+=i.charAt(l>>>2)+i.charAt(A)+i.charAt(w)+i.charAt(I)}return s}});var i;function yr(i){var o=0,t=0;null==i?i=im?new Uint8Array(256):[]:t=i.length;var r=im?function(Re){if(Re>=i.length){var ot=new Uint8Array(Math.max(Re+256,2*i.length));ot.set(i,0),i=ot}}:function(){},s=im?function(){return new Uint8Array(i.buffer,0,t)}:function(){return i},l=im?function(Re){if("string"==typeof Re)return tt(Re);var ot=Re.length;r(o+ot),i.set(Re,o),(o+=ot)>t&&(t=o)}:function(Re){if("string"==typeof Re)return tt(Re);for(var ot=0;ot<Re.length;++ot)A(Re[ot])};function y(){return o<t?i[o++]:0}function A(Re){r(o),i[o++]=255&Re,o>t&&(t=o)}function w(){return y()<<8|y()}function I(Re){A(Re>>8),A(Re)}function V(){return 65536*w()+w()}function oe(Re){I(Re>>>16&65535),I(65535&Re)}function Ae(){var Re=V();return Re>=2147483648?Re-4294967296:Re}function ue(Re){oe(Re<0?Re+4294967296:Re)}function Ye(Re){return kt(Re,y)}function tt(Re){for(var ot=0;ot<Re.length;++ot)A(Re.charCodeAt(ot))}function kt(Re,ot){for(var Ze=new Array(Re),At=0;At<Re;++At)Ze[At]=ot();return Ze}var Ke={eof:function p(){return o>=t},readByte:y,writeByte:A,readShort:w,writeShort:I,readLong:V,writeLong:oe,readFixed:function Se(){return V()/65536},writeFixed:function Be(Re){oe(Math.round(65536*Re))},readShort_:function P(){var Re=w();return Re>=32768?Re-65536:Re},writeShort_:function F(Re){I(Re<0?Re+65536:Re)},readLong_:Ae,writeLong_:ue,readFixed_:function Me(){return Ae()/65536},writeFixed_:function He(Re){ue(Math.round(65536*Re))},read:Ye,write:l,readString:function Le(Re){return String.fromCharCode.apply(String,Ye(Re))},writeString:tt,times:kt,get:s,slice:im?function(Re,ot){if(i.buffer.slice)return new Uint8Array(i.buffer.slice(Re,Re+ot));var Ze=new Uint8Array(ot);return Ze.set(new Uint8Array(i.buffer,Re,ot)),Ze}:function(Re,ot){return i.slice(Re,Re+ot)},offset:function(Re){return null!=Re?(o=Re,Ke):o},skip:function(Re){o+=Re},toString:function(){throw new Error("FIX CALLER.  BinaryStream is no longer convertible to string!")},length:function(){return t},saveExcursion:function(Re){var ot=o;try{return Re()}finally{o=ot}},writeBase64:function(Re){window.atob?tt(window.atob(Re)):l(LL.decode(Re))},base64:function(){return LL.encode(s())}};return Ke}function Dde(i){return i.map(function(o){var t="";return o>65535&&(o-=65536,t+=String.fromCharCode(o>>>10&1023|55296),o=56320|1023&o),t+String.fromCharCode(o)}).join("")}function dy(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function RL(i){return Object.keys(i).sort(function(o,t){return o-t}).map(parseFloat)}function Dz(i){this.raw=i,this.scalerType=i.readLong(),this.tableCount=i.readShort(),this.searchRange=i.readShort(),this.entrySelector=i.readShort(),this.rangeShift=i.readShort();for(var o=this.tables={},t=0;t<this.tableCount;++t){var r={tag:i.readString(4),checksum:i.readLong(),offset:i.readLong(),length:i.readLong()};o[r.tag]=r}}function Op(i){function o(r,s){this.definition=s,this.length=s.length,this.offset=s.offset,this.file=r,this.rawData=r.raw,this.parse(r.raw)}for(var t in o.prototype.raw=function(){return this.rawData.slice(this.offset,this.length)},i)dy(i,t)&&(o[t]=o.prototype[t]=i[t]);return o}Dz.prototype={readTable:function(i,o){var t=this.tables[i];if(!t)throw new Error("Table "+i+" not found in directory");return this[i]=t.table=new o(this,t)},render:function(i){var o=Object.keys(i).length,t=Math.pow(2,Math.floor(Math.log(o)/Math.LN2)),r=16*t,s=Math.floor(Math.log(t)/Math.LN2),l=16*o-r,u=yr();u.writeLong(this.scalerType),u.writeShort(o),u.writeShort(r),u.writeShort(s),u.writeShort(l);var p=16*o,y=u.offset()+p,A=null,w=yr();for(var I in i)if(dy(i,I)){var P=i[I];for(u.writeString(I),u.writeLong(this.checksum(P)),u.writeLong(y),u.writeLong(P.length),w.write(P),"head"==I&&(A=y),y+=P.length;y%4;)w.writeByte(0),y++}u.write(w.get());var V=2981146554-this.checksum(u.get());return u.offset(A+8),u.writeLong(V),u.get()},checksum:function(i){i=yr(i);for(var o=0;!i.eof();)o+=i.readLong();return 4294967295&o}};var Pde=Op({parse:function(i){i.offset(this.offset),this.version=i.readLong(),this.revision=i.readLong(),this.checkSumAdjustment=i.readLong(),this.magicNumber=i.readLong(),this.flags=i.readShort(),this.unitsPerEm=i.readShort(),this.created=i.read(8),this.modified=i.read(8),this.xMin=i.readShort_(),this.yMin=i.readShort_(),this.xMax=i.readShort_(),this.yMax=i.readShort_(),this.macStyle=i.readShort(),this.lowestRecPPEM=i.readShort(),this.fontDirectionHint=i.readShort_(),this.indexToLocFormat=i.readShort_(),this.glyphDataFormat=i.readShort_()},render:function(i){var o=yr();return o.writeLong(this.version),o.writeLong(this.revision),o.writeLong(0),o.writeLong(this.magicNumber),o.writeShort(this.flags),o.writeShort(this.unitsPerEm),o.write(this.created),o.write(this.modified),o.writeShort_(this.xMin),o.writeShort_(this.yMin),o.writeShort_(this.xMax),o.writeShort_(this.yMax),o.writeShort(this.macStyle),o.writeShort(this.lowestRecPPEM),o.writeShort_(this.fontDirectionHint),o.writeShort_(i),o.writeShort_(this.glyphDataFormat),o.get()}}),Ode=Op({parse:function(i){i.offset(this.offset),this.offsets=0===this.file.head.indexToLocFormat?i.times(this.length/2,function(){return 2*i.readShort()}):i.times(this.length/4,i.readLong)},offsetOf:function(i){return this.offsets[i]},lengthOf:function(i){return this.offsets[i+1]-this.offsets[i]},render:function(i){for(var o=yr(),t=i[i.length-1]>65535,r=0;r<i.length;++r)t?o.writeLong(i[r]):o.writeShort(i[r]/2);return{format:t?1:0,table:o.get()}}}),Nde=Op({parse:function(i){i.offset(this.offset),this.version=i.readLong(),this.ascent=i.readShort_(),this.descent=i.readShort_(),this.lineGap=i.readShort_(),this.advanceWidthMax=i.readShort(),this.minLeftSideBearing=i.readShort_(),this.minRightSideBearing=i.readShort_(),this.xMaxExtent=i.readShort_(),this.caretSlopeRise=i.readShort_(),this.caretSlopeRun=i.readShort_(),this.caretOffset=i.readShort_(),i.skip(8),this.metricDataFormat=i.readShort_(),this.numOfLongHorMetrics=i.readShort()},render:function(i){var o=yr();return o.writeLong(this.version),o.writeShort_(this.ascent),o.writeShort_(this.descent),o.writeShort_(this.lineGap),o.writeShort(this.advanceWidthMax),o.writeShort_(this.minLeftSideBearing),o.writeShort_(this.minRightSideBearing),o.writeShort_(this.xMaxExtent),o.writeShort_(this.caretSlopeRise),o.writeShort_(this.caretSlopeRun),o.writeShort_(this.caretOffset),o.write([0,0,0,0,0,0,0,0]),o.writeShort_(this.metricDataFormat),o.writeShort(i.length),o.get()}}),Lde=Op({parse:function(i){i.offset(this.offset),this.version=i.readLong(),this.numGlyphs=i.readShort(),this.maxPoints=i.readShort(),this.maxContours=i.readShort(),this.maxComponentPoints=i.readShort(),this.maxComponentContours=i.readShort(),this.maxZones=i.readShort(),this.maxTwilightPoints=i.readShort(),this.maxStorage=i.readShort(),this.maxFunctionDefs=i.readShort(),this.maxInstructionDefs=i.readShort(),this.maxStackElements=i.readShort(),this.maxSizeOfInstructions=i.readShort(),this.maxComponentElements=i.readShort(),this.maxComponentDepth=i.readShort()},render:function(i){var o=yr();return o.writeLong(this.version),o.writeShort(i.length),o.writeShort(this.maxPoints),o.writeShort(this.maxContours),o.writeShort(this.maxComponentPoints),o.writeShort(this.maxComponentContours),o.writeShort(this.maxZones),o.writeShort(this.maxTwilightPoints),o.writeShort(this.maxStorage),o.writeShort(this.maxFunctionDefs),o.writeShort(this.maxInstructionDefs),o.writeShort(this.maxStackElements),o.writeShort(this.maxSizeOfInstructions),o.writeShort(this.maxComponentElements),o.writeShort(this.maxComponentDepth),o.get()}}),Rde=Op({parse:function(i){i.offset(this.offset);var o=this.file;this.metrics=i.times(o.hhea.numOfLongHorMetrics,function(){return{advance:i.readShort(),lsb:i.readShort_()}}),this.leftSideBearings=i.times(o.maxp.numGlyphs-o.hhea.numOfLongHorMetrics,i.readShort_)},forGlyph:function(i){var o=this.metrics,t=o.length;return i<t?o[i]:{advance:o[t-1].advance,lsb:this.leftSideBearings[i-t]}},render:function(i){for(var o=yr(),t=0;t<i.length;++t){var r=this.forGlyph(i[t]);o.writeShort(r.advance),o.writeShort_(r.lsb)}return o.get()}}),Fde=function(){function i(p){this.raw=p}function u(p){this.raw=p;for(var y=this.glyphIds=[],A=this.idOffsets=[];;){var w=p.readShort();if(A.push(p.offset()),y.push(p.readShort()),!(32&w))break;p.skip(1&w?4:2),128&w?p.skip(8):64&w?p.skip(4):8&w&&p.skip(2)}}return i.prototype={compound:!1,render:function(){return this.raw.get()}},u.prototype={compound:!0,render:function(p){for(var y=yr(this.raw.get()),A=0;A<this.glyphIds.length;++A){var w=this.glyphIds[A];y.offset(this.idOffsets[A]),y.writeShort(p[w])}return y.get()}},Op({parse:function(){this.cache={}},glyphFor:function(p){var y=this.cache;if(dy(y,p))return y[p];var A=this.file.loca,w=A.lengthOf(p);if(0===w)return y[p]=null;var I=this.rawData,P=this.offset+A.offsetOf(p),F=yr(I.slice(P,w)),V=F.readShort_(),oe=F.readShort_(),Ae=F.readShort_(),ue=F.readShort_(),Se=F.readShort_(),Be=y[p]=-1==V?new u(F):new i(F);return Be.numberOfContours=V,Be.xMin=oe,Be.yMin=Ae,Be.xMax=ue,Be.yMax=Se,Be},render:function(p,y,A){for(var w=yr(),I=[],P=0;P<y.length;++P){var V=p[y[P]];I.push(w.offset()),V&&w.write(V.render(A))}return I.push(w.offset()),{table:w.get(),offsets:I}}})}(),Bde=function(){function i(o,t){this.text=o,this.length=o.length,this.platformID=t.platformID,this.platformSpecificID=t.platformSpecificID,this.languageID=t.languageID,this.nameID=t.nameID}return Op({parse:function(o){o.offset(this.offset),o.readShort();for(var t=o.readShort(),r=this.offset+o.readShort(),s=o.times(t,function(){return{platformID:o.readShort(),platformSpecificID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:o.readShort()+r}}),l=this.strings={},u=0;u<s.length;++u){var p=s[u];o.offset(p.offset);var y=o.readString(p.length);l[p.nameID]||(l[p.nameID]=[]),l[p.nameID].push(new i(y,p))}this.postscriptEntry=l[6][0],this.postscriptName=this.postscriptEntry.text.replace(/[^\x20-\x7F]/g,"")},render:function(o){var t=this.strings,r=0;for(var s in t)dy(t,s)&&(r+=t[s].length);var l=yr(),u=yr();for(s in l.writeShort(0),l.writeShort(r),l.writeShort(6+12*r),t)if(dy(t,s))for(var p=6==s?[new i(o,this.postscriptEntry)]:t[s],y=0;y<p.length;++y){var A=p[y];l.writeShort(A.platformID),l.writeShort(A.platformSpecificID),l.writeShort(A.languageID),l.writeShort(A.nameID),l.writeShort(A.length),l.writeShort(u.offset()),u.writeString(A.text)}return l.write(u.get()),l.get()}})}(),Hde=function(){var i=".notdef .null nonmarkingreturn space exclam quotedbl numbersign dollar percent ampersand quotesingle parenleft parenright asterisk plus comma hyphen period slash zero one two three four five six seven eight nine colon semicolon less equal greater question at A B C D E F G H I J K L M N O P Q R S T U V W X Y Z bracketleft backslash bracketright asciicircum underscore grave a b c d e f g h i j k l m n o p q r s t u v w x y z braceleft bar braceright asciitilde Adieresis Aring Ccedilla Eacute Ntilde Odieresis Udieresis aacute agrave acircumflex adieresis atilde aring ccedilla eacute egrave ecircumflex edieresis iacute igrave icircumflex idieresis ntilde oacute ograve ocircumflex odieresis otilde uacute ugrave ucircumflex udieresis dagger degree cent sterling section bullet paragraph germandbls registered copyright trademark acute dieresis notequal AE Oslash infinity plusminus lessequal greaterequal yen mu partialdiff summation product pi integral ordfeminine ordmasculine Omega ae oslash questiondown exclamdown logicalnot radical florin approxequal Delta guillemotleft guillemotright ellipsis nonbreakingspace Agrave Atilde Otilde OE oe endash emdash quotedblleft quotedblright quoteleft quoteright divide lozenge ydieresis Ydieresis fraction currency guilsinglleft guilsinglright fi fl daggerdbl periodcentered quotesinglbase quotedblbase perthousand Acircumflex Ecircumflex Aacute Edieresis Egrave Iacute Icircumflex Idieresis Igrave Oacute Ocircumflex apple Ograve Uacute Ucircumflex Ugrave dotlessi circumflex tilde macron breve dotaccent ring cedilla hungarumlaut ogonek caron Lslash lslash Scaron scaron Zcaron zcaron brokenbar Eth eth Yacute yacute Thorn thorn minus multiply onesuperior twosuperior threesuperior onehalf onequarter threequarters franc Gbreve gbreve Idotaccent Scedilla scedilla Cacute cacute Ccaron ccaron dcroat".split(/\s+/g);return Op({parse:function(o){var t;switch(o.offset(this.offset),this.format=o.readLong(),this.italicAngle=o.readFixed_(),this.underlinePosition=o.readShort_(),this.underlineThickness=o.readShort_(),this.isFixedPitch=o.readLong(),this.minMemType42=o.readLong(),this.maxMemType42=o.readLong(),this.minMemType1=o.readLong(),this.maxMemType1=o.readLong(),this.format){case 65536:case 196608:break;case 131072:t=o.readShort(),this.glyphNameIndex=o.times(t,o.readShort),this.names=[];for(var r=this.offset+this.length;o.offset()<r;)this.names.push(o.readString(o.readByte()));break;case 151552:t=o.readShort(),this.offsets=o.read(t);break;case 262144:this.map=o.times(this.file.maxp.numGlyphs,o.readShort)}},glyphFor:function(o){switch(this.format){case 65536:return i[o]||".notdef";case 131072:var t=this.glyphNameIndex[o];return t<i.length?i[t]:this.names[t-i.length]||".notdef";case 151552:case 196608:return".notdef";case 262144:return this.map[o]||65535}},render:function(o){if(196608==this.format)return this.raw();var t=yr(this.rawData.slice(this.offset,32));t.writeLong(131072),t.offset(32);for(var r=[],s=[],l=0;l<o.length;++l){var p=this.glyphFor(o[l]),y=i.indexOf(p);y>=0?r.push(y):(r.push(i.length+s.length),s.push(p))}for(t.writeShort(o.length),l=0;l<r.length;++l)t.writeShort(r[l]);for(l=0;l<s.length;++l)t.writeByte(s[l].length),t.writeString(s[l]);return t.get()}})}(),kz=function(){function i(t,r,s){var l=this;l.platformID=t.readShort(),l.platformSpecificID=t.readShort(),l.offset=r+t.readLong(),t.saveExcursion(function(){var u;switch(t.offset(l.offset),l.format=t.readShort(),l.format){case 0:l.length=t.readShort(),l.language=t.readShort();for(var p=0;p<256;++p)s[p]=t.readByte();break;case 4:l.length=t.readShort(),l.language=t.readShort();var y=t.readShort()/2;t.skip(6);var A=t.times(y,t.readShort);t.skip(2);var w=t.times(y,t.readShort),I=t.times(y,t.readShort_),P=t.times(y,t.readShort),F=(l.length+l.offset-t.offset())/2,V=t.times(F,t.readShort);for(p=0;p<y;++p){var oe=w[p],Ae=A[p];for(u=oe;u<=Ae;++u){var ue;0===P[p]?ue=u+I[p]:0!==(ue=V[P[p]/2-(y-p)+(u-oe)]||0)&&(ue+=I[p]),s[u]=65535&ue}}break;case 6:l.length=t.readShort(),l.language=t.readShort(),u=t.readShort();for(var Be=t.readShort();Be-- >0;)s[u++]=t.readShort();break;case 12:t.readShort(),l.length=t.readLong(),l.language=t.readLong();for(var Me=t.readLong();Me-- >0;){u=t.readLong();for(var He=t.readLong(),Ye=t.readLong();u<=He;)s[u++]=Ye++}break;default:window.console&&window.console.error("Unhandled CMAP format: "+l.format)}})}return Op({parse:function(t){var r=this,s=r.offset;t.offset(s),r.codeMap={},r.version=t.readShort();var l=t.readShort();r.tables=t.times(l,function(){return new i(t,s,r.codeMap)})},render:function(t,r){var s=yr();return s.writeShort(0),s.writeShort(1),s.write(function o(t,r){var s=RL(t),l=[],u=[],p=null,y=null;function A(Re){return r[t[Re]]}for(var w=0;w<s.length;++w){var I=s[w],F=A(I)-I;(null==p||F!==y)&&(p&&u.push(p),l.push(I),y=F),p=I}p&&u.push(p),u.push(65535),l.push(65535);var V=l.length,oe=2*V,Ae=2*Math.pow(2,Math.floor(Math.log(V)/Math.LN2)),ue=Math.log(Ae/2)/Math.LN2,Se=oe-Ae,Be=[],Me=[],He=[];for(w=0;w<V;++w){var Ye=l[w],Le=u[w];if(65535==Ye){Be.push(0),Me.push(0);break}var tt=A(Ye);if(Ye-tt>=32768){Be.push(0),Me.push(2*(He.length+V-w));for(var kt=Ye;kt<=Le;++kt)He.push(A(kt))}else Be.push(tt-Ye),Me.push(0)}var Ke=yr();return Ke.writeShort(3),Ke.writeShort(1),Ke.writeLong(12),Ke.writeShort(4),Ke.writeShort(16+8*V+2*He.length),Ke.writeShort(0),Ke.writeShort(oe),Ke.writeShort(Ae),Ke.writeShort(ue),Ke.writeShort(Se),u.forEach(Ke.writeShort),Ke.writeShort(0),l.forEach(Ke.writeShort),Be.forEach(Ke.writeShort_),Me.forEach(Ke.writeShort),He.forEach(Ke.writeShort),Ke.get()}(t,r)),s.get()}})}(),$de=Op({parse:function(i){i.offset(this.offset),this.version=i.readShort(),this.averageCharWidth=i.readShort_(),this.weightClass=i.readShort(),this.widthClass=i.readShort(),this.type=i.readShort(),this.ySubscriptXSize=i.readShort_(),this.ySubscriptYSize=i.readShort_(),this.ySubscriptXOffset=i.readShort_(),this.ySubscriptYOffset=i.readShort_(),this.ySuperscriptXSize=i.readShort_(),this.ySuperscriptYSize=i.readShort_(),this.ySuperscriptXOffset=i.readShort_(),this.ySuperscriptYOffset=i.readShort_(),this.yStrikeoutSize=i.readShort_(),this.yStrikeoutPosition=i.readShort_(),this.familyClass=i.readShort_(),this.panose=i.times(10,i.readByte),this.charRange=i.times(4,i.readLong),this.vendorID=i.readString(4),this.selection=i.readShort(),this.firstCharIndex=i.readShort(),this.lastCharIndex=i.readShort(),this.version>0&&(this.ascent=i.readShort_(),this.descent=i.readShort_(),this.lineGap=i.readShort_(),this.winAscent=i.readShort(),this.winDescent=i.readShort(),this.codePageRange=i.times(2,i.readLong),this.version>1&&(this.xHeight=i.readShort(),this.capHeight=i.readShort(),this.defaultChar=i.readShort(),this.breakChar=i.readShort(),this.maxContext=i.readShort()))},render:function(){return this.raw()}}),Iz=1e5;function Ez(i){this.font=i,this.subset={},this.unicodes={},this.ogid2ngid={0:0},this.ngid2ogid={0:0},this.ncid2ogid={},this.next=this.firstChar=1,this.nextGid=1,this.psName=function Ude(){for(var i="",o=String(Iz),t=0;t<o.length;++t)i+=String.fromCharCode(o.charCodeAt(t)-48+65);return++Iz,i}()+"+"+this.font.psName}function Pz(i,o){var t=this,r=t.contents=yr(i);if("ttcf"==r.readString(4)){var s;const p=function(){r.offset(s),t.parse()};if(!o)throw new Error("Must specify a name for TTC files");r.readLong();for(var l=r.readLong(),u=0;u<l;++u)if(s=r.readLong(),r.saveExcursion(p),t.psName==o)return;throw new Error("Font "+o+" not found in collection")}r.offset(0),t.parse()}Ez.prototype={use:function(i){var o=this;if("string"==typeof i)return function Mde(i){for(var s,l,o=[],t=0,r=i.length;t<r;)(s=i.charCodeAt(t++))>=55296&&s<=56319&&t<r?56320==(64512&(l=i.charCodeAt(t++)))?o.push(((1023&s)<<10)+(1023&l)+65536):(o.push(s),t--):o.push(s);return o}(i).reduce(function(l,u){return l+String.fromCharCode(o.use(u))},"");var t=o.unicodes[i];if(!t){t=o.next++,o.subset[t]=i,o.unicodes[i]=t;var r=o.font.cmap.codeMap[i];if(r&&(o.ncid2ogid[t]=r,null==o.ogid2ngid[r])){var s=o.nextGid++;o.ogid2ngid[r]=s,o.ngid2ogid[s]=r}}return t},encodeText:function(i){return this.use(i)},glyphIds:function(){return RL(this.ogid2ngid)},glyphsFor:function(i,o){o||(o={});for(var t=0;t<i.length;++t){var r=i[t];if(!o[r]){var s=o[r]=this.font.glyf.glyphFor(r);s&&s.compound&&this.glyphsFor(s.glyphIds,o)}}return o},render:function(){var i=this.glyphsFor(this.glyphIds());for(var o in i)if(dy(i,o)&&(o=parseInt(o,10),null==this.ogid2ngid[o])){var t=this.nextGid++;this.ogid2ngid[o]=t,this.ngid2ogid[t]=o}var s=RL(this.ngid2ogid).map(function(A){return this.ngid2ogid[A]},this),l=this.font,u=l.glyf.render(i,s,this.ogid2ngid),p=l.loca.render(u.offsets);this.lastChar=this.next-1;var y={cmap:kz.render(this.ncid2ogid,this.ogid2ngid),glyf:u.table,loca:p.table,hmtx:l.hmtx.render(s),hhea:l.hhea.render(s),maxp:l.maxp.render(s),post:l.post.render(s),name:l.name.render(this.psName),head:l.head.render(p.format),"OS/2":l.os2.render()};return this.font.directory.render(y)},cidToGidMap:function(){for(var i=yr(),o=0,t=this.firstChar;t<this.next;++t){for(;o<t;)i.writeShort(0),o++;var r=this.ncid2ogid[t];i.writeShort(r?this.ogid2ngid[r]:0),o++}return i.get()}},Pz.prototype={parse:function(){var i=this.directory=new Dz(this.contents);this.head=i.readTable("head",Pde),this.loca=i.readTable("loca",Ode),this.hhea=i.readTable("hhea",Nde),this.maxp=i.readTable("maxp",Lde),this.hmtx=i.readTable("hmtx",Rde),this.glyf=i.readTable("glyf",Fde),this.name=i.readTable("name",Bde),this.post=i.readTable("post",Hde),this.cmap=i.readTable("cmap",kz),this.os2=i.readTable("OS/2",$de),this.psName=this.name.postscriptName,this.ascent=this.os2.ascent||this.hhea.ascent,this.descent=this.os2.descent||this.hhea.descent,this.lineGap=this.os2.lineGap||this.hhea.lineGap,this.scale=1e3/this.head.unitsPerEm},widthOfGlyph:function(i){return this.hmtx.forGlyph(i).advance*this.scale},makeSubset:function(){return new Ez(this)}};const jde=S(3953).deflate,wn="\n";var w1=0;const Nz={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],executive:[521.86,756],folio:[612,936],legal:[612,1008],letter:[612,792],tabloid:[792,1224]};function Rz(i,o,t){for(;i.length<o;)i=t+i;return i}function Ou(i,o){return Rz(String(i),o,"0")}function uI(i,o){return Object.prototype.hasOwnProperty.call(i,o)}var Fz=Array.isArray||function(i){return i instanceof Array};function Xde(i){return i instanceof Date}function eue(i,o){o("["),i.length>0&&o.withIndent(function(){for(var t=0;t<i.length;++t)t>0&&t%8==0?o.indent(i[t]):o(" ",i[t])}),o(" ]")}function tue(i,o){o("(D:",Ou(i.getUTCFullYear(),4),Ou(i.getUTCMonth()+1,2),Ou(i.getUTCDate(),2),Ou(i.getUTCHours(),2),Ou(i.getUTCMinutes(),2),Ou(i.getUTCSeconds(),2),"Z)")}function Bz(i){return i*(72/25.4)}function nue(i){return Bz(10*i)}function iue(i){return 72*i}function M1(i,o){if("number"==typeof i)return i;var t;if("string"==typeof i&&(t=/^\s*([0-9.]+)\s*(mm|cm|in|pt)\s*$/.exec(i))){var r=parseFloat(t[1]);if(!isNaN(r))return"pt"==t[2]?r:{mm:Bz,cm:nue,in:iue}[t[2]](r)}if(null!=o)return o;throw new Error("Can't parse unit: "+i)}function HL(){}function Nu(i,o,t){for(var r in t||(t=HL),i.prototype=new t,o)uI(o,r)&&(i.prototype[r]=o[r]);return i}HL.prototype.beforeRender=function(){};var kc=Nu(function(o){this.value=o},{render:function(i){for(var o="",t=this.value,r=0;r<t.length;++r)o+=String.fromCharCode(255&t.charCodeAt(r));i("(",o.replace(/([\(\)\\])/g,"\\$1"),")")},toString:function(){return this.value}}),oue=Nu(function(o){this.value=o},{render:function(i){i("<");for(var o=0;o<this.value.length;++o)i(Ou(this.value.charCodeAt(o).toString(16),4));i(">")}},kc),Hz=Nu(function(o){this.name=o},{render:function(i){i("/"+this.escape())},escape:function(){return this.name.replace(/[^\x21-\x7E]/g,function(i){return"#"+Ou(i.charCodeAt(0).toString(16),2)})},toString:function(){return this.name}}),$L={};function vn(i){return uI($L,i)?$L[i]:$L[i]=new Hz(i)}Hz.get=vn;var Vo=Nu(function(o){this.props=o},{render:function(i){var o=this.props,t=!0;i("<<"),i.withIndent(function(){for(var r in o)uI(o,r)&&!/^_/.test(r)&&(t=!1,i.indent(vn(r)," ",o[r]))}),t||i.indent(),i(">>")}}),vg=Nu(function(o,t,r){if("string"==typeof o){var s=yr();s.write(o),o=s}this.data=o,this.props=t||{},this.compress=r},{render:function(i){var o=this.data.get(),t=this.props;this.compress&&(t.Filter?t.Filter instanceof Array||(t.Filter=[t.Filter]):t.Filter=[],t.Filter.unshift(vn("FlateDecode")),o=jde(o)),t.Length=o.length,i(new Vo(t)," stream",wn),i.writeData(o),i(wn,"endstream")}});Nu(function(){this.props={Type:vn("Catalog")}},{setPages:function(i){this.props.Pages=i}},Vo),Nu(function(){this.props={Type:vn("Pages"),Kids:[],Count:0}},{addPage:function(i){this.props.Kids.push(i),this.props.Count++}},Vo),Nu(function(o){this.props={Type:vn("Font"),Subtype:vn("Type1"),BaseFont:vn(o)},this._resourceName=vn("F"+ ++w1)},{encodeText:function(i){return new kc(String(i))}},Vo);var UL=Nu(function(o,t,r){(r=this.props=r||{}).Type=vn("Font"),r.Subtype=vn("Type0"),r.Encoding=vn("Identity-H"),this._pdf=o,this._font=t,this._sub=t.makeSubset(),this._resourceName=vn("F"+ ++w1);var s=t.head;this.name=t.psName;var l=this.scale=t.scale;this.bbox=[s.xMin*l,s.yMin*l,s.xMax*l,s.yMax*l],this.italicAngle=t.post.italicAngle,this.ascent=t.ascent*l,this.descent=t.descent*l,this.lineGap=t.lineGap*l,this.capHeight=t.os2.capHeight||this.ascent,this.xHeight=t.os2.xHeight||0,this.stemV=0,this.familyClass=(t.os2.familyClass||0)>>8,this.isSerif=this.familyClass>=1&&this.familyClass<=7,this.isScript=10==this.familyClass,this.flags=(t.post.isFixedPitch?1:0)|(this.isSerif?2:0)|(this.isScript?8:0)|(0!==this.italicAngle?64:0)|32},{encodeText:function(i){return new oue(this._sub.encodeText(String(i)))},getTextWidth:function(i,o){for(var t=0,r=this._font.cmap.codeMap,s=0;s<o.length;++s){var l=r[o.charCodeAt(s)];t+=this._font.widthOfGlyph(l||0)}return t*i/1e3},beforeRender:function(){var i=this,o=i._sub,t=o.render(),r=new vg(yr(t),{Length1:t.length},!0),s=i._pdf.attach(new Vo({Type:vn("FontDescriptor"),FontName:vn(i._sub.psName),FontBBox:i.bbox,Flags:i.flags,StemV:i.stemV,ItalicAngle:i.italicAngle,Ascent:i.ascent,Descent:i.descent,CapHeight:i.capHeight,XHeight:i.xHeight,FontFile2:i._pdf.attach(r)})),l=o.ncid2ogid,u=o.firstChar,p=o.lastChar,y=[];!function F(V,oe){if(V<=p){var Ae=l[V];null==Ae?F(V+1):(oe||y.push(V,oe=[]),oe.push(i._font.widthOfGlyph(Ae)),F(V+1,oe))}}(u);var A=new Vo({Type:vn("Font"),Subtype:vn("CIDFontType2"),BaseFont:vn(i._sub.psName),CIDSystemInfo:new Vo({Registry:new kc("Adobe"),Ordering:new kc("Identity"),Supplement:0}),FontDescriptor:s,FirstChar:u,LastChar:p,DW:Math.round(i._font.widthOfGlyph(0)),W:y,CIDToGIDMap:i._pdf.attach(i._makeCidToGidMap())}),w=i.props;w.BaseFont=vn(i._sub.psName),w.DescendantFonts=[i._pdf.attach(A)];var I=new due(u,p,o.subset),P=new vg(function FL(){var i=0,o=yr();function t(){for(var r=0;r<arguments.length;++r){var s=arguments[r];if(void 0===s)throw new Error("Cannot output undefined to PDF");if(s instanceof HL)s.beforeRender(t),s.render(t);else if(Fz(s))eue(s,t);else if(Xde(s))tue(s,t);else if("number"==typeof s){if(isNaN(s))throw new Error("Cannot output NaN to PDF");var l=s.toFixed(7);l.indexOf(".")>=0&&(l=l.replace(/\.?0+$/,"")),"-0"==l&&(l="0"),o.writeString(l)}else/string|boolean/.test(typeof s)?o.writeString(String(s)):"function"==typeof s.get?o.write(s.get()):"object"==typeof s&&(s?t(new Vo(s)):o.writeString("null"))}}return t.writeData=function(r){o.write(r)},t.withIndent=function(r){++i,r(t),--i},t.indent=function(){t(wn,Rz("",2*i,"  ")),t.apply(null,arguments)},t.offset=function(){return o.offset()},t.toString=function(){throw new Error("FIX CALLER")},t.get=function(){return o.get()},t.stream=function(){return o},t}(),null,!0);P.data(I),w.ToUnicode=i._pdf.attach(P)},_makeCidToGidMap:function(){return new vg(yr(this._sub.cidToGidMap()),null,!0)}},Vo),due=Nu(function(o,t,r){this.firstChar=o,this.lastChar=t,this.map=r},{render:function(i){i.indent("/CIDInit /ProcSet findresource begin"),i.indent("12 dict begin"),i.indent("begincmap"),i.indent("/CIDSystemInfo <<"),i.indent("  /Registry (Adobe)"),i.indent("  /Ordering (UCS)"),i.indent("  /Supplement 0"),i.indent(">> def"),i.indent("/CMapName /Adobe-Identity-UCS def"),i.indent("/CMapType 2 def"),i.indent("1 begincodespacerange"),i.indent("  <0000><ffff>"),i.indent("endcodespacerange");var o=this;i.indent(o.lastChar-o.firstChar+1," beginbfchar"),i.withIndent(function(){for(var t=o.firstChar;t<=o.lastChar;++t){var s=Dde([o.map[t]]);i.indent("<",Ou(t.toString(16),4),">","<");for(var l=0;l<s.length;++l)i(Ou(s.charCodeAt(l).toString(16),4));i(">")}}),i.indent("endbfchar"),i.indent("endcmap"),i.indent("CMapName currentdict /CMap defineresource pop"),i.indent("end"),i.indent("end")}});function Hx(i){return i.map(function(o){return Fz(o)?Hx(o):"number"==typeof o?(Math.round(1e3*o)/1e3).toFixed(3):o}).join(" ")}function uue(i,o,t,r,s,l,u){var p=Hx([o,t,r,s,l,u]),y=i.GRAD_COL_FUNCTIONS[p];return y||(y=i.GRAD_COL_FUNCTIONS[p]=i.attach(new Vo({FunctionType:2,Domain:[0,1],Range:[0,1,0,1,0,1],N:1,C0:[o,t,r],C1:[s,l,u]}))),y}function pue(i,o,t){var r=Hx([o,t]),s=i.GRAD_OPC_FUNCTIONS[r];return s||(s=i.GRAD_OPC_FUNCTIONS[r]=i.attach(new Vo({FunctionType:2,Domain:[0,1],Range:[0,1],N:1,C0:[o],C1:[t]}))),s}Nu(function(o,t){this._pdf=o,this._rcount=0,this._textMode=!1,this._fontResources={},this._gsResources={},this._xResources={},this._patResources={},this._shResources={},this._opacity=1,this._matrix=[1,0,0,1,0,0],this._annotations=[],this._font=null,this._fontSize=null,this._contextStack=[],(t=this.props=t||{}).Type=vn("Page"),t.ProcSet=[vn("PDF"),vn("Text"),vn("ImageB"),vn("ImageC"),vn("ImageI")],t.Resources=new Vo({Font:new Vo(this._fontResources),ExtGState:new Vo(this._gsResources),XObject:new Vo(this._xResources),Pattern:new Vo(this._patResources),Shading:new Vo(this._shResources)}),t.Annots=this._annotations},{_out:function(){this._content.data.apply(null,arguments)},transform:function(i,o,t,r,s,l){yue(arguments)||(this._matrix=vue(arguments,this._matrix),this._out(i," ",o," ",t," ",r," ",s," ",l," cm"),this._out(wn))},translate:function(i,o){this.transform(1,0,0,1,i,o)},scale:function(i,o){this.transform(i,0,0,o,0,0)},rotate:function(i){var o=Math.cos(i),t=Math.sin(i);this.transform(o,t,-t,o,0,0)},beginText:function(){this._textMode=!0,this._out("BT",wn)},endText:function(){this._textMode=!1,this._out("ET",wn)},_requireTextMode:function(){if(!this._textMode)throw new Error("Text mode required; call page.beginText() first")},_requireFont:function(){if(!this._font)throw new Error("No font selected; call page.setFont() first")},setFont:function(i,o){this._requireTextMode(),null==i?i=this._font:i instanceof UL||(i=this._pdf.getFont(i)),null==o&&(o=this._fontSize),this._fontResources[i._resourceName]=i,this._font=i,this._fontSize=o,this._out(i._resourceName," ",o," Tf",wn)},setTextLeading:function(i){this._requireTextMode(),this._out(i," TL",wn)},setTextRenderingMode:function(i){this._requireTextMode(),this._out(i," Tr",wn)},showText:function(i,o){if(this._requireFont(),i.length>1&&o&&this._font instanceof UL){var t=this._font.getTextWidth(this._fontSize,i);this._out(o/t*100," Tz ")}this._out(this._font.encodeText(i)," Tj",wn)},showTextNL:function(i){this._requireFont(),this._out(this._font.encodeText(i)," '",wn)},addLink:function(i,o){var t=this._toPage({x:o.left,y:o.bottom}),r=this._toPage({x:o.right,y:o.top});this._annotations.push(new Vo({Type:vn("Annot"),Subtype:vn("Link"),Rect:[t.x,t.y,r.x,r.y],Border:[0,0,0],A:new Vo({Type:vn("Action"),S:vn("URI"),URI:new kc(i)})}))},setStrokeColor:function(i,o,t){this._out(i," ",o," ",t," RG",wn)},setOpacity:function(i){this.setFillOpacity(i),this.setStrokeOpacity(i),this._opacity*=i},setStrokeOpacity:function(i){if(i<1){var o=this._pdf.getOpacityGS(this._opacity*i,!0);this._gsResources[o._resourceName]=o,this._out(o._resourceName," gs",wn)}},setFillColor:function(i,o,t){this._out(i," ",o," ",t," rg",wn)},setFillOpacity:function(i){if(i<1){var o=this._pdf.getOpacityGS(this._opacity*i,!1);this._gsResources[o._resourceName]=o,this._out(o._resourceName," gs",wn)}},gradient:function(i,o){this.save(),this.rect(o.left,o.top,o.width,o.height),this.clip(),i.userSpace||this.transform(o.width,0,0,o.height,o.left,o.top);var s,t=function mue(i,o,t){var r="radial"==o.type,s=function hue(i,o){var p,A,w,I,t=!1,r=[],s=[],l=[],u=[];for(p=1;p<o.length;++p)s.push(uue(i,(w=o[p-1].color).r,w.g,w.b,(I=(A=o[p]).color).r,I.g,I.b)),(w.a<1||I.a<1)&&(t=!0),l.push(A.offset),u.push(0,1);if(t)for(p=1;p<o.length;++p)r.push(pue(i,(w=o[p-1].color).a,(I=(A=o[p]).color).a));return l.pop(),{hasAlpha:t,colors:P(s),opacities:t?P(r):null};function P(F){return 1==F.length?F[0]:{FunctionType:3,Functions:F,Domain:[0,1],Bounds:l,Encode:u}}}(i,o.stops),l=r?[o.start.x,o.start.y,o.start.r,o.end.x,o.end.y,o.end.r]:[o.start.x,o.start.y,o.end.x,o.end.y],u=function gue(i,o,t,r,s,l){var u,p;if(!l){var y=[o].concat(r);t.forEach(function(A){y.push(A.offset,A.color.r,A.color.g,A.color.b)}),p=Hx(y),u=i.GRAD_COL[p]}return u||(u=new Vo({Type:vn("Shading"),ShadingType:o?3:2,ColorSpace:vn("DeviceRGB"),Coords:r,Domain:[0,1],Function:s,Extend:[!0,!0]}),i.attach(u),u._resourceName="S"+ ++w1,p&&(i.GRAD_COL[p]=u)),u}(i,r,o.stops,l,s.colors,o.userSpace&&t),p=s.hasAlpha?function fue(i,o,t,r,s,l){var u,p;if(!l){var y=[o].concat(r);t.forEach(function(A){y.push(A.offset,A.color.a)}),p=Hx(y),u=i.GRAD_OPC[p]}return u||(u=new Vo({Type:vn("ExtGState"),AIS:!1,CA:1,ca:1,SMask:{Type:vn("Mask"),S:vn("Luminosity"),G:i.attach(new vg("/a0 gs /s0 sh",{Type:vn("XObject"),Subtype:vn("Form"),FormType:1,BBox:l?[l.left,l.top+l.height,l.left+l.width,l.top]:[0,1,1,0],Group:{Type:vn("Group"),S:vn("Transparency"),CS:vn("DeviceGray"),I:!0},Resources:{ExtGState:{a0:{CA:1,ca:1}},Shading:{s0:{ColorSpace:vn("DeviceGray"),Coords:r,Domain:[0,1],ShadingType:o?3:2,Function:s,Extend:[!0,!0]}}}}))}}),i.attach(u),u._resourceName="O"+ ++w1,p&&(i.GRAD_OPC[p]=u)),u}(i,r,o.stops,l,s.opacities,o.userSpace&&t):null;return{hasAlpha:s.hasAlpha,shading:u,opacity:p}}(this._pdf,i,o),r=t.shading._resourceName;this._shResources[r]=t.shading,t.hasAlpha&&(this._gsResources[s=t.opacity._resourceName]=t.opacity,this._out("/"+s+" gs ")),this._out("/"+r+" sh",wn),this.restore()},setDashPattern:function(i,o){this._out(i," ",o," d",wn)},setLineWidth:function(i){this._out(i," w",wn)},setLineCap:function(i){this._out(i," J",wn)},setLineJoin:function(i){this._out(i," j",wn)},setMitterLimit:function(i){this._out(i," M",wn)},save:function(){this._contextStack.push(this._context()),this._out("q",wn)},restore:function(){this._out("Q",wn),this._context(this._contextStack.pop())},moveTo:function(i,o){this._out(i," ",o," m",wn)},lineTo:function(i,o){this._out(i," ",o," l",wn)},bezier:function(i,o,t,r,s,l){this._out(i," ",o," ",t," ",r," ",s," ",l," c",wn)},bezier1:function(i,o,t,r){this._out(i," ",o," ",t," ",r," y",wn)},bezier2:function(i,o,t,r){this._out(i," ",o," ",t," ",r," v",wn)},close:function(){this._out("h",wn)},rect:function(i,o,t,r){this._out(i," ",o," ",t," ",r," re",wn)},ellipse:function(i,o,t,r){function s(p){return i+p}function l(p){return o+p}var u=.5522847498307936;this.moveTo(s(0),l(r)),this.bezier(s(t*u),l(r),s(t),l(r*u),s(t),l(0)),this.bezier(s(t),l(-r*u),s(t*u),l(-r),s(0),l(-r)),this.bezier(s(-t*u),l(-r),s(-t),l(-r*u),s(-t),l(0)),this.bezier(s(-t),l(r*u),s(-t*u),l(r),s(0),l(r))},circle:function(i,o,t){this.ellipse(i,o,t,t)},stroke:function(){this._out("S",wn)},nop:function(){this._out("n",wn)},clip:function(){this._out("W n",wn)},clipStroke:function(){this._out("W S",wn)},closeStroke:function(){this._out("s",wn)},fill:function(){this._out("f",wn)},fillStroke:function(){this._out("B",wn)},drawImage:function(i){var o=this._pdf.getImage(i);o&&(this._xResources[o._resourceName]=o,this._out(o._resourceName," Do",wn))},comment:function(i){var o=this;i.split(/\r?\n/g).forEach(function(t){o._out("% ",t,wn)})},_context:function(i){if(null==i)return{opacity:this._opacity,matrix:this._matrix};this._opacity=i.opacity,this._matrix=i.matrix},_toPage:function(i){var o=this._matrix;return{x:o[0]*i.x+o[2]*i.y+o[4],y:o[1]*i.x+o[3]*i.y+o[5]}}},Vo);var ia={serif:"Times-Roman","serif|bold":"Times-Bold","serif|italic":"Times-Italic","serif|bold|italic":"Times-BoldItalic","sans-serif":"Helvetica","sans-serif|bold":"Helvetica-Bold","sans-serif|italic":"Helvetica-Oblique","sans-serif|bold|italic":"Helvetica-BoldOblique",monospace:"Courier","monospace|bold":"Courier-Bold","monospace|italic":"Courier-Oblique","monospace|bold|italic":"Courier-BoldOblique",zapfdingbats:"ZapfDingbats","zapfdingbats|bold":"ZapfDingbats","zapfdingbats|italic":"ZapfDingbats","zapfdingbats|bold|italic":"ZapfDingbats"};function yg(i,o){i=i.toLowerCase(),ia[i]=function(){return ia[o]},ia[i+"|bold"]=function(){return ia[o+"|bold"]},ia[i+"|italic"]=function(){return ia[o+"|italic"]},ia[i+"|bold|italic"]=function(){return ia[o+"|bold|italic"]}}function Uz(i,o){if(1==arguments.length)for(var t in i)uI(i,t)&&Uz(t,i[t]);else switch(i=i.toLowerCase(),ia[i]=o,i){case"dejavu sans":ia["sans-serif"]=o;break;case"dejavu sans|bold":ia["sans-serif|bold"]=o;break;case"dejavu sans|italic":ia["sans-serif|italic"]=o;break;case"dejavu sans|bold|italic":ia["sans-serif|bold|italic"]=o;break;case"dejavu serif":ia.serif=o;break;case"dejavu serif|bold":ia["serif|bold"]=o;break;case"dejavu serif|italic":ia["serif|italic"]=o;break;case"dejavu serif|bold|italic":ia["serif|bold|italic"]=o;break;case"dejavu mono":ia.monospace=o;break;case"dejavu mono|bold":ia["monospace|bold"]=o;break;case"dejavu mono|italic":ia["monospace|italic"]=o;break;case"dejavu mono|bold|italic":ia["monospace|bold|italic"]=o}}function vue(i,o){var t=i[0],r=i[1],s=i[2],l=i[3],u=i[4],p=i[5],y=o[0],A=o[1],w=o[2],I=o[3];return[t*y+r*w,t*A+r*I,s*y+l*w,s*A+l*I,u*y+p*w+o[4],u*A+p*I+o[5]]}function yue(i){return 1===i[0]&&0===i[1]&&0===i[2]&&1===i[3]&&0===i[4]&&0===i[5]}yg("Times New Roman","serif"),yg("Courier New","monospace"),yg("Arial","sans-serif"),yg("Helvetica","sans-serif"),yg("Verdana","sans-serif"),yg("Tahoma","sans-serif"),yg("Georgia","sans-serif"),yg("Monaco","monospace"),yg("Andale Mono","monospace");const Lu=dg.browser||{};function Cg(i){return Array.prototype.slice.call(i)}var Ux="KENDO-PSEUDO-ELEMENT",Yx={},di={};di._root=di;const D1=typeof window<"u"&&(Lu.msie||Lu.edge);class Bue extends xce{constructor(o,t,r){super(o,t.getOrigin(),r),this._pdfRect=t}rect(){return this._pdfRect}rawBBox(){return this._pdfRect}}function jx(i,o){Object.keys(o).forEach(function(t){i.style[t]=o[t]})}var pI=typeof Element<"u"&&Element.prototype&&function(i){return i.matches?function(o,t){return o.matches(t)}:i.webkitMatchesSelector?function(o,t){return o.webkitMatchesSelector(t)}:i.mozMatchesSelector?function(o,t){return o.mozMatchesSelector(t)}:i.msMatchesSelector?function(o,t){return o.msMatchesSelector(t)}:function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}}(Element.prototype);function Zx(i,o){if(i.closest)return i.closest(o);for(;i&&!/^\[object (?:HTML)?Document\]$/.test(String(i));){if(1==i.nodeType&&pI(i,o))return i;i=i.parentNode}}var Uue=function(i){return i?function o(t){var r=t.cloneNode(!1);if(1==t.nodeType){var u,s=i(t),l=i(r),p=s.data();for(u in p)l.data(u,p[u]);for(/^canvas$/i.test(t.tagName)?r.getContext("2d").drawImage(t,0,0):/^(?:input|select|textarea|option)$/i.test(t.tagName)&&(r.removeAttribute("id"),r.removeAttribute("name"),r.value=t.value,r.checked=t.checked,r.selected=t.selected),u=t.firstChild;u;u=u.nextSibling)r.appendChild(o(u))}return r}:function(t){const r=function u(p){const y=p.cloneNode(!1);p._kendoExportVisual&&(y._kendoExportVisual=p._kendoExportVisual);for(let A=p.firstChild;A;A=A.nextSibling)y.appendChild(u(A));return y}(t),s=t.querySelectorAll("canvas");s.length&&Cg(r.querySelectorAll("canvas")).forEach((u,p)=>{u.getContext("2d").drawImage(s[p],0,0)});const l=t.querySelectorAll("input, select, textarea, option");return Cg(r.querySelectorAll("input, select, textarea, option")).forEach((u,p)=>{u.removeAttribute("id"),u.removeAttribute("name"),u.value=l[p].value,u.checked=l[p].checked,u.selected=l[p].selected}),r}}(typeof window<"u"&&window.kendo&&window.kendo.jQuery);function zz(i,o){o||(o={});var t=Uk();if(!i)return t.reject("No element to export");if("function"!=typeof window.getComputedStyle)throw new Error("window.getComputedStyle is missing.  You are using an unsupported browser, or running in IE8 compatibility mode.  Drawing HTML is supported in Chrome, Firefox, Safari and IE9+.");Uz(Jz(i.ownerDocument));var r=function Yue(i){return"number"==typeof i?{x:i,y:i}:Array.isArray(i)?{x:i[0],y:i[1]}:{x:i.x,y:i.y}}(o.scale||1);function s(p){var y=new kd,A=p.getBoundingClientRect();return hI(y,[r.x,0,0,r.y,-A.left*r.x,-A.top*r.y]),di._clipbox=!1,di._matrix=Dd.unit(),di._stackingContext={element:p,group:y},di._avoidLinks=!0===o.avoidLinks?"a":o.avoidLinks,function Hue(i,o){i.classList?i.classList.add(o):i.className+=" "+o}(p,"k-pdf-export"),Gx(p,y),function $ue(i,o){i.classList?i.classList.remove(o):i.className=i.className.split(/\s+/).reduce(function(t,r){return r!=o&&t.push(r),t},[]).join(" ")}(p,"k-pdf-export"),y}return Xz(i,function(){var p=o&&o.forcePageBreak,y=o&&o.paperSize&&"auto"!=o.paperSize,A=function Lz(i){if("function"!=typeof i){var o=i;i=function(s,l){return s in o?o[s]:l}}var t=i("paperSize",Nz.a4);if(!t)return{};if("string"==typeof t&&null==(t=Nz[t.toLowerCase()]))throw new Error("Unknown paper size");t[0]=M1(t[0]),t[1]=M1(t[1]),i("landscape",!1)&&(t=[Math.max(t[0],t[1]),Math.min(t[0],t[1])]);var r=i("margin");return r&&(r="string"==typeof r||"number"==typeof r?{left:r=M1(r,0),top:r,right:r,bottom:r}:{left:M1(r.left,0),top:M1(r.top,0),right:M1(r.right,0),bottom:M1(r.bottom,0)},i("addMargin")&&(t[0]+=r.left+r.right,t[1]+=r.top+r.bottom)),{paperSize:t,margin:r}}(function(oe,Ae){return"paperSize"==oe?y?o[oe]:"A4":oe in o?o[oe]:Ae}),w=y&&A.paperSize[0],I=y&&A.paperSize[1],P=o.margin&&A.margin,F=Boolean(P);if(p||I){P||(P={left:0,top:0,right:0,bottom:0}),w&&(w/=r.x),I&&(I/=r.y),P.left/=r.x,P.right/=r.x,P.top/=r.y,P.bottom/=r.y;var V=new kd({pdf:{multiPage:!0,paperSize:y?A.paperSize:"auto",_ignoreMargin:F}});!function u(p,y,A,w,I,P,F){var V=function l(p){if(null!=p)return"string"==typeof p&&(p=function Mle(){throw new Error("String template not yet supported.  Pass a function and use your preferred template engine.")}(p.replace(/^\s+|\s+$/g,""))),"function"==typeof p?function(y){var A=p(y);if(A&&"string"==typeof A){var w=document.createElement("div");w.innerHTML=A,A=w.firstElementChild}return A}:function(){return p.cloneNode(!0)}}(F.template),oe=y.ownerDocument,Ae=[],ue=F._destructive?y:Uue(y),Se=oe.createElement("KENDO-PDF-DOCUMENT"),Be=0;function Me(){("-"!=A||I)&&Ye(ue);{let Ze=kt();ue.parentNode.insertBefore(Ze,ue),Ze.appendChild(ue)}V&&Ae.forEach(function(Ze,At){const Xe=V({element:Ze,pageNum:At+1,totalPages:Ae.length});Xe&&Ze.appendChild(Xe)}),Xz(Ae,function(){!function que(i,o){var t=0;function r(){--t<=0&&o()}i.forEach(function(s){for(var l=s.querySelectorAll("img"),u=0;u<l.length;++u){var p=l[u];p.complete||(t++,p.onload=p.onerror=r)}}),t||r()}(Ae,function(){p({pages:Ae,container:Se})})})}function He(Ze){return!!(F.keepTogether&&pI(Ze,F.keepTogether)&&Ze.offsetHeight<=I-Be)||!(/^h[1-6]$/i.test(Ze.tagName)&&Ze.offsetHeight>=I-Be)&&(Ze.getAttribute("data-kendo-chart")||/^(?:img|tr|thead|th|tfoot|iframe|svg|object|canvas|input|textarea|select|video|h[1-6])/i.test(Ze.tagName))}function Ye(Ze){if("TABLE"==Ze.tagName&&jx(Ze,{tableLayout:"fixed"}),!He(Ze)){var At=il(Ze),Xe=parseFloat(Xt(At,"padding-bottom")),Oe=parseFloat(Xt(At,"border-bottom-width")),ze=Be;Be+=Xe+Oe;for(var it=!0,ct=Ze.firstChild;ct;ct=ct.nextSibling)if(1==ct.nodeType){if(it=!1,pI(ct,A)){tt(ct);continue}if(!I){Ye(ct);continue}if(!/^(?:static|relative)$/.test(Xt(il(ct),"position")))continue;var yt=Ke(ct);1==yt||yt&&He(ct)?tt(ct):Ye(ct)}else 3==ct.nodeType&&I&&(Re(ct,it),it=!1);Be=ze}}function tt(Ze){if(1==Ze.nodeType&&Ze!==ue&&function Le(Ze){var At=Ze.parentNode,Xe=At.firstChild;if(Ze===Xe)return!0;if(Ze===At.children[0]){if(7==Xe.nodeType||8==Xe.nodeType)return!0;if(3==Xe.nodeType)return!/\S/.test(Xe.data)}return!1}(Ze))return tt(Ze.parentNode);var At,Xe,Oe,ze,it;Xe=(At=Zx(Ze,"table"))&&At.querySelector("colgroup"),F.repeatHeaders&&(Oe=At&&At.querySelector("thead"),(ze=Zx(Ze,".k-grid.k-widget"))&&ze.querySelector(".k-auto-scrollable")&&(it=ze.querySelector(".k-grid-header")));var ct=kt(),yt=oe.createRange();yt.setStartBefore(ue),yt.setEndBefore(Ze),ct.appendChild(yt.extractContents()),ue.parentNode.insertBefore(ct,ue),ot(Ze.parentNode),At&&(At=Zx(Ze,"table"),F.repeatHeaders&&Oe&&At.insertBefore(Oe.cloneNode(!0),At.firstChild),Xe&&At.insertBefore(Xe.cloneNode(!0),At.firstChild)),F.repeatHeaders&&it&&(ze=Zx(Ze,".k-grid.k-widget")).insertBefore(it.cloneNode(!0),ze.firstChild)}function kt(){var Ze=oe.createElement("KENDO-PDF-PAGE");return jx(Ze,{display:"block",boxSizing:"content-box",width:w?w+"px":"auto",padding:P.top+"px "+P.right+"px "+P.bottom+"px "+P.left+"px",position:"relative",height:I?I+"px":"auto",overflow:I||w?"hidden":"visible",clear:"both"}),F&&F.pageClassName&&(Ze.className=F.pageClassName),Ae.push(Ze),Ze}function Ke(Ze){var At=Ze.getBoundingClientRect();if(0===At.width||0===At.height)return 0;var Xe=ue.getBoundingClientRect().top,Oe=I-Be;return At.height>Oe?3:At.top-Xe>Oe?1:At.bottom-Xe>Oe?2:0}function Re(Ze,At){if(/\S/.test(Ze.data)){var Xe=Ze.data.length,Oe=oe.createRange();Oe.selectNodeContents(Ze);var ze=Ke(Oe);if(ze){var it=Ze;if(1==ze)tt(At?Ze.parentNode:Ze);else if(function yt(Nn,Vt,yi){return Oe.setEnd(Ze,Vt),Nn==Vt||Vt==yi?Vt:Ke(Oe)?yt(Nn,Nn+Vt>>1,Vt):yt(Vt,Vt+yi>>1,yi)}(0,Xe>>1,Xe),!/\S/.test(Oe.toString())&&At)tt(Ze.parentNode);else{it=Ze.splitText(Oe.endOffset);var ct=kt();Oe.setStartBefore(ue),ct.appendChild(Oe.extractContents()),ue.parentNode.insertBefore(ct,ue),ot(it.parentNode)}Re(it)}}}function ot(Ze){var At=Zx(Ze,"li");At&&(At.setAttribute("kendo-no-bullet","1"),ot(At.parentNode))}Cg(ue.querySelectorAll("tfoot")).forEach(function(Ze){Ze.parentNode.appendChild(Ze)}),Cg(ue.querySelectorAll("ol")).forEach(function(Ze){Cg(Ze.children).forEach(function(At,Xe){At.setAttribute("kendo-split-index",Xe)})}),jx(Se,{display:"block",position:"absolute",boxSizing:"content-box",left:"-10000px",top:"-10000px"}),w&&(jx(Se,{width:w+"px",paddingLeft:P.left+"px",paddingRight:P.right+"px"}),jx(ue,{overflow:"hidden"})),y.parentNode.insertBefore(Se,y),Se.appendChild(ue),F.beforePageBreak?setTimeout(function(){F.beforePageBreak(Se,Me)},15):setTimeout(Me,15)}(function(oe){if(o.progress){var Ae=!1,ue=0;!function Se(){if(ue<oe.pages.length){var Be=s(oe.pages[ue]);V.append(Be),o.progress({page:Be,pageNum:++ue,totalPages:oe.pages.length,cancel:function(){Ae=!0}}),Ae?oe.container.parentNode.removeChild(oe.container):setTimeout(Se)}else oe.container.parentNode.removeChild(oe.container),t.resolve(V)}()}else oe.pages.forEach(function(Se){V.append(s(Se))}),oe.container.parentNode.removeChild(oe.container),t.resolve(V)},i,p,w?w-P.left-P.right:null,I?I-P.top-P.bottom:null,P,o)}else t.resolve(s(i))}),t}zz.getFontFaces=Jz,zz.drawText=function(i){var o=new kd;return di._clipbox=!1,di._matrix=Dd.unit(),di._stackingContext={element:i,group:o},eG(i,il(i),o),3==i.firstChild.nodeType?uG(i,i.firstChild,o):gI(i,o),tG(),o};var Gz=function(){var i=/^((-webkit-|-moz-|-o-|-ms-)?linear-gradient\s*)\(/,o=/^([-0-9.]+%)/,t=/^([-0-9.]+px)/,r=/^(left|right|top|bottom|to|center)\W/,s=/^([-0-9.]+(deg|grad|rad|turn)|0)/,l=/^(\s+)/,u=/^(\()/,p=/^(\))/,y=/^(,)/,A=/^(url)\(/,w=/^(.*?)\)/,I={},P={};function F(V){var He,oe=V;if(Vx(I,oe))return I[oe];function ue(Ye){!function Ae(){var Ye=l.exec(V);Ye&&(V=V.substr(Ye[1].length))}();var Le=Ye.exec(V);if(Le)return V=V.substr(Le[1].length),Le[1]}function Se(){var Le,tt,Ye=Ip(V,!0);if(Ye){let kt=/^#[0-9a-f]+/i.exec(V)||/^rgba?\(.*?\)/i.exec(V)||/^..*?\b/.exec(V);return V=V.substr(kt[0].length),Ye=Ye.toRGB(),(Le=ue(t))||(tt=ue(o)),{color:Ye,length:Le,percent:tt}}}return(He=ue(i))?He=function Be(Ye){var Le,tt,kt,Ke=[],Re=!1;if(ue(u)){if("0"==(Le=ue(s))&&(Le="0deg"),Le?(Le=function Xue(i){var o=parseFloat(i);return/grad$/.test(i)?Math.PI*o/200:/rad$/.test(i)?o:/turn$/.test(i)?Math.PI*o*2:/deg$/.test(i)?Math.PI*o/180:void 0}(Le),ue(y)):("to"==(tt=ue(r))?tt=ue(r):tt&&/^-/.test(Ye)&&(Re=!0),kt=ue(r),ue(y)),/-moz-/.test(Ye)&&null==Le&&null==tt){var ot=ue(o),Ze=ue(o);Re=!0,"0%"==ot?tt="left":"100%"==ot&&(tt="right"),"0%"==Ze?kt="top":"100%"==Ze&&(kt="bottom"),ue(y)}for(;V&&!ue(p);){var At=Se();if(!At)break;Ke.push(At),ue(y)}return{type:"linear",angle:Le,to:tt&&kt?tt+" "+kt:tt||kt||null,stops:Ke,reverse:Re}}}(He):(He=ue(A))&&(He=function Me(){if(ue(u)){var Ye=ue(w);return Ye=Ye.replace(/^['"]+|["']+$/g,""),ue(p),{type:"url",url:Ye}}}()),I[oe]=He||{type:"none"}}return function(V){return Vx(P,V)?P[V]:P[V]=Ic(V).map(F)}}(),Ic=function(){var i={};return function(o,t){t||(t=/^\s*,\s*/);var r=o+t;if(Vx(i,r))return i[r];var A,s=[],l=0,u=0,p=0,y=!1;function w(P){return A=P.exec(o.substr(u))}function I(P){return P.replace(/^\s+|\s+$/g,"")}for(;u<o.length;)!y&&w(/^[\(\[\{]/)?(p++,u++):!y&&w(/^[\)\]\}]/)?(p--,u++):!y&&w(/^[\"\']/)?(y=A[0],u++):"'"==y&&w(/^\\\'/)||'"'==y&&w(/^\\\"/)?u+=2:"'"==y&&w(/^\'/)||'"'==y&&w(/^\"/)?(y=!1,u++):w(t)?(!y&&!p&&u>l&&(s.push(I(o.substring(l,u))),l=u+A[0].length),u+=A[0].length):u++;return l<u&&s.push(I(o.substring(l,u))),i[r]=s}}(),qz=function(i){return function(o){var r,t=i[o];return t||((r=/url\((['"]?)([^'")]*?)\1\)\s+format\((['"]?)truetype\3\)/.exec(o))||(r=/url\((['"]?)([^'")]*?\.ttf)\1\)/.exec(o)))&&(t=i[o]=r[2]),t}}(Object.create(null)),jue=function(i){return function(o){var t=i[o];return null==t&&(t=i[o]=kV("Mapq",{font:o}).height),t}}(Object.create(null));function Jz(i){null==i&&(i=document);for(var o={},t=0;t<i.styleSheets.length;++t)r(i.styleSheets[t]);return o;function r(p){if(p){var y=null;try{y=p.cssRules}catch{}y&&function l(p,y){for(var A=0;A<y.length;++A){var w=y[A];switch(w.type){case 3:r(w.styleSheet);break;case 5:var I=w.style,P=Ic(Xt(I,"font-family")),F=/^([56789]00|bold)$/i.test(Xt(I,"font-weight")),V="italic"==Xt(I,"font-style"),oe=s(w);oe.length>0&&u(p,P,F,V,oe[0])}}}(p,y)}}function s(p){var y=Xt(p.style,"src");if(y)return Ic(y).reduce(function(w,I){var P=qz(I);return P&&w.push(P),w},[]);var A=qz(p.cssText);return A?[A]:[]}function u(p,y,A,w,I){/^data:/i.test(I)||/^[^\/:]+:\/\//.test(I)||/^\//.test(I)||(I=String(p.href).replace(/[^\/]*$/,"")+I),y.forEach(function(P){P=P.replace(/^(['"]?)(.*?)\1$/,"$2"),A&&(P+="|bold"),w&&(P+="|italic"),o[P]=I})}}function Vx(i,o){return Object.prototype.hasOwnProperty.call(i,o)}function zue(i,o){var t=di;for(i="_counter_"+i;t&&!Vx(t,i);)t=Object.getPrototypeOf(t);t||(t=di._root),t[i]=(t[i]||0)+(o??1)}function Gue(i,o){di[i="_counter_"+i]=o??0}function Qz(i,o,t){for(var r=0;r<i.length;){var s=i[r++],l=parseFloat(i[r]);isNaN(l)?o(s,t):(o(s,l),++r)}}function Wz(i){var o=Xt(i,"counter-reset");o&&Qz(Ic(o,/^\s+/),Gue,0);var t=Xt(i,"counter-increment");t&&Qz(Ic(t,/^\s+/),zue,1)}function Kz(i,o){var t=Ip(i,!0);return t&&(t=t.toRGB(),o?t=t.toCssRgba():0===t.a&&(t=null)),t}function Xz(i,o){var t=[];function r(p){Yx[p]||(Yx[p]=!0,t.push(p))}function s(p){/^img$/i.test(p.tagName)&&r(p.src),Gz(Xt(il(p),"background-image")).forEach(function(y){"url"==y.type&&r(y.url)}),p.children&&Cg(p.children).forEach(s)}Array.isArray(i)?i.forEach(s):s(i);var l=t.length;function u(){--l<=0&&o()}0===l&&u(),t.forEach(function(p){var y=Yx[p]=new window.Image;/^data:/i.test(p)||(y.crossOrigin="Anonymous"),y.src=p,y.complete?u():(y.onload=u,y.onerror=function(){Yx[p]=null,u()})})}function zL(i){var o="";do{o=String.fromCharCode(97+i%26)+o,i=Math.floor(i/26)}while(i>0);return o}function eG(i,o,t){(di=Object.create(di))[i.tagName.toLowerCase()]={element:i,style:o};var r=Xt(o,"text-decoration");if(r&&"none"!=r){var s=Xt(o,"color");r.split(/\s+/g).forEach(function(l){di[l]||(di[l]=s)})}(function Que(i){function o(t){return Xt(i,t)}if("none"!=o("transform")||"static"!=o("position")||"auto"!=o("z-index")||o("opacity")<1)return!0})(o)&&(di._stackingContext={element:i,group:t})}function tG(){di=Object.getPrototypeOf(di)}function nG(i){if(null!=di._clipbox){var o=i.bbox(di._matrix);di._clipbox=di._clipbox?na.intersect(di._clipbox,o):o}}function il(i,o){return window.getComputedStyle(i,o||null)}function Xt(i,o,t){var r=i.getPropertyValue(o);return(null==r||""===r)&&(Lu.webkit?r=i.getPropertyValue("-webkit-"+o):Lu.mozilla?r=i.getPropertyValue("-moz-"+o):Lu.opera?r=i.getPropertyValue("-o-"+o):D1&&(r=i.getPropertyValue("-ms-"+o))),arguments.length>2&&(null==r||""===r)?t:r}function GL(i,o,t,r){i.setProperty(o,t,r),Lu.webkit?i.setProperty("-webkit-"+o,t,r):Lu.mozilla?i.setProperty("-moz-"+o,t,r):Lu.opera?i.setProperty("-o-"+o,t,r):D1&&(i.setProperty("-ms-"+o,t,r),i[o="ms"+o.replace(/(^|-)([a-z])/g,function(s,l,u){return l+u.toUpperCase()})]=t)}function Np(i,o){return o="border-"+o,{width:parseFloat(Xt(i,o+"-width")),style:Xt(i,o+"-style"),color:Kz(Xt(i,o+"-color"),!0)}}function iG(i,o){var t=i.style.cssText,r=o();return i.style.cssText=t,r}function om(i,o){var t=Xt(i,"border-"+o+"-radius").split(/\s+/g).map(parseFloat);return 1==t.length&&t.push(t[0]),qL({x:t[0],y:t[1]})}function k1(i,o,t){var r,s,l,u,p;return"string"==typeof o?(r=il(t),s=parseFloat(Xt(r,o.replace("*","top"))),l=parseFloat(Xt(r,o.replace("*","right"))),u=parseFloat(Xt(r,o.replace("*","bottom"))),p=parseFloat(Xt(r,o.replace("*","left")))):"number"==typeof o&&(s=l=u=p=o),{top:i.top+s,right:i.right-l,bottom:i.bottom-u,left:i.left+p,width:i.right-i.left-l-p,height:i.bottom-i.top-u-s}}function oG(i){return 180*i/Math.PI%360}function hI(i,o){return o=new Dd(o[0],o[1],o[2],o[3],o[4],o[5]),i.transform(o),o}function zx(i,o){i.clip(o)}function hy(i,o,t,r){for(var s=new Jk([o,t],r).curvePoints(),l=1;l<s.length;)i.curveTo(s[l++],s[l++],s[l++])}function qL(i){return(i.x<=0||i.y<=0)&&(i.x=i.y=0),i}function rG(i,o,t,r,s){var l=Math.max(0,o.x),u=Math.max(0,o.y),p=Math.max(0,t.x),y=Math.max(0,t.y),A=Math.max(0,r.x),w=Math.max(0,r.y),I=Math.max(0,s.x),P=Math.max(0,s.y),F=Math.min(i.width/(l+p),i.height/(y+w),i.width/(A+I),i.height/(P+u));return F<1&&(l*=F,u*=F,p*=F,y*=F,A*=F,w*=F,I*=F,P*=F),{tl:{x:l,y:u},tr:{x:p,y},br:{x:A,y:w},bl:{x:I,y:P}}}function JL(i,o,t){var r=il(i),s=om(r,"top-left"),l=om(r,"top-right"),u=om(r,"bottom-left"),p=om(r,"bottom-right");if("padding"==t||"content"==t){var y=Np(r,"top"),A=Np(r,"right"),w=Np(r,"bottom"),I=Np(r,"left");if(s.x-=I.width,s.y-=y.width,l.x-=A.width,l.y-=y.width,p.x-=A.width,p.y-=w.width,u.x-=I.width,u.y-=w.width,"content"==t){var P=parseFloat(Xt(r,"padding-top")),F=parseFloat(Xt(r,"padding-right")),V=parseFloat(Xt(r,"padding-bottom")),oe=parseFloat(Xt(r,"padding-left"));s.x-=oe,s.y-=P,l.x-=F,l.y-=P,p.x-=F,p.y-=V,u.x-=oe,u.y-=V}}return"number"==typeof t&&(s.x-=t,s.y-=t,l.x-=t,l.y-=t,p.x-=t,p.y-=t,u.x-=t,u.y-=t),aG(o,s,l,p,u)}function aG(i,o,t,r,s){var l=rG(i,o,t,r,s),u=l.tl,p=l.tr,y=l.br,A=l.bl,w=new nl({fill:null,stroke:null});return w.moveTo(i.left,i.top+u.y),u.x&&hy(w,i.left+u.x,i.top+u.y,{startAngle:-180,endAngle:-90,radiusX:u.x,radiusY:u.y}),w.lineTo(i.right-p.x,i.top),p.x&&hy(w,i.right-p.x,i.top+p.y,{startAngle:-90,endAngle:0,radiusX:p.x,radiusY:p.y}),w.lineTo(i.right,i.bottom-y.y),y.x&&hy(w,i.right-y.x,i.bottom-y.y,{startAngle:0,endAngle:90,radiusX:y.x,radiusY:y.y}),w.lineTo(i.left+A.x,i.bottom),A.x&&hy(w,i.left+A.x,i.bottom-A.y,{startAngle:90,endAngle:180,radiusX:A.x,radiusY:A.y}),w.close()}function sG(i,o){var t=String(parseFloat(i));switch(o){case"decimal-leading-zero":return t.length<2&&(t="0"+t),t;case"lower-roman":return hL(i).toLowerCase();case"upper-roman":return hL(i).toUpperCase();case"lower-latin":case"lower-alpha":return zL(i-1);case"upper-latin":case"upper-alpha":return zL(i-1).toUpperCase();default:return t}}function QL(i){if(i.cssText)return i.cssText;for(var o=[],t=0;t<i.length;++t)o.push(i[t]+": "+Xt(i,i[t]));return o.join(";\n")}function lG(i,o){if(i.tagName==Ux)return void gI(i,o);let t=[];function r(s,l){let u=il(i,s),p=u.content;if(Wz(u),p&&"normal"!=p&&"none"!=p&&"0px"!=u.width){let y=i.ownerDocument.createElement(Ux);y.style.cssText=QL(u),y.textContent=function epe(i,o){function t(u,p,y){return y?(y=y.replace(/^\s*(["'])(.*)\1\s*$/,"$2"),function Vue(i){var o=[],t=di;for(i="_counter_"+i;t;)Vx(t,i)&&o.push(t[i]),t=Object.getPrototypeOf(t);return o.reverse()}(u).map(function(A){return sG(A,p)}).join(y)):sG(function Zue(i){return di[i="_counter_"+i]}(u)||0,p)}var l,r=Ic(o,/^\s+/),s=[];return r.forEach(function(u){var p;(l=/^\s*(["'])(.*)\1\s*$/.exec(u))?s.push(l[2].replace(/\\([0-9a-f]{4})/gi,function(y,A){return String.fromCharCode(parseInt(A,16))})):(l=/^\s*counter\((.*?)\)\s*$/.exec(u))?(p=Ic(l[1]),s.push(t(p[0],p[1]))):(l=/^\s*counters\((.*?)\)\s*$/.exec(u))?(p=Ic(l[1]),s.push(t(p[0],p[2],p[1]))):(l=/^\s*attr\((.*?)\)\s*$/.exec(u))?s.push(i.getAttribute(l[1])||""):s.push(u)}),s.join("")}(i,p),i.insertBefore(y,l),t.push(y)}}if(r(":before",i.firstChild),r(":after",null),t.length>0){let s=i.className;i.className+=" kendo-pdf-hide-pseudo-elements",gI(i,o),i.className=s,t.forEach(function(l){i.removeChild(l)})}else gI(i,o)}function gI(i,o){var t=il(i),r=Np(t,"top"),s=Np(t,"right"),l=Np(t,"bottom"),u=Np(t,"left"),p=om(t,"top-left"),y=om(t,"top-right"),A=om(t,"bottom-left"),w=om(t,"bottom-right"),I=Xt(t,"direction"),P=Xt(t,"background-color");P=Kz(P);var Se,Be,F=Gz(Xt(t,"background-image")),V=Ic(Xt(t,"background-repeat")),oe=Ic(Xt(t,"background-position")),Ae=Ic(Xt(t,"background-origin")),ue=Ic(Xt(t,"background-size"));D1&&"ellipsis"==(Se=t.textOverflow)&&(Be=i.style.textOverflow,i.style.textOverflow="clip"),Lu.msie&&Lu.version<10&&(oe=Ic(i.currentStyle.backgroundPosition));var Me=k1(i.getBoundingClientRect(),"border-*-width",i);!function(){var Xe=Xt(t,"clip"),Oe=/^\s*rect\((.*)\)\s*$/.exec(Xe);if(Oe){var ze=Oe[1].split(/[ ,]+/g),it="auto"==ze[0]?Me.top:parseFloat(ze[0])+Me.top,ct="auto"==ze[1]?Me.right:parseFloat(ze[1])+Me.left,yt="auto"==ze[2]?Me.bottom:parseFloat(ze[2])+Me.top,Nn="auto"==ze[3]?Me.left:parseFloat(ze[3])+Me.left,Vt=new kd,yi=(new nl).moveTo(Nn,it).lineTo(ct,it).lineTo(ct,yt).lineTo(Nn,yt).close();zx(Vt,yi),o.append(Vt),o=Vt,nG(yi)}}();var He,Ye,Le,tt=Xt(t,"display");if("table-row"==tt)for(He=[],Ye=0,Le=i.children;Ye<Le.length;++Ye)He.push(Le[Ye].getBoundingClientRect());else 1==(He=i.getClientRects()).length&&(He=[i.getBoundingClientRect()]);for(He=function kt(Xe){if(/^td$/i.test(i.tagName)){var Oe=di.table;if(Oe&&"collapse"==Xt(Oe.style,"border-collapse")){var ze=Np(Oe.style,"left").width,it=Np(Oe.style,"top").width;if(0===ze&&0===it)return Xe;var ct=Oe.element.getBoundingClientRect(),Nn=Oe.element.rows[0].cells[0].getBoundingClientRect();if(Nn.top==ct.top||Nn.left==ct.left)return Cg(Xe).map(function(Vt){return{left:Vt.left+ze,top:Vt.top+it,right:Vt.right+ze,bottom:Vt.bottom+it,height:Vt.height,width:Vt.width}})}}return Xe}(He),Ye=0;Ye<He.length;++Ye)At(He[Ye],0===Ye,Ye==He.length-1);if("A"==i.tagName&&i.href&&!/^#?$/.test(i.getAttribute("href"))&&(!di._avoidLinks||!pI(i,di._avoidLinks))){const Xe=document.createRange();Xe.selectNodeContents(i),Cg(Xe.getClientRects()).forEach(function(Oe){const ze=new kd;ze._pdfLink={url:i.href,top:Oe.top,right:Oe.right,bottom:Oe.bottom,left:Oe.left},o.append(ze)})}return He.length>0&&"list-item"==tt&&!i.getAttribute("kendo-no-bullet")&&function Ze(){var Xe=Xt(t,"list-style-type");if("none"!=Xe){var Oe=Xt(t,"list-style-position");switch(Xe){case"circle":case"disc":case"square":ze(function(ct){ct.style.fontSize="60%",ct.style.lineHeight="200%",ct.style.paddingRight="0.5em",ct.style.fontFamily="DejaVu Serif",ct.innerHTML={disc:"\u25cf",circle:"\u25ef",square:"\u25a0"}[Xe]});break;case"decimal":case"decimal-leading-zero":ze(function(ct){it(function(yt){++yt,"decimal-leading-zero"==Xe&&yt<10&&(yt="0"+yt),ct.innerHTML=yt+"."})});break;case"lower-roman":case"upper-roman":ze(function(ct){it(function(yt){yt=hL(yt+1),"upper-roman"==Xe&&(yt=yt.toUpperCase()),ct.innerHTML=yt+"."})});break;case"lower-latin":case"lower-alpha":case"upper-latin":case"upper-alpha":ze(function(ct){it(function(yt){yt=zL(yt),/^upper/i.test(Xe)&&(yt=yt.toUpperCase()),ct.innerHTML=yt+"."})})}}function ze(ct){iG(i,function(){i.style.position="relative";var yt=i.ownerDocument.createElement(Ux);yt.style.position="absolute",yt.style.boxSizing="border-box","outside"==Oe?(yt.style.width="6em",yt.style.left="-6.8em",yt.style.textAlign="right"):yt.style.left="0px",ct(yt),i.insertBefore(yt,i.firstChild),Gx(yt,o),i.removeChild(yt)})}function it(ct){var yt=i.parentNode.children,Nn=i.getAttribute("kendo-split-index");if(null!=Nn)return ct(0|Nn,yt.length);for(var Vt=0;Vt<yt.length;++Vt)if(yt[Vt]===i)return ct(Vt,yt.length)}}(),(function ipe(i){return/^(?:textarea|select|input)$/i.test(i.tagName)}(i)||/^(hidden|auto|scroll)/.test(Xt(t,"overflow"))||/^(hidden|auto|scroll)/.test(Xt(t,"overflow-x"))||/^(hidden|auto|scroll)/.test(Xt(t,"overflow-y")))&&function Xe(){var Oe=JL(i,Me,"padding"),ze=new kd;zx(ze,Oe),o.append(ze),o=ze,nG(Oe)}(),function npe(i,o){var t;if(i._kendoExportVisual)t=i._kendoExportVisual();else if(window.kendo&&window.kendo.jQuery&&i.getAttribute(window.kendo.attr("role"))){var r=window.kendo.widgetInstance(window.kendo.jQuery(i));r&&(r.exportDOMVisual||r.exportVisual)&&(t=r.exportDOMVisual?r.exportDOMVisual():r.exportVisual())}if(!t)return!1;var s=new kd;s.children.push(t);var l=i.getBoundingClientRect();return s.transform(Ep().translate(l.left,l.top)),o.append(s),!0}(i,o)||dG(i,o),D1&&"ellipsis"==Se&&(i.style.textOverflow=Be),o;function Ke(Xe,Oe,ze,it,ct,yt,Nn,Vt){if(!(ze<=0)){var yi,Mn=new kd;hI(Mn,Vt),o.append(Mn),qL(yt),qL(Nn),yi=new nl({fill:{color:Xe},stroke:null}),Mn.append(yi),yi.moveTo(yt.x?Math.max(yt.x,it):0,0).lineTo(Oe-(Nn.x?Math.max(Nn.x,ct):0),0).lineTo(Oe-Math.max(Nn.x,ct),ze).lineTo(Math.max(yt.x,it),ze).close(),yt.x&&Ao(it,yt,[-1,0,0,1,yt.x,0]),Nn.x&&Ao(ct,Nn,[1,0,0,1,Oe-Nn.x,0])}function Ao(ho,Vn,Vr){var tr=Math.PI/2*ho/(ho+ze),fr={x:Vn.x-ho,y:Vn.y-ze},ao=new nl({fill:{color:Xe},stroke:null}).moveTo(0,0);hI(ao,Vr),hy(ao,0,Vn.y,{startAngle:-90,endAngle:-oG(tr),radiusX:Vn.x,radiusY:Vn.y}),fr.x>0&&fr.y>0?(ao.lineTo(fr.x*Math.cos(tr),Vn.y-fr.y*Math.sin(tr)),hy(ao,0,Vn.y,{startAngle:-oG(tr),endAngle:-90,radiusX:fr.x,radiusY:fr.y,anticlockwise:!0})):fr.x>0?ao.lineTo(fr.x,ze).lineTo(0,ze):ao.lineTo(fr.x,ze).lineTo(fr.x,0),Mn.append(ao.close())}}function ot(Xe,Oe,ze,it,ct,yt,Nn){if(ze&&"none"!=ze)if("url"==ze.type){if(/^url\(\"data:image\/svg/i.test(ze.url))return;var Vt=Yx[ze.url];Vt&&Vt.width>0&&Vt.height>0&&yi(Xe,Oe,Vt.width,Vt.height,function(Mn,Ao){Mn.append(new nz(ze.url,Ao))})}else{if("linear"!=ze.type)return;yi(Xe,Oe,Oe.width,Oe.height,function tpe(i){return function(o,t){var r=t.width(),s=t.height();switch(i.type){case"linear":var l=null!=i.angle?i.angle:Math.PI;switch(i.to){case"top":l=0;break;case"left":l=-Math.PI/2;break;case"bottom":l=Math.PI;break;case"right":l=Math.PI/2;break;case"top left":case"left top":l=-Math.atan2(s,r);break;case"top right":case"right top":l=Math.atan2(s,r);break;case"bottom left":case"left bottom":l=Math.PI+Math.atan2(s,r);break;case"bottom right":case"right bottom":l=Math.PI-Math.atan2(s,r)}i.reverse&&(l-=Math.PI),(l%=2*Math.PI)<0&&(l+=2*Math.PI);var u=Math.abs(r*Math.sin(l))+Math.abs(s*Math.cos(l)),p=Math.atan(r*Math.tan(l)/s),y=Math.sin(p),A=Math.cos(p),w=Math.abs(y)+Math.abs(A),I=w/2*y,P=w/2*A;l>Math.PI/2&&l<=3*Math.PI/2&&(I=-I,P=-P);var F=[],V=0,oe=i.stops.map(function(Se,Be){var Me=Se.percent;Me?Me=parseFloat(Me)/100:Se.length?Me=parseFloat(Se.length)/u:0===Be?Me=0:Be==i.stops.length-1&&(Me=1);var He={color:Se.color.toCssRgba(),offset:Me};return null!=Me?(V=Me,F.forEach(function(Ye,Le){Ye.stop.offset=Ye.left+(V-Ye.left)*(Le+1)/(F.length+1)}),F=[]):F.push({left:V,stop:He}),He}),Ae=[.5-I,.5+P],ue=[.5+I,.5-P];o.append(nl.fromRect(t).stroke(null).fill(new ML({start:Ae,end:ue,stops:oe,userSpace:!1})));break;case"radial":window.console&&window.console.log&&window.console.log("Radial gradients are not yet supported in HTML renderer")}}}(ze))}function yi(Mn,Ao,ho,Vn,Vr){var fr,tr=ho/Vn,ao=Ao;if("content-box"==yt?(ao=k1(ao,"border-*-width",i),ao=k1(ao,"padding-*",i)):"padding-box"==yt&&(ao=k1(ao,"border-*-width",i)),!/^\s*auto(\s+auto)?\s*$/.test(Nn))if("contain"==Nn)fr=Math.min(ao.width/ho,ao.height/Vn),ho*=fr,Vn*=fr;else if("cover"==Nn)fr=Math.max(ao.width/ho,ao.height/Vn),ho*=fr,Vn*=fr;else{var Zd=Nn.split(/\s+/g);ho=/%$/.test(Zd[0])?ao.width*parseFloat(Zd[0])/100:parseFloat(Zd[0]),Vn=1==Zd.length||"auto"==Zd[1]?ho/tr:/%$/.test(Zd[1])?ao.height*parseFloat(Zd[1])/100:parseFloat(Zd[1])}var go=String(ct);switch(go){case"bottom":go="50% 100%";break;case"top":go="50% 0";break;case"left":go="0 50%";break;case"right":go="100% 50%";break;case"center":go="50% 50%"}1==(go=go.split(/\s+/)).length&&(go[1]="50%"),go[0]=/%$/.test(go[0])?parseFloat(go[0])/100*(ao.width-ho):parseFloat(go[0]),go[1]=/%$/.test(go[1])?parseFloat(go[1])/100*(ao.height-Vn):parseFloat(go[1]);var Lr=new na([ao.left+go[0],ao.top+go[1]],[ho,Vn]);function Jm(){for(;Lr.origin.x>Ao.left;)Lr.origin.x-=ho}function Qm(){for(;Lr.origin.y>Ao.top;)Lr.origin.y-=Vn}function mh(){for(;Lr.origin.x<Ao.right;)Vr(Mn,Lr.clone()),Lr.origin.x+=ho}if("no-repeat"==it)Vr(Mn,Lr);else if("repeat-x"==it)Jm(),mh();else if("repeat-y"==it)for(Qm();Lr.origin.y<Ao.bottom;)Vr(Mn,Lr.clone()),Lr.origin.y+=Vn;else if("repeat"==it){Jm(),Qm();for(var eb=Lr.origin.clone();Lr.origin.y<Ao.bottom;)Lr.origin.x=eb.x,mh(),Lr.origin.y+=Vn}}}function At(Xe,Oe,ze){if(0!==Xe.width&&0!==Xe.height){!function Re(Xe){var Oe=new kd;if(zx(Oe,aG(Xe,p,y,w,A)),o.append(Oe),P){var ze=new nl({fill:{color:P.toCssRgba()},stroke:null});ze.moveTo(Xe.left,Xe.top).lineTo(Xe.right,Xe.top).lineTo(Xe.right,Xe.bottom).lineTo(Xe.left,Xe.bottom).close(),Oe.append(ze)}for(var it=F.length;--it>=0;)ot(Oe,Xe,F[it],V[it%V.length],oe[it%oe.length],Ae[it%Ae.length],ue[it%ue.length])}(Xe);var it=u.width>0&&(Oe&&"ltr"==I||ze&&"rtl"==I),ct=s.width>0&&(ze&&"ltr"==I||Oe&&"rtl"==I);if(0!==r.width||0!==u.width||0!==s.width||0!==l.width){if(r.color==s.color&&r.color==l.color&&r.color==u.color&&r.width==s.width&&r.width==l.width&&r.width==u.width&&it&&ct){Xe=k1(Xe,r.width/2);var yt=JL(i,Xe,r.width/2);return yt.options.stroke={color:r.color,width:r.width},void o.append(yt)}if(0===p.x&&0===y.x&&0===w.x&&0===A.x&&r.width<2&&u.width<2&&s.width<2&&l.width<2)return r.width>0&&o.append(new nl({stroke:{width:r.width,color:r.color}}).moveTo(Xe.left,Xe.top+r.width/2).lineTo(Xe.right,Xe.top+r.width/2)),l.width>0&&o.append(new nl({stroke:{width:l.width,color:l.color}}).moveTo(Xe.left,Xe.bottom-l.width/2).lineTo(Xe.right,Xe.bottom-l.width/2)),it&&o.append(new nl({stroke:{width:u.width,color:u.color}}).moveTo(Xe.left+u.width/2,Xe.top).lineTo(Xe.left+u.width/2,Xe.bottom)),void(ct&&o.append(new nl({stroke:{width:s.width,color:s.color}}).moveTo(Xe.right-s.width/2,Xe.top).lineTo(Xe.right-s.width/2,Xe.bottom)));var Nn=rG(Xe,p,y,w,A),Vt=Nn.tl,yi=Nn.tr,Mn=Nn.br,Ao=Nn.bl;Ke(r.color,Xe.width,r.width,u.width,s.width,Vt,yi,[1,0,0,1,Xe.left,Xe.top]),Ke(l.color,Xe.width,l.width,s.width,u.width,Mn,Ao,[-1,0,0,-1,Xe.right,Xe.bottom]),Ke(u.color,Xe.height,u.width,l.width,r.width,ho(Ao),ho(Vt),[0,-1,1,0,Xe.left,Xe.bottom]),Ke(s.color,Xe.height,s.width,r.width,l.width,ho(yi),ho(Mn),[0,1,-1,0,Xe.right,Xe.top])}}function ho(Vn){return{x:Vn.y,y:Vn.x}}}}function cG(i,o,t){var r=function Wue(i){var o=i.getBoundingClientRect();return o=k1(o,"border-*-width",i),k1(o,"padding-*",i)}(i),s=new na([r.left,r.top],[r.width,r.height]),l=new nz(o,s);zx(l,JL(i,r,"content")),t.append(l)}function WL(i,o){var t=il(i),r=il(o),s=parseFloat(Xt(t,"z-index")),l=parseFloat(Xt(r,"z-index")),u=Xt(t,"position"),p=Xt(r,"position");return isNaN(s)&&isNaN(l)?/static|absolute/.test(u)&&/static|absolute/.test(p)?0:"static"==u?-1:"static"==p?1:0:isNaN(s)?0===l?0:l>0?-1:1:isNaN(l)?0===s?0:s>0?1:-1:parseFloat(s)-parseFloat(l)}function dG(i,o){switch(di._stackingContext.element===i&&(di._stackingContext.group=o),i.tagName.toLowerCase()){case"img":cG(i,i.src,o);break;case"canvas":try{cG(i,i.toDataURL("image/png"),o)}catch{}break;case"textarea":case"input":case"select":!function ape(i,o){var t=i.tagName.toLowerCase();if("input"==t&&("checkbox"==i.type||"radio"==i.type))return function rpe(i,o){var r=Xt(il(i),"color"),s=i.getBoundingClientRect();"checkbox"==i.type?(o.append(nl.fromRect(new na([s.left+1,s.top+1],[s.width-2,s.height-2])).stroke(r,1)),i.checked&&o.append((new nl).stroke(r,1.2).moveTo(s.left+.22*s.width,s.top+.55*s.height).lineTo(s.left+.45*s.width,s.top+.75*s.height).lineTo(s.left+.78*s.width,s.top+.22*s.width))):(o.append(new NV(new yL([(s.left+s.right)/2,(s.top+s.bottom)/2],Math.min(s.width-2,s.height-2)/2)).stroke(r,1)),i.checked&&o.append(new NV(new yL([(s.left+s.right)/2,(s.top+s.bottom)/2],Math.min(s.width-8,s.height-8)/2)).fill(r).stroke(null)))}(i,o);var u,r=i.parentNode,s=i.ownerDocument,l=s.createElement(Ux);if(l.style.cssText=QL(il(i)),"input"==t&&(l.style.whiteSpace="pre"),("select"==t||"textarea"==t)&&(l.style.overflow="auto"),"select"==t)if(i.multiple)for(var p=0;p<i.options.length;++p)(u=s.createElement(Ux)).style.cssText=QL(il(i.options[p])),u.style.display="block",u.textContent=i.options[p].textContent,l.appendChild(u);else u=function ope(i){return i.selectedOptions&&i.selectedOptions.length>0?i.selectedOptions[0]:i.options[i.selectedIndex]}(i),u&&(l.textContent=u.textContent);else l.textContent=i.value;r.insertBefore(l,i),l.scrollLeft=i.scrollLeft,l.scrollTop=i.scrollTop,i.style.display="none",dG(l,o),i.style.display="",r.removeChild(l)}(i,o);break;default:for(var t=[],r=[],s=[],l=i.firstChild;l;l=l.nextSibling)switch(l.nodeType){case 3:/\S/.test(l.data)&&uG(i,l,o);break;case 1:var u=il(l),p=Xt(u,"float");"static"!=Xt(u,"position")?s.push(l):"none"!=p?r.push(l):t.push(l)}fL(t,WL).forEach(function(A){Gx(A,o)}),fL(r,WL).forEach(function(A){Gx(A,o)}),fL(s,WL).forEach(function(A){Gx(A,o)})}}function uG(i,o,t){if(!function Jue(){var i=di._clipbox;return null==i||(i?0===i.width()||0===i.height():void 0)}()){var r=il(i);if(!(parseFloat(Xt(r,"text-indent"))<-500)){var s=o.data,l=0,u=s.search(/\S\s*$/)+1;if(u){var p=Xt(r,"font-size"),y=Xt(r,"line-height"),A=[Xt(r,"font-style"),Xt(r,"font-variant"),Xt(r,"font-weight"),p,Xt(r,"font-family")].join(" ");if(p=parseFloat(p),y=parseFloat(y),0!==p){var w=Xt(r,"color"),I=i.ownerDocument.createRange(),F="justify"==Xt(r,"text-align"),V=Xt(r,"column-count",1),oe=Xt(r,"white-space"),Ae=Xt(r,"text-transform"),ue=i.getBoundingClientRect().width/p*5;0===ue&&(ue=500);for(var Se=null,Be=di.underline,Me=di["line-through"],He=di.overline,Ye=Be||Me||He;!tt(););return void(Ye&&(I.selectNode(o),Cg(I.getClientRects()).forEach(function Ke(Re){function ot(Ze,At){if(Ze){var Xe=p/12,Oe=new nl({stroke:{width:Xe,color:Ze}});Oe.moveTo(Re.left,At-=Xe).lineTo(Re.right,At),t.append(Oe)}}ot(Be,Re.bottom),ot(Me,Re.bottom-Re.height/2.7),ot(He,Re.top)})))}}}}function Le(Re){if(D1||Lu.chrome){for(var ot=Re.getClientRects(),Ze={top:1/0,right:-1/0,bottom:-1/0,left:1/0},At=!1,Xe=0;Xe<ot.length;++Xe){var Oe=ot[Xe];Oe.width<=1||Oe.bottom===Se||(Ze.left=Math.min(Oe.left,Ze.left),Ze.top=Math.min(Oe.top,Ze.top),Ze.right=Math.max(Oe.right,Ze.right),Ze.bottom=Math.max(Oe.bottom,Ze.bottom),At=!0)}return At?(Ze.width=Ze.right-Ze.left,Ze.height=Ze.bottom-Ze.top,Ze):Re.getBoundingClientRect()}return Re.getBoundingClientRect()}function tt(){var ot,Re=l,Ze=s.substr(l).search(/\S/);if(l+=Ze,Ze<0||l>=u)return!0;I.setStart(o,l),I.setEnd(o,l+1),ot=Le(I);var At=!1;if((F||V>1)&&(Ze=s.substr(l).search(/\s/))>=0){I.setEnd(o,l+Ze);var Xe=Le(I);Xe.bottom==ot.bottom&&(ot=Xe,At=!0,l+=Ze)}if(!At){if((Ze=function yt(Nn,Vt,yi){I.setEnd(o,Vt);var Mn=Le(I);return Mn.bottom!=ot.bottom&&Nn<Vt?yt(Nn,Nn+Vt>>1,Vt):Mn.right!=ot.right?(ot=Mn,Vt<yi?yt(Vt,Vt+yi>>1,yi):Vt):Vt}(l,Math.min(u,l+ue),u))==l)return!0;if(l=Ze,0===(Ze=I.toString().search(/\s+$/)))return!1;Ze>0&&(I.setEnd(o,I.startOffset+Ze),ot=Le(I))}D1&&(ot=I.getClientRects()[0]);var Oe=I.toString();if(/^(?:pre|pre-wrap)$/i.test(oe)){if(/\t/.test(Oe)){var ze=0;for(Ze=Re;Ze<I.startOffset;++Ze){var it=s.charCodeAt(Ze);9==it?ze+=8-ze%8:10==it||13==it?ze=0:ze++}for(;(Ze=Oe.search("\t"))>=0;){var ct="        ".substr(0,8-(ze+Ze)%8);Oe=Oe.substr(0,Ze)+ct+Oe.substr(Ze+1)}}}else Oe=Oe.replace(/\s+/g," ");At||(Se=ot.bottom),function kt(Re,ot){if(D1&&!isNaN(y)){var Ze=jue(A),At=(ot.top+ot.bottom-Ze)/2;ot={top:At,right:ot.right,bottom:At+Ze,left:ot.left,height:Ze,width:ot.right-ot.left}}switch(Ae){case"uppercase":Re=Re.toUpperCase();break;case"lowercase":Re=Re.toLowerCase();break;case"capitalize":Re=Re.replace(/(?:^|\s)\S/g,Oe=>Oe.toUpperCase())}var Xe=new Bue(Re,new na([ot.left,ot.top],[ot.width,ot.height]),{font:A,fill:{color:w}});t.append(Xe)}(Oe,ot)}}function Gx(i,o){var t=il(i);if(Wz(t),!/^(style|script|link|meta|iframe|svg|col|colgroup)$/i.test(i.tagName)&&null!=di._clipbox){var r=parseFloat(Xt(t,"opacity")),s=Xt(t,"visibility"),l=Xt(t,"display");if(0!==r&&"hidden"!=s&&"none"!=l){var p,u=function Kue(i){var o=Xt(i,"transform");if("none"==o)return null;var t=/^\s*matrix\(\s*(.*?)\s*\)\s*$/.exec(o);if(t){var r=Xt(i,"transform-origin");return{matrix:t=t[1].split(/\s*,\s*/g).map(parseFloat),origin:r=r.split(/\s+/g).map(parseFloat)}}}(t),y=Xt(t,"z-index");(u||r<1)&&"auto"==y&&(y=0),p=function spe(i,o,t){var r;"auto"!=t?(r=di._stackingContext.group,t=parseFloat(t)):(r=o,t=0);for(var s=r.children,l=0;l<s.length&&!(null!=s[l]._dom_zIndex&&s[l]._dom_zIndex>t);++l);var u=new kd;if(r.insert(l,u),u._dom_zIndex=t,r!==o&&di._clipbox){var p=di._matrix.invert(),y=di._clipbox.transformCopy(p);zx(u,nl.fromRect(y))}return u}(0,o,y),r<1&&p.opacity(r*p.opacity()),eG(i,t,p),u?iG(i,function(){GL(i.style,"transform","none","important"),GL(i.style,"transition","none","important"),"static"==Xt(t,"position")&&GL(i.style,"position","relative","important");var A=i.getBoundingClientRect(),w=A.left+u.origin[0],I=A.top+u.origin[1],P=[1,0,0,1,-w,-I];P=pG(P,u.matrix),P=pG(P,[1,0,0,1,w,I]),P=hI(p,P),di._matrix=di._matrix.multiplyCopy(P),lG(i,p)}):lG(i,p),tG()}}}function pG(i,o){var t=i[0],r=i[1],s=i[2],l=i[3],u=i[4],p=i[5],y=o[0],A=o[1],w=o[2],I=o[3];return[t*y+r*w,t*A+r*I,s*y+l*w,s*A+l*I,u*y+p*w+o[4],u*A+p*I+o[5]]}const lpe=["wrap"],cpe=["track"],dpe=["sliderSelection"],hG=["ticks"],upe=["draghandle"],ppe=["decreaseButton"],hpe=["increaseButton"];function gpe(i,o){if(1&i&&(n.TgZ(0,"a",13,14),n._UZ(2,"span",15),n.qZA()),2&i){const t=n.oxw();n.Q6J("title",t.decrementMessage),n.uIk("aria-label",t.decrementMessage),n.xp6(2),n.ekj("k-i-arrow-w",!t.vertical)("k-i-arrow-s",t.vertical)}}function fpe(i,o){if(1&i&&(n.TgZ(0,"a",16,17),n._UZ(2,"span",15),n.qZA()),2&i){const t=n.oxw();n.Q6J("title",t.incrementMessage),n.uIk("aria-label",t.incrementMessage),n.xp6(2),n.ekj("k-i-arrow-e",!t.vertical)("k-i-arrow-n",t.vertical)}}function mpe(i,o){if(1&i&&n._UZ(0,"ul",18,19),2&i){const t=n.oxw();n.Q6J("tickTitle",t.title)("vertical",t.vertical)("step",t.smallStep)("largeStep",t.largeStep)("min",t.min)("max",t.max)("labelTemplate",null==t.labelTemplate?null:t.labelTemplate.templateRef)}}const _pe=function(i,o,t,r){return{focus:i,blur:o,click:t,keydown:r}},bpe=["draghandleStart"],vpe=["draghandleEnd"];function ype(i,o){if(1&i&&n._UZ(0,"ul",12,13),2&i){const t=n.oxw();n.Q6J("tickTitle",t.title)("vertical",t.vertical)("step",t.smallStep)("largeStep",t.largeStep)("min",t.min)("max",t.max)("labelTemplate",null==t.labelTemplate?null:t.labelTemplate.templateRef)}}const Cpe=function(i,o){return{click:i,keydown:o}},gG=["wrapper"],Ape=function(i,o,t,r){return{click:i,keydown:o,focus:t,blur:r}},Tpe=["numericInput"],Spe=["numericWrap"],wpe=function(i,o){return{mouseup:i,mouseleave:o}},fG=function(i){return{mousedown:i}};function Mpe(i,o){if(1&i&&(n.TgZ(0,"span",6)(1,"span",7),n._UZ(2,"span",8),n.qZA(),n.TgZ(3,"span",9),n._UZ(4,"span",10),n.qZA()()),2&i){const t=n.oxw();n.Q6J("kendoEventsOutsideAngular",n.WLB(11,wpe,t.releaseArrow,t.releaseArrow)),n.xp6(1),n.ekj("k-state-active",t.arrowDirection===t.ArrowDirection.Up),n.Q6J("kendoEventsOutsideAngular",n.VKq(14,fG,t.increasePress))("title",t.incrementTitle),n.uIk("aria-label",t.incrementTitle),n.xp6(2),n.ekj("k-state-active",t.arrowDirection===t.ArrowDirection.Down),n.Q6J("kendoEventsOutsideAngular",n.VKq(16,fG,t.decreasePress))("title",t.decrementTitle),n.uIk("aria-label",t.decrementTitle)}}const Dpe=function(i,o){return{mousewheel:i,DOMMouseScroll:o}},kpe=function(i,o,t,r,s,l,u){return{mousedown:i,dragenter:o,keydown:t,input:r,focus:s,blur:l,paste:u}},mG=["input"],Ipe=function(i,o,t,r,s){return{focus:i,blur:o,click:t,dragstart:r,drop:s}},Epe=["tickElement"],Ppe=["kendoSliderTicks",""];function Ope(i,o){if(1&i&&(n.TgZ(0,"span",7),n.GkF(1,8),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw(),s=n.MAs(2);n.xp6(1),n.Q6J("ngTemplateOutlet",r.labelTemplate||s)("ngTemplateOutletContext",t)}}function Npe(i,o){1&i&&(n.ynx(0),n._uU(1,"\xa0"),n.BQk())}function Lpe(i,o){if(1&i&&(n.TgZ(0,"li",2,3),n.ynx(2,4),n.YNc(3,Ope,2,2,"span",5),n.YNc(4,Npe,2,0,"ng-container",6),n.BQk(),n.qZA()),2&i){const t=o.$implicit,r=n.oxw();n.s9C("title",r.tickTitle(t.value)),n.Q6J("ngClass",t.classes),n.xp6(2),n.Q6J("ngSwitch",t.large),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1)}}function Rpe(i,o){if(1&i&&n._uU(0),2&i){const t=o.value,r=n.oxw();n.hij(" ",r.tickTitle(t)," ")}}function Fpe(i,o){}function Bpe(i,o){if(1&i&&n.YNc(0,Fpe,0,0,"ng-template",8),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",null==t.prefixTemplate?null:t.prefixTemplate.templateRef)}}function Hpe(i,o){if(1&i&&n._UZ(0,"span",9),2&i){const t=n.oxw();n.Q6J("ngClass",t.errorIconClasses)}}function $pe(i,o){if(1&i&&n._UZ(0,"span",9),2&i){const t=n.oxw();n.Q6J("ngClass",t.successIconClasses)}}function Upe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.clearValue())})("mousedown",function(s){return s.preventDefault()})("keydown.enter",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))})("keydown.space",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))}),n._UZ(1,"span",9),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("tabindex",t.tabIndex)("title",t.clearTitle()),n.uIk("aria-label",t.clearTitle()),n.xp6(1),n.Q6J("ngClass",t.clearButtonClasses)}}function Ype(i,o){}function jpe(i,o){if(1&i&&n.YNc(0,Ype,0,0,"ng-template",8),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",null==t.suffixTemplate?null:t.suffixTemplate.templateRef)}}const Zpe=function(i,o,t){return{focus:i,blur:o,input:t}},Vpe=["palette"],zpe=["container"],Gpe=["popupTemplate"];function qpe(i,o){1&i&&n._UZ(0,"span",10)}function Jpe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",8),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleActiveColorClick())}),n.YNc(1,qpe,1,0,"span",9),n.qZA()}if(2&i){const t=n.oxw();n.Udp("background-color",t.value),n.xp6(1),n.Q6J("ngIf",!t.value)}}function Qpe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",11),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleActiveColorClick())}),n._UZ(1,"span",12),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",t.iconStyles),n.xp6(1),n.Udp("background-color",t.value)}}function Wpe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-colorgradient",15),n.NdJ("focusout",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handlePopupBlur(s))})("valueChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleValueChange(s,!1))})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handlePopupKeyDown(s.keyCode))}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("value",t.value)("format",t.format)("opacity",t.gradientSettings.opacity)("clearButton",t.gradientSettings.clearButton)}}function Kpe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-colorpalette",16,17),n.NdJ("blur",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handlePopupBlur(s))})("cellSelection",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleValueChange(s,!0))})("mousedown",function(s){return s.preventDefault()})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handlePopupKeyDown(s.keyCode))}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("palette",t.paletteSettings.palette)("columns",t.paletteSettings.columns)("tileSize",t.paletteSettings.tileSize)("format",t.format)("value",t.value)}}function Xpe(i,o){if(1&i&&(n.YNc(0,Wpe,1,4,"kendo-colorgradient",13),n.YNc(1,Kpe,2,5,"kendo-colorpalette",14)),2&i){const t=n.oxw();n.Q6J("ngIf","gradient"===t.view||"combo"===t.view),n.xp6(1),n.Q6J("ngIf","palette"===t.view||"combo"===t.view)}}const ehe=function(i,o){return{"k-picker-wrap":!0,"k-state-disabled":i,"k-state-focused":o}},the=function(i,o,t,r){return{backgroundColor:i,width:o,height:t,minWidth:r}};function nhe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"td",5),n.NdJ("click",function(){const s=n.CHM(t),l=s.$implicit,u=s.index,p=n.oxw().index,y=n.oxw();return n.KtG(y.handleCellSelection(l,{row:p,col:u}))}),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw().index,l=n.oxw();n.ekj("k-state-selected",(null==l.focusedCell?null:l.focusedCell.row)===s&&(null==l.focusedCell?null:l.focusedCell.col)===r),n.Q6J("ngStyle",n.l5B(4,the,t,l.tileLayout.width+"px",l.tileLayout.height+"px",l.tileLayout.width+"px")),n.uIk("value",t)}}function ihe(i,o){if(1&i&&(n.TgZ(0,"tr",3),n.YNc(1,nhe,1,9,"td",4),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngForOf",t)}}const ohe=["alphaSlider"],rhe=["gradientWrapper"],ahe=["dragHandle"];function she(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.reset())}),n._UZ(1,"span",11),n.qZA()}}function lhe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-slider",12,13),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleAlphaSliderChange(s))}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("disabled",t.disabled)("readonly",t.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",100)("smallStep",1)("largeStep",10)("value",t.alphaSliderValue)}}function che(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-numerictextbox",9),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.rgba.a=s)})("blur",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleRgbaInputBlur())})("valueChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleRgbaValueChange())}),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("disabled",t.disabled)("readonly",t.readonly)("min",0)("max",1)("value",t.rgba.a)("autoCorrect",!0)("spinners",!1)("step",.01)("format","n2")("decimals",2)}}function dhe(i,o){1&i&&(n.TgZ(0,"div"),n._uU(1,"a"),n.qZA())}const Ni=i=>null!=i,qx=(i,o)=>i===o||null===i&&void 0===o||void 0===i&&null===o,I1=i=>i&&(!i.touched||i.control&&"blur"===i.control.updateOn),Lp=(i,o,t)=>!Ni(i)||isNaN(i)||i<=o?o:i>=t?t:i,_G=i=>Math.min(i,20),Jx=i=>(String(i).split(".")[1]||"").length,bG=(i,o)=>Math.max(Jx(i),Jx(o)),fI=(i,o)=>{const t=_G(o);return parseFloat(i.toFixed(t))},E1=(i,o)=>{const t=bG(i,o);return fI(i+o,t)},Ag=(i,o)=>E1(i,-o),mI=(i,o)=>{const t=Jx(i)+Jx(o);return fI(i*o,t)},vG=(i,o)=>{if(0===o)return NaN;const t=bG(i,o),r=Math.pow(10,t);return r*i/(r*o)},yG=(i,o)=>Math.abs(Ag(i,mI(o,Math.floor(vG(i,o))))),CG=({max:i,min:o,smallStep:t,fixedTickWidth:r})=>(i-o)/t*r,AG=(i,o,t=!0)=>{const s=t?2*parseFloat(o):0;return Math.floor(i-s)},xG=(i=0,o=0,t=1)=>{if(t<=0)throw new Error("Invalid argument: smallStep must be a positive number");const r=Math.abs(Ag(o,i)),s=Math.floor(vG(r,t));return E1(s,1)},mhe=(i,{max:o,min:t,smallStep:r,reverse:s,vertical:l})=>{const u=E1(t,mI(i,r));return l||s?Math.abs(Ag(u,o)):u},XL=({handleWidth:i,trackWidth:o,min:t,max:r,reverse:s,value:l})=>{const u=Math.floor(i/2),p=o/Math.abs(r-t);let y=Ni(l)?p*(l-t):t;return s&&(y=o-y),Math.floor(y-u)},_I=(i,{max:o,min:t,smallStep:r,largeStep:s},l=!1)=>{const u=l&&s?mI(r,s):r,p=Ag(i,t);let y;const A=yG(p,u);return y=Ag(p,0===A?u:A),t7(E1(y,t),t,o)},bI=(i,{max:o,min:t,smallStep:r,largeStep:s},l=!1)=>{const u=l&&s?mI(r,s):r,p=Ag(i,t),y=yG(p,u),A=E1(Ag(p,y),u);return t7(E1(A,t),t,o)},vI=i=>i.id.indexOf("k-start-handle")>-1,gy=(i,o,t)=>t>i?i:t<o?o:t,e7=(i,o,t)=>t?[gy(i,o,t[0]),gy(i,o,t[1])]:[o,o],bhe=i=>i,t7=(i,o,t)=>Math.max(Math.min(i,t),o),P1=(i,o,t)=>{const{min:r,max:s,vertical:l,rtl:u}=t,p=(i=>{const o=i.getBoundingClientRect(),t=document.documentElement;return{left:o.left+(window.pageXOffset||t.scrollLeft)-(t.clientLeft||0),top:o.top+(window.pageYOffset||t.scrollTop)-(t.clientTop||0)}})(o),w=(s-r)/(l?o.clientHeight:o.clientWidth)*(l?i.pageY-p.top:i.pageX-p.left);let I=u||l?s-w:r+w;const P=Jx(t.smallStep);return I=fI(I,P+1),((i,o)=>{const{smallStep:t,min:r,max:s}=o,l=t7(i,r,s);if(i!==l)return l;const u=_I(i,o),p=bI(i,o);return(i-r)%t==0?i:p-i<=(p-u)/2?p:u})(I,t)},TG=i=>i.className.indexOf("k-button-increase")>=0||i.className.indexOf("k-button-decrease")>=0,n7=i=>bI(i.value,i),i7=i=>_I(i.value,i),Che=i=>bI(i.value,i,!0),Ahe=i=>_I(i.value,i,!0),SG=i=>{if(n.X6Q&&i&&i[0]>i[1])throw new Error("[RangeSlider] The start value should not be greater than the end value.")};class wG{constructor(o,t,r,s){this.props=o,this.wrapper=t,this.track=r,this.renderer=s,this.props=o,this.wrapper=t,this.track=r,this.tickSizes=this.getTickSizes()}resizeTrack(){const o=this.props.vertical?"height":"width",t=this.trackWidth();this.track.style[o]=`${t}px`}resizeTicks(o,t){const r=this.props.vertical?"height":"width";[...t].map((s,l)=>s.style[r]=`${this.tickSizes[l]}px`),this.props.vertical&&this.adjustPadding(o)}resizeWrapper(){const o=this.props.vertical?"height":"width",t=this.elementSize(this.wrapper),r=AG(t,this.elementOffset(this.track)),s=CG(this.props);this.wrapper.parentElement.style[o]=r>s?t-(r-s)+"px":`${t+(s-r)}px`}trackWidth(){return this.props.fixedTickWidth?CG(this.props):AG(this.elementSize(this.wrapper),this.elementOffset(this.track),this.props.buttons)}getTickSizes(){const{min:o,max:t,smallStep:r}=this.props,s=xG(o,t,r),l=this.trackWidth(),u=l/Ag(t,o),p=[];let y=0,A=0;for(let w=0;w<s;w++){A+=0===w||w===s-1?r/2*u:r*u,A=+A.toFixed(2)-.01;const I=Math.round(A-y);p.push(I),y+=I}return y>=l&&(p[p.length-1]-=1),p}adjustPadding(o){const t=this.tickSizes.reduce((l,u)=>l+u,0),s=this.trackWidth()-t;if(0!==s){const l=s+this.elementOffset(this.track);o.style.paddingTop=`${l}px`}}elementOffset(o){const{vertical:t}=this.props,r=getComputedStyle(o);return parseInt(t?r.bottom:r.left,10)}elementSize(o){const{vertical:t}=this.props;return t?o.clientHeight:o.clientWidth}}class xhe extends wG{positionHandle(o){const{max:t,min:r,reverse:s,vertical:l}=this.props,u=l?"bottom":"left",p=this.trackWidth(),y=gy(t,r,this.props.value);this.handlePosition=XL({min:r,max:t,reverse:s,value:y,trackWidth:p,handleWidth:o.offsetWidth}),this.renderer.setStyle(o,u,`${this.handlePosition}px`)}positionSelection(o,t){const{reverse:r,vertical:s}=this.props,l=s?"height":"width",u=Math.floor(o.offsetWidth/2);let p=this.handlePosition+u;r&&(p=this.trackWidth()-p),this.renderer.setStyle(t,l,`${p}px`)}}function Rp(i,o,...t){if(i&&i.nativeElement)return i.nativeElement[o].apply(i.nativeElement,t)}const O1={name:"@progress/kendo-angular-inputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1608132957,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let o7=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoSliderLabelTemplate",""]]}),i=ye([Mu(0,(0,n.FiY)()),ce("design:paramtypes",[n.Rgc])],i),i})(),MG=(()=>{class i{constructor(t,r,s,l,u,p){this.localizationService=t,this.injector=r,this.renderer=s,this.ngZone=l,this.changeDetector=u,this.hostElement=p,this.title=bhe,this.tickPlacement="both",this.vertical=!1,this.min=0,this.max=10,this.smallStep=1,this.largeStep=null,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.valueChange=new n.vpe,this.sliderClass=!0,this.widgetClass=!0,this.subscriptions=new bn.w,this.ifEnabled=(y,A)=>{this.isDisabled||y.call(this,A)},(0,mi.s)(O1),this.direction=t.rtl?"rtl":"ltr"}get horizontalClass(){return!this.vertical}get verticalClass(){return this.vertical}get disabledClass(){return this.disabled}setDisabledState(t){this.disabled=t}ngOnInit(){this.subscriptions.add(this.localizationService.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.sizeComponent()})),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(jo,null)}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}get reverse(){return this.localizationService.rtl&&!this.vertical}get keyBinding(){const t=this.reverse;return{[Ie.ArrowLeft]:t?n7:i7,[Ie.ArrowRight]:t?i7:n7,[Ie.ArrowDown]:i7,[Ie.ArrowUp]:n7,[Ie.PageUp]:Che,[Ie.PageDown]:Ahe,[Ie.Home]:({min:r})=>r,[Ie.End]:({max:r})=>r}}resetStyles(t){t.forEach(r=>{r&&(this.vertical?(this.renderer.removeStyle(r,"width"),this.renderer.removeStyle(r,"left"),this.renderer.removeStyle(r,"right")):(this.renderer.removeStyle(r,"height"),this.renderer.removeStyle(r,"bottom")),this.renderer.removeStyle(r,"padding-top"))})}}return i.\u0275fac=function(t){n.$Z()},i.\u0275dir=n.lG2({type:i,contentQueries:function(t,r,s){if(1&t&&n.Suo(s,o7,5),2&t){let l;n.iGM(l=n.CRH())&&(r.labelTemplate=l.first)}},viewQuery:function(t,r){if(1&t&&(n.Gf(lpe,7),n.Gf(cpe,7),n.Gf(dpe,7),n.Gf(hG,5,n.SBq),n.Gf(hG,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.wrapper=s.first),n.iGM(s=n.CRH())&&(r.track=s.first),n.iGM(s=n.CRH())&&(r.sliderSelection=s.first),n.iGM(s=n.CRH())&&(r.ticksContainer=s.first),n.iGM(s=n.CRH())&&(r.ticks=s.first)}},hostVars:11,hostBindings:function(t,r){2&t&&(n.uIk("dir",r.direction),n.ekj("k-slider",r.sliderClass)("k-widget",r.widgetClass)("k-slider-horizontal",r.horizontalClass)("k-slider-vertical",r.verticalClass)("k-state-disabled",r.disabledClass))},inputs:{title:"title",tickPlacement:"tickPlacement",vertical:"vertical",min:"min",max:"max",smallStep:"smallStep",largeStep:"largeStep",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",fixedTickWidth:"fixedTickWidth"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"}}),ye([(0,n.IIB)(),ce("design:type",Function)],i.prototype,"title",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"tickPlacement",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"vertical",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"min",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"max",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"smallStep",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"largeStep",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"fixedTickWidth",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"tabindex",void 0),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],i.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],i.prototype,"onBlur",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],i.prototype,"valueChange",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],i.prototype,"direction",void 0),ye([(0,n.pfw)("class.k-slider-horizontal"),ce("design:type",Boolean),ce("design:paramtypes",[])],i.prototype,"horizontalClass",null),ye([(0,n.pfw)("class.k-slider-vertical"),ce("design:type",Boolean),ce("design:paramtypes",[])],i.prototype,"verticalClass",null),ye([(0,n.pfw)("class.k-slider"),ce("design:type",Boolean)],i.prototype,"sliderClass",void 0),ye([(0,n.pfw)("class.k-widget"),ce("design:type",Boolean)],i.prototype,"widgetClass",void 0),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],i.prototype,"disabledClass",null),ye([(0,n.i9L)("wrap",{static:!0}),ce("design:type",n.SBq)],i.prototype,"wrapper",void 0),ye([(0,n.i9L)("track",{static:!0}),ce("design:type",n.SBq)],i.prototype,"track",void 0),ye([(0,n.i9L)("sliderSelection",{static:!0}),ce("design:type",n.SBq)],i.prototype,"sliderSelection",void 0),ye([(0,n.i9L)("ticks",{read:n.SBq,static:!1}),ce("design:type",n.SBq)],i.prototype,"ticksContainer",void 0),ye([(0,n.i9L)("ticks",{static:!1}),ce("design:type",Object)],i.prototype,"ticks",void 0),ye([(0,n.aQ5)(o7,{static:!1}),ce("design:type",o7)],i.prototype,"labelTemplate",void 0),i})();var yI;const DG="k-state-focused",CI="k-pressed";let es=yI=class extends MG{constructor(o,t,r,s,l,u){super(o,t,r,s,l,u),this.localization=o,this.injector=t,this.renderer=r,this.ngZone=s,this.changeDetector=l,this.hostElement=u,this.focusableId=`k-${to()}`,this.animate=!0,this.showButtons=!0,this.value=this.min,this.handleFocus=()=>{this.focused=!0,Ut(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Ut(this.onBlur)||I1(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.onWrapClick=p=>{const y=p.target;if(!this.isDisabled&&!TG(y)&&!TG(y.parentNode)){const A=P1(p,this.track.nativeElement,this.getProps());this.changeValue(A)}},this.onKeyDown=p=>{const y=this.getProps(),{max:A,min:w}=y,I=this.keyBinding[p.keyCode];if(this.isDisabled||!I)return;const P=I(y);this.changeValue(gy(A,w,P)),p.preventDefault()},this.ngChange=p=>{},this.ngTouched=()=>{},this.decreaseValue=()=>{this.changeValue(_I(this.value,this.getProps()))},this.increaseValue=()=>{this.changeValue(bI(this.value,this.getProps()))}}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}focus(){Rp(this.wrapper,"focus")}blur(){Rp(this.wrapper,"blur")}ngOnChanges(o){_s(["value","fixedTickWidth","tickPlacement"],o,!0)&&this.ngZone.onStable.asObservable().pipe($i(1)).subscribe(()=>{this.sizeComponent(!1)})}ngAfterViewInit(){!Dt()||(this.showButtons&&(this.setValueChangeInterval(this.increaseButton.nativeElement,()=>this.increaseValue()),this.setValueChangeInterval(this.decreaseButton.nativeElement,()=>this.decreaseValue())),this.sizeComponent(!1),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent(!1)))}ngOnDestroy(){this.subscriptions.unsubscribe()}get incrementMessage(){return this.incrementTitle||this.localizationService.get("increment")}get decrementMessage(){return this.decrementTitle||this.localizationService.get("decrement")}get dragHandleMessage(){return this.dragHandleTitle||this.localizationService.get("dragHandle")}handleDragPress(o){o.originalEvent&&o.originalEvent.preventDefault(),this.focus(),this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions")}onHandleDrag(o){this.dragging=!0,this.changeValue(P1(o,this.track.nativeElement,this.getProps()))}onHandleRelease(){this.dragging=!1,this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")}writeValue(o){this.value=o,this.sizeComponent(this.animate)}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}changeValue(o){qx(this.value,o)||this.ngZone.run(()=>{this.value=o,this.ngChange(o),this.valueChange.emit(o),this.sizeComponent(this.animate)})}sizeComponent(o){if(!Dt())return;const t=this.wrapper.nativeElement,r=this.track.nativeElement,s=this.sliderSelection.nativeElement,l=this.draghandle.nativeElement,u=this.ticks?this.ticksContainer.nativeElement:null;o||this.renderer.removeClass(this.hostElement.nativeElement,"k-slider-transitions"),this.resetStyles([r,s,l,u,this.hostElement.nativeElement]);const p=this.getProps(),y=new xhe(p,t,r,this.renderer);y.resizeTrack(),this.ticks&&y.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(A=>A.nativeElement)),y.positionHandle(l),y.positionSelection(l,s),o||(this.hostElement.nativeElement.getBoundingClientRect(),this.renderer.addClass(this.hostElement.nativeElement,"k-slider-transitions")),this.fixedTickWidth&&y.resizeWrapper()}set focused(o){if(this.isFocused!==o&&this.hostElement){const t=this.hostElement.nativeElement;o?this.renderer.addClass(t,DG):this.renderer.removeClass(t,DG),this.isFocused=o}}set dragging(o){if(this.isDragged!==o&&this.sliderSelection&&this.draghandle){const t=this.sliderSelection.nativeElement,r=this.draghandle.nativeElement;o?(this.renderer.addClass(t,CI),this.renderer.addClass(r,CI)):(this.renderer.removeClass(t,CI),this.renderer.removeClass(r,CI)),this.isDragged=o}}setValueChangeInterval(o,t){this.ngZone.runOutsideAngular(()=>{const r=jn(o,"mousedown"),s=jn(o,"mouseup"),l=jn(o,"mouseout"),u=r.pipe(Wt(p=>0===p.button&&!this.isDisabled),ld(()=>wx(150).pipe(vl(-1),Si((0,Ko.T)(s,l))))).subscribe(()=>{this.focus(),t()});this.subscriptions.add(u)})}getProps(){return{buttons:this.showButtons,disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:gy(this.max,this.min,this.value),vertical:this.vertical}}};es.\u0275fac=function(o){return new(o||es)(n.Y36(Te),n.Y36(n.zs3),n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.SBq))},es.\u0275cmp=n.Xpm({type:es,selectors:[["kendo-slider"]],viewQuery:function(o,t){if(1&o&&(n.Gf(upe,7),n.Gf(ppe,5),n.Gf(hpe,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.draghandle=r.first),n.iGM(r=n.CRH())&&(t.decreaseButton=r.first),n.iGM(r=n.CRH())&&(t.increaseButton=r.first)}},inputs:{focusableId:"focusableId",animate:"animate",showButtons:"showButtons",value:"value",tabIndex:"tabIndex",dragHandleTitle:"dragHandleTitle",incrementTitle:"incrementTitle",decrementTitle:"decrementTitle"},exportAs:["kendoSlider"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.slider"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>yI)},{provide:Mo,useExisting:(0,n.Gpc)(()=>yI)}]),n.qOj,n.TTD],decls:13,vars:26,consts:function(){let i,o,t;return i="Aumentar valor",o="Diminuir valor",t="Drag",[["kendoSliderLocalizedMessages","","increment",i,"decrement",o,"dragHandle",t],[1,"k-slider-wrap",3,"id","kendoEventsOutsideAngular"],["wrap",""],["class","k-button k-button-decrease",3,"title",4,"ngIf"],["class","k-button k-button-increase",3,"title",4,"ngIf"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"title","kendoPress","kendoDrag","kendoRelease"],["draghandle",""],[3,"resize"],[1,"k-button","k-button-decrease",3,"title"],["decreaseButton",""],[1,"k-icon"],[1,"k-button","k-button-increase",3,"title"],["increaseButton",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(o,t){1&o&&(n.ynx(0,0),n.TgZ(1,"div",1,2),n.YNc(3,gpe,3,6,"a",3),n.YNc(4,fpe,3,6,"a",4),n.YNc(5,mpe,2,7,"ul",5),n.TgZ(6,"div",6,7),n._UZ(8,"div",8,9),n.TgZ(10,"a",10,11),n.NdJ("kendoPress",function(s){return t.ifEnabled(t.handleDragPress,s)})("kendoDrag",function(s){return t.ifEnabled(t.onHandleDrag,s)})("kendoRelease",function(s){return t.ifEnabled(t.onHandleRelease,s)}),n.qZA()(),n.TgZ(12,"kendo-resize-sensor",12),n.NdJ("resize",function(){return t.sizeComponent(!1)}),n.qZA()(),n.BQk()),2&o&&(n.xp6(1),n.ekj("k-slider-buttons",t.showButtons)("k-slider-topleft","before"===t.tickPlacement)("k-slider-bottomright","after"===t.tickPlacement),n.Q6J("id",t.focusableId)("kendoEventsOutsideAngular",n.l5B(21,_pe,t.handleFocus,t.handleBlur,t.onWrapClick,t.onKeyDown)),n.uIk("tabindex",t.disabled?void 0:t.tabIndex),n.xp6(2),n.Q6J("ngIf",t.showButtons),n.xp6(1),n.Q6J("ngIf",t.showButtons),n.xp6(1),n.Q6J("ngIf","none"!==t.tickPlacement),n.xp6(5),n.Udp("touch-action",t.isDisabled?"":"none"),n.Q6J("title",t.dragHandleMessage),n.uIk("aria-valuemin",t.min)("aria-valuemax",t.max)("aria-valuenow",t.value)("aria-disabled",!!t.disabled||void 0)("aria-readonly",!!t.readonly||void 0)("aria-orientation",t.vertical?"vertical":"horizontal"))},dependencies:function(){return[Ge,YG,kp,_a,Bs,F1]},encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],es.prototype,"focusableId",void 0),ye([(0,n.IIB)(),ce("design:type",String)],es.prototype,"dragHandleTitle",void 0),ye([(0,n.IIB)(),ce("design:type",String)],es.prototype,"incrementTitle",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],es.prototype,"animate",void 0),ye([(0,n.IIB)(),ce("design:type",String)],es.prototype,"decrementTitle",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],es.prototype,"showButtons",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],es.prototype,"value",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],es.prototype,"tabIndex",null),ye([(0,n.i9L)("draghandle",{static:!0}),ce("design:type",n.SBq)],es.prototype,"draghandle",void 0),ye([(0,n.i9L)("decreaseButton",{static:!1}),ce("design:type",n.SBq)],es.prototype,"decreaseButton",void 0),ye([(0,n.i9L)("increaseButton",{static:!1}),ce("design:type",n.SBq)],es.prototype,"increaseButton",void 0),es=yI=ye([ce("design:paramtypes",[Te,n.zs3,n.Qsj,n.R0b,n.sBO,n.SBq])],es);class Ihe extends wG{positionHandle(o){if(!o.id)return;const{max:t,min:r,reverse:s,vertical:l}=this.props,u=l?"bottom":"left",p=this.trackWidth(),y=vI(o)?e7(t,r,this.props.value)[0]:e7(t,r,this.props.value)[1];vI(o)?(this.startHandlePosition=XL({min:r,max:t,reverse:s,value:y,trackWidth:p,handleWidth:o.offsetWidth}),this.renderer.setStyle(o,u,`${this.startHandlePosition}px`)):(this.endHandlePosition=XL({min:r,max:t,reverse:s,value:y,trackWidth:p,handleWidth:o.offsetWidth}),this.renderer.setStyle(o,u,`${this.endHandlePosition}px`))}positionSelection(o,t){const{reverse:r,vertical:s}=this.props,l=s?"height":"width",u=s?"bottom":r?"right":"left",p=Math.floor(o.offsetWidth/2),y=Math.abs(this.endHandlePosition-this.startHandlePosition),A=s?o.style.bottom:o.style.left;this.renderer.setStyle(t,l,`${y}px`),this.renderer.setStyle(t,u,r?this.trackWidth()-parseFloat(A)-p+"px":parseFloat(A)+p+"px")}}var AI;const xI="k-pressed";let xg=AI=class extends MG{constructor(o,t,r,s,l,u){super(o,t,r,s,l,u),this.localization=o,this.injector=t,this.renderer=r,this.ngZone=s,this.changeDetector=l,this.hostElement=u,this.startHandleId=`k-start-handle-${to()}`,this.endHandleId=`k-end-handle-${to()}`,this.focusableId=this.startHandleId,this.handleZIndex=0,this.activeHandle="startHandle",this.focusChangedProgrammatically=!1,this.onWrapClick=p=>{if(!this.isDisabled){this.value=this.value||[this.min,this.min];const y=P1(p,this.track.nativeElement,this.getProps());let A;const[w,I]=A=this.value;y<=w?(A=[y,I],this.activeHandle="startHandle"):w<y&&y<I?y<(w+I)/2?(A=[y,I],this.activeHandle="startHandle"):(A=[w,y],this.activeHandle="endHandle"):y>=I&&(A=[w,y],this.activeHandle="endHandle"),Rp("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"focus"),this.changeValue(A)}},this.onKeyDown=p=>{this.value=this.value||[this.min,this.min];const y=this.getProps(),{max:A,min:w}=y,I=this.keyBinding[p.keyCode];if(this.isDisabled||!I)return;this.renderer.setStyle(p.target,"zIndex",++this.handleZIndex);const P=vI(p.target),F=I(Object.assign({},y,{value:P?this.value[0]:this.value[1]}));P?F>this.value[1]&&(this.value[1]=F):F<this.value[0]&&(this.value[0]=F);const V=gy(A,w,F);this.changeValue(P?[V,this.value[1]]:[this.value[0],V]),p.preventDefault()},this.ngChange=p=>{},this.ngTouched=()=>{},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Ut(this.onBlur)||I1(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.focusChangedProgrammatically||this.onBlur.emit()})}}focus(){this.focusChangedProgrammatically=!0,Rp(this.draghandleStart,"focus"),this.focusChangedProgrammatically=!1}blur(){this.focusChangedProgrammatically=!0,Rp("startHandle"===this.activeHandle?this.draghandleStart:this.draghandleEnd,"blur"),this.handleBlur(),this.focusChangedProgrammatically=!1}ngOnInit(){this.value||(this.value=[this.min,this.max]),super.ngOnInit()}ngOnChanges(o){_s(["value","fixedTickWidth","tickPlacement"],o,!0)&&(o.value&&o.value.currentValue&&SG(o.value.currentValue),this.ngZone.onStable.asObservable().pipe($i(1)).subscribe(()=>{this.sizeComponent()}))}ngAfterViewInit(){!Dt()||(this.sizeComponent(),this.ticks&&this.ticks.tickElements.changes.subscribe(()=>this.sizeComponent()),this.attachElementEventHandlers())}ngOnDestroy(){this.subscriptions.unsubscribe()}textFor(o){return this.localization.get(o)}get valueText(){return this.value?`${this.value[0]} - ${this.value[1]}`:""}handleDragPress(o){o.originalEvent&&o.originalEvent.preventDefault();const t=o.originalEvent.target;this.draggedHandle=t,this.renderer.setStyle(t,"zIndex",++this.handleZIndex)}onHandleDrag(o){this.value=this.value||[this.min,this.min];const t=o.originalEvent.target,r=this.draggedHandle.getBoundingClientRect();this.lastHandlePosition={x:r.left,y:r.top},this.dragging={value:!0,target:t};const s=o.pageX<this.lastHandlePosition.x,l=o.pageX>this.lastHandlePosition.x,u=o.pageY>this.lastHandlePosition.y,p=()=>this.changeValue([P1(o,this.track.nativeElement,this.getProps()),this.value[1]]),y=()=>this.changeValue([this.value[0],P1(o,this.track.nativeElement,this.getProps())]),A=()=>this.changeValue([P1(o,this.track.nativeElement,this.getProps()),P1(o,this.track.nativeElement,this.getProps())]),w=vI(this.draggedHandle),I=this.vertical,P=!I;this.value[0]===this.value[1]?I&&u||(this.reverse?P&&l:P&&s)?w?p():A():w?A():y():w?p():y()}onHandleRelease(o){this.dragging={value:!1,target:o.originalEvent.target},this.draggedHandle=void 0}writeValue(o){SG(o),this.value=o,this.sizeComponent()}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}changeValue(o){(!this.value||!((i,o)=>qx(i[0],o[0])&&qx(i[1],o[1]))(this.value,o))&&this.ngZone.run(()=>{this.value=o,this.ngChange(o),this.value&&this.valueChange.emit(o),this.sizeComponent()})}sizeComponent(){if(!Dt())return;const o=this.wrapper.nativeElement,t=this.track.nativeElement,r=this.sliderSelection.nativeElement,s=this.draghandleStart.nativeElement,l=this.draghandleEnd.nativeElement;this.resetStyles([t,r,s,l,this.ticks?this.ticksContainer.nativeElement:null,this.hostElement.nativeElement]);const p=this.getProps(),y=new Ihe(p,o,t,this.renderer);y.resizeTrack(),this.ticks&&y.resizeTicks(this.ticksContainer.nativeElement,this.ticks.tickElements.map(A=>A.nativeElement)),y.positionHandle(s),y.positionHandle(l),y.positionSelection(s,r),this.fixedTickWidth&&y.resizeWrapper()}get isDisabled(){return this.disabled||this.readonly}isEmpty(){return!1}set focused(o){this.isFocused!==o&&this.hostElement&&(this.isFocused=o)}set dragging(o){if(this.isDragged!==o.value&&this.sliderSelection&&this.draghandleStart&&this.draghandleEnd){const t=this.sliderSelection.nativeElement,r=o.target;o.value?(this.renderer.addClass(t,xI),this.renderer.addClass(r,xI)):(this.renderer.removeClass(t,xI),this.renderer.removeClass(r,xI)),this.isDragged=o.value}}getProps(){return{disabled:this.disabled,fixedTickWidth:this.fixedTickWidth,largeStep:this.largeStep,max:this.max,min:this.min,readonly:this.readonly,reverse:this.reverse,rtl:this.localizationService.rtl,smallStep:this.smallStep,value:e7(this.max,this.min,this.value),vertical:this.vertical,buttons:!1}}attachElementEventHandlers(){const o=this.hostElement.nativeElement;let t=!1,r=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(o,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onFocus.emit(),this.focused=!0})})),this.subscriptions.add(this.renderer.listen(o,"focusout",s=>{!this.isFocused||(t?(s.relatedTarget!==this.draghandleStart.nativeElement&&s.relatedTarget!==this.draghandleEnd.nativeElement&&this.handleBlur(),t=!1):r||this.handleBlur())})),this.subscriptions.add(this.renderer.listen(o,"mouseenter",()=>{r=!0})),this.subscriptions.add(this.renderer.listen(o,"mouseleave",()=>{r=!1})),this.subscriptions.add(this.renderer.listen(o,"keydown",s=>{t=s.keyCode===Ie.Tab}))})}};var TI;xg.\u0275fac=function(o){return new(o||xg)(n.Y36(Te),n.Y36(n.zs3),n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.SBq))},xg.\u0275cmp=n.Xpm({type:xg,selectors:[["kendo-rangeslider"]],viewQuery:function(o,t){if(1&o&&(n.Gf(bpe,7),n.Gf(vpe,7)),2&o){let r;n.iGM(r=n.CRH())&&(t.draghandleStart=r.first),n.iGM(r=n.CRH())&&(t.draghandleEnd=r.first)}},inputs:{value:"value"},exportAs:["kendoRangeSlider"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.rangeslider"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>AI)},{provide:Mo,useExisting:(0,n.Gpc)(()=>AI)}]),n.qOj,n.TTD],decls:13,vars:33,consts:function(){let i,o;return i="Drag",o="Drag",[["kendoSliderLocalizedMessages","","dragHandleStart",i,"dragHandleEnd",o],[1,"k-slider-wrap",3,"kendoEventsOutsideAngular"],["wrap",""],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate",4,"ngIf"],[1,"k-slider-track"],["track",""],[1,"k-slider-selection"],["sliderSelection",""],["role","slider","kendoDraggable","",1,"k-draghandle",3,"id","title","kendoPress","kendoDrag","kendoRelease"],["draghandleStart",""],["draghandleEnd",""],[3,"resize"],["kendoSliderTicks","",3,"tickTitle","vertical","step","largeStep","min","max","labelTemplate"],["ticks",""]]},template:function(o,t){1&o&&(n.ynx(0,0),n.TgZ(1,"div",1,2),n.YNc(3,ype,2,7,"ul",3),n.TgZ(4,"div",4,5),n._UZ(6,"div",6,7),n.TgZ(8,"a",8,9),n.NdJ("kendoPress",function(s){return t.ifEnabled(t.handleDragPress,s)})("kendoDrag",function(s){return t.ifEnabled(t.onHandleDrag,s)})("kendoRelease",function(s){return t.ifEnabled(t.onHandleRelease,s)}),n.qZA(),n.TgZ(10,"a",8,10),n.NdJ("kendoPress",function(s){return t.ifEnabled(t.handleDragPress,s)})("kendoDrag",function(s){return t.ifEnabled(t.onHandleDrag,s)})("kendoRelease",function(s){return t.ifEnabled(t.onHandleRelease,s)}),n.qZA()(),n.TgZ(12,"kendo-resize-sensor",11),n.NdJ("resize",function(){return t.sizeComponent()}),n.qZA()(),n.BQk()),2&o&&(n.xp6(1),n.ekj("k-slider-topleft","before"===t.tickPlacement)("k-slider-bottomright","after"===t.tickPlacement),n.Q6J("kendoEventsOutsideAngular",n.WLB(30,Cpe,t.onWrapClick,t.onKeyDown)),n.xp6(2),n.Q6J("ngIf","none"!==t.tickPlacement),n.xp6(5),n.Udp("touch-action",t.isDisabled?"":"none"),n.Q6J("id",t.startHandleId)("title",t.textFor("dragHandleStart")),n.uIk("tabindex",t.disabled?void 0:t.tabindex)("aria-valuemin",t.min)("aria-valuemax",t.max)("aria-valuenow",t.value?t.value[0]:null)("aria-valuetext",t.valueText)("aria-disabled",!!t.disabled||void 0)("aria-readonly",!!t.readonly||void 0)("aria-orientation",t.vertical?"vertical":"horizontal"),n.xp6(2),n.Udp("touch-action",t.isDisabled?"":"none"),n.Q6J("id",t.endHandleId)("title",t.textFor("dragHandleEnd")),n.uIk("tabindex",t.disabled?void 0:t.tabindex)("aria-valuemin",t.min)("aria-valuemax",t.max)("aria-valuenow",t.value?t.value[1]:null)("aria-valuetext",t.valueText)("aria-disabled",!!t.disabled||void 0)("aria-readonly",!!t.readonly||void 0)("aria-orientation",t.vertical?"vertical":"horizontal"))},dependencies:function(){return[Ge,YG,kp,_a,Bs,B1]},encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",Array)],xg.prototype,"value",void 0),ye([(0,n.i9L)("draghandleStart",{static:!0}),ce("design:type",n.SBq)],xg.prototype,"draghandleStart",void 0),ye([(0,n.i9L)("draghandleEnd",{static:!0}),ce("design:type",n.SBq)],xg.prototype,"draghandleEnd",void 0),xg=AI=ye([ce("design:paramtypes",[Te,n.zs3,n.Qsj,n.R0b,n.sBO,n.SBq])],xg);const kG="k-state-focused";let Xo=TI=class{constructor(o,t,r,s,l,u){this.renderer=o,this.hostElement=t,this.localizationService=r,this.injector=s,this.changeDetector=l,this.ngZone=u,this.focusableId=`k-${to()}`,this.checked=!1,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.valueChange=new n.vpe,this.ngChange=p=>{},this.ngTouched=()=>{},this.handleFocus=()=>{this.focused=!0,Ut(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,(Ut(this.onBlur)||I1(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},(0,mi.s)(O1),this.direction=r.rtl?"rtl":"ltr",this.keyDownHandler=this.keyDownHandler.bind(this),this.clickHandler=this.clickHandler.bind(this)}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}get ieClass(){return Qv&&Qv.msie}get ariaDisabled(){return!!this.disabled||void 0}get ariaReadonly(){return this.readonly}get hostClasses(){return!0}get switchOnClass(){return this.checked}get switchOffClass(){return!this.checked}get disabledClass(){return this.disabled}get onLabelMessage(){return this.onLabel||this.localizationService.get("on")}get offLabelMessage(){return this.offLabel||this.localizationService.get("off")}get isEnabled(){return!this.disabled&&!this.readonly}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangeSubscription=this.localizationService.changes.pipe(Z_(1)).subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr"}),this.control=this.injector.get(jo,null)}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}focus(){!this.wrapper||this.wrapper.nativeElement.focus()}blur(){!this.wrapper||this.wrapper.nativeElement.blur()}setDisabledState(o){this.disabled=o,this.changeDetector.markForCheck()}writeValue(o){this.checked=null!==o&&o,this.changeDetector.markForCheck()}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}keyDownHandler(o){const t=o.keyCode;this.isEnabled&&(t===Ie.Space||t===Ie.Enter)&&(this.changeValue(!this.checked),o.preventDefault())}clickHandler(){this.isEnabled&&this.changeValue(!this.checked)}isEmpty(){return!1}changeValue(o){this.checked!==o&&this.ngZone.run(()=>{this.checked=o,this.ngChange(o),this.valueChange.emit(o),this.changeDetector.markForCheck()})}set focused(o){if(this.isFocused!==o&&this.hostElement){const t=this.hostElement.nativeElement;o?this.renderer.addClass(t,kG):this.renderer.removeClass(t,kG),this.isFocused=o}}};var SI;Xo.\u0275fac=function(o){return new(o||Xo)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(Te),n.Y36(n.zs3),n.Y36(n.sBO),n.Y36(n.R0b))},Xo.\u0275cmp=n.Xpm({type:Xo,selectors:[["kendo-switch"]],viewQuery:function(o,t){if(1&o&&n.Gf(gG,7),2&o){let r;n.iGM(r=n.CRH())&&(t.wrapper=r.first)}},hostVars:15,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction)("aria-disabled",t.ariaDisabled)("aria-readonly",t.ariaReadonly),n.ekj("k-ie",t.ieClass)("k-widget",t.hostClasses)("k-switch",t.hostClasses)("k-switch-on",t.switchOnClass)("k-switch-off",t.switchOffClass)("k-state-disabled",t.disabledClass))},inputs:{focusableId:"focusableId",checked:"checked",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",tabIndex:"tabIndex",onLabel:"onLabel",offLabel:"offLabel"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoSwitch"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.switch"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>TI)},{provide:Mo,useExisting:(0,n.Gpc)(()=>TI)}])],decls:8,vars:13,consts:function(){let i,o;return i="Sim",o="N\xE3o",[["kendoSwitchLocalizedMessages","","on",i,"off",o],["role","switch",1,"k-switch-container",3,"id","kendoEventsOutsideAngular"],["wrapper",""],[1,"k-switch-label-on"],[1,"k-switch-label-off"],[1,"k-switch-handle"]]},template:function(o,t){1&o&&(n.ynx(0,0),n.TgZ(1,"span",1,2)(3,"span",3),n._uU(4),n.qZA(),n.TgZ(5,"span",4),n._uU(6),n.qZA(),n._UZ(7,"span",5),n.qZA(),n.BQk()),2&o&&(n.xp6(1),n.Q6J("id",t.focusableId)("kendoEventsOutsideAngular",n.l5B(8,Ape,t.clickHandler,t.keyDownHandler,t.handleFocus,t.handleBlur)),n.uIk("aria-checked",t.checked)("tabindex",t.disabled?void 0:t.tabIndex),n.xp6(2),n.uIk("aria-hidden",!0),n.xp6(1),n.Oqu(t.onLabelMessage),n.xp6(1),n.uIk("aria-hidden",!0),n.xp6(1),n.Oqu(t.offLabelMessage))},dependencies:function(){return[_a,H1]},encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],Xo.prototype,"focusableId",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Xo.prototype,"onLabel",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Xo.prototype,"offLabel",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Xo.prototype,"checked",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Xo.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Xo.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],Xo.prototype,"tabindex",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],Xo.prototype,"tabIndex",null),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],Xo.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],Xo.prototype,"onBlur",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Xo.prototype,"valueChange",void 0),ye([(0,n.i9L)("wrapper",{static:!0}),ce("design:type",Object)],Xo.prototype,"wrapper",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],Xo.prototype,"direction",void 0),ye([(0,n.pfw)("class.k-ie"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"ieClass",null),ye([(0,n.pfw)("attr.aria-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"ariaDisabled",null),ye([(0,n.pfw)("attr.aria-readonly"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"ariaReadonly",null),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-switch"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"hostClasses",null),ye([(0,n.pfw)("class.k-switch-on"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"switchOnClass",null),ye([(0,n.pfw)("class.k-switch-off"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"switchOffClass",null),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],Xo.prototype,"disabledClass",null),Xo=TI=ye([ce("design:paramtypes",[n.Qsj,n.SBq,Te,n.zs3,n.sBO,n.R0b])],Xo);let wl=SI=class{constructor(o,t,r,s,l,u){this.renderer=o,this.element=t,this.zone=r,this.changeDetector=s,this.injector=l,this.elementClass=!0,this.autofillClass=!0,this.valueChange=new n.vpe,this.autoSize=!1,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.onValueChange=new n.vpe,this.autoFillStart=new n.vpe,this.autoFillEnd=new n.vpe,this.listeners=[],this.ngChange=p=>{},this.ngTouched=()=>{},this.direction=u?"rtl":"ltr"}get id(){return this.element.nativeElement.id}set id(o){this.renderer.setAttribute(this.element.nativeElement,"id",o)}writeValue(o){this.elementValue=o,this.resize()}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}setDisabledState(o){this.setElementProperty("disabled",o)}ngOnInit(){const o=this.element.nativeElement;this.zone.runOutsideAngular(()=>{this.listeners=[this.renderer.listen(o,"focus",this.handleFocus.bind(this)),this.renderer.listen(o,"blur",this.handleBlur.bind(this)),this.renderer.listen(o,"animationstart",t=>{"autoFillStart"===t.animationName?this.autoFillStart.emit():"autoFillEnd"===t.animationName&&this.autoFillEnd.emit()})],Dt()&&this.autoSize&&(this.resizeSubscription=jn(window,"resize").pipe(xu(50)).subscribe(()=>this.resize())),this.inputSubscription=jn(o,"input").subscribe(this.handleInput.bind(this))}),this.control=this.injector.get(jo,null)}ngOnChanges(o){const t=this.element.nativeElement;o.value&&(this.elementValue=this.value),o.autoSize&&(this.autoSize?(this.initialHeight=t.offsetHeight,this.renderer.setStyle(t,"resize","none")):(this.renderer.setStyle(t,"overflow-y","auto"),this.renderer.setStyle(t,"resize","both"),t.style.height=`${this.initialHeight}px`)),this.resize()}ngOnDestroy(){this.listeners.forEach(o=>o()),this.inputSubscription&&this.inputSubscription.unsubscribe(),this.resizeSubscription&&this.resizeSubscription.unsubscribe()}get elementValue(){return this.element?this.element.nativeElement.value:""}set elementValue(o){this.setElementProperty("value",o??"")}setElementProperty(o,t){this.element&&this.renderer.setProperty(this.element.nativeElement,o,t)}resize(){if(!this.autoSize)return;const o=this.element.nativeElement;this.renderer.setStyle(o,"overflow-y","hidden"),o.style.height=`${this.initialHeight}px`;const t=o.scrollHeight;t>this.initialHeight&&(o.style.height=`${t}px`)}handleInput(){const o=this.elementValue;this.value=o,(this.control||Ut(this.onValueChange)||Ut(this.valueChange))&&this.zone.run(()=>{this.ngChange(o),this.onValueChange.emit(o),this.valueChange.emit(o),this.changeDetector.markForCheck()}),this.resize()}handleFocus(){Ut(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()})}handleBlur(){(Ut(this.onBlur)||I1(this.control))&&this.zone.run(()=>{this.ngTouched(),this.onBlur.emit(),this.changeDetector.markForCheck()})}};var r7;wl.\u0275fac=function(o){return new(o||wl)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.zs3),n.Y36(nc,8))},wl.\u0275dir=n.lG2({type:wl,selectors:[["textarea","kendoTextArea",""]],hostVars:5,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-textarea",t.elementClass)("k-autofill",t.autofillClass))},inputs:{autoSize:"autoSize",value:"value"},outputs:{valueChange:"valueChange"},features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>SI),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>SI)}]),n.TTD]}),ye([(0,n.pfw)("class.k-textarea"),ce("design:type",Boolean)],wl.prototype,"elementClass",void 0),ye([(0,n.pfw)("class.k-autofill"),ce("design:type",Boolean)],wl.prototype,"autofillClass",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],wl.prototype,"direction",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],wl.prototype,"valueChange",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],wl.prototype,"autoSize",void 0),ye([(0,n.IIB)(),ce("design:type",String)],wl.prototype,"value",void 0),wl=SI=ye([Mu(5,(0,n.FiY)()),Mu(5,(0,n.tBr)(nc)),ce("design:paramtypes",[n.Qsj,n.SBq,n.R0b,n.sBO,n.zs3,Boolean])],wl);let Er=r7=class{constructor(o,t,r){this.renderer=o,this.inputElement=t,this.ngZone=r,this.hostClass=!0,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.onValueChange=new n.vpe,this.autoFillStart=new n.vpe,this.autoFillEnd=new n.vpe,this.listeners=[]}set value(o){!this.inputElement||(this.inputElement.nativeElement.value=o??"",this.onValueChange.emit())}get value(){return this.inputElement.nativeElement.value}get id(){return this.inputElement.nativeElement.id}set id(o){this.renderer.setAttribute(this.inputElement.nativeElement,"id",o)}ngAfterViewInit(){const o=this.inputElement.nativeElement;this.listeners=[this.renderer.listen(o,"focus",()=>this.onFocus.emit()),this.renderer.listen(o,"blur",()=>this.onBlur.emit())],this.ngZone.runOutsideAngular(()=>{this.renderer.listen(o,"animationstart",t=>{"autoFillStart"===t.animationName?this.autoFillStart.emit():"autoFillEnd"===t.animationName&&this.autoFillEnd.emit()})})}ngOnDestroy(){this.listeners.forEach(o=>o())}};Er.\u0275fac=function(o){return new(o||Er)(n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b))},Er.\u0275dir=n.lG2({type:Er,selectors:[["input","kendoTextBox",""]],hostVars:2,hostBindings:function(o,t){2&o&&n.ekj("k-textbox",t.hostClass)},inputs:{value:"value"},features:[n._Bn([{provide:Mo,useExisting:(0,n.Gpc)(()=>r7)}])]}),ye([(0,n.pfw)("class.k-textbox"),ce("design:type",Boolean)],Er.prototype,"hostClass",void 0),ye([(0,n.IIB)(),ce("design:type",String),ce("design:paramtypes",[String])],Er.prototype,"value",null),Er=r7=ye([ce("design:paramtypes",[n.Qsj,n.SBq,n.R0b])],Er);const EG=/[eE][\-+]?([0-9]+)/,PG=i=>i>=0?Math.floor(i):Math.ceil(i),N1=i=>{},L1=i=>!isNaN(i)&&null!==i;function OG(i,o){const t=o-String(i).length;let r=i;if(t>0){const s=new Array(t+1).join("0");r=parseFloat(i+s)}return r}var Qx,Tg=(()=>(function(i){i[i.Down=-1]="Down",i[i.None=0]="None",i[i.Up=1]="Up"}(Tg||(Tg={})),Tg))();const NG=["min","max","step","decimals"],jhe={decimals:null,max:null,min:null,step:1},LG="k-state-focused",RG="k-formatted-value";let ko=Qx=class{constructor(o,t,r,s,l,u,p){this.intl=o,this.renderer=t,this.localizationService=r,this.injector=s,this.ngZone=l,this.changeDetector=u,this.hostElement=p,this.focusableId=`k-${to()}`,this.disabled=!1,this.readonly=!1,this.title="",this.autoCorrect=!1,this.decimals=null,this.step=1,this.spinners=!0,this.rangeValidation=!0,this.tabindex=0,this.selectOnFocus=!0,this.value=null,this.valueChange=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.ArrowDirection=Tg,this.arrowDirection=Tg.None,this.inputValue="",this.minValidateFn=N1,this.maxValidateFn=N1,this._format="n2",this.isPasted=!1,this.mouseDown=!1,this.ngChange=N1,this.ngTouched=N1,this.ngValidatorChange=N1,this.increasePress=y=>{this.arrowPress(Tg.Up,y)},this.decreasePress=y=>{this.arrowPress(Tg.Down,y)},this.releaseArrow=()=>{clearTimeout(this.spinTimeout),this.arrowDirection!==Tg.None&&(this.arrowDirection=Tg.None,this.changeDetector.detectChanges())},this.handlePaste=()=>{this.isPasted=!0},this.handleInput=()=>{const y=this.numericInput.nativeElement;let{selectionStart:A,selectionEnd:w,value:I}=y;if(this.pressedKey===Ie.NumpadDecimal&&(I=this.replaceNumpadDotValue()),this.isPasted&&(I=this.formatInputValue(this.intl.parseNumber(I))),!this.isValid(I))return y.value=this.inputValue,void this.setSelection(A-1,w-1);const P=this.intl.parseNumber(I);let F=this.restrictDecimals(P);if(this.autoCorrect){const V=this.limitInputValue(F);F=V.value,A=V.selectionStart,w=V.selectionEnd}P!==F||this.hasTrailingZeros(I)||!this.focused?(this.setInputValue(F),this.setSelection(A,w)):this.inputValue=I,this.isPasted&&(y.value=this.inputValue),this.updateValue(F),this.previousSelection=null,this.isPasted=!1},this.handleDragEnter=()=>{!this.focused&&!this.isDisabled&&this.setInputValue(this.value,!0)},this.handleMouseDown=()=>{this.mouseDown=!0},this.handleFocus=()=>{if(!this.focused&&(this.focused=!0,!this.isDisabled)){const y=this.selectOnFocus||!this.mouseDown;this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{y?this.selectAll():this.selectCaret()},0)})}this.mouseDown=!1,Ut(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.inputValue!==this.elementValue&&this.handleInput(),this.setInputValue(),(Ut(this.onBlur)||I1(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.onBlur.emit()})},this.handleKeyDown=y=>{if(this.isDisabled)return;let A;y.keyCode===Ie.ArrowDown?A=-1:y.keyCode===Ie.ArrowUp&&(A=1),A&&this.step&&(y.preventDefault(),this.addStep(A));const w=this.numericInput.nativeElement;this.previousSelection={end:w.selectionEnd,start:w.selectionStart},this.pressedKey=y.keyCode},this.handleWheel=y=>{if(this.focused&&!this.isDisabled){y.preventDefault();const A=(i=>{let o=0;return i.wheelDelta?(o=i.wheelDelta/120,o=o>0?Math.ceil(o):Math.floor(o)):i.detail&&(o=Math.round(-i.detail/3)),o})(y);this.addStep(A)}},(0,mi.s)(O1),this.direction=r.rtl?"rtl":"ltr"}get format(){return this._format??"n2"}set format(o){this._format=o}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}get widgetClasses(){return!0}ngOnInit(){this.subscriptions=this.localizationService.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr"}),this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(jo,null)}ngOnChanges(o){_s(NG,o,!1)&&this.parseOptions(NG.filter(t=>o[t])),this.verifySettings(),_s(["min","max","rangeValidation"],o,!1)&&(this.minValidateFn=this.rangeValidation?(i=>o=>!Ni(i)||!Ni(o.value)||o.value>=i?null:{minError:{minValue:i,value:o.value}})(this.min):N1,this.maxValidateFn=this.rangeValidation?(i=>o=>!Ni(i)||!Ni(o.value)||o.value<=i?null:{maxError:{maxValue:i,value:o.value}})(this.max):N1,this.ngValidatorChange()),_s(["autoCorrect","decimals","min"],o)&&delete this.numericRegex,_s(["value","format"],o,!1)&&(this.verifyValue(this.value),this.value=this.restrictModelValue(this.value),(!this.focused||this.intl.parseNumber(this.elementValue)!==this.value)&&this.setInputValue())}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),clearTimeout(this.spinTimeout)}validate(o){return this.minValidateFn(o)||this.maxValidateFn(o)}registerOnValidatorChange(o){this.ngValidatorChange=o}writeValue(o){this.verifyValue(o);let t=this.restrictModelValue(o);this.value=t,this.setInputValue()}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}setDisabledState(o){this.disabled=o}focus(){Rp(this.numericInput,"focus")}blur(){Rp(this.numericInput,"blur")}notifyValueChange(){this.setInputValue()}get incrementTitle(){return this.localizationService.get("increment")}get decrementTitle(){return this.localizationService.get("decrement")}get decimalSeparator(){return this.intl.numberSymbols().decimal}get elementValue(){return this.numericInput.nativeElement.value}set elementValue(o){this.renderer.setProperty(this.numericInput.nativeElement,"value",o)}get focused(){return this.isFocused}get hasDecimals(){return null!==this.decimals&&this.decimals>=0}set focused(o){if(this.isFocused!==o&&this.numericWrap){const t=this.numericWrap.nativeElement,r=this.numericInput.nativeElement;o?(this.renderer.addClass(t,LG),this.isDisabled||this.renderer.removeClass(r,RG)):(this.renderer.removeClass(t,LG),this.renderer.addClass(r,RG)),this.isFocused=o}}get isDisabled(){return this.disabled||this.readonly}arrowPress(o,t){t.preventDefault(),!this.isDisabled&&(GZ||(this.focused=!0,this.focus()),this.arrowDirection!==o&&(this.arrowDirection=o,this.changeDetector.detectChanges()),this.step?this.spin(o,500):this.setInputValue())}updateValue(o){qx(this.value,o)||this.ngZone.run(()=>{this.value=o,this.ngChange(o),this.valueChange.emit(o),this.changeDetector.markForCheck()})}replaceNumpadDotValue(){let o=this.inputValue||"";if(this.previousSelection){const t=this.numericInput.nativeElement,{selectionStart:r,selectionEnd:s}=t,{start:l,end:u}=this.previousSelection;t.value=o=o.substring(0,l)+this.decimalSeparator+o.substring(u),this.setSelection(r,s)}return o}isValid(o){return this.numericRegex||(this.numericRegex=(i=>{const{autoCorrect:o,decimals:t,min:r}=i;let u,s=i.separator;return"."===s&&(s="\\"+s),u=0===t?"\\d*":`(?:(?:\\d+(${s}\\d*)?)|(?:${s}\\d*))?`,new RegExp(`^${o&&null!==r&&r>=0?"":"-?"}${u}$`)})({autoCorrect:this.autoCorrect,decimals:this.decimals,min:this.min,separator:this.decimalSeparator})),this.numericRegex.test(o)}spin(o,t){clearTimeout(this.spinTimeout),this.spinTimeout=window.setTimeout(()=>{this.spin(o,50)},t),this.addStep(o)}addStep(o){let t=E1(this.value||0,this.step*o);t=this.limitValue(t),t=this.restrictDecimals(t),this.setInputValue(t),this.updateValue(t)}setSelection(o,t){this.focused&&Rp(this.numericInput,"setSelectionRange",o,t)}limitValue(o){let t=o;return this.isInRange(o)||(L1(this.max)&&o>this.max&&(t=this.max),L1(this.min)&&o<this.min&&(t=this.min)),t}limitInputValue(o){let{selectionStart:t,selectionEnd:r,value:s}=this.numericInput.nativeElement,l=o,u=!1;if(!this.isInRange(o)){const p=s.length-String(this.inputValue).length,{min:y,max:A}=this,w=L1(A),I=L1(y);let P,F,V=o;if(0===t&&this.inputValue.substr(1)===s)return{selectionEnd:r,selectionStart:t,value:null};if(w&&o>A?o>0?F=!0:P=A:I&&o<y&&(o>0?P=y:F=!0),P){const oe=this.tryPadValue(o,P);oe&&PG(o)!==PG(P)&&(V=oe,u=!0)}else F&&this.inputValue&&t!==s.length&&(V=parseFloat(s.substr(0,t)+s.substr(t+p)));l=this.limitValue(V),u=(u||l!==V)&&this.previousSelection&&this.previousSelection.end-this.previousSelection.start+p>0}return{selectionEnd:u?String(l).length:r,selectionStart:t,value:l}}tryPadValue(o,t){const r=String(Math.floor(t)).length,s=OG(o,r),l=OG(o,r+1);let u;return this.isInRange(s)?u=s:this.isInRange(l)&&(u=l),u}isInRange(o){return!L1(o)||(!L1(this.min)||this.min<=o)&&(!L1(this.max)||o<=this.max)}restrictModelValue(o){let t=this.restrictDecimals(o,!0);return this.autoCorrect&&this.limitValue(t)!==t&&(t=null),t}restrictDecimals(o,t){let r=o;if(o&&this.hasDecimals){const s=this.decimals,l=String(o);if(t||EG.test(l))r=fI(o,s);else{const u=l.split(".");let p=u[1];p&&p.length>s&&(p=p.substr(0,s),r=parseFloat(`${u[0]}.${p}`))}}return r}formatInputValue(o){let t=String(o);const r=EG.exec(t);return r&&(t=o.toFixed(_G(parseInt(r[1],10)))),t.replace(".",this.decimalSeparator)}formatValue(o,t){let r;return r=null!==o&&(i=>typeof i<"u")(o)&&""!==o?t&&!this.readonly?this.formatInputValue(o):this.intl.formatNumber(o,this.format):"",r}setInputValue(o=this.value,t=this.focused){const r=this.formatValue(o,t);this.elementValue=r,this.inputValue=r}verifySettings(){if((0,n.X6Q)()&&null!==this.min&&null!==this.max&&this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/inputs/api/NumericTextBoxComponent/#toc-max.")}verifyValue(o){if((0,n.X6Q)()&&o&&"number"!=typeof o)throw new Error(`The NumericTextBox component requires value of type Number and ${JSON.stringify(o)} was set.`)}parseOptions(o){for(let t=0;t<o.length;t++){const r=o[t],s=this[r];if("string"==typeof s){const l=parseFloat(s),u=!isNaN(l);if((0,n.X6Q)()&&!u&&""!==s)throw new Error(`The NumericTextBox component requires value of type Number or a String representing a number for the ${r} property and ${JSON.stringify(s)} was set.`);this[r]=u?l:jhe[r]}}}intlChange(){delete this.numericRegex,this.numericInput&&(!this.focused||!this.isValid(this.elementValue))&&this.setInputValue()}hasTrailingZeros(o){if(this.hasDecimals&&this.focused){const t=o.split(this.decimalSeparator)[1];return t&&t.length>this.decimals&&t.lastIndexOf("0")===t.length-1}}selectAll(){this.setInputValue(),this.setSelection(0,this.inputValue.length)}selectCaret(){const o=(i=>this.numericInput.nativeElement.selectionStart)(),t=this.elementValue,r=t.substring(0,o);if(this.setInputValue(),r.length){const s=((i,o)=>{const t=`${this.decimalSeparator}0123456789-`;return i.split("").reduce((r,s)=>t.includes(s)?++r:r,0)})(r),l=this.adjustSignificantChars(t,s);this.setSelection(l,l)}else this.setSelection(0,0)}numberOfLeadingZeroes(o){const t=o.indexOf(this.decimalSeparator),r=o.match(/^[^1-9]*?(0+)/);if(r){const l=r[1].length;return r[0].length===t?l-1:l}return 0}adjustSignificantChars(o,t){const r=this.numberOfLeadingZeroes(o);return r>0?Math.max(0,t-r):t}};ko.\u0275fac=function(o){return new(o||ko)(n.Y36(_i.aJ),n.Y36(n.Qsj),n.Y36(Te),n.Y36(n.zs3),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.SBq))},ko.\u0275cmp=n.Xpm({type:ko,selectors:[["kendo-numerictextbox"]],viewQuery:function(o,t){if(1&o&&(n.Gf(Tpe,7),n.Gf(Spe,7)),2&o){let r;n.iGM(r=n.CRH())&&(t.numericInput=r.first),n.iGM(r=n.CRH())&&(t.numericWrap=r.first)}},hostVars:5,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-widget",t.widgetClasses)("k-numerictextbox",t.widgetClasses))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",autoCorrect:"autoCorrect",decimals:"decimals",step:"step",spinners:"spinners",rangeValidation:"rangeValidation",tabindex:"tabindex",selectOnFocus:"selectOnFocus",value:"value",format:"format",tabIndex:"tabIndex",max:"max",min:"min",placeholder:"placeholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur"},exportAs:["kendoNumericTextBox"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.numerictextbox"},{provide:Ri,useExisting:(0,n.Gpc)(()=>Qx),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>Qx),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>Qx)}]),n.TTD],decls:6,vars:25,consts:function(){let i,o;return i="Aumentar valor",o="Diminuir valor",[["kendoNumericTextBoxLocalizedMessages","","increment",i,"decrement",o],[1,"k-numeric-wrap",3,"kendoEventsOutsideAngular"],["numericWrap",""],["role","spinbutton","autocomplete","off","autocorrect","off",1,"k-input","k-formatted-value",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["numericInput",""],["class","k-select",3,"kendoEventsOutsideAngular",4,"ngIf"],[1,"k-select",3,"kendoEventsOutsideAngular"],[1,"k-link","k-link-increase",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-n"],[1,"k-link","k-link-decrease",3,"kendoEventsOutsideAngular","title"],[1,"k-icon","k-i-arrow-s"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2),n._UZ(3,"input",3,4),n.YNc(5,Mpe,5,18,"span",5),n.qZA()),2&o&&(n.xp6(1),n.ekj("k-state-disabled",t.disabled),n.Q6J("kendoEventsOutsideAngular",n.WLB(14,Dpe,t.handleWheel,t.handleWheel)),n.xp6(2),n.Q6J("id",t.focusableId)("tabindex",t.tabIndex)("disabled",t.disabled)("readonly",t.readonly)("kendoEventsOutsideAngular",n.Hh0(17,kpe,t.handleMouseDown,t.handleDragEnter,t.handleKeyDown,t.handleInput,t.handleFocus,t.handleBlur,t.handlePaste)),n.uIk("aria-valuemin",t.min)("aria-valuemax",t.max)("aria-valuenow",t.value)("title",t.title)("placeholder",t.placeholder),n.xp6(2),n.Q6J("ngIf",t.spinners))},dependencies:function(){return[Ge,_a,$1]},encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],ko.prototype,"focusableId",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",String)],ko.prototype,"title",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"autoCorrect",void 0),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],ko.prototype,"format",null),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"max",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"min",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"decimals",void 0),ye([(0,n.IIB)(),ce("design:type",String)],ko.prototype,"placeholder",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"step",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"spinners",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"rangeValidation",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"tabindex",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],ko.prototype,"tabIndex",null),ye([(0,n.IIB)(),ce("design:type",Boolean)],ko.prototype,"selectOnFocus",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],ko.prototype,"value",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],ko.prototype,"valueChange",void 0),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],ko.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],ko.prototype,"onBlur",void 0),ye([(0,n.i9L)("numericInput",{static:!0}),ce("design:type",n.SBq)],ko.prototype,"numericInput",void 0),ye([(0,n.i9L)("numericWrap",{static:!0}),ce("design:type",n.SBq)],ko.prototype,"numericWrap",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],ko.prototype,"direction",void 0),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-numerictextbox"),ce("design:type",Boolean),ce("design:paramtypes",[])],ko.prototype,"widgetClasses",null),ko=Qx=ye([ce("design:paramtypes",[_i.aJ,n.Qsj,Te,n.zs3,n.R0b,n.sBO,n.SBq])],ko);let MI=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{decrement:"decrement",increment:"increment"},features:[n.qOj]}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"decrement",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"increment",void 0),i})();var a7;let fy=a7=class extends MI{constructor(o){super(),this.service=o}get override(){return!0}};fy.\u0275fac=function(o){return new(o||fy)(n.Y36(Te))},fy.\u0275cmp=n.Xpm({type:fy,selectors:[["kendo-numerictextbox-messages"]],features:[n._Bn([{provide:MI,useExisting:(0,n.Gpc)(()=>a7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),fy=a7=ye([ce("design:paramtypes",[Te])],fy);var Ru=(()=>(function(i){i[i.Literal=0]="Literal",i[i.Mask=1]="Mask",i[i.Undefined=2]="Undefined"}(Ru||(Ru={})),Ru))();class ba{constructor(o,t,r=Ru.Undefined){this.value=o,this.rest=t,this.type=r}map(o){return new ba(o(this.value),this.rest)}chain(o){return o(this.value,this.rest)}fold(o,t){return o(this.value,this.rest)}concat(o){return this.map((t,r)=>o.chain((s,l)=>t.concat([s])))}toString(){return`Result({ value: '${this.value}', rest: ${this.rest} })`}}class FG{constructor(o=[],t=[]){this.input=o,this.control=t,this.inputCursor=0,this.controlCursor=0}eof(){return this.inputCursor>=this.input.length}next(){return{char:this.input[this.inputCursor++],control:this.control[this.controlCursor++]}}peek(){return{char:this.input[this.inputCursor],control:this.control[this.controlCursor]}}eat_input(){this.inputCursor++}eat_control(){this.controlCursor++}eat(){this.inputCursor++,this.controlCursor++}}const BG=i=>(i||"").split("");class Id{constructor(o){this.parse=o}run(o,t=""){return this.parse(o instanceof FG?o:new FG(BG(o),BG(t)))}map(o){return new Id(t=>this.parse(t).map(o))}chain(o){return new Id(t=>this.parse(t).chain((r,s)=>o(r).run(s)))}isLiteral(o){return this.run(o).type===Ru.Literal}}const DI=(i,o)=>new Id(t=>{let{char:r}=t.next();const s=i[r];return"\\"===r?(r=t.next().char,new ba(o.literal(r),t)):new ba(s?o.mask(s):o.literal(r),t)}),HG=({prompt:i,promptPlaceholder:o})=>new Id(t=>{let{char:r}=t.next();return new ba(r===i?o:r,t)}),$G=i=>new Id(o=>{let{char:t}=o.next();return new ba(i?t:"",o)}),R1=i=>i.reduce((o,t)=>((i,o)=>i.chain(t=>o.map(r=>t.concat([r]))))(o,t),(i=>new Id(o=>new ba(i,o)))([])),kI=i=>new Id(o=>{let t=new ba([],o);for(;!o.eof();)t=t.concat(i.run(o));return t});let s7=(()=>{let i=class{constructor(){this.rules={},this.prompt="_",this.mask="",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskTokens=[],this.unmaskTokens=[],this.rawTokens=[],this.validationTokens=[]}update({mask:t="",prompt:r="",promptPlaceholder:s=" ",rules:l={},includeLiterals:u=!1}){this.mask=t,this.prompt=r,this.promptPlaceholder=s,this.rules=l,this.includeLiterals=u,this.tokenize()}validationValue(t=""){let r=t;return R1(this.validationTokens).run(t).fold(s=>{r=s.join("")}),r}rawValue(t=""){let r=t;return this.rawTokens.length&&R1(this.rawTokens).run(t).fold(s=>{r=s.join("")}),r}maskRaw(t=""){let r=t;return this.maskTokens.length&&R1(this.maskTokens).run(t).fold(s=>{r=s.join("")}),r}maskInput(t,r,s){return t.length<r.length?this.maskRemoved(t,r,s):this.maskInserted(t,r,s)}maskInRange(t,r,s,l){let u="",p=l;const y=r.split("").slice(0,s),A=r.split("").slice(l);return R1(this.maskTokens.slice(s,l)).run(t).fold(w=>{u=y.concat(w).concat(A).join("")}),{selection:p,value:u}}maskRemoved(t,r,s){let l="",u=s;const p=t.split("").slice(s),y=t.split("").slice(0,s).join("");return R1(this.maskTokens.slice(0,this.maskTokens.length-(t.length-s))).run(y,r).fold(w=>{u=this.adjustPosition(w,u),l=w.concat(p).join("")}),{selection:u,value:l}}adjustPosition(t,r){const s=t[r];return this.maskTokens[r].isLiteral(s)||s===this.prompt?r:r+1}maskInserted(t,r,s){let l="",u=s;const p=t.slice(0,s);return R1(this.unmaskTokens).run(p,r).chain(y=>{u=y.join("").length;const A=r.slice(u);return R1(this.maskTokens).run(y.join("")+A,r)}).fold(y=>{l=y.join("")}),{selection:u,value:l}}get maskTokenCreator(){const{prompt:t,promptPlaceholder:r}=this;return{literal:s=>(i=>new Id(o=>o.peek().char===i?(o.eat(),new ba(i,o,Ru.Literal)):new ba(i,o,Ru.Literal)))(s),mask:s=>(({prompt:i,promptPlaceholder:o})=>t=>new Id(r=>{for(;!r.eof();){const{char:s,control:l}=r.peek();if(s===l&&l===i)return r.eat(),new ba(i,r,Ru.Mask);if(t.test(s))return r.eat(),new ba(s,r,Ru.Mask);if(s===o)return r.eat(),new ba(i,r,Ru.Mask);r.eat_input()}return r.eat(),new ba(i,r,Ru.Mask)}))({prompt:t,promptPlaceholder:r})(s)}}get unmaskTokenCreator(){return{literal:t=>(i=>new Id(o=>{if(o.eof())return new ba("",o);const{char:t}=o.peek();return t===i&&o.eat(),new ba(i,o)}))(t),mask:t=>(i=>o=>new Id(t=>{for(;!t.eof();){const{char:r,control:s}=t.peek();if(r===i&&s===i)return t.eat(),new ba(r,t);if(o.test(r))return t.eat(),new ba(r,t);t.eat_input()}return t.eat(),new ba("",t)}))(this.prompt)(t)}}get rawTokenCreator(){const{prompt:t,promptPlaceholder:r,includeLiterals:s}=this;return{literal:l=>$G(s),mask:l=>HG({prompt:t,promptPlaceholder:r})}}get validationTokenCreator(){const{prompt:t}=this;return{literal:r=>$G(!1),mask:r=>HG({prompt:t,promptPlaceholder:""})}}tokenize(){kI(DI(this.rules,this.maskTokenCreator)).run(this.mask).fold((t,r)=>{this.maskTokens=t}),kI(DI(this.rules,this.unmaskTokenCreator)).run(this.mask).fold((t,r)=>{this.unmaskTokens=t}),kI(DI(this.rules,this.rawTokenCreator)).run(this.mask).fold((t,r)=>{this.rawTokens=t}),kI(DI(this.rules,this.validationTokenCreator)).run(this.mask).fold((t,r)=>{this.validationTokens=t})}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();var Wx;const Whe=Promise.resolve(null),UG="k-state-focused";let po=Wx=class{constructor(o,t,r,s,l,u,p){this.service=o,this.renderer=t,this.hostElement=r,this.ngZone=s,this.injector=l,this.changeDetector=u,this.focusableId=`k-${to()}`,this.disabled=!1,this.readonly=!1,this.hostClasses=!0,this.prompt="_",this.promptPlaceholder=" ",this.includeLiterals=!1,this.maskOnFocus=!1,this.maskValidation=!0,this.tabindex=0,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.valueChange=new n.vpe,this.focusClick=!1,this.defaultRules={"#":/[\d\s\+\-]/,"&":/[\S]/,0:/[\d]/,9:/[\d\s]/,"?":/[a-zA-Z\s]/,A:/[a-zA-Z0-9]/,C:/./,L:/[a-zA-Z]/,a:/[a-zA-Z0-9\s]/},this.isPasted=!1,this.selection=[0,0],this.handleFocus=()=>{this.focused=!0,this.maskOnFocus&&this.emptyMask&&(this.updateInput(this.service.maskRaw(this.value)),this.ngZone.runOutsideAngular(()=>{setTimeout(()=>{this.setSelection(0,0)},0)})),Ut(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()})},this.handleClick=()=>{if(this.focused&&!this.focusClick){this.focusClick=!0;const{selectionStart:y,selectionEnd:A}=this.input.nativeElement;y===A&&this.setFocusSelection()}},this.handleBlur=()=>{this.changeDetector.markForCheck(),this.focused=!1,this.focusClick=!1,this.maskOnFocus&&this.emptyMask&&this.updateInput(this.maskedValue),(Ut(this.onBlur)||I1(this.control))&&this.ngZone.run(()=>{this.onTouched(),this.onBlur.emit()})},this.onChange=y=>{},this.onTouched=()=>{},(0,mi.s)(O1),this.direction=p?"rtl":"ltr",this.updateService()}get hostDisabledClass(){return this.disabled}get rules(){return this._rules||this.defaultRules}set rules(o){this._rules=Object.assign({},this.defaultRules,o)}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}ngOnInit(){this.hostElement&&this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.control=this.injector.get(jo,null)}isEmpty(){if(this.input)return!Boolean(this.input.nativeElement.value)}handleDragDrop(){return!1}focus(){!this.input||(this.input.nativeElement.focus(),this.setFocusSelection())}blur(){!this.input||this.input.nativeElement.blur()}pasteHandler(o){const{selectionStart:t,selectionEnd:r}=o.target;r!==t&&(this.isPasted=!0,this.selection=[t,r])}inputHandler(o){const t=o.target.value,[r,s]=this.selection;if(!this.mask)return this.updateValue(t),void(this.isPasted=!1);let l;this.isPasted?(this.isPasted=!1,l=this.service.maskInRange(t.slice(r,t.length-(this.maskedValue.length-s)),this.maskedValue,r,s)):l=this.service.maskInput(t,this.maskedValue,o.target.selectionStart),this.updateInput(l.value,l.selection),this.updateValue(l.value)}ngOnChanges(o){if(o.value&&(this.value=this.normalizeValue()),!this.mask)return void this.updateInput(this.value);const t=this.extractChanges(o);if(this.updateService(t),cr("value",o)){const r=this.service.maskRaw(this.value);r!==this.maskedValue&&this.updateInput(r)}else _s(["promptPlaceholder","includeLiterals"],o)?Whe.then(()=>{this.updateValue(this.maskedValue)}):this.updateInput(this.service.maskRaw(this.value))}writeValue(o){this.value=this.normalizeValue(o),this.updateInput(this.service.maskRaw(this.value))}registerOnChange(o){this.onChange=o}registerOnTouched(o){this.onTouched=o}setDisabledState(o){this.disabled=o}validate(o){return!1!==this.maskValidation&&this.mask&&this.service.validationValue(this.maskedValue)&&-1!==this.maskedValue.indexOf(this.prompt)?{patternError:{mask:this.mask,maskedValue:this.maskedValue,value:this.value}}:null}updateValue(o){this.value=this.mask&&!this.service.validationValue(o)?"":this.service.rawValue(o),this.onChange(this.value),this.valueChange.emit(this.value)}updateInput(o="",t){this.maskedValue=o,this.renderer.setProperty(this.input.nativeElement,"value",this.maskOnFocus&&!this.focused&&this.emptyMask?"":o),void 0!==t&&this.setSelection(t,t)}extractChanges(o){return Object.keys(o).filter(t=>"rules"!==t).reduce((t,r)=>(t[r]=o[r].currentValue,t),{})}updateService(o){const t=Object.assign({includeLiterals:this.includeLiterals,mask:this.mask,prompt:this.prompt,promptPlaceholder:this.promptPlaceholder,rules:this.rules},o);this.service.update(t)}setSelection(o=this.selection[0],t=this.selection[1]){this.focused&&Rp(this.input,"setSelectionRange",o,t)}get emptyMask(){return this.service.maskRaw()===this.maskedValue}setFocusSelection(){const o=this.input.nativeElement.selectionStart,t=this.maskedValue?this.maskedValue.indexOf(this.prompt):0;t>=0&&t<o&&(this.selection=[t,t],this.setSelection())}get focused(){return this.isFocused}set focused(o){if(this.isFocused!==o&&this.hostElement){const t=this.hostElement.nativeElement;o?this.renderer.addClass(t,UG):this.renderer.removeClass(t,UG),this.isFocused=o}}normalizeValue(o=this.value){const t=Ni(o);if(t&&"string"!=typeof o){if((0,n.X6Q)())throw new Error("The MaskedTextBox component supports only string values.");return String(o)}return t?o:""}};po.\u0275fac=function(o){return new(o||po)(n.Y36(s7),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.zs3),n.Y36(n.sBO),n.Y36(nc,8))},po.\u0275cmp=n.Xpm({type:po,selectors:[["kendo-maskedtextbox"]],viewQuery:function(o,t){if(1&o&&n.Gf(mG,7),2&o){let r;n.iGM(r=n.CRH())&&(t.input=r.first)}},hostVars:7,hostBindings:function(o,t){1&o&&n.NdJ("paste",function(s){return t.pasteHandler(s)})("input",function(s){return t.inputHandler(s)}),2&o&&(n.uIk("dir",t.direction),n.ekj("k-widget",t.hostClasses)("k-maskedtextbox",t.hostClasses)("k-state-disabled",t.hostDisabledClass))},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",prompt:"prompt",promptPlaceholder:"promptPlaceholder",includeLiterals:"includeLiterals",maskOnFocus:"maskOnFocus",maskValidation:"maskValidation",tabindex:"tabindex",rules:"rules",tabIndex:"tabIndex",value:"value",title:"title",mask:"mask"},outputs:{onFocus:"focus",onBlur:"blur",valueChange:"valueChange"},exportAs:["kendoMaskedTextBox"],features:[n._Bn([s7,{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>Wx)},{multi:!0,provide:Ui,useExisting:(0,n.Gpc)(()=>Wx)},{provide:Mo,useExisting:(0,n.Gpc)(()=>Wx)}]),n.TTD],decls:2,vars:12,consts:[["type","text","autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-textbox",3,"id","tabindex","disabled","readonly","kendoEventsOutsideAngular"],["input",""]],template:function(o,t){1&o&&n._UZ(0,"input",0,1),2&o&&(n.Q6J("id",t.focusableId)("tabindex",t.tabIndex)("disabled",t.disabled)("readonly",t.readonly)("kendoEventsOutsideAngular",n.qbA(6,Ipe,t.handleFocus,t.handleBlur,t.handleClick,t.handleDragDrop,t.handleDragDrop)),n.uIk("title",t.title))},dependencies:[_a],encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"focusableId",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],po.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],po.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"title",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],po.prototype,"direction",void 0),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-maskedtextbox"),ce("design:type",Boolean)],po.prototype,"hostClasses",void 0),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],po.prototype,"hostDisabledClass",null),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"mask",void 0),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"value",void 0),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],po.prototype,"rules",null),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"prompt",void 0),ye([(0,n.IIB)(),ce("design:type",String)],po.prototype,"promptPlaceholder",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],po.prototype,"includeLiterals",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],po.prototype,"maskOnFocus",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],po.prototype,"maskValidation",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],po.prototype,"tabindex",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],po.prototype,"tabIndex",null),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],po.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],po.prototype,"onBlur",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],po.prototype,"valueChange",void 0),ye([(0,n.i9L)("input",{static:!0}),ce("design:type",n.SBq)],po.prototype,"input",void 0),ye([(0,n.L6J)("paste",["$event"]),ce("design:type",Function),ce("design:paramtypes",[Object]),ce("design:returntype",void 0)],po.prototype,"pasteHandler",null),ye([(0,n.L6J)("input",["$event"]),ce("design:type",Function),ce("design:paramtypes",[Object]),ce("design:returntype",void 0)],po.prototype,"inputHandler",null),po=Wx=ye([Mu(6,(0,n.FiY)()),Mu(6,(0,n.tBr)(nc)),ce("design:paramtypes",[s7,n.Qsj,n.SBq,n.R0b,n.zs3,n.sBO,Boolean])],po);class Khe{constructor(o){this.value=o,this.classes={"k-tick":!0}}}let YG=(()=>{let i=class{constructor(t){this.rtl=t,this.wrapperClasses="k-reset k-slider-items",this.ticks=[]}ngOnChanges(t){this.createTicks()}createTicks(){const t=xG(this.min,this.max,this.step),r=this.largeStep,s={max:this.max,min:this.min,smallStep:this.step};let l=[];for(let u=0;u<t;u++)l.push(new Khe(mhe(u,s))),r&&u%r==0&&(l[u].large=!0,l[u].classes["k-tick-large"]=!0);(this.rtl||this.vertical)&&(l=l.reverse()),l.length>0&&(Object.assign(l[0].classes,this.endTickClasses(!0)),Object.assign(l[l.length-1].classes,this.endTickClasses(!1))),this.ticks=l}endTickClasses(t){return{"k-first":t&&!this.vertical||!t&&this.vertical,"k-last":!t&&!this.vertical||t&&this.vertical}}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(nc,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoSliderTicks",""]],viewQuery:function(t,r){if(1&t&&n.Gf(Epe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.tickElements=s)}},hostVars:2,hostBindings:function(t,r){2&t&&n.Tol(r.wrapperClasses)},inputs:{tickTitle:"tickTitle",vertical:"vertical",step:"step",largeStep:"largeStep",min:"min",max:"max",labelTemplate:"labelTemplate"},features:[n.TTD],attrs:Ppe,decls:3,vars:1,consts:[["role","presentation",3,"ngClass","title",4,"ngFor","ngForOf"],["defaultLabel",""],["role","presentation",3,"ngClass","title"],["tickElement",""],[3,"ngSwitch"],["class","k-label",4,"ngSwitchCase"],[4,"ngSwitchCase"],[1,"k-label"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.YNc(0,Lpe,5,5,"li",0),n.YNc(1,Rpe,1,1,"ng-template",null,1,n.W1O)),2&t&&n.Q6J("ngForOf",r.ticks)},dependencies:[gt,Bt,Pi,zs,gc],encapsulation:2}),ye([(0,n.pfw)("class"),ce("design:type",String)],i.prototype,"wrapperClasses",void 0),ye([(0,n.IIB)(),ce("design:type",Function)],i.prototype,"tickTitle",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"vertical",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"step",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"largeStep",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"min",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],i.prototype,"max",void 0),ye([(0,n.IIB)(),ce("design:type",n.Rgc)],i.prototype,"labelTemplate",void 0),ye([(0,n.vR)("tickElement"),ce("design:type",n.n_E)],i.prototype,"tickElements",void 0),i=ye([Mu(0,(0,n.FiY)()),Mu(0,(0,n.tBr)(nc)),ce("design:paramtypes",[Boolean])],i),i})(),jG=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Mx,bs,cg,Mx,bs,cg]}),i})(),II=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{decrement:"decrement",increment:"increment",dragHandle:"dragHandle"},features:[n.qOj]}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"decrement",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"increment",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"dragHandle",void 0),i})();var l7;let F1=l7=class extends II{constructor(o){super(),this.service=o}};var c7;F1.\u0275fac=function(o){return new(o||F1)(n.Y36(Te))},F1.\u0275dir=n.lG2({type:F1,selectors:[["","kendoSliderLocalizedMessages",""]],features:[n._Bn([{provide:II,useExisting:(0,n.Gpc)(()=>l7)}]),n.qOj]}),F1=l7=ye([ce("design:paramtypes",[Te])],F1);let my=c7=class extends II{constructor(o){super(),this.service=o}get override(){return!0}};my.\u0275fac=function(o){return new(o||my)(n.Y36(Te))},my.\u0275cmp=n.Xpm({type:my,selectors:[["kendo-slider-messages"]],features:[n._Bn([{provide:II,useExisting:(0,n.Gpc)(()=>c7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),my=c7=ye([ce("design:paramtypes",[Te])],my);let ZG=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,jG]}),i})(),EI=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{dragHandleStart:"dragHandleStart",dragHandleEnd:"dragHandleEnd"},features:[n.qOj]}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"dragHandleStart",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"dragHandleEnd",void 0),i})();var d7;let B1=d7=class extends EI{constructor(o){super(),this.service=o}};var u7;B1.\u0275fac=function(o){return new(o||B1)(n.Y36(Te))},B1.\u0275dir=n.lG2({type:B1,selectors:[["","kendoSliderLocalizedMessages",""]],features:[n._Bn([{provide:EI,useExisting:(0,n.Gpc)(()=>d7)}]),n.qOj]}),B1=d7=ye([ce("design:paramtypes",[Te])],B1);let _y=u7=class extends EI{constructor(o){super(),this.service=o}get override(){return!0}};_y.\u0275fac=function(o){return new(o||_y)(n.Y36(Te))},_y.\u0275cmp=n.Xpm({type:_y,selectors:[["kendo-rangeslider-messages"]],features:[n._Bn([{provide:EI,useExisting:(0,n.Gpc)(()=>u7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),_y=u7=ye([ce("design:paramtypes",[Te])],_y);let Xhe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,jG]}),i})(),PI=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{on:"on",off:"off"},features:[n.qOj]}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"on",void 0),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"off",void 0),i})();var p7;let H1=p7=class extends PI{constructor(o){super(),this.service=o}};var h7;H1.\u0275fac=function(o){return new(o||H1)(n.Y36(Te))},H1.\u0275dir=n.lG2({type:H1,selectors:[["","kendoSwitchLocalizedMessages",""]],features:[n._Bn([{provide:PI,useExisting:(0,n.Gpc)(()=>p7)}]),n.qOj]}),H1=p7=ye([ce("design:paramtypes",[Te])],H1);let by=h7=class extends PI{constructor(o){super(),this.service=o}get override(){return!0}};by.\u0275fac=function(o){return new(o||by)(n.Y36(Te))},by.\u0275cmp=n.Xpm({type:by,selectors:[["kendo-switch-messages"]],features:[n._Bn([{provide:PI,useExisting:(0,n.Gpc)(()=>h7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),by=h7=ye([ce("design:paramtypes",[Te])],by);let ege=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,bs,cg]}),i})();var g7;let $1=g7=class extends MI{constructor(o){super(),this.service=o}};$1.\u0275fac=function(o){return new(o||$1)(n.Y36(Te))},$1.\u0275dir=n.lG2({type:$1,selectors:[["","kendoNumericTextBoxLocalizedMessages",""]],features:[n._Bn([{provide:MI,useExisting:(0,n.Gpc)(()=>g7)}]),n.qOj]}),$1=g7=ye([ce("design:paramtypes",[Te])],$1);let f7=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,bs]}),i})(),tge=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,bs]}),i})(),OI=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTextBoxSuffixTemplate",""]]}),i=ye([Mu(0,(0,n.FiY)()),ce("design:paramtypes",[n.Rgc])],i),i})(),NI=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTextBoxPrefixTemplate",""]]}),i=ye([Mu(0,(0,n.FiY)()),ce("design:paramtypes",[n.Rgc])],i),i})();var LI;let no=LI=class{constructor(o,t,r,s,l,u){this.localizationService=o,this.ngZone=t,this.changeDetector=r,this.renderer=s,this.injector=l,this.hostElement=u,this.title="",this.disabled=!1,this.readonly=!1,this.tabindex=0,this.value=null,this.selectOnFocus=!1,this.showSuccessIcon=!1,this.showErrorIcon=!1,this.clearButton=!1,this.valueChange=new n.vpe,this.inputFocus=new n.vpe,this.inputBlur=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.hostClass=!0,this._isFocused=!1,this.focusChangedProgrammatically=!1,this.handleInputFocus=()=>{this.disabled||(this.selectOnFocus&&this.value&&this.ngZone.run(()=>{setTimeout(()=>{this.selectAll()})}),Ut(this.onFocus)&&(this.isFocused||this.ngZone.run(()=>{this.onFocus.emit()})),Ut(this.inputFocus)&&(!this.focusChangedProgrammatically||this.focusChangedProgrammatically&&this.clearButtonClicked)&&this.ngZone.run(()=>{this.inputFocus.emit()}),this.ngZone.run(()=>{this.isFocused=!0}))},this.handleInputBlur=()=>{this.changeDetector.markForCheck(),(Ut(this.inputBlur)||I1(this.control))&&this.ngZone.run(()=>{this.ngTouched(),this.inputBlur.emit()})},this.handleInput=p=>{this.updateValue(p.target.value)},this.ngChange=p=>{},this.ngTouched=()=>{},(0,mi.s)(O1),this.direction=o.rtl?"rtl":"ltr"}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}get disabledClass(){return this.disabled}get isFocused(){return!this.disabled&&this._isFocused}set isFocused(o){this._isFocused=o}ngOnInit(){this.control=this.injector.get(jo,null),this.checkClearButton(),this.subscriptions=this.localizationService.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr"})}ngAfterViewInit(){const o=this.hostElement.nativeElement;let t=!1,r=!1;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(o,"focusin",()=>{this.isFocused||this.ngZone.run(()=>{this.onFocus.emit(),this.isFocused=!0})})),this.subscriptions.add(this.renderer.listen(o,"focusout",s=>{!this.isFocused||(r?(((i,o)=>{for(;i&&!o(i);)i=i.parentNode;return i})(s.relatedTarget,u=>u===this.hostElement.nativeElement)||this.handleBlur(),r=!1):!t&&!this.clearButtonClicked&&this.handleBlur())})),this.subscriptions.add(this.renderer.listen(o,"mouseenter",()=>{t=!0})),this.subscriptions.add(this.renderer.listen(o,"mouseleave",()=>{t=!1})),this.subscriptions.add(this.renderer.listen(o,"keydown",s=>{r=s.keyCode===Ie.Tab}))})}ngOnChanges(o){(o.disabled||o.readonly)&&this.checkClearButton()}ngOnDestroy(){this.subscriptions.unsubscribe()}focus(){!this.input||(this.focusChangedProgrammatically=!0,this.isFocused=!0,this.input.nativeElement.focus(),this.focusChangedProgrammatically=!1)}blur(){this.focusChangedProgrammatically=!0;const o=this.hostElement.nativeElement.querySelector(":focus");o&&o.blur(),this.isFocused=!1,this.focusChangedProgrammatically=!1}clearTitle(){return this.localizationService.get("clear")}checkClearButton(){this.showClearButton=!this.disabled&&!this.readonly&&this.clearButton&&!!this.value}clearValue(o){o&&o.preventDefault(),this.clearButtonClicked=!0,this.input.nativeElement.value="",this.input.nativeElement.focus(),this.updateValue(null),this.checkClearButton(),this.clearButtonClicked=!1}writeValue(o){this.value=o,this.checkClearButton()}registerOnChange(o){this.ngChange=o}registerOnTouched(o){this.ngTouched=o}setDisabledState(o){this.disabled=o}showErrorsInitial(){if(!this.control)return!1;const{invalid:o,dirty:t,touched:r}=this.control;return o&&(t||r)}showSuccessInitial(){if(!this.control)return!1;const{valid:o,dirty:t,touched:r}=this.control;return o&&(t||r)}get successIconClasses(){return this.successIcon?`k-text-success ${this.successIcon}`:"k-text-success k-icon k-i-check-outline"}get errorIconClasses(){return this.errorIcon?`k-text-error ${this.errorIcon}`:"k-text-error k-icon k-i-warning"}get clearButtonClasses(){return this.clearButtonIcon?this.clearButtonIcon:"k-icon k-i-close-circle"}get hasErrors(){return"initial"===this.showErrorIcon?this.showErrorsInitial():this.showErrorIcon}get isSuccessful(){return"initial"===this.showSuccessIcon?this.showSuccessInitial():this.showSuccessIcon}setSelection(o,t){this.isFocused&&Rp(this.input,"setSelectionRange",o,t)}selectAll(){this.value&&this.setSelection(0,this.value.length)}updateValue(o){qx(this.value,o)||this.ngZone.run(()=>{this.value=o,this.ngChange(o),this.valueChange.emit(o),this.checkClearButton(),this.changeDetector.markForCheck()})}handleBlur(){this.ngZone.run(()=>{this.focusChangedProgrammatically||this.onBlur.emit(),this.isFocused=!1})}};no.\u0275fac=function(o){return new(o||no)(n.Y36(Te),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(n.zs3),n.Y36(n.SBq))},no.\u0275cmp=n.Xpm({type:no,selectors:[["kendo-textbox"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,OI,5),n.Suo(r,NI,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.suffixTemplate=s.first),n.iGM(s=n.CRH())&&(t.prefixTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&n.Gf(mG,7),2&o){let r;n.iGM(r=n.CRH())&&(t.input=r.first)}},hostVars:7,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-textbox",t.hostClass)("k-state-focused",t.isFocused)("k-state-disabled",t.disabledClass))},inputs:{title:"title",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",value:"value",selectOnFocus:"selectOnFocus",showSuccessIcon:"showSuccessIcon",showErrorIcon:"showErrorIcon",clearButton:"clearButton",tabIndex:"tabIndex",successIcon:"successIcon",errorIcon:"errorIcon",clearButtonIcon:"clearButtonIcon",placeholder:"placeholder"},outputs:{valueChange:"valueChange",inputFocus:"inputFocus",inputBlur:"inputBlur",onFocus:"focus",onBlur:"blur"},exportAs:["kendoTextBox"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.textbox"},{provide:Ri,useExisting:(0,n.Gpc)(()=>LI),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>LI)}]),n.TTD],decls:10,vars:16,consts:function(){let i;return i="",[["kendoTextBoxLocalizedMessages","","clear",i],[1,"k-input-prefix"],[4,"ngIf"],[1,"k-input",3,"disabled","readonly","value","kendoEventsOutsideAngular"],["input",""],[1,"k-input-suffix"],[3,"ngClass",4,"ngIf"],["role","button","class","k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space",4,"ngIf"],[3,"ngTemplateOutlet"],[3,"ngClass"],["role","button",1,"k-clear-value",3,"tabindex","title","click","mousedown","keydown.enter","keydown.space"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1),n.YNc(2,Bpe,1,1,null,2),n.qZA(),n._UZ(3,"input",3,4),n.TgZ(5,"span",5),n.YNc(6,Hpe,1,1,"span",6),n.YNc(7,$pe,1,1,"span",6),n.YNc(8,Upe,2,4,"span",7),n.YNc(9,jpe,1,1,null,2),n.qZA()),2&o&&(n.xp6(2),n.Q6J("ngIf",t.prefixTemplate),n.xp6(1),n.Q6J("disabled",t.disabled)("readonly",t.readonly)("value",t.value)("kendoEventsOutsideAngular",n.kEZ(12,Zpe,t.handleInputFocus,t.handleInputBlur,t.handleInput)),n.uIk("tabindex",t.disabled?void 0:t.tabindex)("placeholder",t.placeholder)("title",t.title),n.xp6(3),n.Q6J("ngIf",t.hasErrors),n.xp6(1),n.Q6J("ngIf",t.isSuccessful),n.xp6(1),n.Q6J("ngIf",t.showClearButton),n.xp6(1),n.Q6J("ngIf",t.suffixTemplate))},dependencies:function(){return[gt,Ge,Pi,_a,U1]},encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"title",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],no.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],no.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Number)],no.prototype,"tabindex",void 0),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"value",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],no.prototype,"selectOnFocus",void 0),ye([(0,n.IIB)(),ce("design:type",Object)],no.prototype,"showSuccessIcon",void 0),ye([(0,n.IIB)(),ce("design:type",Object)],no.prototype,"showErrorIcon",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],no.prototype,"clearButton",void 0),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"successIcon",void 0),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"errorIcon",void 0),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"clearButtonIcon",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],no.prototype,"tabIndex",null),ye([(0,n.IIB)(),ce("design:type",String)],no.prototype,"placeholder",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],no.prototype,"valueChange",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],no.prototype,"inputFocus",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],no.prototype,"inputBlur",void 0),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],no.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],no.prototype,"onBlur",void 0),ye([(0,n.i9L)("input",{static:!0}),ce("design:type",n.SBq)],no.prototype,"input",void 0),ye([(0,n.aQ5)(OI,{static:!1}),ce("design:type",OI)],no.prototype,"suffixTemplate",void 0),ye([(0,n.aQ5)(NI,{static:!1}),ce("design:type",NI)],no.prototype,"prefixTemplate",void 0),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],no.prototype,"disabledClass",null),ye([(0,n.pfw)("class.k-textbox"),ce("design:type",Boolean)],no.prototype,"hostClass",void 0),ye([(0,n.pfw)("class.k-state-focused"),ce("design:type",Boolean),ce("design:paramtypes",[Boolean])],no.prototype,"isFocused",null),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],no.prototype,"direction",void 0),no=LI=ye([ce("design:paramtypes",[Te,n.R0b,n.sBO,n.Qsj,n.zs3,n.SBq])],no);let RI=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{clear:"clear"},features:[n.qOj]}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"clear",void 0),i})();var m7;let vy=m7=class extends RI{constructor(o){super(),this.service=o}get override(){return!0}};var _7;vy.\u0275fac=function(o){return new(o||vy)(n.Y36(Te))},vy.\u0275cmp=n.Xpm({type:vy,selectors:[["kendo-textbox-messages"]],features:[n._Bn([{provide:RI,useExisting:(0,n.Gpc)(()=>m7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),vy=m7=ye([ce("design:paramtypes",[Te])],vy);let U1=_7=class extends RI{constructor(o){super(),this.service=o}};U1.\u0275fac=function(o){return new(o||U1)(n.Y36(Te))},U1.\u0275dir=n.lG2({type:U1,selectors:[["","kendoTextBoxLocalizedMessages",""]],features:[n._Bn([{provide:RI,useExisting:(0,n.Gpc)(()=>_7)}]),n.qOj]}),U1=_7=ye([ce("design:paramtypes",[Te])],U1);let VG=(()=>{let i=class{constructor(){this.hostClass=!0}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-input-separator"],["kendo-textbox-separator"]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-input-separator",r.hostClass)},decls:0,vars:0,template:function(t,r){},encapsulation:2}),ye([(0,n.pfw)("class.k-input-separator"),ce("design:type",Boolean)],i.prototype,"hostClass",void 0),i})(),nge=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),ige=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,bs,nge,bs]}),i})();class oge{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class rge{constructor(o){this.color=o,this.openPrevented=!1}preventOpen(){this.openPrevented=!0}isOpenPrevented(){return this.openPrevented}}const Ec=(i,o,t=!0)=>{if(-1===["hex","rgba","name"].indexOf(o))throw new Error(`Unsupported color output format '${o}'. The available options are 'hex', 'rgba' or 'name'.`);if(!Ni(i))return;if("name"===o)return function lge(i,o){if(i=i.toLowerCase().trim(),Ni(ty[i]))return i;Ip(i,o)&&(i=Ip(i,o).toHex());const t=Object.keys(ty).find(r=>ty[r]===i);if(!t&&!o)throw new Error(`The provided color ${i} is not supported for 'format="name"' property.To display ${i} color, the component 'format' property shoud be set to 'hex' or 'rgba' `);return t}(i,t);const s=Ip(i.trim(),t);return Ni(s)?"hex"===o?s.toCss():s.toCssRgba():void 0},FI=(i,o=!0)=>{const t=Ip(i,o);return Ni(t)?t.toBytes():{}},Kx=i=>{const o=Lp(i.h,0,359.9),t=Lp(i.s,0,1),r=Lp(i.v,0,1),s=Lp(i.a,0,1);return CV.fromHSV(o,t,r,s).toCssRgba()},zG=i=>Kx({h:i,s:1,v:1,a:1}),Xx={basic:{colors:"000000,7f7f7f,880015,ed1c24,ff7f27,fff200,22b14c,00a2e8,3f48cc,a349a4,ffffff,c3c3c3,b97a57,ffaec9,ffc90e,efe4b0,b5e61d,99d9ea,7092be,c8bfe7",columns:10},office:{colors:"ffffff, 000000, e6e6e6, 435569, 4371c4, ed7e32, a5a4a5, febf04, 5a9bd5, 71ae48, f2f2f3, 7f7f7f, d1cece, d5dde3, dae1f4, fce5d4, deeded, fff2cc, deeaf6, e1efd9, d7d8d8, 585959, aeabab, adbaca, b4c5e7, f6caac, dbdbdb, ffe498, bcd6ee, c5e0b2, bfbfc0, 3f3f3f, 767070, 8595b1, 8fabdb, f5b183, c9c8c9, fed965, 9bc4e5, a8d08d, a5a5a6, 262625, 393939, 334050, 2e5496, c45a11, 7b7b7a, bf9000, 2f75b5, 548235, 7f7f7f, 0b0c0c, 161616, 222a34, 203764, 843d0b, 525252, 7f6000, 1d4d79, 375623",columns:10},apex:{colors:"ffffff, 000000, c9c2d1, 69676d, ceb966, 9cb084, 6bb1c9, 6585cf, 7e6bc9, a379bb, f2f2f2, 7f7f7f, f4f2f5, e0e0e2, f5f1e0, ebefe6, e1eff4, e0e6f5, e5e1f4, ece4f1, d8d8d8, 595959, e9e6ec, c2c1c5, ebe3c1, d7dfcd, c3dfe9, c1ceeb, cbc3e9, dac9e3, bfbfbf, 3f3f3f, dedae3, a4a3a8, e1d5a3, c3cfb5, a6d0de, a2b5e2, b1a6de, c7aed6, a5a5a5, 262626, 9688a5, 4e4d51, ae9638, 758c5a, 3d8da9, 365bb0, 533da9, 7d4d99, 7f7f7f, 0c0c0c, 635672, 343336, 746425, 4e5d3c, 295e70, 243c75, 372970, 533366",columns:10},austin:{colors:"ffffff, 000000, caf278, 3e3d2d, 94c600, 71685a, ff6700, 909465, 956b43, fea022, f2f2f2, 7f7f7f, f4fce4, dddcd0, efffc0, e3e1dc, ffe0cb, e8e9df, ece1d6, feecd2, d8d8d8, 595959, e9f9c9, bbb9a1, dfff82, c8c3ba, ffc299, d2d4c0, dac3ad, fed9a6, bfbfbf, 3f3f3f, dff7ae, ada598, cfff43, ada598, ffa365, bcbfa1, c8a585, fec67a, a5a5a5, 262626, a9ea25, 2e2d21, 6f9400, 544e43, bf4d00, 6c6f4b, 6f5032, d77b00, 7f7f7f, 0c0c0c, 74a50f, 1f1e16, 4a6300, 38342d, 7f3300, 484a32, 4a3521, 8f5200",columns:10},clarity:{colors:"ffffff, 292934, f3f2dc, d2533c, 93a299, ad8f67, 726056, 4c5a6a, 808da0, 79463d, f2f2f2, e7e7ec, e7e5b9, f6dcd8, e9ecea, eee8e0, e4dedb, d8dde3, e5e8ec, e9d6d3, d8d8d8, c4c4d1, d5d185, edbab1, d3d9d6, ded2c2, c9beb8, b2bcc8, ccd1d9, d3aea7, bfbfbf, 8a8aa3, aca73b, e4978a, bec7c1, cdbba3, af9e94, 8c9bac, b2bac6, bd857c, a5a5a5, 56566e, 56531d, a43925, 6b7c72, 866b48, 554840, 39434f, 5c697b, 5a342d, 7f7f7f, 3b3b4b, 22210b, 6d2619, 47534c, 594730, 39302b, 262d35, 3d4652, 3c231e",columns:10},slipstream:{colors:"ffffff, 000000, b4dcfa, 212745, 4e67c8, 5eccf3, a7ea52, 5dceaf, ff8021, f14124, f2f2f2, 7f7f7f, 8bc9f7, c7cce4, dbe0f4, def4fc, edfadc, def5ef, ffe5d2, fcd9d3, d8d8d8, 595959, 4facf3, 909aca, b8c2e9, beeafa, dbf6b9, beebdf, ffcca6, f9b3a7, bfbfbf, 3f3f3f, 0d78c9, 5967af, 94a3de, 9ee0f7, caf297, 9de1cf, ffb279, f68d7b, a5a5a5, 262626, 063c64, 181d33, 31479f, 11b2eb, 81d319, 34ac8b, d85c00, c3260c, 7f7f7f, 0c0c0c, 021828, 101322, 202f6a, 0b769c, 568c11, 22725c, 903d00, 821908",columns:10},metro:{colors:"ffffff, 000000, d6ecff, 4e5b6f, 7fd13b, ea157a, feb80a, 00addc, 738ac8, 1ab39f, f2f2f2, 7f7f7f, a7d6ff, d9dde4, e5f5d7, fad0e4, fef0cd, c5f2ff, e2e7f4, c9f7f1, d8d8d8, 595959, 60b5ff, b3bcca, cbecb0, f6a1c9, fee29c, 8be6ff, c7d0e9, 94efe3, bfbfbf, 3f3f3f, 007dea, 8d9baf, b2e389, f272af, fed46b, 51d9ff, aab8de, 5fe7d5, a5a5a5, 262626, 003e75, 3a4453, 5ea226, af0f5b, c58c00, 0081a5, 425ea9, 138677, 7f7f7f, 0c0c0c, 00192e, 272d37, 3f6c19, 750a3d, 835d00, 00566e, 2c3f71, 0c594f",columns:10},flow:{colors:"ffffff, 000000, dbf5f9, 04617b, 0f6fc6, 009dd9, 0bd0d9, 10cf9b, 7cca62, a5c249, f2f2f2, 7f7f7f, b2e9f2, b4ecfc, c7e2fa, c4eeff, c9fafc, c9faed, e4f4df, edf2da, d8d8d8, 595959, 76d9e8, 6adafa, 90c6f6, 89deff, 93f5f9, 94f6db, cae9c0, dbe6b6, bfbfbf, 3f3f3f, 21b2c8, 20c8f7, 59a9f2, 4fceff, 5df0f6, 5ff2ca, b0dfa0, c9da91, a5a5a5, 262626, 105964, 02485c, 0b5394, 0075a2, 089ca2, 0b9b74, 54a838, 7e9532, 7f7f7f, 0c0c0c, 062328, 01303d, 073763, 004e6c, 05686c, 07674d, 387025, 546321",columns:10},hardcover:{colors:"ffffff, 000000, ece9c6, 895d1d, 873624, d6862d, d0be40, 877f6c, 972109, aeb795, f2f2f2, 7f7f7f, e1dca5, f2e0c6, f0d0c9, f6e6d5, f5f2d8, e7e5e1, fbc7bc, eef0e9, d8d8d8, 595959, d0c974, e6c28d, e2a293, eeceaa, ece5b2, cfccc3, f78f7a, dee2d4, bfbfbf, 3f3f3f, a29a36, daa454, d4735e, e6b681, e2d88c, b7b2a5, f35838, ced3bf, a5a5a5, 262626, 514d1b, 664515, 65281a, a2641f, a39428, 655f50, 711806, 879464, 7f7f7f, 0c0c0c, 201e0a, 442e0e, 431b11, 6c4315, 6d621a, 433f35, 4b1004, 5a6243",columns:10},trek:{colors:"ffffff, 000000, fbeec9, 4e3b30, f0a22e, a5644e, b58b80, c3986d, a19574, c17529, f2f2f2, 7f7f7f, f7e09e, e1d6cf, fcecd5, eddfda, f0e7e5, f3eae1, ece9e3, f5e3d1, d8d8d8, 595959, f3cc5f, c4ad9f, f9d9ab, dcc0b6, e1d0cc, e7d5c4, d9d4c7, ebc7a3, bfbfbf, 3f3f3f, d29f0f, a78470, f6c781, cba092, d2b9b2, dbc1a7, c6bfab, e1ac76, a5a5a5, 262626, 694f07, 3a2c24, c87d0e, 7b4b3a, 926255, a17242, 7b7153, 90571e, 7f7f7f, 0c0c0c, 2a1f03, 271d18, 855309, 523226, 614138, 6b4c2c, 524b37, 603a14",columns:10},verve:{colors:"ffffff, 000000, d2d2d2, 666666, ff388c, e40059, 9c007f, 68007f, 005bd3, 00349e, f2f2f2, 7f7f7f, bdbdbd, e0e0e0, ffd7e8, ffc6dc, ffb8f1, f1b2ff, c3dcff, b8cfff, d8d8d8, 595959, 9d9d9d, c1c1c1, ffafd1, ff8eba, ff71e4, e365ff, 87baff, 72a0ff, bfbfbf, 3f3f3f, 696969, a3a3a3, ff87ba, ff5597, ff2ad7, d519ff, 4b98ff, 2b71ff, a5a5a5, 262626, 343434, 4c4c4c, e90062, ab0042, 75005f, 4e005f, 00449e, 002676, 7f7f7f, 0c0c0c, 151515, 333333, 9b0041, 72002c, 4e003f, 34003f, 002d69, 00194f",columns:10},monochrome:{colors:"000000, 1a1a1a, 333333, 4d4d4d, 666666, 808080, 999999, b3b3b3, cccccc, e6e6e6, f2f2f2, ffffff",columns:12},accessible:{colors:"black, grey, darkred, red, darkorange, gold, green, blue, darkblue, purple, white, darkgrey, saddlebrown, pink, orange, yellow, lightgreen, lightskyblue, lightblue, mediumpurple",columns:10}};var BI;let uge=0,Io=BI=class{constructor(o,t){this.popupService=o,this.hostClasses=!0,this.focusableId="k-colorpicker-"+uge++,this.view="gradient",this.readonly=!1,this.disabled=!1,this.format="rgba",this.valueChange=new n.vpe,this.open=new n.vpe,this.close=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.activeColorClick=new n.vpe,this._tabindex=0,this._popupSettings={animate:!0},this._paletteSettings={},this._gradientSettings={opacity:!0,clearButton:!1},this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},(0,mi.s)(O1),this.dynamicRTLSubscription=t.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr"})}set value(o){this._value=Ec(o,this.format)}get value(){return this._value}set popupSettings(o){this._popupSettings=Object.assign(this._popupSettings,o)}get popupSettings(){return this._popupSettings}set paletteSettings(o){this._paletteSettings=Object.assign(this._paletteSettings,o)}get paletteSettings(){return this._paletteSettings}set gradientSettings(o){this._gradientSettings=Object.assign(this._gradientSettings,o)}get gradientSettings(){return this._gradientSettings}set tabindex(o){const t=Number(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?void 0:this._tabindex}get isOpen(){return Ni(this.popupRef)}get iconStyles(){return this.iconClass?this.iconClass:this.icon?`k-icon k-i-${this.icon}`:void 0}ngOnInit(){const t=this._paletteSettings.palette;this._paletteSettings={palette:t||("name"!==this.format?"office":"accessible"),tileSize:this._paletteSettings.tileSize||24,columns:this._paletteSettings.columns||("string"==typeof t&&Xx[t]?Xx[t].columns:void 0)||10}}ngOnChanges(o){o.format&&"name"===o.format.currentValue&&(this.view="palette"),"gradient"===this.view&&this.gradientSettings.opacity&&(this.format="rgba",this.value=Ec(this.value,this.format))}ngOnDestroy(){this.closePopup(),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}handleWrapperClick(){this.toggleWithEvents(!this.isOpen),this.focus()}handleActiveColorClick(){this.focus();const o=new rge(this.value);this.activeColorClick.emit(o),(!o.isOpenPrevented()||this.isOpen)&&this.handleWrapperClick()}focus(){this.disabled||this.wrapper.nativeElement.focus()}handleWrapperFocus(){Ni(this.palette)&&this.palette.nativeElement.focus(),!this.isFocused&&(this.isFocused=!0,this.onFocus.emit())}blur(){this.wrapper.nativeElement.blur()}handleWrapperBlur(){this.isOpen||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched())}reset(){!Ni(this.value)||(this._value=void 0,this.notifyNgChanged(void 0))}toggle(o){this.disabled||this.readonly||(this.closePopup(),(o=Ni(o)?o:!this.isOpen)&&this.openPopup())}handleValueChange(o,t){const r=Ec(o,this.format),s=r!==this.value;t&&(this.toggleWithEvents(!1),this.focus()),s&&(this.value=r,this.valueChange.emit(r),this.notifyNgChanged(r))}handlePopupBlur(o){const t=this.popupRef.popupElement.contains(o.relatedTarget);!this.isFocused||o.relatedTarget===this.wrapper.nativeElement||t||(this.isFocused=!1,this.onBlur.emit(),this.notifyNgTouched(),this.toggleWithEvents(!1))}writeValue(o){this.value=o}registerOnChange(o){this.notifyNgChanged=o}registerOnTouched(o){this.notifyNgTouched=o}setDisabledState(o){this.disabled=o}handleWrapperKeyDown(o){(o.keyCode===Ie.ArrowDown||o.keyCode===Ie.Enter)&&(o.preventDefault(),this.toggleWithEvents(!0))}handlePopupKeyDown(o){(o===Ie.Tab||o===Ie.Escape)&&(this.toggleWithEvents(!1),this.wrapper.nativeElement.focus())}isEmpty(){return!1}toggleWithEvents(o){if(this.disabled||this.readonly||this.isOpen===o)return;const r=new oge;o?this.open.emit(r):this.close.emit(r),r.isDefaultPrevented()||this.toggle(o)}openPopup(){const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.popupSettings.appendTo,popupAlign:{horizontal:o,vertical:"top"},anchorAlign:{horizontal:o,vertical:"bottom"},popupClass:"k-colorpicker-popup",content:this.popupTemplate,positionMode:"absolute"}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.toggleWithEvents(!1),this.isOpen||this.wrapper.nativeElement.focus({preventScroll:!0})})}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null,this.palette=null)}};Io.\u0275fac=function(o){return new(o||Io)(n.Y36(Do),n.Y36(Te))},Io.\u0275cmp=n.Xpm({type:Io,selectors:[["kendo-colorpicker"]],viewQuery:function(o,t){if(1&o&&(n.Gf(Vpe,5,n.SBq),n.Gf(zpe,7,n.s_b),n.Gf(gG,7),n.Gf(Gpe,7)),2&o){let r;n.iGM(r=n.CRH())&&(t.palette=r.first),n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first)}},hostVars:5,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-widget",t.hostClasses)("k-colorpicker",t.hostClasses))},inputs:{focusableId:"focusableId",view:"view",readonly:"readonly",disabled:"disabled",format:"format",value:"value",popupSettings:"popupSettings",paletteSettings:"paletteSettings",gradientSettings:"gradientSettings",tabindex:"tabindex",icon:"icon",iconClass:"iconClass"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur",activeColorClick:"activeColorClick"},features:[n._Bn([{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>BI)},{provide:Mo,useExisting:(0,n.Gpc)(()=>BI)},Te,{provide:gn,useValue:"kendo.colorpicker"}]),n.TTD],decls:10,vars:9,consts:[["role","listbox",3,"ngClass","id","focus","blur","mousedown","keydown"],["wrapper",""],["class","k-selected-color",3,"background-color","click",4,"ngIf"],["class","k-tool-icon",3,"ngClass","click",4,"ngIf"],[1,"k-select",3,"click"],[1,"k-icon","k-i-arrow-s"],["popupTemplate",""],["container",""],[1,"k-selected-color",3,"click"],["class","k-icon k-i-line",4,"ngIf"],[1,"k-icon","k-i-line"],[1,"k-tool-icon",3,"ngClass","click"],[1,"k-selected-color"],["kendoFocusOnDomReady","",3,"value","format","opacity","clearButton","focusout","valueChange","keydown",4,"ngIf"],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown",4,"ngIf"],["kendoFocusOnDomReady","",3,"value","format","opacity","clearButton","focusout","valueChange","keydown"],["kendoFocusOnDomReady","",3,"palette","columns","tileSize","format","value","blur","cellSelection","mousedown","keydown"],["palette",""]],template:function(o,t){1&o&&(n.TgZ(0,"span",0,1),n.NdJ("focus",function(){return t.handleWrapperFocus()})("blur",function(){return t.handleWrapperBlur()})("mousedown",function(s){return s.preventDefault()})("keydown",function(s){return t.handleWrapperKeyDown(s)}),n.YNc(2,Jpe,2,3,"span",2),n.YNc(3,Qpe,2,3,"span",3),n.TgZ(4,"span",4),n.NdJ("click",function(){return t.handleWrapperClick()}),n._UZ(5,"span",5),n.qZA()(),n.YNc(6,Xpe,2,2,"ng-template",null,6,n.W1O),n.GkF(8,null,7)),2&o&&(n.Q6J("ngClass",n.WLB(6,ehe,t.disabled,t.isFocused))("id",t.focusableId),n.uIk("aria-expanded",t.isOpen)("tabindex",t.tabindex),n.xp6(2),n.Q6J("ngIf",!t.iconStyles),n.xp6(1),n.Q6J("ngIf",t.iconStyles))},dependencies:function(){return[gt,Ge,ur,Pr,QG]},encapsulation:2}),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-colorpicker"),ce("design:type",Boolean)],Io.prototype,"hostClasses",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],Io.prototype,"direction",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Io.prototype,"focusableId",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Io.prototype,"view",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Io.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Io.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Io.prototype,"format",void 0),ye([(0,n.IIB)(),ce("design:type",String),ce("design:paramtypes",[String])],Io.prototype,"value",null),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],Io.prototype,"popupSettings",null),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],Io.prototype,"paletteSettings",null),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],Io.prototype,"gradientSettings",null),ye([(0,n.IIB)(),ce("design:type",String)],Io.prototype,"icon",void 0),ye([(0,n.IIB)(),ce("design:type",Object)],Io.prototype,"iconClass",void 0),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],Io.prototype,"tabindex",null),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Io.prototype,"valueChange",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Io.prototype,"open",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Io.prototype,"close",void 0),ye([(0,n.r_U)("focus"),ce("design:type",n.vpe)],Io.prototype,"onFocus",void 0),ye([(0,n.r_U)("blur"),ce("design:type",n.vpe)],Io.prototype,"onBlur",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Io.prototype,"activeColorClick",void 0),ye([(0,n.i9L)("container",{read:n.s_b,static:!0}),ce("design:type",n.s_b)],Io.prototype,"container",void 0),ye([(0,n.i9L)("wrapper",{static:!0}),ce("design:type",n.SBq)],Io.prototype,"wrapper",void 0),ye([(0,n.i9L)("popupTemplate",{static:!0}),ce("design:type",n.Rgc)],Io.prototype,"popupTemplate",void 0),ye([(0,n.i9L)("palette",{read:n.SBq,static:!1}),ce("design:type",n.SBq)],Io.prototype,"palette",void 0),Io=BI=ye([ce("design:paramtypes",[Do,Te])],Io);let b7=(()=>{let i=class{constructor(){this.colorRows=[]}setColorMatrix(t,r){if(this.colorRows=[],Ni(t)&&t.length){r=r||t.length;for(let s=0;s<t.length;s+=r){const l=t.slice(s,r+s);this.colorRows.push(l)}}}getCellCoordsFor(t){if(Ni(t))for(let r=0;r<this.colorRows.length;r++)for(let s=0;s<this.colorRows[r].length;s++)if(this.colorRows[r][s]===t)return{row:r,col:s}}getColorAt(t){if(Ni(t)&&Ni(this.colorRows[t.row]))return this.colorRows[t.row][t.col]}getNextCell(t,r,s){if(!(Ni(t)&&Ni(t.row)&&Ni(t.col)))return{row:0,col:0};const l=this.clampIndex(t.row+s,this.colorRows.length-1);return{row:l,col:this.clampIndex(t.col+r,this.colorRows[l].length-1)}}clampIndex(t,r){return t<0?0:t>r?r:t}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();var HI;let gge=0,ur=HI=class{constructor(o,t){this.service=o,this.id="k-colorpalette-"+gge++,this.format="hex",this.tileSize={width:24,height:24},this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.cellSelection=new n.vpe,this.hostClasses=!0,this._tabindex=0,this.notifyNgTouched=()=>{},this.notifyNgChanged=()=>{},this.dynamicRTLSubscription=t.changes.subscribe(({rtl:r})=>{this.direction=r?"rtl":"ltr"})}get paletteId(){return this.id}set value(o){this._value=Ec(o,this.format)}get value(){return this._value}set columns(o){this._columns=o>1?o:1}get columns(){return this._columns}set palette(o){Ni(o)||(o="office"),"string"==typeof o&&Ni(Xx[o])&&(this.columns=this.columns||Xx[o].columns,o=Xx[o].colors);const t="string"==typeof o?o.split(","):o;this._palette=t.map(r=>Ec(r,this.format,!1))}get palette(){return this._palette}set tabindex(o){const t=Number(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?void 0:this._tabindex}get tileLayout(){return"number"!=typeof this.tileSize?this.tileSize:{width:this.tileSize,height:this.tileSize}}get colorRows(){return this.service.colorRows}get hostTabindex(){return this.tabindex}get disabledClass(){return this.disabled}ngOnInit(){if(0===this.colorRows.length){const o="name"!==this.format?"office":"accessible";this.palette=this.palette||o,this.setRows(),this.focusedCell=this.service.getCellCoordsFor(this.value)}}ngOnDestroy(){this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngOnChanges(o){(o.palette||o.columns)&&this.setRows(),(o.palette||o.value||o.columns)&&(this.focusedCell=this.service.getCellCoordsFor(this.value))}handleKeydown(o){const t="rtl"===this.direction;switch(o.keyCode){case Ie.ArrowDown:this.handleCellNavigation(0,1);break;case Ie.ArrowUp:this.handleCellNavigation(0,-1);break;case Ie.ArrowRight:this.handleCellNavigation(t?-1:1,0);break;case Ie.ArrowLeft:this.handleCellNavigation(t?1:-1,0);break;case Ie.Enter:this.handleEnter();break;default:return}o.preventDefault()}handleHostBlur(){this.notifyNgTouched()}handleCellSelection(o,t){if(this.readonly)return;this.focusedCell=t;const r=Ec(o,this.format,!1);this.cellSelection.emit(r),this.value!==r&&(this.value=r,this.valueChange.emit(r),this.notifyNgChanged(r)),this.selection!==r&&(this.selection=r,this.selectionChange.emit(r))}writeValue(o){this.value=o,this.focusedCell=this.service.getCellCoordsFor(this.value)}registerOnChange(o){this.notifyNgChanged=o}registerOnTouched(o){this.notifyNgTouched=o}setDisabledState(o){this.disabled=o}isEmpty(){return!1}reset(){this.focusedCell=null,Ni(this.value)&&(this._value=void 0,this.notifyNgChanged(void 0))}setRows(){!Ni(this.palette)||(this.columns=this.columns||10,this.service.setColorMatrix(this.palette,this.columns))}handleCellNavigation(o,t){if(this.readonly)return;this.focusedCell=this.service.getNextCell(this.focusedCell,o,t);const r=this.service.getColorAt(this.focusedCell);this.selection!==r&&(this.selection=r,this.selectionChange.emit(r))}handleEnter(){if(!Ni(this.focusedCell))return;const o=this.service.getColorAt(this.focusedCell);this.handleCellSelection(o,this.focusedCell)}};var $I;ur.\u0275fac=function(o){return new(o||ur)(n.Y36(b7),n.Y36(Te))},ur.\u0275cmp=n.Xpm({type:ur,selectors:[["kendo-colorpalette"]],hostVars:9,hostBindings:function(o,t){1&o&&n.NdJ("keydown",function(s){return t.handleKeydown(s)})("blur",function(){return t.handleHostBlur()}),2&o&&(n.uIk("dir",t.direction)("id",t.paletteId)("tabindex",t.hostTabindex),n.ekj("k-widget",t.hostClasses)("k-colorpalette",t.hostClasses)("k-state-disabled",t.disabledClass))},inputs:{id:"id",format:"format",tileSize:"tileSize",value:"value",columns:"columns",palette:"palette",tabindex:"tabindex",disabled:"disabled",readonly:"readonly"},outputs:{selectionChange:"selectionChange",valueChange:"valueChange",cellSelection:"cellSelection"},features:[n._Bn([{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>HI)},{provide:Mo,useExisting:(0,n.Gpc)(()=>HI)},b7,Te,{provide:gn,useValue:"kendo.colorpalette"}]),n.TTD],decls:4,vars:1,consts:[["role","grid"],["role","presentation",1,"k-palette","k-reset"],["role","row",4,"ngFor","ngForOf"],["role","row"],["class","k-item",3,"k-state-selected","ngStyle","click",4,"ngFor","ngForOf"],[1,"k-item",3,"ngStyle","click"]],template:function(o,t){1&o&&(n.TgZ(0,"div",0)(1,"table",1)(2,"tbody"),n.YNc(3,ihe,2,1,"tr",2),n.qZA()()()),2&o&&(n.xp6(3),n.Q6J("ngForOf",t.colorRows))},dependencies:[Bt,uo],encapsulation:2}),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],ur.prototype,"direction",void 0),ye([(0,n.pfw)("attr.id"),ce("design:type",String),ce("design:paramtypes",[])],ur.prototype,"paletteId",null),ye([(0,n.IIB)(),ce("design:type",String)],ur.prototype,"id",void 0),ye([(0,n.IIB)(),ce("design:type",String)],ur.prototype,"format",void 0),ye([(0,n.IIB)(),ce("design:type",String),ce("design:paramtypes",[String])],ur.prototype,"value",null),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],ur.prototype,"columns",null),ye([(0,n.IIB)(),ce("design:type",Object),ce("design:paramtypes",[Object])],ur.prototype,"palette",null),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],ur.prototype,"tabindex",null),ye([(0,n.IIB)(),ce("design:type",Boolean)],ur.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],ur.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Object)],ur.prototype,"tileSize",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],ur.prototype,"selectionChange",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],ur.prototype,"valueChange",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],ur.prototype,"cellSelection",void 0),ye([(0,n.pfw)("attr.tabindex"),ce("design:type",Number),ce("design:paramtypes",[])],ur.prototype,"hostTabindex",null),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-colorpalette"),ce("design:type",Boolean)],ur.prototype,"hostClasses",void 0),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],ur.prototype,"disabledClass",null),ye([(0,n.L6J)("keydown",["$event"]),ce("design:type",Function),ce("design:paramtypes",[Object]),ce("design:returntype",void 0)],ur.prototype,"handleKeydown",null),ye([(0,n.L6J)("blur"),ce("design:type",Function),ce("design:paramtypes",[]),ce("design:returntype",void 0)],ur.prototype,"handleHostBlur",null),ur=HI=ye([ce("design:paramtypes",[b7,Te])],ur);let _ge=0,Pr=$I=class{constructor(o,t,r,s,l){this.host=o,this.ngZone=t,this.renderer=r,this.cdr=s,this.hostClasses=!0,this.id="k-colorgradient-"+_ge++,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.clearButton=!1,this.valueChange=new n.vpe,this.backgroundColor="rgba(255, 0, 0, 1)",this.hsva={},this.format="rgba",this._tabindex=0,this.listeners=[],this.notifyNgChanged=()=>{},this.notifyNgTouched=()=>{},this.dynamicRTLSubscription=l.changes.subscribe(({rtl:u})=>{this.direction=u?"rtl":"ltr"})}get disabledClass(){return this.disabled}get hostTabindex(){return this.tabindex}get gradientId(){return this.id}set value(o){this._value=Ec(o,this.format)}get value(){return this._value}set tabindex(o){const t=Number(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?void 0:this._tabindex}get isFocused(){return!(!Dt()||!Ni(this.host))&&(this.host.nativeElement===document.activeElement||this.host.nativeElement.contains(document.activeElement))}get alphaSliderValue(){if(Ni(this.hsva)&&Ni(this.hsva.a))return 100*this.hsva.a}get gradientRect(){return this.gradientWrapper.nativeElement.getBoundingClientRect()}ngAfterViewInit(){this.updateUI(),this.cdr.detectChanges(),this.addEventListeners()}ngOnChanges(o){cr("value",o)&&!this.isFocused&&this.updateUI()}ngOnDestroy(){this.listeners.forEach(o=>o()),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}focus(){this.disabled||this.host.nativeElement.focus()}reset(){this.handleValueChange(void 0),this.updateUI()}handleDragPress(o){this.disabled||this.readonly||!Ni(o.originalEvent)||(this.focus(),o.originalEvent.preventDefault())}onHandleDrag(o){this.disabled||this.readonly||(this.renderer.addClass(this.gradientWrapper.nativeElement,"k-dragging"),this.changePosition(o))}onHandleRelease(){this.disabled||this.readonly||this.renderer.removeClass(this.gradientWrapper.nativeElement,"k-dragging")}changePosition(o){this.disabled||this.readonly||this.ngZone.run(()=>this.moveDragHandle(o))}handleHueSliderChange(o){this.handleValueChange(Kx(this.hsva)),this.backgroundColor=zG(o),this.setAlphaSliderBackground(this.backgroundColor)}handleAlphaSliderChange(o){this.hsva.a=o/100,this.handleValueChange(Kx(this.hsva))}handleInputsValueChange(o){const t=Ec(o,this.format);this.value!==t&&(this.handleValueChange(t),this.updateUI())}writeValue(o){this.value=o,Ni(this.gradientWrapper)&&this.updateUI()}registerOnChange(o){this.notifyNgChanged=o}registerOnTouched(o){this.notifyNgTouched=o}setDisabledState(o){this.disabled=o}isEmpty(){return!1}moveDragHandle(o){const t=o.clientX-this.gradientRect.left,s=Lp(o.clientY-this.gradientRect.top,0,this.gradientRect.height),l=Lp(t,0,this.gradientRect.width);this.setDragHandleElementPosition(s,l),this.hsva.s=l/this.gradientRect.width,this.hsva.v=1-s/this.gradientRect.height,this.handleValueChange(Kx(this.hsva)),this.setAlphaSliderBackground(Kx(Object.assign({},this.hsva,{a:1})))}updateUI(){Dt()&&(this.hsva=this.value?((i,o=!0)=>{const t=Ip(this.value,o);return Ni(t)?t.toHSV():{}})():{h:0,s:0,v:1,a:1},this.setDragHandleElementPosition((1-this.hsva.v)*this.gradientRect.height,this.hsva.s*this.gradientRect.width),this.backgroundColor=zG(this.hsva.h),this.setAlphaSliderBackground(this.backgroundColor))}handleValueChange(o){this.value!==o&&(this.value=o,this.valueChange.emit(o),this.notifyNgChanged(o))}setDragHandleElementPosition(o,t){const r=this.dragHandle.nativeElement;this.renderer.setStyle(r,"top",`${o}px`),this.renderer.setStyle(r,"left",`${t}px`)}setAlphaSliderBackground(o){Ni(this.alphaSlider)&&this.renderer.setStyle(this.alphaSlider.track.nativeElement,"background",`linear-gradient(to top, transparent, ${o})`)}addEventListeners(){this.ngZone.runOutsideAngular(()=>{const o=this.renderer.listen(this.host.nativeElement,"focusout",t=>{!((i,o)=>i&&o&&(i===o||i.contains(o)))(this.host.nativeElement,t.relatedTarget)&&(i=>i&&i.nativeElement&&((i,o)=>Boolean((i=>String(i).trim().split(" "))(i.className).find(t=>t===o)))(i.nativeElement,"ng-untouched"))(this.host)&&this.ngZone.run(()=>this.notifyNgTouched())});this.listeners.push(o)})}};Pr.\u0275fac=function(o){return new(o||Pr)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(Te))},Pr.\u0275cmp=n.Xpm({type:Pr,selectors:[["kendo-colorgradient"]],viewQuery:function(o,t){if(1&o&&(n.Gf(ohe,5),n.Gf(rhe,5),n.Gf(ahe,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.alphaSlider=r.first),n.iGM(r=n.CRH())&&(t.gradientWrapper=r.first),n.iGM(r=n.CRH())&&(t.dragHandle=r.first)}},hostVars:9,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction)("tabindex",t.hostTabindex)("id",t.gradientId),n.ekj("k-widget",t.hostClasses)("k-flatcolorpicker",t.hostClasses)("k-state-disabled",t.disabledClass))},inputs:{id:"id",opacity:"opacity",disabled:"disabled",readonly:"readonly",clearButton:"clearButton",format:"format",value:"value",tabindex:"tabindex"},outputs:{valueChange:"valueChange"},features:[n._Bn([{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>$I)},{provide:Mo,useExisting:(0,n.Gpc)(()=>$I)},Te,{provide:gn,useValue:"kendo.colorgradient"}]),n.TTD],decls:11,vars:21,consts:[[1,"k-hbox","k-hsv-wrap"],[1,"k-hsv-rectangle"],["kendoDraggable","",1,"k-hsv-gradient",3,"click","kendoPress","kendoDrag","kendoRelease"],["gradientWrapper",""],[1,"k-draghandle"],["dragHandle",""],["class","k-clear-color k-button k-bare k-button-icon",3,"click",4,"ngIf"],[1,"k-hue-slider",3,"disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["class","k-alpha-slider",3,"disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange",4,"ngIf"],[3,"opacity","value","disabled","readonly","valueChange"],[1,"k-clear-color","k-button","k-bare","k-button-icon",3,"click"],[1,"k-icon","k-i-reset-color"],[1,"k-alpha-slider",3,"disabled","readonly","showButtons","tickPlacement","vertical","min","max","smallStep","largeStep","value","valueChange"],["alphaSlider",""]],template:function(o,t){1&o&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2,3),n.NdJ("click",function(s){return t.changePosition(s)})("kendoPress",function(s){return t.handleDragPress(s)})("kendoDrag",function(s){return t.onHandleDrag(s)})("kendoRelease",function(){return t.onHandleRelease()}),n._UZ(4,"div",4,5),n.qZA()(),n.TgZ(6,"div"),n.YNc(7,she,2,0,"span",6),n.TgZ(8,"kendo-slider",7),n.NdJ("valueChange",function(s){return t.hsva.h=s})("valueChange",function(s){return t.handleHueSliderChange(s)}),n.qZA(),n.YNc(9,lhe,2,10,"kendo-slider",8),n.qZA()(),n.TgZ(10,"kendo-colorinput",9),n.NdJ("valueChange",function(s){return t.handleInputsValueChange(s)}),n.qZA()),2&o&&(n.xp6(1),n.Udp("background-color",t.backgroundColor),n.xp6(5),n.Gre("k-hbox k-sliders-wrap ",t.clearButton?"k-sliders-wrap-clearable":"",""),n.xp6(1),n.Q6J("ngIf",t.clearButton),n.xp6(1),n.Q6J("disabled",t.disabled)("readonly",t.readonly)("showButtons",!1)("tickPlacement","none")("vertical",!0)("min",0)("max",360)("smallStep",5)("largeStep",10)("value",t.hsva.h),n.xp6(1),n.Q6J("ngIf",t.opacity&&"rgba"===t.format),n.xp6(1),n.Q6J("opacity",t.opacity)("value",t.value)("disabled",t.disabled)("readonly",t.readonly))},dependencies:function(){return[es,Ge,kp,JG]},encapsulation:2}),ye([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-flatcolorpicker"),ce("design:type",Boolean)],Pr.prototype,"hostClasses",void 0),ye([(0,n.pfw)("class.k-state-disabled"),ce("design:type",Boolean),ce("design:paramtypes",[])],Pr.prototype,"disabledClass",null),ye([(0,n.pfw)("attr.tabindex"),ce("design:type",Number),ce("design:paramtypes",[])],Pr.prototype,"hostTabindex",null),ye([(0,n.pfw)("attr.id"),ce("design:type",String),ce("design:paramtypes",[])],Pr.prototype,"gradientId",null),ye([(0,n.IIB)(),ce("design:type",String)],Pr.prototype,"id",void 0),ye([(0,n.pfw)("attr.dir"),ce("design:type",String)],Pr.prototype,"direction",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Pr.prototype,"opacity",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Pr.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Pr.prototype,"readonly",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],Pr.prototype,"clearButton",void 0),ye([(0,n.IIB)(),ce("design:type",String),ce("design:paramtypes",[String])],Pr.prototype,"value",null),ye([(0,n.IIB)(),ce("design:type",Number),ce("design:paramtypes",[Number])],Pr.prototype,"tabindex",null),ye([(0,n.r_U)(),ce("design:type",n.vpe)],Pr.prototype,"valueChange",void 0),ye([(0,n.IIB)(),ce("design:type",String)],Pr.prototype,"format",void 0),ye([(0,n.i9L)("alphaSlider",{static:!1}),ce("design:type",es)],Pr.prototype,"alphaSlider",void 0),ye([(0,n.i9L)("gradientWrapper",{static:!1}),ce("design:type",n.SBq)],Pr.prototype,"gradientWrapper",void 0),ye([(0,n.i9L)("dragHandle",{static:!1}),ce("design:type",n.SBq)],Pr.prototype,"dragHandle",void 0),Pr=$I=ye([ce("design:paramtypes",[n.SBq,n.R0b,n.Qsj,n.sBO,Te])],Pr);let JG=(()=>{let i=class{constructor(t){this.host=t,this.opacity=!0,this.disabled=!1,this.readonly=!1,this.valueChange=new n.vpe,this.colorInputClass=!0,this.rgba={}}get isFocused(){if(!Dt()||!Ni(this.host))return!1;const t=document.activeElement;return this.host.nativeElement.contains(t)}get rgbaInputValid(){return Object.keys(this.rgba).every(t=>Ni(this.rgba[t]))}ngOnChanges(t){Ni(t.value)&&!this.isFocused&&(this.hex=Ec(this.value,"hex"),this.rgba=FI(this.value),this.rgba.a=Ec(this.value,"rgba")?this.rgba.a:1)}handleRgbaValueChange(){const t=(i=>{const o=Lp(i.r,0,255),t=Lp(i.g,0,255),r=Lp(i.b,0,255),s=Lp(i.a,0,1);return CV.fromBytes(o,t,r,s).toCssRgba()})(this.rgba);!this.rgbaInputValid||t===this.value||(this.value=t,this.rgba=FI(this.value),this.hex=Ec(t,"hex"),this.valueChange.emit(t))}handleHexValueChange(t){this.hex=t;const r=Ec(t,"rgba");!Ni(r)||r===this.value||(this.value=r,this.rgba=FI(r),this.valueChange.emit(r))}handleRgbaInputBlur(){this.rgbaInputValid||(this.rgba=FI(this.value))}handleHexInputBlur(){this.hex=Ec(this.value,"hex")}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-colorinput"]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-colorinputs",r.colorInputClass)},inputs:{opacity:"opacity",disabled:"disabled",readonly:"readonly",value:"value"},outputs:{valueChange:"valueChange"},features:[n.TTD],decls:17,vars:32,consts:[[1,"k-hbox","k-gradient-values"],["placeholder","no color",1,"k-textbox","k-hex-value",3,"disabled","readonly","value","blur","input"],["hexInput",""],["placeholder","R",3,"disabled","readonly","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["placeholder","G",3,"disabled","readonly","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["placeholder","B",3,"disabled","readonly","min","max","value","autoCorrect","spinners","format","decimals","valueChange","blur"],["placeholder","A",3,"disabled","readonly","min","max","value","autoCorrect","spinners","step","format","decimals","valueChange","blur",4,"ngIf"],[1,"k-hex-value"],[4,"ngIf"],["placeholder","A",3,"disabled","readonly","min","max","value","autoCorrect","spinners","step","format","decimals","valueChange","blur"]],template:function(t,r){if(1&t){const s=n.EpF();n.TgZ(0,"div",0)(1,"input",1,2),n.NdJ("blur",function(){return r.handleHexInputBlur()})("input",function(){n.CHM(s);const u=n.MAs(2);return n.KtG(r.handleHexValueChange(u.value))}),n.qZA(),n.TgZ(3,"kendo-numerictextbox",3),n.NdJ("valueChange",function(u){return r.rgba.r=u})("blur",function(){return r.handleRgbaInputBlur()})("valueChange",function(){return r.handleRgbaValueChange()}),n.qZA(),n.TgZ(4,"kendo-numerictextbox",4),n.NdJ("valueChange",function(u){return r.rgba.g=u})("blur",function(){return r.handleRgbaInputBlur()})("valueChange",function(){return r.handleRgbaValueChange()}),n.qZA(),n.TgZ(5,"kendo-numerictextbox",5),n.NdJ("valueChange",function(u){return r.rgba.b=u})("blur",function(){return r.handleRgbaInputBlur()})("valueChange",function(){return r.handleRgbaValueChange()}),n.qZA(),n.YNc(6,che,1,10,"kendo-numerictextbox",6),n.qZA(),n.TgZ(7,"div",0)(8,"div",7),n._uU(9,"hex"),n.qZA(),n.TgZ(10,"div"),n._uU(11,"r"),n.qZA(),n.TgZ(12,"div"),n._uU(13,"g"),n.qZA(),n.TgZ(14,"div"),n._uU(15,"b"),n.qZA(),n.YNc(16,dhe,2,0,"div",8),n.qZA()}2&t&&(n.xp6(1),n.Q6J("disabled",r.disabled)("readonly",r.readonly)("value",r.hex||""),n.xp6(2),n.Q6J("disabled",r.disabled)("readonly",r.readonly)("min",0)("max",255)("value",r.rgba.r)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),n.xp6(1),n.Q6J("disabled",r.disabled)("readonly",r.readonly)("min",0)("max",255)("value",r.rgba.g)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),n.xp6(1),n.Q6J("disabled",r.disabled)("readonly",r.readonly)("min",0)("max",255)("value",r.rgba.b)("autoCorrect",!0)("spinners",!1)("format","n")("decimals",0),n.xp6(1),n.Q6J("ngIf",r.opacity),n.xp6(10),n.Q6J("ngIf",r.opacity))},dependencies:[ko,Ge],encapsulation:2}),ye([(0,n.IIB)(),ce("design:type",String)],i.prototype,"value",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"opacity",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"disabled",void 0),ye([(0,n.IIB)(),ce("design:type",Boolean)],i.prototype,"readonly",void 0),ye([(0,n.r_U)(),ce("design:type",n.vpe)],i.prototype,"valueChange",void 0),ye([(0,n.pfw)("class.k-colorinputs"),ce("design:type",Boolean)],i.prototype,"colorInputClass",void 0),i=ye([ce("design:paramtypes",[n.SBq])],i),i})(),QG=(()=>{let i=class{constructor(t,r){this.host=t,this.ngZone=r}ngAfterContentInit(){this.focusOnNextTick()}focusOnNextTick(){this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.host.nativeElement.focus()))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoFocusOnDomReady",""]]}),i=ye([ce("design:paramtypes",[n.SBq,n.R0b])],i),i})(),bge=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[ZG,f7,Lt,Eu,Mx]}),i})(),eT=(()=>{let i=class{constructor(){this.kendoClass=!0}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["input","kendoCheckBox",""]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-checkbox",r.kendoClass)}}),ye([(0,n.pfw)("class.k-checkbox"),ce("design:type",Boolean)],i.prototype,"kendoClass",void 0),i})(),vge=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),Fu=(()=>{let i=class{constructor(){this.kendoClass=!0}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["input","kendoRadioButton",""]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-radio",r.kendoClass)}}),ye([(0,n.pfw)("class.k-radio"),ce("design:type",Boolean)],i.prototype,"kendoClass",void 0),i})(),WG=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),Age=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),eq=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,ige,ZG,Xhe,ege,f7,tge,bge,vge,WG,Age]}),i})(),Za=(()=>{class i{constructor(t){this.el=t,this.autoFocus=!0}ngAfterContentInit(){this.autoFocus&&setTimeout(()=>{let t=this.el.nativeElement;if("kendo-textbox"===t.localName)for(let r=0;r<t.children.length;r++)"input"===t.children[r].localName&&(t=t.children[r]);t.focus()},10)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","appAutoFocus",""]],inputs:{autoFocus:"autoFocus"}}),i})();const Pc=void 0,Tge=["pt",[["AM","PM"],Pc,Pc],Pc,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],Pc,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],Pc,[["a.C.","d.C."],Pc,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",Pc,Pc,Pc],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[Pc,"\u0440."],JPY:["JP\xa5","\xa5"],PHP:[Pc,"\u20b1"],PTE:["Esc."],RON:[Pc,"L"],SYP:[Pc,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function xge(i){const t=Math.floor(Math.abs(i)),r=i.toString().replace(/^[^.]*\.?/,"").length,s=parseInt(i.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===Math.floor(t)&&t>=0&&t<=1?1:0===s&&0!==t&&t%1e6==0&&0===r||!(s>=0&&s<=5)?4:5}];class Y1{static foqueInvalido(o,t){t.scrollIntoView(),o.scrollTo(0,o.scrollTop-30),t.focus&&t.focus()}static obtenhaControleInvalido(o,t){if(o.valid)return null;for(const r of Object.keys(o.controls))if(!o.controls[r].valid)return t.nativeElement.querySelector("#"+r);return null}}const yy={UKNOWN:"Unknown"},v7={CHROME:"Chrome",FIREFOX:"Firefox",SAFARI:"Safari",OPERA:"Opera",IE:"IE",MS_EDGE:"MS-Edge",MS_EDGE_CHROMIUM:"MS-Edge-Chromium",FB_MESSANGER:"FB-Messanger",SAMSUNG:"Samsung",UCBROWSER:"UC-Browser",UNKNOWN:yy.UKNOWN},UI={HTC:/HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\bEVO\b|T-Mobile G1|Z520m|Android [0-9.]+; Pixel/,NEXUS_PHONE:/Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6/,DELL:/Dell[;]? (Streak|Aero|Venue|Venue Pro|Flash|Smoke|Mini 3iX)|XCD28|XCD35|\b001DL\b|\b101DL\b|\bGS01\b/,MOTOROLA:new RegExp("Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|\n      A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|\n      MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|\n      ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|\n      WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|\n      XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|\n      XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b|XT1068|XT1092|XT1052"),SAMSUNG:new RegExp("\\bSamsung\\b|SM-G950F|SM-G955F|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|\n      GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|\n      GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|\n      GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|\n      GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|\n      GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|\n      GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|\n      GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|\n      GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|\n      GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|\n      GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|\n      GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|\n      GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|\n      GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|\n      GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|\n      GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|\n      GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|\n      GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|\n      SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|\n      SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|\n      SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|\n      SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|\n      SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|\n      SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|\n      SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|\n      SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|\n      SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|\n      SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|\n      SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|\n      SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|\n      SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|\n      SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|\n      SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|\n      SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|\n      SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|\n      SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|\n      SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|\n      SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|\n      SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|\n      SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|\n      SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|\n      SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|\n      SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|\n      SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|\n      SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|\n      SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|\n      SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|\n      SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|\n      SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|\n      GT-N7105|SCH-I535|SM-N900A|SM-N900T|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|\n      GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|\n      GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|\n      SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|\n      SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F|SM-G920F|SM-G920V|SM-G930F|\n      SM-N910C|SM-A310F|GT-I9190|SM-J500FN|SM-G903F|SM-J330F"),LG:new RegExp("\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|\n      LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|\n      C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|\n      LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|\n      VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|\n      MS323|M257)"),SONY:/SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533/,ASUS:/Asus.*Galaxy|PadFone.*Mobile/,NOKIA_LUMIA:/Lumia [0-9]{3,4}/,MICROMAX:/Micromax.*\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\b/,PALM:/PalmSource|Palm/,VERTU:/Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature/,PANTECH:new RegExp("PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|\n        IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|\n        IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|\n        CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|\n        P2000|P7040|P7000|C790"),FLY:/IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250/,WIKO:new RegExp("KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|\n        SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|\n        CINK KING|CINK PEAX|CINK SLIM|SUBLIM"),I_MOBILE:/i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)/,SIMVALLEY:/\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\b/,WOLFGANG:/AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q/,ALCATEL:/Alcatel|Mobile; rv:49.0|Mobile; ALCATEL 4052R; rv:48.0/,NINTENDO:/Nintendo (3DS|Switch)/,AMOI:/Amoi/,INQ:/INQ/,VITA:/\bVita\b/,BLACKBERRY:/\bBlackBerry\b|\bBB10\b|rim[0-9]+/,FIREFOX_OS:/\bFirefox-OS\b/,IPHONE:/\biPhone\b/,iPod:/\biPod\b/,ANDROID:/\bAndroid\b/,WINDOWS_PHONE:/\bWindows-Phone\b/,GENERIC_PHONE:new RegExp("Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|\n        up.link|vodafone|\\bwap\\b|nokia|Nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser")},Cy={iPad:/iPad|iPad.*Mobile/,NexusTablet:/Android.*Nexus[\s]+(7|9|10)/,GoogleTablet:/Android.*Pixel C/,SamsungTablet:new RegExp("SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|\n        GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|\n        SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|\n        GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|\n        SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|\n        GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|\n        SHV-E230S|SHW-M180K|SHW-M180L|SM-T865|SM-T290|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|\n        SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|\n        GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T385M|SM-P585M|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|\n        SM-P601|SM-P605|SM-P615|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|\n        GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|\n        SM-T510|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|\n        SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T500|SM-T330|\n        SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|\n        SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-T116BU|SM-P550|\n        SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|\n        SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561|SM-T713|\n        SM-T719|SM-T725|SM-T813|SM-T819|SM-T580|SM-T590|SM-T355Y?|SM-T280|SM-T817A|SM-T820|SM-W700|SM-P580|SM-T587|SM-P350|\n        SM-P555M|SM-P355M|SM-T113NU|SM-T815Y|SM-T585|SM-T285|SM-T825|SM-W708|SM-T835|SM-P585Y|SM-X200|SM-T970"),Kindle:new RegExp("Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|\n        KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI|KFFOWI|KFGIWI|KFMEWI)\\b|Android.*Silk/[0-9.]+ like Chrome        /[0-9.]+ (?!Mobile)"),SurfaceTablet:/Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)/,HPTablet:/HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10/,AsusTablet:new RegExp("^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|\n        TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|\n        Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|\n        ME560CG|ME372CG|ME302KL| K010 | K011 | K017 | K01E |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|\n        ME581CL|ME8510C|ME181C|P01Y|PO1MA|P01Z|\\bP027\\b|\\bP024\\b|\\bP00C\\b"),BlackBerryTablet:/PlayBook|RIM Tablet/,HTCtablet:/HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410/,MotorolaTablet:/xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617/,NookTablet:/Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2/,AcerTablet:new RegExp("Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|\n        W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\n        \\bA3-A20\\b|\\bA3-A30"),ToshibaTablet:/Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO/,LGTablet:/\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\b/,FujitsuTablet:/Android.*\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\b/,PrestigioTablet:new RegExp("PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|\n        PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|\n        PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|\n        PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|\n        PMT5887|PMT5001|PMT5002"),LenovoTablet:new RegExp("Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-850M|YT3-X90L|YT3-X90F|\n        YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|\n        B8000|B8080)(-|)(FL|F|HV|H|)|TB-X606F|TB-X103F|TB-X304F|TB-X304L|TB-X704F|TB-8703F|Tab2A7-10F|TB2-X30L|TB-8504F"),DellTablet:/Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7/,YarvikTablet:new RegExp("Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|\n        TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|\n        TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|\n        TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|\n        TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b"),MedionTablet:/Android.*\bOYO\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB/,ArnovaTablet:/97G4|AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2/,IntensoTablet:/INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004/,IRUTablet:/M702pro/,MegafonTablet:/MegaFon V9|\bZTE V9\b|Android.*\bMT7A\b/,EbodaTablet:/E-Boda (Supreme|Impresspeed|Izzycomm|Essential)/,AllViewTablet:/Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)/,ArchosTablet:new RegExp("\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|c|)(G10|\n         Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b"),AinolTablet:/NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark/,NokiaLumiaTablet:/Lumia 2520/,SonyTablet:new RegExp("Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|\n        SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|\n        EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP641|SGP612|SOT31|SGP771|SGP611|\n        SGP612|SGP712"),PhilipsTablet:/\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\b/,CubeTablet:/Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT/,CobyTablet:new RegExp("MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|\n        MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010"),MIDTablet:new RegExp("M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|\n        MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|\n        MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10"),MSITablet:new RegExp("MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|\n        Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b"),SMiTTablet:/Android.*(\bMID\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)/,RockChipTablet:/Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A/,FlyTablet:/IQ310|Fly Vision/,bqTablet:new RegExp("Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|\n        Livingstone|Cervantes|Avant|Aquaris ([E|M]10|M8))|Maxwell.*Lite|Maxwell.*Plus"),HuaweiTablet:new RegExp("MediaPad|MediaPad 7 Youth|MediaPad T3 10|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|\n        S7-201|S7-Slim|M2-A01L|BAH-L09|BAH-W09|AGS-W09|AGS-L09"),NecTablet:/\bN-06D|\bN-08D/,PantechTablet:/Pantech.*P4100/,BronchoTablet:/Broncho.*(N701|N708|N802|a710)/,VersusTablet:/TOUCHPAD.*[78910]|\bTOUCHTAB\b/,ZyncTablet:/z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900/,PositivoTablet:/TB07STA|TB10STA|TB07FTA|TB10FTA/,NabiTablet:/Android.*\bNabi/,KoboTablet:/Kobo Touch|\bK080\b|\bVox\b Build|\bArc\b Build/,DanewTablet:/DSlide.*\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\b/,TexetTablet:new RegExp("NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|\n        TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|\n        TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|\n        TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|\n        TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|\n        TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|\n        TB-436|TB-416|TB-146SE|TB-126SE"),PlaystationTablet:/Playstation.*(Portable|Vita)/,TrekstorTablet:/ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab/,PyleAudioTablet:/\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\b/,AdvanTablet:new RegExp("Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|\n        T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b"),DanyTechTablet:"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|\n        Genius TAB GII|Genius TAB GIII|Genius Tab S1",GalapadTablet:/Android.*\bG1\b(?!\))/,MicromaxTablet:/Funbook|Micromax.*\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\b/,KarbonnTablet:/Android.*\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\b/,AllFineTablet:/Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide/,PROSCANTablet:new RegExp("\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|\n        PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|\n        PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|\n        PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b"),YONESTablet:/BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026/,ChangJiaTablet:new RegExp("TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|\n        TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|\n        TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|\n        TPC10111|TPC10203|TPC10205|TPC10503"),GUTablet:/TX-A1301|TX-M9002|Q702|kf026/,PointOfViewTablet:new RegExp("TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|\n        TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|\n        TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|\n        TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10"),OvermaxTablet:new RegExp("OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|\n        MagicTab|Stream|TB-08|TB-09)|Qualcore 1027"),HCLTablet:/HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync/,DPSTablet:/DPS Dream 9|DPS Dual 7/,VistureTablet:/V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10/,CrestaTablet:/CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989/,MediatekTablet:/\bMT8125|MT8389|MT8135|MT8377\b/,ConcordeTablet:/Concorde([ ]+)?Tab|ConCorde ReadMan/,GoCleverTablet:new RegExp("GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|\n        TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|\n        GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|\n        TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|\n        TAB R104|TAB R83.3|TAB A1042"),ModecomTablet:new RegExp("FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|\n        FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|\n        FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003"),VoninoTablet:new RegExp("\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|\n        Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|\n        Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b"),ECSTablet:/V07OT2|TM105A|S10OT1|TR10CS1/,StorexTablet:/eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab/,VodafoneTablet:/SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497/,EssentielBTablet:/Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2/,RossMoorTablet:/RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711/,iMobileTablet:/i-mobile i-note/,TolinoTablet:/tolino tab [0-9.]+|tolino shine/,AudioSonicTablet:/\bC-22Q|T7-QC|T-17B|T-17P\b/,AMPETablet:/Android.* A78 /,SkkTablet:/Android.* (SKYPAD|PHOENIX|CYCLOPS)/,TecnoTablet:/TECNO P9|TECNO DP8D/,JXDTablet:new RegExp("Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|\n        S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|\n        P1000|P300|S18|S6600|S9100)\\b"),iJoyTablet:new RegExp("Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|\n        Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|\n        Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|\n        Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|\n        Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)"),FX2Tablet:/FX2 PAD7|FX2 PAD10/,XoroTablet:new RegExp("KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|\n        PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|\n        PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|\n        TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151"),ViewsonicTablet:/ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a/,VerizonTablet:/QTAQZ3|QTAIR7|QTAQTZ3|QTASUN1|QTASUN2|QTAXIA1/,OdysTablet:/LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\bXELIO\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10/,CaptivaTablet:/CAPTIVA PAD/,IconbitTablet:new RegExp("NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|\n        NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S"),TeclastTablet:new RegExp("T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\n        \\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\n        \\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\n        \\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\n        \\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\n        \\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\n        \\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\n        \\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\n        \\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi"),OndaTablet:new RegExp("\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|\n        V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|\n        V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|\n        Vi40)\\b[s]+|V10 \\b4G\\b"),JaytechTablet:/TPC-PA762/,BlaupunktTablet:/Endeavour 800NG|Endeavour 1010/,DigmaTablet:/\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\b/,EvolioTablet:/ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\bEvotab\b|\bNeura\b/,LavaTablet:/QPAD E704|\bIvoryS\b|E-TAB IVORY|\bE-TAB\b/,AocTablet:/MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712/,MpmanTablet:new RegExp("MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\n        \\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|\n        MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010"),CelkonTablet:/CT695|CT888|CT[\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\bCT-1\b/,WolderTablet:new RegExp("miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|\n        POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|\n        FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b"),MediacomTablet:"M-MPI10C3G|M-SP10EG|M-SP10EGP|M-SP10HXAH|M-SP7HXAH|M-SP10HXBH|M-SP8HXAH|M-SP8MXA",MiTablet:/\bMI PAD\b|\bHM NOTE 1W\b/,NibiruTablet:/Nibiru M1|Nibiru Jupiter One/,NexoTablet:/NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI/,LeaderTablet:new RegExp("TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|\n        TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100"),UbislateTablet:/UbiSlate[\s]?7C/,PocketBookTablet:/Pocketbook/,KocasoTablet:/\b(TB-1207)\b/,HisenseTablet:/\b(F5281|E2371)\b/,Hudl:/Hudl HT7S3|Hudl 2/,TelstraTablet:/T-Hub2/,Honeywell:/RT10A/,GenericTablet:new RegExp("Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|\n        A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|\n        Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bTP750\\b|\\bQTAQZ3\\b|WVT101|TM1088|KT107")},rm={BLACKBERRY:"Blackberry",FIREFOX_OS:"Firefox-OS",CHROME_BOOK:"Chrome-Book",WINDOWS_PHONE:"Windows-Phone",VITA:"Vita",PS4:"PS4",MAC:"Macintosh",CHROMECAST:"Chromecast",APPLE_TV:"Apple-TV",GOOGLE_TV:"Google-TV",ANDROID:"Android",Tesla:"Tesla",iPad:"iPad",IPHONE:"iPhone",iPod:"iPod",UNKNOWN:yy.UKNOWN,HTC:"HTC",NEXUS_PHONE:"Nexus Phone",NexusTablet:"Nexus Tablet",DELL:"Dell",MOTOROLA:"Motorola",SAMSUNG:"Samsung",LG:"LG",SONY:"Sony",ASUS:"Asus",NOKIA_LUMIA:"Nokia Lumia",MICROMAX:"Micromax",PALM:"Palm",VERTU:"Vertu",PANTECH:"PANTECH",FLY:"Fly",WIKO:"WIKO",I_MOBILE:"i-mobile",SIMVALLEY:"Simvalley",WOLFGANG:"Wolfgang",ALCATEL:"Alcatel",HONEYWELL:"Honeywell",NINTENDO:"Nintendo",AMOI:"Amoi",INQ:"INQ",GENERIC_PHONE:"Generic Phone",MI_SE_9:"Mi SE 9"},tq=[rm.PS4,rm.CHROME_BOOK,rm.MAC,rm.DELL,rm.ASUS,rm.UNKNOWN],Sge={WINDOWS:"Windows",MAC:"Mac",IOS:"iOS",ANDROID:"Android",LINUX:"Linux",UNIX:"Unix",FIREFOX_OS:"Firefox-OS",CHROME_OS:"Chrome-OS",WINDOWS_PHONE:"Windows-Phone",UNKNOWN:yy.UKNOWN},wge={WINDOWS_3_11:"windows-3-11",WINDOWS_95:"windows-95",WINDOWS_ME:"windows-me",WINDOWS_98:"windows-98",WINDOWS_CE:"windows-ce",WINDOWS_2000:"windows-2000",WINDOWS_XP:"windows-xp",WINDOWS_SERVER_2003:"windows-server-2003",WINDOWS_VISTA:"windows-vista",WINDOWS_7:"windows-7",WINDOWS_8_1:"windows-8-1",WINDOWS_8:"windows-8",WINDOWS_10:"windows-10",WINDOWS_PHONE_7_5:"windows-phone-7-5",WINDOWS_PHONE_8_1:"windows-phone-8-1",WINDOWS_PHONE_10:"windows-phone-10",WINDOWS_NT_4_0:"windows-nt-4-0",MACOSX_11_0:"mac-os-x-11-0",MACOSX_16:"mac-os-x-16",MACOSX_15:"mac-os-x-15",MACOSX_14:"mac-os-x-14",MACOSX_13:"mac-os-x-13",MACOSX_12:"mac-os-x-12",MACOSX_11:"mac-os-x-11",MACOSX_10:"mac-os-x-10",MACOSX_9:"mac-os-x-9",MACOSX_8:"mac-os-x-8",MACOSX_7:"mac-os-x-7",MACOSX_6:"mac-os-x-6",MACOSX_5:"mac-os-x-5",MACOSX_4:"mac-os-x-4",MACOSX_3:"mac-os-x-3",MACOSX_2:"mac-os-x-2",MACOSX:"mac-os-x",iOS:"iOS",ANDROID_9:"android-9",UNKNOWN:yy.UKNOWN.toLowerCase()},nq={WINDOWS:{and:[{or:[/\bWindows|(Win\d\d)\b/,/\bWin 9x\b/]},{not:/\bWindows Phone\b/}]},MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]},IOS:{and:[{or:[/\biPad\b/,/\biPhone\b/,/\biPod\b/]},{not:/\bWindows Phone\b/}]},ANDROID:{and:[/\bAndroid\b/,{not:/\bWindows Phone\b/}]},LINUX:/\bLinux\b/,UNIX:/\bUNIX\b/,FIREFOX_OS:{and:[/\bFirefox\b/,/Mobile\b/]},CHROME_OS:/\bCrOS\b/,WINDOWS_PHONE:{or:[/\bIEMobile\b/,/\bWindows Phone\b/]},PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/},Dge={...UI,...Cy,...nq,FIREFOX_OS:{and:[/\bFirefox\b/,/\bMobile\b/]},CHROME_BOOK:/\bCrOS\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,CHROMECAST:/\bCrKey\b/,APPLE_TV:/^iTunes-AppleTV\/4.1$/,GOOGLE_TV:/\bGoogleTV\b/,Tesla:/Tesla\/([0-9]{4}.[0-9]{1,2}.?[0-9]{0,2}.?[0-9]{0,2})-(.{7})/,MI_SE_9:/\bXiaomi\b/,MAC:{and:[/\bMac OS\b/,{not:{or:[/\biPhone\b/,/\biPad\b/,/\biPod\b/,/\bWindows Phone\b/]}}]}},y7={WINDOWS_3_11:/Win16/,WINDOWS_95:/(Windows 95|Win95|Windows_95)/,WINDOWS_ME:/(Win 9x 4.90|Windows ME)/,WINDOWS_98:/(Windows 98|Win98)/,WINDOWS_CE:/Windows CE/,WINDOWS_2000:/(Windows NT 5.0|Windows 2000)/,WINDOWS_XP:/(Windows NT 5.1|Windows XP)/,WINDOWS_SERVER_2003:/Windows NT 5.2/,WINDOWS_VISTA:/Windows NT 6.0/,WINDOWS_7:/(Windows 7|Windows NT 6.1)/,WINDOWS_8_1:/(Windows 8.1|Windows NT 6.3)/,WINDOWS_8:/(Windows 8|Windows NT 6.2)/,WINDOWS_10:/(Windows NT 10.0)/,WINDOWS_PHONE_7_5:/(Windows Phone OS 7.5)/,WINDOWS_PHONE_8_1:/(Windows Phone 8.1)/,WINDOWS_PHONE_10:/(Windows Phone 10)/,WINDOWS_NT_4_0:{and:[/(Windows NT 4.0|WinNT4.0|WinNT|Windows NT)/,{not:/Windows NT 10.0/}]},MACOSX:/(MAC OS X\s*[^ 0-9])/,MACOSX_3:/(Darwin 10.3|Mac OS X 10.3)/,MACOSX_4:/(Darwin 10.4|Mac OS X 10.4)/,MACOSX_5:/(Mac OS X 10.5)/,MACOSX_6:/(Mac OS X 10.6)/,MACOSX_7:/(Mac OS X 10.7)/,MACOSX_8:/(Mac OS X 10.8)/,MACOSX_9:/(Mac OS X 10.9)/,MACOSX_10:/(Mac OS X 10.10)/,MACOSX_11:/(Mac OS X 10.11)/,MACOSX_12:/(Mac OS X 10.12)/,MACOSX_13:/(Mac OS X 10.13)/,MACOSX_14:/(Mac OS X 10.14)/,MACOSX_15:/(Mac OS X 10.15)/,MACOSX_16:/(Mac OS X 10.16)/,MACOSX_11_0:{or:[/11_0 like Mac OS X/,/Mac OS X 11/]},iOS:/(iPhone OS\s*[0-9_]+)/,ANDROID_9:/(Android 9)/},C7={CHROME:[/\bChrome\/([\d\.]+)\b/,/\bCriOS\/([\d\.]+)\b/,/\bHeadlessChrome\/([\d\.]+)\b/],FIREFOX:[/\bFirefox\/([\d\.]+)\b/,/\bFxiOS\/([\d\.]+)\b/],SAFARI:[/\bVersion\/([\d\.]+)\b/,/\bSafari\/([\d\.]+)\b/],OPERA:[/\bVersion\/([\d\.]+)\b/,/\bOPR\/([\d\.]+)\b/],IE:[/\bMSIE ([\d\.]+\w?)\b/,/\brv:([\d\.]+\w?)\b/],MS_EDGE:/\bEdg(?:e|A|iOS)\/([\d\.]+)\b/,MS_EDGE_CHROMIUM:/\bEdg\/([\d\.]+)\b/,SAMSUNG:/\bSamsungBrowser\/([\d\.]+)\b/,UCBROWSER:/\bUCBrowser\/([\d\.]+)\b/},kge=Object.keys(y7).reduce((i,o)=>(i[o]=y7[o],i),{}),iq=Object.keys(C7).reduce((i,o)=>(i[v7[o]]=C7[o],i),{});var Fp=Object.freeze({__proto__:null,BROWSERS:v7,BROWSERS_RE:{CHROME:{and:[{or:[/\bChrome\b/,/\bCriOS\b/,/\bHeadlessChrome\b/]},{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},FIREFOX:{or:[/\bFirefox\b/,/\bFxiOS\b/]},SAFARI:{and:[/^((?!CriOS).)*\Safari\b.*$/,{not:{or:[/\bOPR\b/,/\bEdg(e|A|iOS)\b/,/\bEdg\/\b/,/\bWindows Phone\b/,/\bSamsungBrowser\b/,/\bUCBrowser\b/]}}]},OPERA:{or:[/Opera\b/,/\bOPR\b/]},IE:{or:[/\bMSIE\b/,/\bTrident\b/,/^Mozilla\/5\.0 \(Windows NT 10\.0; Win64; x64\)$/]},MS_EDGE:{or:[/\bEdg(e|A|iOS)\b/]},MS_EDGE_CHROMIUM:/\bEdg\/\b/,PS4:/\bMozilla\/5.0 \(PlayStation 4\b/,VITA:/\bMozilla\/5.0 \(Play(S|s)tation Vita\b/,FB_MESSANGER:/\bFBAN\/MessengerForiOS\b/,SAMSUNG:/\bSamsungBrowser\b/,UCBROWSER:/\bUCBrowser\b/},BROWSER_VERSIONS_RE:iq,BROWSER_VERSIONS_RE_MAP:C7,DESKTOP_DEVICES:tq,DEVICES:rm,DEVICES_RE:Dge,GENERAL:yy,MOBILES_RE:UI,OS:Sge,OS_RE:nq,OS_VERSIONS:wge,OS_VERSIONS_RE:kge,OS_VERSIONS_RE_MAP:y7,TABLETS_RE:Cy});class Ige{constructor(){}test(o,t){return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.test(o):t&&Array.isArray(t.and)?t.and.every(r=>this.test(o,r)):t&&Array.isArray(t.or)?t.or.some(r=>this.test(o,r)):!(!t||!t.not||this.test(o,t.not))}exec(o,t){return"string"==typeof t&&(t=new RegExp(t)),t instanceof RegExp?t.exec(o):t&&Array.isArray(t)?t.reduce((r,s)=>r||this.exec(o,s),null):null}}var j1=(()=>(function(i){i.Mobile="mobile",i.Tablet="tablet",i.Desktop="desktop",i.Unknown="unknown"}(j1||(j1={})),j1))(),tT=(()=>(function(i){i.Portrait="portrait",i.Landscape="landscape"}(tT||(tT={})),tT))();const A7="iPad",X0=class{constructor(o){this.platformId=o,this.ua="",this.userAgent="",this.os="",this.browser="",this.device="",this.os_version="",this.browser_version="",this.reTree=new Ige,this.deviceType="",this.orientation="",Wa(this.platformId)&&typeof window<"u"&&(this.userAgent=window.navigator.userAgent),this.setDeviceInfo(this.userAgent)}setDeviceInfo(o=this.userAgent){o!==this.userAgent&&(this.userAgent=o);const t=[{const:"OS",prop:"os"},{const:"BROWSERS",prop:"browser"},{const:"DEVICES",prop:"device"},{const:"OS_VERSIONS",prop:"os_version"}];if(t.forEach(r=>{this[r.prop]=Object.keys(Fp[r.const]).reduce((s,l)=>"device"===Fp[r.const][l]&&Wa(this.platformId)&&(this.reTree.test(this.userAgent,Cy[A7])||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)?(s[Fp[r.const][l]]=A7,Object):(s[Fp[r.const][l]]=this.reTree.test(o,Fp[`${r.const}_RE`][l]),s),{})}),t.forEach(r=>{this[r.prop]=Object.keys(Fp[r.const]).map(s=>Fp[r.const][s]).reduce((s,l)=>"device"===r.prop&&s===Fp[r.const].ANDROID?this[r.prop][l]?l:s:s===Fp[r.const].UNKNOWN&&this[r.prop][l]?l:s,Fp[r.const].UNKNOWN)}),this.browser_version="0",this.browser!==v7.UNKNOWN){const s=this.reTree.exec(o,iq[this.browser]);s&&(this.browser_version=s[1])}this.orientation=typeof window<"u"&&window.matchMedia?window.matchMedia("(orientation: landscape)").matches?tT.Landscape:tT.Portrait:yy.UKNOWN,this.deviceType=this.isTablet()?j1.Tablet:this.isMobile(this.userAgent)?j1.Mobile:this.isDesktop(this.userAgent)?j1.Desktop:j1.Unknown}getDeviceInfo(){return{userAgent:this.userAgent,os:this.os,browser:this.browser,device:this.device,os_version:this.os_version,browser_version:this.browser_version,deviceType:this.deviceType,orientation:this.orientation}}isMobile(o=this.userAgent){return!this.isTablet(o)&&!!Object.keys(UI).find(r=>this.reTree.test(o,UI[r]))}isTablet(o=this.userAgent){return!(!Wa(this.platformId)||!(this.reTree.test(this.userAgent,Cy[A7])||typeof navigator<"u"&&"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1))||!!Object.keys(Cy).find(r=>!!this.reTree.test(o,Cy[r]))}isDesktop(o=this.userAgent){return(this.device!==rm.UNKNOWN||!this.isMobile(o)&&!this.isTablet(o))&&tq.indexOf(this.device)>-1}};let zo=X0;LU=new WeakMap,RU=new WeakMap,FU(zo,LU,X0.\u0275fac=function(t){return new(t||X0)(n.LFG(n.Lbi))}),FU(zo,RU,X0.\u0275prov=n.Yz7({token:X0,factory:X0.\u0275fac,providedIn:"root"}));let Eo=(()=>{class i{constructor(t,r){this.router=t,this.deviceService=r}obtenhaRaizCardapio(){return-1!==location.host.indexOf("localhost")?"loja":location.host.indexOf("meucardapio.ai")>=0||location.host.indexOf("promokit")<0?"":location.pathname.split("/")[1]}obtenhaUrlCompleta(t){let r=this.obtenhaRaizCardapio();return t.indexOf(r)>=0?t:"/"+r+"/"+t}vaParaHome(){this.router.navigateByUrl(this.obtenhaUrlHome())}vaParaFinalizarPedido(){this.deviceService.isMobile()||this.deviceService.isTablet()?this.vaParaCarrinho():this.router.navigateByUrl(this.obtenhaUrlCompleta("pedido"))}obtenhaUrlHome(){let t="/"+this.obtenhaRaizCardapio();return this.hashMesa&&(t=t+"/local/"+this.hashMesa),t}vaParaValidarLogin(t,r=null){let s=this.obtenhaUrlCompleta("login/validar/whatszapp"),l=[];t&&l.push("t="+t),r&&r.telefone&&l.push("tel="+r.telefone),l.length&&(s=s+"?"+l.join("&")),this.router.navigateByUrl(s,{state:{contato:r}})}vaParaLogin(t=null,r=null){let s=this.obtenhaUrlCompleta("login"),l=[];t&&l.push("t="+t),r&&l.push("tel="+r),l.length&&(s=s+"?"+l.join("&")),this.router.navigateByUrl(s)}vaParaCadastro(t=null,r={}){let s=this.obtenhaUrlCompleta("cadastro");t&&(s=s+"?t="+t),this.router.navigate([s],{state:r,queryParamsHandling:"merge"})}vaParaCarrinho(){this.router.navigate([this.obtenhaUrlCompleta("carrinho")],{queryParamsHandling:"merge"})}vaParaTelaAcompanharPedido(t,r={}){r.pedido=t,this.router.navigateByUrl(this.obtenhaUrlAcompanharPedido(t),r)}navegueParaUrl(t,r=null){let s=this.obtenhaUrlCompleta(t);this.router.navigate([s],{state:r,queryParamsHandling:"merge"})}obtenhaUrlAtiva(){let t=this.obtenhaRaizCardapio();return location.pathname.replace(t,"").replace(/\//g,"")}obtenhaUrlPerfil(){return this.obtenhaUrlCompleta("perfil")}obtenhaUrlAcompanharPedido(t){if(t)return this.obtenhaUrlCompleta(String(`pedido/acompanhar/${t.guid}`))}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Pn),n.LFG(zo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const oq=["frm"],Ege=["txtNumero"],Pge=["cboZonaDeEntrega"],Oge=["txtLogradouro"],Nge=["txtCEP"],Lge=["complementoInput"],Rge=["txtBusca"],Fge=["cboEstado"],Bge=["cboCidade"];function Hge(i,o){1&i&&n._UZ(0,"i",47)}function $ge(i,o){1&i&&n._UZ(0,"div",48)}function Uge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"app-address-autocomplete-places",49),n.NdJ("onSelecionou",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.escolheuEnderecoGoogle(s))}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("empresa",t.empresa)}}function Yge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",50),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(2);return n.KtG(l.selecionou(s))}),n.TgZ(1,"div",51),n._UZ(2,"i",52),n.qZA(),n.TgZ(3,"div",53)(4,"h5",54),n._uU(5),n.qZA(),n.TgZ(6,"span"),n._uU(7),n.TgZ(8,"span"),n._uU(9),n.ALo(10,"number"),n.qZA()()()()}if(2&i){const t=n.oxw().$implicit;n.xp6(5),n.Oqu(t.nome),n.xp6(2),n.lnq(" ",null==t?null:t.bairro," - ",null==t.cidade?null:t.cidade.nome," / ",null==t.estado?null:t.estado.nome," "),n.xp6(2),n.hij("~",n.xi3(10,5,t.distancia/1e3,"1.2-2")," KM")}}function jge(i,o){if(1&i&&(n.TgZ(0,"div",45),n.YNc(1,Yge,11,8,"li",46),n.qZA()),2&i){const t=o.index;n.xp6(1),n.Q6J("ngIf",t<4)}}function Zge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",50),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.digitarEnderecoManualmente())}),n.TgZ(1,"div",51),n._UZ(2,"i",55),n.qZA(),n.TgZ(3,"div",53)(4,"h5",56),n._uU(5,"N\xe3o achei meu endere\xe7o"),n.qZA(),n.TgZ(6,"span",57),n._uU(7," Clique aqui para informar endere\xe7o completo "),n.qZA()()()}}function Vge(i,o){1&i&&n._UZ(0,"i",61)}function zge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",62)(1,"button",63),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.caculeTaxaEntrega(l))}),n._UZ(2,"i",64),n.TgZ(3,"span",65),n._uU(4),n.qZA()()()}if(2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(1),n.Q6J("disabled",r.calculandoTaxa),n.xp6(3),n.hij(" ",t.descricaoCompleta," ")}}function Gge(i,o){if(1&i&&(n.TgZ(0,"div")(1,"h4"),n._uU(2,"Usar endere\xe7o existente "),n.YNc(3,Vge,1,0,"i",58),n.qZA(),n.TgZ(4,"ul",59),n.YNc(5,zge,5,2,"li",60),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",t.calculandoTaxa),n.xp6(2),n.Q6J("ngForOf",t.enderecosContato)}}function qge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"h4"),n._uU(2,"Onde voc\xea quer receber seu pedido?"),n.qZA(),n.TgZ(3,"div",38)(4,"input",39,40),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.enderecoEscolhido.nome=s)})("keyup",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.keyUp.next(s))}),n.qZA(),n.TgZ(7,"span",10)(8,"button",41),n.YNc(9,Hge,1,0,"i",12),n.YNc(10,$ge,1,0,"div",13),n.qZA()()(),n.YNc(11,Uge,1,1,"app-address-autocomplete-places",42),n._UZ(12,"div",43),n.YNc(13,jge,2,1,"div",44),n.TgZ(14,"div",45),n.YNc(15,Zge,8,0,"li",46),n.qZA(),n.YNc(16,Gge,6,2,"div",0),n.qZA()}if(2&i){const t=n.MAs(5),r=n.oxw();n.xp6(3),n.Q6J("hidden",r.exibirBuscaGoogle),n.xp6(1),n.Q6J("readonly",r.calculandoTaxa)("ngModel",r.enderecoEscolhido.nome),n.xp6(5),n.Q6J("ngIf",!r.buscandoAutocomplete),n.xp6(1),n.Q6J("ngIf",r.buscandoAutocomplete),n.xp6(1),n.Q6J("ngIf",r.exibirBuscaGoogle),n.xp6(2),n.Q6J("ngForOf",r.data),n.xp6(2),n.Q6J("ngIf",t.value&&r.buscouAutoComplete&&!r.buscandoAutocomplete),n.xp6(1),n.Q6J("ngIf",r.enderecosContato&&r.enderecosContato.length&&(!r.data||!r.data.length))}}function Jge(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome do Local \xe9 obrigat\xf3rio"),n.qZA())}function Qge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",5)(1,"label"),n._uU(2,"Nome Local"),n.qZA(),n.TgZ(3,"input",66,67),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco.descricao=s)}),n.qZA(),n.TgZ(5,"small",68),n._uU(6,"Exemplos: Casa, Trabalho"),n.qZA(),n.TgZ(7,"div",15),n.YNc(8,Jge,2,0,"p",0),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("autoFocus",!0)("ngModel",r.endereco.descricao),n.xp6(5),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function Wge(i,o){1&i&&n._UZ(0,"i",47)}function Kge(i,o){1&i&&n._UZ(0,"div",48)}function Xge(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CEP \xe9 obrigat\xf3rio"),n.qZA())}function efe(i,o){if(1&i&&(n.TgZ(0,"div",69),n._UZ(1,"i",70),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErroCEP," ")}}function tfe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Endere\xe7o \xe9 obrigat\xf3rio"),n.qZA())}function nfe(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&i){n.oxw();const t=n.MAs(26);n.xp6(1),n.hij(" ",null==t.errors?null:t.errors.logradouroInvalido," ")}}function ife(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero \xe9 obrigat\xf3rio"),n.qZA())}function ofe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Bairro \xe9 obrigat\xf3rio"),n.qZA())}function rfe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",71)(1,"label",72),n._uU(2,"Bairro"),n.qZA(),n.TgZ(3,"input",73,74),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco.bairro=s)}),n.qZA(),n.TgZ(5,"div",15),n.YNc(6,ofe,2,0,"p",0),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("ngModel",r.endereco.bairro)("required",r.bairroObrigatorio)("readOnly",r.formaDoPedido&&r.formaDoPedido.bloquearBairroAposCEP&&r.cepValidado&&""!==r.endereco.bairro),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function afe(i,o){1&i&&(n.TgZ(0,"small",80),n._uU(1,"Escolha a regi\xe3o mais pr\xf3xima da sua casa"),n.qZA())}function sfe(i,o){1&i&&(n.TgZ(0,"small",80),n._uU(1,"Entregamos somente nos bairros listados. Outras regi\xf5es, entrar em contato por WhatsApp."),n.qZA())}function lfe(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",null!=t.formaDoPedido&&t.formaDoPedido.selecionarBairroDaZona?"Bairro \xe9 obrigat\xf3rio":"Zona de entrega \xe9 obrigat\xf3rio","")}}function cfe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",75)(1,"div",76)(2,"label"),n._uU(3),n.qZA(),n.TgZ(4,"kendo-combobox",77,78),n.NdJ("ngModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.selecionouZona())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco.zonaDeEntrega=s)}),n.qZA(),n.YNc(7,afe,2,0,"small",79),n.YNc(8,sfe,2,0,"small",79),n.TgZ(9,"div",15),n.YNc(10,lfe,2,1,"p",0),n.qZA()()()}if(2&i){const t=n.MAs(6),r=n.oxw();n.xp6(3),n.hij("Selecione ",null!=r.formaDoPedido&&r.formaDoPedido.selecionarBairroDaZona?"o bairro":"a regi\xe3o"," onde voc\xea mora"),n.xp6(1),n.Q6J("data",r.zonasDeEntrega)("autoFocus",!0)("allowCustom",!1)("clearButton",0===r.zonasBackup.length)("required",r.entregaPorZona)("ngModel",r.endereco.zonaDeEntrega)("valueField","id")("textField","nome"),n.xp6(3),n.Q6J("ngIf",!(null!=r.formaDoPedido&&r.formaDoPedido.selecionarBairroDaZona)),n.xp6(1),n.Q6J("ngIf",null==r.formaDoPedido?null:r.formaDoPedido.selecionarBairroDaZona),n.xp6(2),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function dfe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Complemento \xe9 obrigat\xf3rio"),n.qZA())}function ufe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",5)(1,"label",27),n._uU(2,"Ponto de refer\xeancia"),n.qZA(),n.TgZ(3,"input",81,82),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco.pontoDeReferencia=s)}),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(3),n.Q6J("ngModel",t.endereco.pontoDeReferencia)}}function pfe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Estado \xe9 obrigat\xf3rio"),n.qZA())}function hfe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Cidade \xe9 obrigat\xf3ria"),n.qZA())}function gfe(i,o){if(1&i&&(n.TgZ(0,"div",83),n._UZ(1,"i",70),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErro," ")}}function ffe(i,o){1&i&&n._UZ(0,"i",61)}function mfe(i,o){if(1&i&&(n.TgZ(0,"footer",84)(1,"div")(2,"div",85)(3,"div",75)(4,"button",86),n.YNc(5,ffe,1,0,"i",58),n._uU(6),n.qZA()()()()()),2&i){const t=n.oxw();n.xp6(4),n.Q6J("disabled",t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa),n.xp6(1),n.hij(" ",t.labelSalvarEndereco,"")}}function _fe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",87),n._UZ(2,"app-tela-posicao-mapa",88),n.qZA(),n.BQk()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("latitude",t.latitude)("longitude",t.longitude)("formEndereco",t)}}const bfe=function(i,o){return{"needs-validation":i,"was-validated":o}};let nT=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.enderecoService=t,this.constantsService=r,this.autorizacao=s,this.router=l,this.app=u,this.dominiosService=p,this.carrinhoService=y,this.activatedRoute=A,this.endereco=Xr.novo(),this.telaCarregou=new n.vpe,this.submit=new n.vpe,this.buscouUmEndereco=!1,this.exibirBotao=!0,this.pontoReferencia=!0,this.cepObrigatorio=!1,this.complementoObrigatorio=!1,this.labelSalvarEndereco="Salvar Endere\xe7o",this.deveCalcularTaxaDeEntrega=!0,this.estados=[],this.cidades=[],this.buscandoCEP=!1,this.msgErroCEP="",this.bairroObrigatorio=!0,this.escolherPosicaoExata=!0,this.escolheuUmEnderecoServer=!1,this.keyUp=new Ht.xQ,this.source=[],this.enderecoEscolhido={},this.respostaCep={},this.entregaPorZona=!1,this.zonasDeEntrega=[],this.zonasBackup=[],this.carregou=!1,this.mask="00.000-000",this.nomePagina="",this.posicionarNoMapa=!1,this.latitude="",this.longitude="",this.exibirBuscaGoogle=!1,this.nomePagina=p.obtenhaRaizCardapio(),this.data=[]}roundLatLng(t){return Math.round(1e6*t)/1e6}ngOnInit(){this.ignorarConfigEmpresa||(this.activatedRoute.queryParams.subscribe(t=>{t.gps&&(this.endereco.gps=!0,this.posicionarNoMapa=!0,this.latitude=t.lat,this.longitude=t.lng),this.constantsService.empresa$.subscribe(r=>{if(r){this.empresa=r,this.exibirBuscaGoogle=null!=r.modulos.find(s=>10===s.id);for(let s=0;s<this.empresa.formasDeEntrega.length;s++){const l=this.empresa.formasDeEntrega[s];l.nome===wo.RECEBER_EM_CASA&&(this.formaDoPedido=l)}this.formaDoPedido&&"zona"===this.formaDoPedido.tipoDeCobranca&&(this.entregaPorZona=!0,this.zonasDeEntrega=this.formaDoPedido.zonasDeEntrega),this.formaDoPedido.exibirTelaBusca||this.digitarEnderecoManualmente(),this.formaDoPedido&&this.formaDoPedido.bairroOpcional&&(this.bairroObrigatorio=!1),this.formaDoPedido&&this.formaDoPedido.cepObrigatorio&&(this.cepObrigatorio=!0),this.formaDoPedido&&this.formaDoPedido.complementoObrigatorio&&(this.complementoObrigatorio=!0)}})}),this.autorizacao.obtenhaEnderecos().then(t=>{this.setEnderecosContato(t),this.carregou=!0}).catch(t=>{this.carregou=!0}))}escolheuEnderecoGoogle(t){this.selecionou(t),this.app.tick()}setCidadePadrao(t){this.cidadePadrao=t}buscouEnderecosGoogle(t){this.buscouAutoComplete=!0,this.buscandoAutocomplete=!1,this.data=t}ngAfterViewInit(){this.cboEstado.searchbar.input.nativeElement.setAttribute("autocomplete","new-password"),this.cboCidade.searchbar.input.nativeElement.setAttribute("autocomplete","new-password"),this.subscription=this.keyUp.pipe(xu(700),(0,ft.U)(t=>t.target.value),tg(),kr(t=>!t||t.length<=3?(0,Yo.D)([]):(this.buscandoAutocomplete=!0,this.enderecoService.autocomplete(t)))).subscribe(t=>{this.data=t.resultados,this.buscouAutoComplete=!0,this.buscandoAutocomplete=!1}),this.enderecoService.obtenhaEstados().then(t=>{this.estados=t,this.cidadePadrao&&!this.endereco.cidade&&this.selecioneCidadePadrao(),this.endereco.estado&&(this.endereco.estado=this.estados.find(r=>r.sigla===this.endereco.estado.sigla),this.endereco.cidade&&(this.cidades=[this.endereco.cidade])),this.telaCarregou.emit(!0)})}selecioneCidadePadrao(){this.endereco.estado=this.estados.find(t=>t.id===this.cidadePadrao.estado.id),this.endereco.cidade=this.cidadePadrao}ngOnDestroy(){this.subscription.unsubscribe()}exibaEndereco(t){t&&(this.data=[],this.endereco=Xr.novo(),Object.assign(this.endereco,t),t.cidade&&(this.endereco.cidade=t.cidade,this.endereco.estado=t.cidade.estado,this.carregueEstadoECidade(this.endereco.cidade.nome,this.endereco.estado.nome)),this.formaDoPedido.bloquearBairroAposCEP&&this.endereco.zonaDeEntrega&&(this.zonasBackup=this.zonasDeEntrega,this.zonasDeEntrega=[this.endereco.zonaDeEntrega]))}mudouEstado(t){null!=t&&this.enderecoService.obtenhaCidades(t).then(r=>{r&&r.length&&(this.cidades=r)})}selecionarBairroDaZona(){return this.formaDoPedido&&"zona"===this.formaDoPedido.tipoDeCobranca&&this.formaDoPedido.selecionarBairroDaZona}alterou(){var t=this;this.endereco.cep.length<8||(this.buscandoCEP=!0,this.msgErroCEP="",this.zonasBackup.length&&(this.zonasDeEntrega=this.zonasBackup),this.enderecoService.busquePorCEP(this.unmask(this.endereco.cep)).then(function(){var r=sn(function*(s){t.buscouCep=!0,t.buscandoCEP=!1,t.respostaCep=s,t.cepValidado=null!=s.localidade,t.endereco.logradouro=s.logradouro,t.selecionarBairroDaZona()?t.tenteSelecionarZonaPeloBairro(s.bairro):t.endereco.bairro=s.bairro;const l=s.localidade,u=l.split("/")[0],p=l.split("/")[1];t.carregueEstadoECidade(u,p),t.cepValidado&&(t.endereco.localizacao=null,t.endereco.logradouro?t.txtNumero.nativeElement.focus():t.txtLogradouro.nativeElement.focus())});return function(s){return r.apply(this,arguments)}}()).catch(()=>{this.msgErroCEP="CEP n\xe3o encontrado! Verifique se est\xe1 correto.",this.buscouCep=!0,this.cepValidado=!1,this.buscandoCEP=!1}))}tenteSelecionarZonaPeloBairro(t){let r=null;for(let s=0;s<this.zonasDeEntrega.length;s++){const l=this.zonasDeEntrega[s];l.nome.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"")===(t=t.toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""))&&(r=l)}r?(this.endereco.zonaDeEntrega=r,this.endereco.bairro=r.nome,this.formaDoPedido.bloquearBairroAposCEP&&(this.zonasBackup=this.zonasDeEntrega,this.zonasDeEntrega=[r])):this.endereco.zonaDeEntrega=null}unmask(t){return t&&t.replace(/\D+/g,"")}carregueEstadoECidade(t,r){for(const s of this.estados)if(r===s.nome||r===s.sigla){this.enderecoService.obtenhaCidades(s).then(l=>{this.cidades=l;for(const u of this.cidades)if(t.toUpperCase()===u.nome.toUpperCase()){this.endereco.estado=s,this.endereco.cidade=u;break}});break}}scrollTo(t){t&&t.scrollIntoView({behavior:"smooth"})}onSubmit(t){if(this.frm.valid)this.calculandoTaxa=!0,this.deveCalcularTaxaDeEntrega?this.entregaPorZona?this.caculeTaxaEntrega(this.endereco):this.caculeLocalizacao(this.endereco):this.submit.emit(this.endereco);else{let r=document.querySelector("#frmEndereco .ng-invalid");r&&(r=r.parentElement,this.scrollTo(r))}t.stopPropagation(),t.preventDefault()}devePosicionarNoMapa(){return this.formaDoPedido.permiteUsarGps&&!this.endereco.gps}caculeLocalizacao(t){this.calculandoTaxa=!0,t.gps||(t.localizacao=""),this.enderecoService.calculeTaxaDeEntrega("Receber em casa",t,this.pedido.obtenhaSubTotal()).then(r=>{this.pedido.entrega.setTaxaEntrega(t,r),this.pedido.novosEnderecos.push(t),this.carrinhoService.salvePedido(this.pedido),this.calculandoTaxa=!1;const s=r.localizacao;this.latitude=s.split(",")[0],this.longitude=s.split(",")[1],this.posicionarNoMapa=this.devePosicionarNoMapa(),this.posicionarNoMapa||this.submit.emit(t)}).catch(r=>{this.calculandoTaxa=!1,this.msgErro=r,setTimeout(()=>{window.scrollTo(0,window.innerHeight)},0)})}caculeTaxaEntrega(t){this.calculandoTaxa=!0,this.enderecoService.calculeTaxaDeEntrega("Receber em casa",t,this.pedido.obtenhaSubTotal()).then(r=>{Object.assign(t,r),this.submit.emit(t),this.calculandoTaxa=!1}).catch(r=>{this.calculandoTaxa=!1,this.msgErro=r,window.scrollTo(0,window.innerHeight)})}volteEndereco(){this.buscouUmEndereco=!1,this.endereco=Xr.novo(),this.cepValidado=!1}selecionou(t){this.buscouUmEndereco=!0,this.escolheuUmEnderecoServer=null!=t.id,this.endereco.logradouro=t.logradouro,this.endereco.bairro=t.bairro,this.endereco.numero="",this.endereco.complemento="",this.endereco.cep=t.cep,this.endereco.localizacao=t.localizacao,this.endereco.pontoDeReferencia=t.pontoDeReferencia,this.carregueEstadoECidade(t.cidade.nome,t.estado.nome),setTimeout(()=>{this.cepValidado=!0,this.entregaPorZona?this.cboZonaDeEntrega.focus():this.txtNumero.nativeElement.focus()},0)}digitarEnderecoManualmente(){this.buscouUmEndereco=!0,this.endereco.logradouro="",this.endereco.bairro="",this.endereco.numero="",this.endereco.estado=null,this.endereco.cidade=null,this.endereco.cep="",this.endereco.complemento="",this.endereco.pontoDeReferencia="",this.endereco.localizacao=null,this.cidadePadrao&&this.selecioneCidadePadrao(),setTimeout(()=>{this.txtCEP.nativeElement.focus()},0)}alterouCidade(){!this.endereco.cidade&&1===this.cidades.length&&this.endereco.estado&&this.mudouEstado(this.endereco.estado)}setEnderecosContato(t=[]){this.enderecosContato=[],t.forEach(r=>{let s=Xr.novo();Object.assign(s,r),r.cidade&&(s.cidade=r.cidade,s.estado=r.cidade.estado),s.descricaoCompleta||(s.descricaoCompleta=s.obtenhaEnderecoCompleto()),this.enderecosContato.push(s)})}selecionouZona(){setTimeout(()=>{this.formaDoPedido&&this.formaDoPedido.selecionarBairroDaZona&&(this.endereco.bairro=this.endereco.zonaDeEntrega.nome)},0)}ehValido(){this.frm.submitted=!0;const t=Y1.obtenhaControleInvalido(this.frm,this.frmElement);return console.log(t),t?{valido:!1,controle:t}:{valido:this.frm.valid}}obtenhaEndereco(){let t=Object.assign({},this.endereco);return t.cep=this.unmask(t.cep),t}busqueCEP(t){this.endereco.cep=t,this.alterou()}salvouALocalizacao(t,r){this.posicionarNoMapa=!1,this.endereco=t,r&&this.submit.emit(this.endereco)}exibaMapa(t){this.endereco.gps=!0,this.posicionarNoMapa=!0,this.latitude=t.lat+"",this.longitude=t.lng+""}clicouVoltarLocalizacao(){this.posicionarNoMapa=!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(wc),n.Y36(gi),n.Y36(Qi),n.Y36(Pn),n.Y36(n.z2F),n.Y36(Eo),n.Y36(Oi),n.Y36(ci))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-form-endereco"]],viewQuery:function(t,r){if(1&t&&(n.Gf(oq,7),n.Gf(oq,5,n.SBq),n.Gf(Ege,7),n.Gf(Pge,5),n.Gf(Oge,7),n.Gf(Nge,7),n.Gf(Lge,7),n.Gf(Rge,5),n.Gf(Fge,5),n.Gf(Bge,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first),n.iGM(s=n.CRH())&&(r.txtNumero=s.first),n.iGM(s=n.CRH())&&(r.cboZonaDeEntrega=s.first),n.iGM(s=n.CRH())&&(r.txtLogradouro=s.first),n.iGM(s=n.CRH())&&(r.txtCEP=s.first),n.iGM(s=n.CRH())&&(r.complementoInput=s.first),n.iGM(s=n.CRH())&&(r.txtBusca=s.first),n.iGM(s=n.CRH())&&(r.cboEstado=s.first),n.iGM(s=n.CRH())&&(r.cboCidade=s.first)}},inputs:{pedido:"pedido",buscouUmEndereco:"buscouUmEndereco",exibirBotao:"exibirBotao",pontoReferencia:"pontoReferencia",ignorarConfigEmpresa:"ignorarConfigEmpresa",cepObrigatorio:"cepObrigatorio",complementoObrigatorio:"complementoObrigatorio",labelSalvarEndereco:"labelSalvarEndereco",deveCalcularTaxaDeEntrega:"deveCalcularTaxaDeEntrega",exibirDepoisCep:"exibirDepoisCep"},outputs:{telaCarregou:"telaCarregou",submit:"submit"},decls:71,vars:49,consts:[[4,"ngIf"],[3,"hidden"],["id","frmEndereco","novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],["class","form-group mb-2",4,"ngIf"],[1,"form-group","mb-2"],["for","cep"],[1,"input-group",2,"max-width","250px"],["kendoTextBox","","type","text","autocomplete","off","id","cep","name","cep","placeholder","Informe o CEP.","value","",1,"form-control",3,"ngModel","mask","readonly","required","change","ngModelChange"],["txtCEP","","cep","ngModel"],[1,"input-group-prepend"],["tabindex","-1","type","button",1,"btn","btn-secondary",2,"border-top-right-radius","3px","border-bottom-right-radius","0px",3,"click"],["class","fa fa-search",4,"ngIf"],["class","k-i-loading ml-1 mr-1","style","font-size: 20px;",4,"ngIf"],["id","cepHelp",1,"form-text","text-muted"],[1,"invalid-feedback"],["class","alert alert-danger alerta-personalizado mt-1 mb-2","role","alert",4,"ngIf"],["for","logradouro"],["type","text","autocomplete","off","logradouroValido","","id","logradouro","name","logradouro","placeholder","Logradouro: Rua, av. etc","value","","required","",1,"form-control",3,"sistema","ngModel","readOnly","ngModelChange"],["logradouro","ngModel","txtLogradouro",""],[1,"row"],[1,"form-group","mb-2","col-4"],["for","numero"],["type","number","autocomplete","off","id","numero","name","numero","placeholder","N\xfamero","required","",1,"form-control",3,"min","tamanhoMax","ngModel","ngModelChange"],["txtNumero","","numero","ngModel"],["class","form-group mb-2 col","style","padding-left: 0px;",4,"ngIf"],["class","col",4,"ngIf"],["for","complemento"],["type","text","autocomplete","off","id","complemento","name","complemento","placeholder","lote, quadra, etc.","value","",1,"form-control",3,"ngModel","required","ngModelChange"],["complementoInput","","complemento","ngModel"],["for","estado"],["id","estado","name","estado","placeholder","Selecione um Estado","required","","autocomplete","disabled",1,"form-control",3,"ngModel","data","filterable","textField","valueField","readonly","ngModelChange","valueChange"],["estado","ngModel","cboEstado",""],["for","cidade"],["id","cidade","name","cidade","placeholder","Selecione uma Cidade","required","",1,"form-control",3,"ngModel","data","filterable","textField","valueField","readonly","ngModelChange"],["cboCidade","","cidade","ngModel"],["class","alert alert-danger mt-2 mb-2","role","alert",4,"ngIf"],["class","footer",4,"ngIf"],[1,"input-group",3,"hidden"],["kendoTextBox","","id","busca","name","busca","allowCustom","true","appAutoFocus","true","placeholder","Informe nome da sua rua e bairro. Exemplo: Rua 3, Centro","required","",1,"form-control",3,"readonly","ngModel","ngModelChange","keyup"],["txtBusca","","busca","ngModel"],["tabindex","-1","type","button",1,"btn","btn-secondary",2,"border-top-right-radius","3px","border-bottom-right-radius","0px","width","55px"],[3,"empresa","onSelecionou",4,"ngIf"],[2,"height","10px"],["class","endereco",4,"ngFor","ngForOf"],[1,"endereco"],["class","media pt-2 pb-2",3,"click",4,"ngIf"],[1,"fa","fa-search"],[1,"k-i-loading","ml-1","mr-1",2,"font-size","20px"],[3,"empresa","onSelecionou"],[1,"media","pt-2","pb-2",3,"click"],[1,"mr-3"],[1,"fas","fa-map-marker-alt","text-muted",2,"font-size","35px"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"fas","fa-map-marker-alt","text-muted",2,"font-size","40px"],[1,"mt-0","mb-1","text-danger"],[1,"text-muted"],["class","k-icon k-i-loading",4,"ngIf"],[2,"padding","0"],["class","mt-1",4,"ngFor","ngForOf"],[1,"k-icon","k-i-loading"],[1,"mt-1"],["type","button",1,"btn","btn-outline-light","btn-block",3,"disabled","click"],[1,"fas","fa-map-marker-alt","text-muted","fa-2x","float-left","mr-1"],[1,"abreviar","d-block","text-left","ml-1"],["kendoTextBox","","name","descricao","appAutoFocus","","required","",1,"form-control",3,"autoFocus","ngModel","ngModelChange"],["descricao","ngModel"],["id","emailHelp",1,"form-text","text-muted"],["role","alert",1,"alert","alert-danger","alerta-personalizado","mt-1","mb-2"],[1,"fas","fa-exclamation-triangle"],[1,"form-group","mb-2","col",2,"padding-left","0px"],["for","bairro"],["type","text","autocomplete","off","id","bairro","name","bairro","placeholder","Nome do bairro",1,"form-control",3,"ngModel","required","readOnly","ngModelChange"],["bairro","ngModel"],[1,"col"],[1,"form-group"],["id","zonaDeEntrega","name","zonaDeEntrega","placeholder","selecionar","appAutoFocus","",1,"form-control",3,"data","autoFocus","allowCustom","clearButton","required","ngModel","valueField","textField","ngModelChange"],["cboZonaDeEntrega","","zona","ngModel"],["class","form-text text-muted",4,"ngIf"],[1,"form-text","text-muted"],["type","text","autocomplete","off","name","pontoDeReferencia","placeholder","ponto de refer\xeancia","value","",1,"form-control",3,"ngModel","ngModelChange"],["pontoDeReferencia",""],["role","alert",1,"alert","alert-danger","mt-2","mb-2"],[1,"footer"],[1,"row",2,"padding","15px"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],[2,"margin-left","-12px","margin-right","-12px","margin-top","-22px"],[3,"latitude","longitude","formEndereco"]],template:function(t,r){if(1&t&&(n.YNc(0,qge,17,9,"div",0),n.TgZ(1,"div",1)(2,"form",2,3),n.NdJ("ngSubmit",function(l){return r.onSubmit(l)}),n.YNc(4,Qge,9,3,"div",4),n.TgZ(5,"div",5)(6,"label",6),n._uU(7,"CEP"),n.qZA(),n.TgZ(8,"div",7)(9,"input",8,9),n.NdJ("change",function(){return r.alterou()})("ngModelChange",function(l){return r.endereco.cep=l}),n.qZA(),n.TgZ(12,"span",10)(13,"button",11),n.NdJ("click",function(){return r.alterou()}),n.YNc(14,Wge,1,0,"i",12),n.YNc(15,Kge,1,0,"div",13),n.qZA()()(),n.TgZ(16,"small",14),n._uU(17),n.qZA(),n.TgZ(18,"div",15),n.YNc(19,Xge,2,0,"p",0),n.qZA(),n.YNc(20,efe,3,1,"div",16),n.qZA(),n.TgZ(21,"span",1)(22,"div",5)(23,"label",17),n._uU(24,"Logradouro"),n.qZA(),n.TgZ(25,"input",18,19),n.NdJ("ngModelChange",function(l){return r.endereco.logradouro=l}),n.qZA(),n.TgZ(28,"div",15),n.YNc(29,tfe,2,0,"p",0),n.YNc(30,nfe,2,1,"p",0),n.qZA()(),n.TgZ(31,"div",20)(32,"div",21)(33,"label",22),n._uU(34,"N\xfamero"),n.qZA(),n.TgZ(35,"input",23,24),n.NdJ("ngModelChange",function(l){return r.endereco.numero=l}),n.qZA(),n.TgZ(38,"div",15),n.YNc(39,ife,2,0,"p",0),n.qZA()(),n.YNc(40,rfe,7,4,"div",25),n.qZA(),n.TgZ(41,"div",20),n.YNc(42,cfe,11,12,"div",26),n.qZA(),n.TgZ(43,"div",5)(44,"label",27),n._uU(45,"Complemento"),n.qZA(),n.TgZ(46,"input",28,29),n.NdJ("ngModelChange",function(l){return r.endereco.complemento=l}),n.qZA(),n.TgZ(49,"div",15),n.YNc(50,dfe,2,0,"p",0),n.qZA()(),n.YNc(51,ufe,5,1,"div",4),n.TgZ(52,"div",5)(53,"label",30),n._uU(54,"Estado:"),n.qZA(),n.TgZ(55,"kendo-combobox",31,32),n.NdJ("ngModelChange",function(l){return r.endereco.estado=l})("valueChange",function(l){return r.mudouEstado(l)}),n.qZA(),n.TgZ(58,"div",15),n.YNc(59,pfe,2,0,"p",0),n.qZA()(),n.TgZ(60,"div",5)(61,"label",33),n._uU(62,"Cidade: "),n.qZA(),n.TgZ(63,"kendo-combobox",34,35),n.NdJ("ngModelChange",function(l){return r.endereco.cidade=l})("ngModelChange",function(){return r.alterouCidade()}),n.qZA(),n.TgZ(66,"div",15),n.YNc(67,hfe,2,0,"p",0),n.qZA()()(),n.YNc(68,gfe,3,1,"div",36),n.YNc(69,mfe,7,3,"footer",37),n.qZA()(),n.YNc(70,_fe,3,3,"ng-container",0)),2&t){const s=n.MAs(3),l=n.MAs(11),u=n.MAs(26),p=n.MAs(37),y=n.MAs(48),A=n.MAs(56),w=n.MAs(65);n.Q6J("ngIf",!r.buscouUmEndereco),n.xp6(1),n.Q6J("hidden",!r.buscouUmEndereco||r.posicionarNoMapa),n.xp6(1),n.Q6J("ngClass",n.WLB(46,bfe,!s.submitted,s.submitted)),n.xp6(2),n.Q6J("ngIf",!1),n.xp6(5),n.Q6J("ngModel",r.endereco.cep)("mask",r.mask)("readonly",r.escolheuUmEnderecoServer)("required",r.cepObrigatorio),n.xp6(5),n.Q6J("ngIf",!r.buscandoCEP),n.xp6(1),n.Q6J("ngIf",r.buscandoCEP),n.xp6(2),n.hij("CEP ",r.cepObrigatorio?"":"n\xe3o"," \xe9 obrigat\xf3rio. Usamos o cep para buscar o logradouro, bairro, cidade atrav\xe9s do CEP."),n.xp6(2),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",r.msgErroCEP),n.xp6(1),n.Q6J("hidden",r.exibirDepoisCep&&!r.buscouCep),n.xp6(4),n.s9C("sistema",null==r.empresa||null==r.empresa.integracaoDelivery?null:r.empresa.integracaoDelivery.sistema),n.Q6J("ngModel",r.endereco.logradouro)("readOnly",r.cepValidado&&""!==r.respostaCep.logradouro),n.xp6(4),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(1),n.Q6J("ngIf",null==u.errors?null:u.errors.logradouroInvalido),n.xp6(5),n.Q6J("min",0)("tamanhoMax",6)("ngModel",r.endereco.numero),n.xp6(4),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(1),n.Q6J("ngIf",!r.selecionarBairroDaZona()),n.xp6(2),n.Q6J("ngIf",r.entregaPorZona),n.xp6(4),n.Q6J("ngModel",r.endereco.complemento)("required",r.complementoObrigatorio),n.xp6(4),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(1),n.Q6J("ngIf",r.pontoReferencia),n.xp6(4),n.Q6J("ngModel",r.endereco.estado)("data",r.estados)("filterable",!1)("textField","nome")("valueField","id")("readonly",r.cepValidado),n.xp6(4),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(4),n.Q6J("ngModel",r.endereco.cidade)("data",r.cidades)("filterable",!1)("textField","nome")("valueField","id")("readonly",r.cepValidado),n.xp6(4),n.Q6J("ngIf",null==w.errors?null:w.errors.required),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",r.exibirBotao),n.xp6(1),n.Q6J("ngIf",r.posicionarNoMapa)}},styles:[".k-widget[_ngcontent-%COMP%]{font-size:13px}input[type=text][_ngcontent-%COMP%]:disabled{outline:none;cursor:default;opacity:.6;filter:grayscale(.1);pointer-events:none;box-shadow:none}.text-muted[_ngcontent-%COMP%]{color:#f7f7f7}  .k-list .k-item:focus, .k-list[_ngcontent-%COMP%]   .k-item.k-state-focused[_ngcontent-%COMP%], .k-list-optionlabel[_ngcontent-%COMP%]:focus, .k-list-optionlabel.k-state-focused[_ngcontent-%COMP%]{box-shadow:none!important}.endereco[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{border-bottom:solid 1px #ececec;cursor:pointer}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important}}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{list-style:none}ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]     .btn-outline-light{color:#607d8b;border-color:#f1f5f7}.alerta-personalizado[_ngcontent-%COMP%]{padding:0;font-size:.875rem;color:#ba0933;background:transparent;border:0}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}"]}),i})();function re(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Oc(i,o){return function(t,r){o(t,r,i)}}function ee(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const sq=()=>typeof window<"u",T7={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)(\.(\d+(\.\d+)?))?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,meego:/(MeeGo).+NokiaBrowser\/(\d+)\.([\d\._]+)/,webos:/(webOS)\/(\d+)\.(\d+(\.\d+)?)/,blackberry:/(BlackBerry|BB10).*?Version\/(\d+)\.(\d+(\.\d+)?)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i,ffos:/(Mobile).*rv:(\d+)\.(\d+(\.\d+)?).*Firefox/},yfe={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,blackberry:/^blackberry|playbook/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i,meego:/meego/},S7={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i},Cfe={omini:/Opera\sMini/i,omobile:/Opera\sMobi/i,firefox:/Firefox|Fennec/i,mobilesafari:/version\/.*safari/i,ie:/MSIE|Windows\sPhone/i,chrome:/chrome|crios/i,webkit:/webkit/i},lq=(i,o,t)=>{for(let r in o)if(o.hasOwnProperty(r)&&o[r].test(i))return r;return void 0!==t?t:i},jI=sq()&&window.navigator?window.navigator.userAgent:null,ZI=jI?(i=>{let o=null,t=[];for(let r in S7)if(S7.hasOwnProperty(r)&&(t=i.match(S7[r]),t)){o={},o[r]=!0,o[t[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,o.version=parseInt(document.documentMode||t[2],10);break}return o})(jI):null,Tfe=jI?(i=>{let o,t=[];for(let r in T7)if(T7.hasOwnProperty(r)){if(t=i.match(T7[r]),!t)continue;if("windows"===r&&"plugins"in window.navigator)return null;const s={};return s.device=r,s.browser=lq(i,Cfe,"default"),s.name=lq(r,yfe),s[s.name]=!0,s.majorVersion=t[2],s.minorVersion=t[3]?t[3].replace("_","."):".0",o=s.minorVersion.replace(".","").substr(0,2),s.flatVersion=s.majorVersion+o+new Array(3-(o.length<3?o.length:2)).join("0"),s.cordova=void 0!==typeof window.PhoneGap||void 0!==typeof window.cordova,s.appMode=window.navigator.standalone||/file|local|wmapp/.test(window.location.protocol)||s.cordova,s}return null})(jI):null,Sfe=sq()&&"ontouchstart"in window,wfe=ZI&&!ZI.chrome&&window.MSPointerEvent,cq=ZI&&!ZI.chrome&&window.PointerEvent,iT=Tfe&&(Sfe||wfe||cq),Mfe=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;const oT={};function ys(i){if(oT[i])return oT[i];const o=function dq(i){const o=[];return i.replace(Mfe,function(t,r,s,l){o.push(void 0!==r?r:s||l)}),o}(i);return oT[i]=function(t){let r=t;for(let s=0;s<o.length&&r;s++)r=r[o[s]];return r},oT[i]}function Ue(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Ay(i,o){return function(t,r){o(t,r,i)}}function Ee(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}oT.undefined=i=>i;class Efe{constructor(o,t){this.delay=o,this.scheduler=t}call(o,t){return t.subscribe(new k7(o,this.delay,this.scheduler))}}class k7 extends Ji.L{constructor(o,t,r){super(o),this.delay=t,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}static dispatch(o){const t=o.source,r=t.queue,s=o.scheduler,l=o.destination;for(;r.length>0&&r[0].time-s.now()<=0;)r.shift().notification.observe(l);if(r.length>0){const u=Math.max(0,r[0].time-s.now());this.schedule(o,u)}else this.unsubscribe(),t.active=!1}_schedule(o){this.active=!0,this.destination.add(o.schedule(k7.dispatch,this.delay,{source:this,destination:this.destination,scheduler:o}))}scheduleNotification(o){if(!0===this.errored)return;const t=this.scheduler,r=new Pfe(t.now()+this.delay,o);this.queue.push(r),!1===this.active&&this._schedule(t)}_next(o){this.scheduleNotification(ms.createNext(o))}_error(o){this.errored=!0,this.queue=[],this.destination.error(o),this.unsubscribe()}_complete(){this.scheduleNotification(ms.createComplete()),this.unsubscribe()}}class Pfe{constructor(o,t){this.time=o,this.notification=t}}const Ofe=["assetsContainer"];function Nfe(i,o){1&i&&n._UZ(0,"span",6)}function Lfe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",3)(1,"kendo-textbox",4),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.filterChange.emit(s))}),n.YNc(2,Nfe,1,0,"ng-template",5),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("size",t.size)("value",t.filter)("clearButton",!0)("placeholder",t.filterInputPlaceholder)}}const Rfe=["kendoTreeViewGroup",""];function Ffe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",12),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(),l=s.index,u=s.$implicit,p=n.oxw();return n.KtG(p.expandNode(p.nodeIndex(l),u,!p.isExpanded(u,p.nodeIndex(l))))}),n._UZ(1,"span",13),n.qZA()}if(2&i){const t=n.oxw(),r=t.index,s=t.$implicit,l=n.oxw();n.Q6J("kendoTreeViewLoading",l.nodeIndex(r)),n.xp6(1),n.ekj("k-i-collapse",l.isExpanded(s,l.nodeIndex(r)))("k-i-expand",!l.isExpanded(s,l.nodeIndex(r)))}}function Bfe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-checkbox",14),n.NdJ("checkStateChange",function(){n.CHM(t);const s=n.oxw().index,l=n.oxw();return n.KtG(l.checkNode(l.nodeIndex(s)))}),n.qZA()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw();n.Q6J("size",l.size)("node",r)("index",l.nodeIndex(s))("isChecked",l.isChecked)}}function Hfe(i,o){}const $fe=function(i,o){return{$implicit:i,index:o}};function Ufe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Hfe,0,0,"ng-template",15),n.BQk()),2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",l.nodeTemplateRef)("ngTemplateOutletContext",n.WLB(2,$fe,r,l.nodeIndex(s)))}}function Yfe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=n.oxw().$implicit,r=n.oxw();n.xp6(1),n.hij(" ",r.nodeText(t)," ")}}function jfe(i,o){if(1&i&&n._UZ(0,"ul",16),2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw();n.Q6J("nodes",l.fetchChildren)("loadOnDemand",l.loadOnDemand)("checkboxes",l.checkboxes)("expandIcons",l.expandIcons)("selectable",l.selectable)("touchActions",l.touchActions)("children",l.children)("hasChildren",l.hasChildren)("isChecked",l.isChecked)("isDisabled",l.isDisabled)("disabled",l.disabled||l.isDisabled(r,l.nodeIndex(s)))("isExpanded",l.isExpanded)("isSelected",l.isSelected)("isVisible",l.isVisible)("nodeTemplateRef",l.nodeTemplateRef)("loadMoreButtonTemplateRef",l.loadMoreButtonTemplateRef)("parentIndex",l.nodeIndex(s))("parentDataItem",r)("textField",l.nextFields)("loadMoreService",l.loadMoreService)("@toggle",!0)("trackBy",l.trackBy)}}function Zfe(i,o){if(1&i&&(n.TgZ(0,"li",2)(1,"div",3),n.YNc(2,Ffe,2,5,"span",4),n.YNc(3,Bfe,1,4,"kendo-checkbox",5),n.TgZ(4,"span",6)(5,"span",7),n.ynx(6,8),n.YNc(7,Ufe,2,5,"ng-container",9),n.YNc(8,Yfe,2,1,"ng-container",10),n.BQk(),n.qZA()()(),n.YNc(9,jfe,1,22,"ul",11),n.qZA()),2&i){const t=o.$implicit,r=o.index,s=n.oxw();n.ekj("k-display-none",!s.isVisible(t,s.nodeIndex(r))),n.Q6J("dataItem",t)("index",s.nodeIndex(r))("parentDataItem",s.parentDataItem)("parentIndex",s.parentIndex)("loadOnDemand",s.loadOnDemand)("checkable",s.checkboxes)("isChecked",s.isChecked(t,s.nodeIndex(r)))("isDisabled",s.disabled||s.isDisabled(t,s.nodeIndex(r)))("isVisible",s.isVisible(t,s.nodeIndex(r)))("expandable",s.expandIcons&&s.hasChildren(t))("isExpanded",s.isExpanded(t,s.nodeIndex(r)))("selectable",s.selectable)("isSelected",s.isSelected(t,s.nodeIndex(r))),n.uIk("aria-setsize",s.totalNodesCount)("data-treeindex",s.nodeIndex(r)),n.xp6(2),n.Q6J("ngIf",s.expandIcons&&s.hasChildren(t)),n.xp6(1),n.Q6J("ngIf",s.checkboxes),n.xp6(1),n.Udp("touch-action",s.touchActions?"":"none"),n.Q6J("dataItem",t)("index",s.nodeIndex(r))("initialSelection",s.isSelected(t,s.nodeIndex(r)))("isSelected",s.isSelected),n.uIk("data-treeindex",s.nodeIndex(r)),n.xp6(2),n.Q6J("ngSwitch",s.hasTemplate),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(2),n.Q6J("ngIf",s.isExpanded(t,s.nodeIndex(r))&&s.hasChildren(t))}}function Vfe(i,o){1&i&&n._UZ(0,"span",21)}function zfe(i,o){}const Gfe=function(i){return{index:i}};function qfe(i,o){if(1&i&&n.YNc(0,zfe,0,0,"ng-template",15),2&i){const t=n.oxw(2);n.Q6J("ngTemplateOutlet",t.loadMoreButtonTemplateRef)("ngTemplateOutletContext",n.VKq(2,Gfe,t.loadMoreButtonIndex))}}function Jfe(i,o){1&i&&(n.ynx(0),n._uU(1," Load more "),n.BQk())}function Qfe(i,o){if(1&i&&(n.TgZ(0,"li",17)(1,"div",3),n.YNc(2,Vfe,1,0,"span",18),n.TgZ(3,"span",19)(4,"span",7),n.YNc(5,qfe,1,4,null,20),n.YNc(6,Jfe,2,0,"ng-container",20),n.qZA()()()()),2&i){const t=n.oxw();n.ekj("k-treeview-load-more-checkboxes-container",t.checkboxes),n.Q6J("selectable",!1)("checkable",!1)("expandable",!1)("index",t.loadMoreButtonIndex)("parentDataItem",t.parentDataItem)("parentIndex",t.parentIndex),n.uIk("data-treeindex",t.loadMoreButtonIndex),n.xp6(2),n.Q6J("ngIf",t.loadingMoreNodes),n.xp6(1),n.Q6J("index",t.loadMoreButtonIndex),n.uIk("data-treeindex",t.loadMoreButtonIndex),n.xp6(2),n.Q6J("ngIf",t.loadMoreButtonTemplateRef),n.xp6(1),n.Q6J("ngIf",!t.loadMoreButtonTemplateRef)}}const ame={name:"@progress/kendo-angular-treeview",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219256,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let aT=(()=>{class i{constructor(){this.changes=new n.vpe}notify(){this.changes.emit()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const sme=()=>!1,lme=()=>"none",cme=()=>!1,dme=()=>!0,hq=()=>!1,gq=()=>!0,ume=(i,o)=>o;let Sg=(()=>{let i=class{constructor(){this.changes=new Ht.xQ}expand(t,r){this.changes.next({dataItem:r,index:t,expand:!0})}collapse(t,r){this.changes.next({dataItem:r,index:t,expand:!1})}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),am=(()=>{let i=class{constructor(){this.INDEX_SEPARATOR="_"}nodeIndex(t="",r=""){return`${r}${r?this.INDEX_SEPARATOR:""}${t}`}indexForLevel(t,r){return t.split(this.INDEX_SEPARATOR).slice(0,r).join(this.INDEX_SEPARATOR)}lastLevelIndex(t=""){const r=t.split(this.INDEX_SEPARATOR);return r.length?parseInt(r[r.length-1],10):NaN}level(t){return t.split(this.INDEX_SEPARATOR).length}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),sT=(()=>{let i=class{constructor(){this.changes=new Ht.xQ}notifyLoaded(t){this.changes.next(t)}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const pme=/^(?:a|input|select|option|textarea|button|object)$/i,Z1=(i,o)=>{const t=i.matches||i.msMatchesSelector||i.webkitMatchesSelector;return!!t&&t.call(i,o)},xy=(i,o)=>{if(!document.documentElement.contains(i))return null;let t=i;for(;null!==t&&1===t.nodeType;){if(Z1(t,o))return t;t=t.parentElement||t.parentNode}return null},fq=()=>{},mt=i=>null!=i,_q=i=>Array.isArray(i),Ty=i=>{const o="li.k-treeview-item";return Dt()?i.closest?i.closest(o):xy(i,o):null},bq=i=>{if(i.tagName){const o=i.tagName.toLowerCase(),t=i.getAttribute("tabIndex"),r="-1"===t;let s=null!==t&&!r;return pme.test(o)&&(s=!i.disabled&&!r),s}return!1},vq=i=>mt(xy(i,".k-treeview-leaf.k-treeview-load-more-button")),P7=(i,o)=>Boolean(((i,o)=>{for(;i&&!o(i);)i=i.parentNode;return i})(i,t=>t===o)),yq=i=>i.nativeElement.querySelector('li[tabindex="0"]'),O7=i=>i?i.getAttribute("data-treeindex"):"",Bp=i=>(i||{}).index,lT=(i,o)=>[i,o].filter(t=>mt(t)).join("_"),GI=(i,o)=>({small:`k-${i}-sm`,medium:`k-${i}-md`,large:`k-${i}-lg`}[o]),N7=i=>i||{},L7=i=>N7(i).children||[],R7=i=>{if(!Array.isArray(i)||0===i.length)return null;for(let r=i.length-1;r>=0;r-=1){const s=i[r];if(s.visible)return s}return null};class yme{constructor(){this.ib=new am,this.nodes=[]}firstVisibleNode(){return(this.nodes||[]).find(o=>o.visible)}lastVisibleNode(){let o=R7(this.nodes);for(;mt(o)&&L7(o).length>0;){const t=L7(o),r=R7(t);if(!mt(r))return o;o=r}return o}closestNode(o){const{prev:t}=N7(this.findNode(o)),r=t||this.firstVisibleNode();return N7(r).index===o?this.visibleSibling(r,1):r}firstFocusableNode(){return this.nodes.find(o=>!o.disabled&&o.visible)}findNode(o){return this.find(o,this.nodes)}findParent(o){const t=this.ib.level(o)-1;return this.findNode(this.ib.indexForLevel(o,t))}findVisibleChild(o){const t=this.findNode(o);return L7(t).find(s=>s.visible)}findVisiblePrev(o){const t=o.index,r=this.findParent(t),s=this.ib.lastLevelIndex(t),u=this.container(r).slice(0,s).every(A=>!A.visible);if(0===s||u)return r;const p=this.findNode(t);let y=this.visibleSibling(p,-1);if(y){let A=this.container(y);for(;A.length>0&&A.some(w=>w.visible);)y=R7(A),A=this.container(y)}return y}findVisibleNext(o){const t=this.container(o),r=t.some(s=>s.visible);return 0!==t.length&&r?t.find(s=>s.visible):this.visibleSibling(o,1)}registerItem(o,t,r,s=!1,l=!0){const u=[],p=this.ib.level(t),y=this.findParent(t);(y||1===p)&&this.insert({id:o,children:u,index:t,parent:y,disabled:r,loadMoreButton:s,visible:l},y)}unregisterItem(o,t){const r=this.find(t,this.nodes);if(!r||r.id!==o)return;const s=this.container(r.parent);s.splice(s.indexOf(r),1)}childLevel(o){const t=o.filter(r=>mt(r));return t&&t.length?this.ib.level(t[0].index):1}container(o){return o?o.children:this.nodes}find(o,t){const r=this.childLevel(t),s=this.ib.indexForLevel(o,r),l=r===this.ib.level(o),u=t.find(p=>p&&p.index===s);return u?l?u:this.find(o,u.children):null}insert(o,t){this.container(t).splice(this.ib.lastLevelIndex(o.index),0,o)}visibleSibling(o,t){if(!o)return null;const r=this.findParent(o.index),s=this.container(r);let l=s.indexOf(o)+t,u=s[l];for(;mt(u);){if(u.visible)return u;l+=t,u=s[l]}return this.visibleSibling(r,t)}}let wg=(()=>{let i=class{constructor(t){this.localization=t,this.expands=new Ht.xQ,this.moves=new Ht.xQ,this.checks=new Ht.xQ,this.selects=new Ht.xQ,this.loadMore=new Ht.xQ,this.navigable=!0,this.actions={[Ie.ArrowUp]:()=>this.activate(this.model.findVisiblePrev(this.focusableItem),!0),[Ie.ArrowDown]:()=>this.activate(this.model.findVisibleNext(this.focusableItem),!0),[Ie.ArrowLeft]:()=>!this.isLoadMoreButton&&this.expand({expand:this.localization.rtl,intercept:this.localization.rtl?this.moveToFirstVisibleChild:this.moveToParent}),[Ie.ArrowRight]:()=>!this.isLoadMoreButton&&this.expand({expand:!this.localization.rtl,intercept:this.localization.rtl?this.moveToParent:this.moveToFirstVisibleChild}),[Ie.Home]:()=>this.activate(this.model.firstVisibleNode(),!0),[Ie.End]:()=>this.activate(this.model.lastVisibleNode(),!0),[Ie.Enter]:()=>this.handleEnter(),[Ie.Space]:()=>this.handleSpace()},this.isFocused=!1,this.shouldScroll=!1,this._model=new yme,this.moveToFirstVisibleChild=this.moveToFirstVisibleChild.bind(this),this.moveToParent=this.moveToParent.bind(this)}get model(){return this._model}set model(t){this._model=t}get activeIndex(){return Bp(this.activeItem)||null}get isActiveExpanded(){return this.activeItem&&this.activeItem.children.length>0}get isLoadMoreButton(){return this.activeItem&&this.activeItem.loadMoreButton}get focusableItem(){return this.activeItem||this.model.firstFocusableNode()}activate(t,r=!1){!this.navigable||!t||this.isActive(Bp(t))||(this.isFocused=!0,this.activeItem=t||this.activeItem,this.shouldScroll=r,this.notifyMove())}activateParent(t){this.activate(this.model.findParent(t))}activateIndex(t){!t||this.activate(this.model.findNode(t))}activateClosest(t){!t||Bp(this.focusableItem)!==t||(this.activeItem=this.model.closestNode(t),this.notifyMove())}activateFocusable(){this.activeItem||(this.activeItem=this.model.firstVisibleNode(),this.notifyMove())}deactivate(){!this.navigable||!this.isFocused||(this.isFocused=!1,this.notifyMove())}checkIndex(t){this.isDisabled(t)||this.checks.next(t)}selectIndex(t){this.isDisabled(t)||this.selects.next(t)}notifyLoadMore(t){!mt(t)||this.loadMore.next(t)}isActive(t){return!!t&&this.isFocused&&this.activeIndex===t}isFocusable(t){return Bp(this.focusableItem)===t}isDisabled(t){return this.model.findNode(t).disabled}registerItem(t,r,s,l=!1,u=!0){const p=this.model.findNode(r);mt(p)&&(this.model.unregisterItem(p.id,p.index),this.isActive(r)&&this.deactivate()),this.model.registerItem(t,r,s,l,u)}unregisterItem(t,r){this.isActive(r)&&this.activateParent(r),this.model.unregisterItem(t,r)}move(t){if(!this.navigable)return;const r=this.actions[t.keyCode];!r||(r(),t.preventDefault())}expand({expand:t,intercept:r}){const s=Bp(this.activeItem);!s||r(s)||this.notifyExpand(t)}moveToParent(){return!this.isActiveExpanded&&(this.activate(this.model.findParent(Bp(this.activeItem))),!0)}moveToFirstVisibleChild(){return!!this.isActiveExpanded&&(this.activate(this.model.findVisibleChild(Bp(this.activeItem))),!0)}notifyExpand(t){this.expands.next(this.navigationState(t))}notifyMove(){this.moves.next(this.navigationState())}navigationState(t=!1){return{expand:t,index:this.activeIndex,isFocused:this.isFocused,shouldScroll:this.shouldScroll}}handleEnter(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.selectIndex(this.activeIndex))}handleSpace(){!this.navigable||(this.isLoadMoreButton?this.notifyLoadMore(this.activeIndex):this.checkIndex(this.activeIndex))}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Te))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=Ue([Ee("design:paramtypes",[Te])],i),i})(),cT=(()=>{let i=class{constructor(){this.changes=new Ht.xQ}childrenLoaded(t,r){this.changes.next({item:t,children:r})}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),V1=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewNodeTemplate",""]]}),i=Ue([Ay(0,(0,n.FiY)()),Ee("design:paramtypes",[n.Rgc])],i),i})(),z1=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewLoadMoreButtonTemplate",""]]}),i=Ue([Ay(0,(0,n.FiY)()),Ee("design:paramtypes",[n.Rgc])],i),i})(),Ml=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),G1=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),q1=(()=>{let i=class{constructor(){this.changes=new Ht.xQ}isFirstSelected(t){return this.firstIndex===t}setFirstSelected(t,r){this.firstIndex===t&&!1===r?this.firstIndex=null:!this.firstIndex&&r&&(this.firstIndex=t)}select(t,r){this.changes.next({dataItem:r,index:t})}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const Cme=/\d+$/;let J1=(()=>{let i=class{constructor(){this.map=new Map}reset(){this.map.clear()}registerItem(t,r){const s={children:[],item:t,parent:this.item(Bp(r))};this.map.set(t.index,s)}registerChildren(t,r){const s=this.item(t);!s||(s.children=r)}unregisterItem(t,r){const s=this.item(t);s&&s.item.dataItem===r&&(this.map.delete(t),s.parent&&s.parent.children&&(s.parent.children=s.parent.children.filter(l=>l.dataItem!==r)))}replaceItem(t,r,s){!r||(this.unregisterItem(t,r.dataItem),this.registerItem(r,s),this.addToParent(r,s))}itemLookup(t){const r=this.item(t);return r?{children:this.mapChildren(r.children),item:r.item,parent:r.parent}:null}hasItem(t){return this.map.has(t)}item(t){return this.map.get(t)||null}addToParent(t,r){if(r){const s=this.item(r.index),l=parseInt(Cme.exec(t.index)[0],10);s.children=s.children||[],s.children.splice(l,0,t)}}mapChildren(t=[]){return t.map(r=>{const{item:s,parent:l,children:u}=this.item(r.index);return{children:this.mapChildren(u),item:s,parent:l}})}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const xme=[Sg,am,J1,sT,cT,wg,q1,aT,Te,{provide:gn,useValue:"kendo.treeview"},{provide:Ml,useExisting:(0,n.Gpc)(()=>Or)},{provide:G1,useExisting:(0,n.Gpc)(()=>Or)}];let Or=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A,w,I,P){this.element=t,this.changeDetectorRef=r,this.expandService=s,this.navigationService=l,this.nodeChildrenService=u,this.selectionService=p,this.treeViewLookupService=y,this.ngZone=A,this.renderer=w,this.dataChangeNotification=I,this.localization=P,this.classNames=!0,this.role="tree",this.filterInputPlaceholder="",this.fetchNodes=()=>this.data,this.childrenLoaded=new n.vpe,this.onBlur=new n.vpe,this.onFocus=new n.vpe,this.expand=new n.vpe,this.collapse=new n.vpe,this.nodeDragStart=new n.vpe,this.nodeDrag=new n.vpe,this.filterStateChange=new n.vpe,this.nodeDrop=new n.vpe,this.nodeDragEnd=new n.vpe,this.addItem=new n.vpe,this.removeItem=new n.vpe,this.checkedChange=new n.vpe,this.selectionChange=new n.vpe,this.filterChange=new n.vpe,this.nodeClick=new n.vpe,this.nodeDblClick=new n.vpe,this.trackBy=ume,this.isDisabled=cme,this.isVisible=gq,this.navigable=!0,this.children=()=>Et([]),this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.checkboxes=!1,this.expandIcons=!1,this.selectable=!1,this.touchActions=!0,this.isActive=!1,this.data=new Qn([]),this._animate=!0,this._size="medium",this.subscriptions=new bn.w,this.domSubscriptions=[],(0,mi.s)(ame)}get direction(){return this.localization.rtl?"rtl":"ltr"}set animate(t){this._animate=t}get animate(){return!this._animate}set nodeTemplateRef(t){this._nodeTemplateRef=t}get nodeTemplateRef(){return this._nodeTemplateRef||this.nodeTemplateQuery}set loadMoreButtonTemplateRef(t){this._loadMoreButtonTemplateRef=t}get loadMoreButtonTemplateRef(){return this._loadMoreButtonTemplateRef||this.loadMoreButtonTemplateQuery}set nodes(t){this.data.next(t||[]),this.dataChangeNotification.notify()}get nodes(){return this.data.value}get hasChildren(){return this._hasChildren||sme}set hasChildren(t){this._hasChildren=t,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isChecked(){return this._isChecked||lme}set isChecked(t){this._isChecked=t,this.checkboxes=Boolean(this._isChecked)}get isExpanded(){return this._isExpanded||dme}set isExpanded(t){this._isExpanded=t,this.expandIcons=Boolean(this._isExpanded&&this._hasChildren)}get isSelected(){return this._isSelected||hq}set isSelected(t){this._isSelected=t,this.selectable=Boolean(this._isSelected)}set size(t){this.renderer.removeClass(this.element.nativeElement,GI("treeview",this.size)),t&&this.renderer.addClass(this.element.nativeElement,GI("treeview",t)),this._size=t}get size(){return this._size}ngOnChanges(t){this.navigationService.navigable=Boolean(this.navigable),_s(["nodes","children","hasChildren","loadOnDemand"],t,!1)&&!this.loadOnDemand&&this.preloadChildNodes()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domSubscriptions.forEach(t=>t())}ngOnInit(){this.subscriptions.add(this.nodeChildrenService.changes.subscribe(t=>this.childrenLoaded.emit(t))),this.subscriptions.add(this.expandService.changes.subscribe(({index:t,dataItem:r,expand:s})=>s?this.expand.emit({index:t,dataItem:r}):this.collapse.emit({index:t,dataItem:r}))),this.subscriptions.add(this.navigationService.checks.subscribe(t=>this.checkedChange.emit(this.treeViewLookupService.itemLookup(t)))),this.subscriptions.add(this.selectionService.changes.subscribe(t=>{Ut(this.selectionChange)&&this.ngZone.run(()=>{this.selectionChange.emit(t)})})),this.element&&this.ngZone.runOutsideAngular(()=>{this.attachDomHandlers()}),this.size&&this.renderer.addClass(this.element.nativeElement,GI("treeview",this.size))}blur(){if(!Dt())return;const t=yq(this.element);document.activeElement===t&&t.blur()}focus(t){const r=t||Bp(this.navigationService.focusableItem);this.navigationService.activateIndex(r);const s=yq(this.element);s&&s.focus()}itemLookup(t){return this.treeViewLookupService.itemLookup(t)}rebindChildren(){this.dataChangeNotification.notify()}expandNode(t,r){this.expandService.expand(r,t)}collapseNode(t,r){this.expandService.collapse(r,t)}getNodePageSize(t){return this.verifyLoadMoreService(),this.loadMoreService.getGroupSize(t)}setNodePageSize(t,r){this.verifyLoadMoreService(),this.loadMoreService.setGroupSize(t,r)}preloadChildNodes(){this.treeViewLookupService.reset(),this.registerLookupItems(this.nodes)}attachDomHandlers(){const t=this.element.nativeElement;this.clickHandler=this.clickHandler.bind(this),this.domSubscriptions.push(this.renderer.listen(t,"contextmenu",this.clickHandler),this.renderer.listen(t,"click",this.clickHandler),this.renderer.listen(t,"dblclick",this.clickHandler),this.renderer.listen(t,"focusin",this.focusHandler.bind(this)),this.renderer.listen(t,"focusout",this.blurHandler.bind(this)),this.renderer.listen(t,"keydown",this.keydownHandler.bind(this)))}focusHandler(t){let r;Z1(t.target,".k-treeview-item")?r=t.target:bq(t.target)||(r=Ty(t.target)),r&&(this.navigationService.activateIndex(O7(t.target)),!this.isActive&&Ut(this.onFocus)&&this.ngZone.run(()=>{this.onFocus.emit()}),this.isActive=!0)}blurHandler(t){this.isActive&&Z1(t.target,".k-treeview-item")&&(!t.relatedTarget||!Z1(t.relatedTarget,".k-treeview-item")||!P7(t.relatedTarget,this.element.nativeElement))&&(this.navigationService.deactivate(),this.isActive=!1,Ut(this.onBlur)&&this.ngZone.run(()=>{this.onBlur.emit()}))}clickHandler(t){const r=t.target;if("contextmenu"===t.type&&!Ut(this.nodeClick)||"click"===t.type&&!Ut(this.nodeClick)&&!Ut(this.selectionChange)&&!vq(r)||"dblclick"===t.type&&!Ut(this.nodeDblClick)||bq(r)||!(i=>{if(!Dt())return null;let t=i;for(;t&&!Z1(t,".k-treeview-leaf:not(.k-treeview-load-more-button),.k-treeview-item,.k-treeview");)t=t.parentNode;return t?Z1(t,".k-treeview-leaf:not(.k-treeview-load-more-button)"):void 0})(r)&&!vq(r)||!P7(r,this.element.nativeElement))return;const s=O7(Ty(r));!s||this.navigationService.isDisabled(s)||this.ngZone.run(()=>{const l=this.treeViewLookupService.itemLookup(s);if("click"===t.type){if(this.navigationService.model.findNode(s).loadMoreButton)return void this.navigationService.notifyLoadMore(s);this.navigationService.selectIndex(s)}("dblclick"===t.type?this.nodeDblClick:this.nodeClick).emit({item:l.item,originalEvent:t,type:t.type})})}keydownHandler(t){this.isActive&&this.navigable&&this.ngZone.run(()=>{this.navigationService.move(t)})}verifyLoadMoreService(){if((0,n.X6Q)()&&!mt(this.loadMoreService))throw new Error("To use the TreeView paging functionality, you need to assign the `kendoTreeViewLoadMore` directive. See http://www.telerik.com/kendo-angular-ui/components/treeview/load-more-button/.")}registerLookupItems(t,r=null){if(!mt(t)||0===t.length)return;const s=Bp(r),l=t.map((u,p)=>((i,o,t)=>mt(i)?{dataItem:i,index:lT(t,o)}:null)(u,p,s));mt(r)&&this.treeViewLookupService.registerChildren(s,l),l.forEach(u=>{this.treeViewLookupService.registerItem(u,r),this.hasChildren(u.dataItem)&&this.children(u.dataItem).subscribe(p=>this.registerLookupItems(p,u))})}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(Sg),n.Y36(wg),n.Y36(cT),n.Y36(q1),n.Y36(J1),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(aT),n.Y36(Te))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-treeview"]],contentQueries:function(t,r,s){if(1&t&&(n.Suo(s,V1,5),n.Suo(s,z1,5)),2&t){let l;n.iGM(l=n.CRH())&&(r.nodeTemplateQuery=l.first),n.iGM(l=n.CRH())&&(r.loadMoreButtonTemplateQuery=l.first)}},viewQuery:function(t,r){if(1&t&&n.Gf(Ofe,7,n.s_b),2&t){let s;n.iGM(s=n.CRH())&&(r.assetsContainer=s.first)}},hostVars:5,hostBindings:function(t,r){2&t&&(n.uIk("role",r.role)("dir",r.direction),n.d8E("@.disabled",r.animate),n.ekj("k-treeview",r.classNames))},inputs:{filterInputPlaceholder:"filterInputPlaceholder",trackBy:"trackBy",isDisabled:"isDisabled",isVisible:"isVisible",navigable:"navigable",children:"children",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",animate:"animate",nodeTemplateRef:["nodeTemplate","nodeTemplateRef"],loadMoreButtonTemplateRef:["loadMoreButtonTemplate","loadMoreButtonTemplateRef"],nodes:"nodes",hasChildren:"hasChildren",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",size:"size",textField:"textField"},outputs:{childrenLoaded:"childrenLoaded",onBlur:"blur",onFocus:"focus",expand:"expand",collapse:"collapse",nodeDragStart:"nodeDragStart",nodeDrag:"nodeDrag",filterStateChange:"filterStateChange",nodeDrop:"nodeDrop",nodeDragEnd:"nodeDragEnd",addItem:"addItem",removeItem:"removeItem",checkedChange:"checkedChange",selectionChange:"selectionChange",filterChange:"filterChange",nodeClick:"nodeClick",nodeDblClick:"nodeDblClick"},exportAs:["kendoTreeView"],features:[n._Bn(xme),n.TTD],decls:4,vars:20,consts:[["class","k-treeview-filter",4,"ngIf"],["kendoTreeViewGroup","","role","group",1,"k-treeview-lines",3,"size","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","textField","nodes","loadMoreService","trackBy"],["assetsContainer",""],[1,"k-treeview-filter"],[3,"size","value","clearButton","placeholder","valueChange"],["kendoTextBoxPrefixTemplate",""],[1,"k-input-icon","k-icon","k-i-search"]],template:function(t,r){1&t&&(n.YNc(0,Lfe,3,4,"span",0),n._UZ(1,"ul",1),n.GkF(2,null,2)),2&t&&(n.Q6J("ngIf",r.filterable),n.xp6(1),n.Q6J("size",r.size)("loadOnDemand",r.loadOnDemand)("checkboxes",r.checkboxes)("expandIcons",r.expandIcons)("selectable",r.selectable)("touchActions",r.touchActions)("children",r.children)("hasChildren",r.hasChildren)("isChecked",r.isChecked)("isDisabled",r.isDisabled)("isExpanded",r.isExpanded)("isSelected",r.isSelected)("isVisible",r.isVisible)("nodeTemplateRef",null==r.nodeTemplateRef?null:r.nodeTemplateRef.templateRef)("loadMoreButtonTemplateRef",null==r.loadMoreButtonTemplateRef?null:r.loadMoreButtonTemplateRef.templateRef)("textField",r.textField)("nodes",r.fetchNodes)("loadMoreService",r.loadMoreService)("trackBy",r.trackBy))},dependencies:function(){return[Ge,no,NI,wq]},encapsulation:2}),Ue([(0,n.pfw)("class.k-treeview"),Ee("design:type",Boolean)],i.prototype,"classNames",void 0),Ue([(0,n.pfw)("attr.role"),Ee("design:type",String)],i.prototype,"role",void 0),Ue([(0,n.pfw)("attr.dir"),Ee("design:type",String),Ee("design:paramtypes",[])],i.prototype,"direction",null),Ue([(0,n.i9L)("assetsContainer",{read:n.s_b,static:!0}),Ee("design:type",n.s_b)],i.prototype,"assetsContainer",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"filterInputPlaceholder",void 0),Ue([(0,n.IIB)(),(0,n.pfw)("@.disabled"),Ee("design:type",Boolean),Ee("design:paramtypes",[Boolean])],i.prototype,"animate",null),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"childrenLoaded",void 0),Ue([(0,n.r_U)("blur"),Ee("design:type",n.vpe)],i.prototype,"onBlur",void 0),Ue([(0,n.r_U)("focus"),Ee("design:type",n.vpe)],i.prototype,"onFocus",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"expand",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"collapse",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeDragStart",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeDrag",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"filterStateChange",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeDrop",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeDragEnd",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"addItem",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"removeItem",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"checkedChange",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"selectionChange",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"filterChange",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeClick",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"nodeDblClick",void 0),Ue([(0,n.aQ5)(V1,{static:!1}),Ee("design:type",V1)],i.prototype,"nodeTemplateQuery",void 0),Ue([(0,n.IIB)("nodeTemplate"),Ee("design:type",V1),Ee("design:paramtypes",[V1])],i.prototype,"nodeTemplateRef",null),Ue([(0,n.aQ5)(z1,{static:!1}),Ee("design:type",z1)],i.prototype,"loadMoreButtonTemplateQuery",void 0),Ue([(0,n.IIB)("loadMoreButtonTemplate"),Ee("design:type",z1),Ee("design:paramtypes",[z1])],i.prototype,"loadMoreButtonTemplateRef",null),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"trackBy",void 0),Ue([(0,n.IIB)(),Ee("design:type",Array),Ee("design:paramtypes",[Array])],i.prototype,"nodes",null),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"textField",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function),Ee("design:paramtypes",[Function])],i.prototype,"hasChildren",null),Ue([(0,n.IIB)(),Ee("design:type",Function),Ee("design:paramtypes",[Function])],i.prototype,"isChecked",null),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isDisabled",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function),Ee("design:paramtypes",[Function])],i.prototype,"isExpanded",null),Ue([(0,n.IIB)(),Ee("design:type",Function),Ee("design:paramtypes",[Function])],i.prototype,"isSelected",null),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isVisible",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"navigable",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"children",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"loadOnDemand",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"filterable",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"filter",void 0),Ue([(0,n.IIB)(),Ee("design:type",String),Ee("design:paramtypes",[String])],i.prototype,"size",null),i=Ue([Ee("design:paramtypes",[n.SBq,n.sBO,Sg,wg,cT,q1,J1,n.R0b,n.Qsj,aT,Te])],i),i})(),wq=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A){this.expandService=t,this.loadingService=r,this.indexBuilder=s,this.treeViewLookupService=l,this.navigationService=u,this.nodeChildrenService=p,this.dataChangeNotification=y,this.changeDetectorRef=A,this.kGroupClass=!0,this.role="group",this.loadOnDemand=!0,this.textField="",this.size="medium",this.initialNodesLoaded=!1,this.loadingMoreNodes=!1,this._data=[],this.singleRecordSubscriptions=new bn.w,this.isChecked=()=>"none",this.isDisabled=()=>!1,this.isExpanded=()=>!1,this.isVisible=()=>!0,this.isSelected=()=>!1,this.children=()=>Et([]),this.hasChildren=()=>!1}get moreNodesAvailable(){return!(!mt(this.loadMoreService)||0===this.data.length)&&this.pageSize<this.totalNodesCount}get pageSize(){return mt(this.loadMoreService)?this.loadMoreService.getGroupSize(this.parentDataItem):null}set pageSize(t){this.loadMoreService.setGroupSize(this.parentDataItem,t)}get data(){return mt(this.pageSize)?this._data.slice(0,this.pageSize>0?this.pageSize:0):this._data}set data(t){this._data=t,this.registerLoadedNodes(this.data)}get loadMoreButtonIndex(){return this.loadMoreService?this.nodeIndex(this.data.length):null}get totalNodesCount(){return this.loadMoreService?this.loadMoreService.getTotalNodesCount(this.parentDataItem,this._data.length):this.data.length}get hasTemplate(){return mt(this.nodeTemplateRef)}expandNode(t,r,s){s?this.expandService.expand(t,r):this.expandService.collapse(t,r)}checkNode(t){this.navigationService.checkIndex(t),this.navigationService.activateIndex(t)}nodeIndex(t){return this.indexBuilder.nodeIndex(t.toString(),this.parentIndex)}nodeText(t){return ys(_q(this.textField)?this.textField[0]:this.textField)(t)}ngOnDestroy(){mt(this.nodesSubscription)&&this.nodesSubscription.unsubscribe(),mt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.singleRecordSubscriptions.unsubscribe()}ngOnInit(){this.subscribeToNodesChange(),this.singleRecordSubscriptions.add(this.dataChangeNotification.changes.subscribe(this.subscribeToNodesChange.bind(this))),this.singleRecordSubscriptions.add(this.navigationService.loadMore.pipe(Wt(t=>t===this.loadMoreButtonIndex)).subscribe(this.loadMoreNodes.bind(this)))}ngOnChanges(t){t.parentIndex&&this.loadOnDemand&&this.setNodeChildren(this.mapToTreeItem(this.data))}fetchChildren(t,r){return this.children(t).pipe(hs(()=>(this.loadingService.notifyLoaded(r),ae)),oi(()=>this.loadingService.notifyLoaded(r)))}get nextFields(){return _q(this.textField)?this.textField.length>1?this.textField.slice(1):this.textField:[this.textField]}loadMoreNodes(){mt(this.loadMoreService.loadMoreNodes)?this.fetchMoreNodes():this.loadMoreLocalNodes()}loadMoreLocalNodes(){const t=this.loadMoreButtonIndex;this.pageSize+=this.loadMoreService.getInitialPageSize(this.parentDataItem),this.registerLoadedNodes(this.data),this.changeDetectorRef.detectChanges(),this.reselectItemAt(t)}fetchMoreNodes(){this.loadingMoreNodes||(this.loadingMoreNodes=!0,mt(this.loadMoreNodesSubscription)&&this.loadMoreNodesSubscription.unsubscribe(),this.loadMoreNodesSubscription=this.loadMoreService.loadMoreNodes({dataItem:this.parentDataItem,skip:this.data.length,take:this.loadMoreService.getInitialPageSize(this.parentDataItem)}).pipe(yf(()=>this.loadingMoreNodes=!1)).subscribe(t=>{if(!(Array.isArray(t)&&t.length>0))return;const r=this.loadMoreButtonIndex;this.pageSize+=t.length,this.data=this.data.concat(t),this.navigationService.isActive(r)&&(this.changeDetectorRef.detectChanges(),this.reselectItemAt(r))}))}setNodeChildren(t){this.treeViewLookupService.registerChildren(this.parentIndex,t)}mapToTreeItem(t){return this.parentIndex?t.map((r,s)=>({dataItem:r,index:this.nodeIndex(s)})):[]}emitChildrenLoaded(t){if(!this.parentIndex)return;const r=t.filter(s=>s.dataItem);this.nodeChildrenService.childrenLoaded({dataItem:this.parentDataItem,index:this.parentIndex},r)}subscribeToNodesChange(){this.nodesSubscription&&this.nodesSubscription.unsubscribe(),this.nodesSubscription=this.nodes(this.parentDataItem,this.parentIndex).subscribe(t=>{this.data=t,this.initialNodesLoaded=!0})}reselectItemAt(t){!mt(t)||(this.navigationService.deactivate(),this.navigationService.activateIndex(t))}registerLoadedNodes(t=[]){const r=this.mapToTreeItem(t);this.loadOnDemand&&this.setNodeChildren(r),this.emitChildrenLoaded(r)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Sg),n.Y36(sT),n.Y36(am),n.Y36(J1),n.Y36(wg),n.Y36(cT),n.Y36(aT),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoTreeViewGroup",""]],hostVars:3,hostBindings:function(t,r){2&t&&(n.uIk("role",r.role),n.ekj("k-treeview-group",r.kGroupClass))},inputs:{loadOnDemand:"loadOnDemand",textField:"textField",size:"size",isChecked:"isChecked",isDisabled:"isDisabled",isExpanded:"isExpanded",isVisible:"isVisible",isSelected:"isSelected",children:"children",hasChildren:"hasChildren",checkboxes:"checkboxes",expandIcons:"expandIcons",disabled:"disabled",selectable:"selectable",touchActions:"touchActions",trackBy:"trackBy",nodes:"nodes",parentDataItem:"parentDataItem",parentIndex:"parentIndex",nodeTemplateRef:"nodeTemplateRef",loadMoreButtonTemplateRef:"loadMoreButtonTemplateRef",loadMoreService:"loadMoreService"},features:[n.TTD],attrs:Rfe,decls:2,vars:3,consts:[["class","k-treeview-item","kendoTreeViewItem","",3,"k-display-none","dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected",4,"ngFor","ngForOf","ngForTrackBy"],["class","k-treeview-item","kendoTreeViewItem","","role","button",3,"k-treeview-load-more-checkboxes-container","selectable","checkable","expandable","index","parentDataItem","parentIndex",4,"ngIf"],["kendoTreeViewItem","",1,"k-treeview-item",3,"dataItem","index","parentDataItem","parentIndex","loadOnDemand","checkable","isChecked","isDisabled","isVisible","expandable","isExpanded","selectable","isSelected"],[1,"k-treeview-mid"],["class","k-treeview-toggle",3,"kendoTreeViewLoading","click",4,"ngIf"],["tabindex","-1",3,"size","node","index","isChecked","checkStateChange",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf",3,"dataItem","index","initialSelection","isSelected"],[1,"k-treeview-leaf-text"],[3,"ngSwitch"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy",4,"ngIf"],[1,"k-treeview-toggle",3,"kendoTreeViewLoading","click"],[1,"k-icon"],["tabindex","-1",3,"size","node","index","isChecked","checkStateChange"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["kendoTreeViewGroup","","role","group",3,"nodes","loadOnDemand","checkboxes","expandIcons","selectable","touchActions","children","hasChildren","isChecked","isDisabled","disabled","isExpanded","isSelected","isVisible","nodeTemplateRef","loadMoreButtonTemplateRef","parentIndex","parentDataItem","textField","loadMoreService","trackBy"],["kendoTreeViewItem","","role","button",1,"k-treeview-item",3,"selectable","checkable","expandable","index","parentDataItem","parentIndex"],["class","k-icon k-i-loading k-i-expand",4,"ngIf"],["kendoTreeViewItemContent","",1,"k-treeview-leaf","k-treeview-load-more-button",3,"index"],[4,"ngIf"],[1,"k-icon","k-i-loading","k-i-expand"]],template:function(t,r){1&t&&(n.YNc(0,Zfe,10,29,"li",0),n.YNc(1,Qfe,7,14,"li",1)),2&t&&(n.Q6J("ngForOf",r.data)("ngForTrackBy",r.trackBy),n.xp6(1),n.Q6J("ngIf",r.initialNodesLoaded&&r.moreNodesAvailable))},dependencies:function(){return[Bt,Ge,Pi,zs,gc,da,Qq,i,qq,Jq,Zq]},encapsulation:2,data:{animation:[Tp("toggle",[Dc("void => *",[Kt({height:0}),Wi("0.1s ease-in",Kt({height:"*"}))]),Dc("* => void",[Kt({height:"*"}),Wi("0.1s ease-in",Kt({height:0}))])])]}}),Ue([(0,n.pfw)("class.k-treeview-group"),Ee("design:type",Boolean)],i.prototype,"kGroupClass",void 0),Ue([(0,n.pfw)("attr.role"),Ee("design:type",String)],i.prototype,"role",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"checkboxes",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"expandIcons",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"disabled",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"selectable",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"touchActions",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"loadOnDemand",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"trackBy",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"nodes",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"textField",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"parentDataItem",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"parentIndex",void 0),Ue([(0,n.IIB)(),Ee("design:type",n.Rgc)],i.prototype,"nodeTemplateRef",void 0),Ue([(0,n.IIB)(),Ee("design:type",n.Rgc)],i.prototype,"loadMoreButtonTemplateRef",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"loadMoreService",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"size",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isChecked",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isDisabled",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isExpanded",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isVisible",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isSelected",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"children",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"hasChildren",void 0),i=Ue([Ee("design:paramtypes",[Sg,sT,am,J1,wg,cT,aT,n.sBO])],i),i})(),B7=(()=>{let i=class{constructor(t){this.treeView=t,this.selectedKeysChange=new n.vpe,this.subscriptions=new bn.w,this.selectActions={multiple:r=>this.selectMultiple(r),single:r=>this.selectSingle(r)},this.state=new Set,this.subscriptions.add(this.treeView.selectionChange.subscribe(this.select.bind(this))),this.treeView.isSelected=(r,s)=>this.state.has(this.itemKey({dataItem:r,index:s}))}set isSelected(t){this.treeView.isSelected=t}get getAriaMultiselectable(){return"multiple"===this.options.mode}get options(){const t={enabled:!0,mode:"single"};if(!mt(this.selection)||"string"==typeof this.selection)return t;const r=(i=>"boolean"==typeof i)(this.selection)?{enabled:this.selection}:this.selection;return Object.assign(t,r)}ngOnChanges(t){cr("selectedKeys",t,!1)&&t.selectedKeys.currentValue!==this.lastChange&&(this.state=new Set(t.selectedKeys.currentValue))}ngOnDestroy(){this.subscriptions.unsubscribe()}itemKey(t){return this.selectKey?"string"==typeof this.selectKey?t.dataItem[this.selectKey]:"function"==typeof this.selectKey?this.selectKey(t):void 0:t.index}select(t){const{enabled:r,mode:s}=this.options;!r||(this.selectActions[s]||fq)(t)}selectSingle(t){const r=this.itemKey(t);this.state.has(r)||(this.state.clear(),this.state.add(r),this.notify())}selectMultiple(t){const r=this.itemKey(t),s=this.state.has(r);!mt(r)||(s?this.state.delete(r):this.state.add(r),this.notify())}notify(){this.lastChange=Array.from(this.state),this.selectedKeysChange.emit(this.lastChange)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Or))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewSelectable",""]],hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("aria-multiselectable",r.getAriaMultiselectable)},inputs:{isSelected:"isSelected",selectKey:["selectBy","selectKey"],selection:["kendoTreeViewSelectable","selection"],selectedKeys:"selectedKeys"},outputs:{selectedKeysChange:"selectedKeysChange"},features:[n.TTD]}),Ue([(0,n.IIB)(),Ee("design:type",Function),Ee("design:paramtypes",[Function])],i.prototype,"isSelected",null),Ue([(0,n.IIB)("selectBy"),Ee("design:type",Object)],i.prototype,"selectKey",void 0),Ue([(0,n.IIB)("kendoTreeViewSelectable"),Ee("design:type",Object)],i.prototype,"selection",void 0),Ue([(0,n.IIB)(),Ee("design:type",Array)],i.prototype,"selectedKeys",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"selectedKeysChange",void 0),Ue([(0,n.pfw)("attr.aria-multiselectable"),Ee("design:type",Boolean),Ee("design:paramtypes",[])],i.prototype,"getAriaMultiselectable",null),i=Ue([Ee("design:paramtypes",[Or])],i),i})();!function Ime(i){let o,t=!1}(()=>{if(!Dt()||!mt(document.body))return!1;const o=document.createElement("div");o.style.transform="matrix(10, 0, 0, 10, 0, 0)",o.innerHTML='<div style="position: fixed; top: 10px;">child</div>',document.body.appendChild(o);const t=10!==o.children[0].getBoundingClientRect().top;return document.body.removeChild(o),t}),new RegExp("(auto|scroll)"),new am;let Zq=(()=>{let i=class{constructor(t,r,s){this.expandService=t,this.loadingService=r,this.cd=s,this._loading=!1}get loading(){return this._loading}set loading(t){this._loading=t,this.cd.markForCheck()}ngOnInit(){const t=this.loadingService.changes.pipe(Wt(r=>r===this.index));this.subscription=this.expandService.changes.pipe(Wt(({index:r})=>r===this.index),oi(({expand:r})=>{!r&&this.loading&&(this.loading=!1)}),Wt(({expand:r})=>r),kr(r=>Et(r).pipe(function D7(i,o=Au){const r=function Ife(i){return i instanceof Date&&!isNaN(+i)}(i)?+i-o.now():Math.abs(i);return s=>s.lift(new Efe(r,o))}(100),Si(t)))).subscribe(()=>this.loading=!0),this.subscription.add(t.subscribe(()=>this.loading=!1))}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Sg),n.Y36(sT),n.Y36(n.sBO))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewLoading",""]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-i-loading",r.loading)},inputs:{index:["kendoTreeViewLoading","index"]}}),Ue([(0,n.pfw)("class.k-i-loading"),Ee("design:type",Boolean),Ee("design:paramtypes",[Boolean])],i.prototype,"loading",null),Ue([(0,n.IIB)("kendoTreeViewLoading"),Ee("design:type",String)],i.prototype,"index",void 0),i=Ue([Ee("design:paramtypes",[Sg,sT,n.sBO])],i),i})();new am;const Gq=(i,o)=>({dataItem:o,index:i});let Vme=0,qq=(()=>{let i=class{constructor(t,r,s,l,u,p,y){this.element=t,this.expandService=r,this.navigationService=s,this.selectionService=l,this.lookupService=u,this.renderer=p,this.ib=y,this.role="treeitem",this.loadOnDemand=!0,this.isDisabled=!1,this.isVisible=!0,this.ariaChecked="false",this.id=Vme++,this.isInitialized=!1,this.subscriptions=[],this.subscribe()}set isChecked(t){this.ariaChecked="checked"===t?"true":"indeterminate"===t?"mixed":"false"}get isExpanded(){return this._isExpanded||!1}set isExpanded(t){this._isExpanded=t}get isSelected(){return this._isSelected||!1}set isSelected(t){this._isSelected=t}get isButton(){return"button"===this.role}get treeItem(){return Gq(this.index,this.dataItem)}get parentTreeItem(){return this.parentDataItem?Gq(this.parentIndex,this.parentDataItem):null}ngOnInit(){this.loadOnDemand&&!this.isButton&&this.lookupService.registerItem(this.treeItem,this.parentTreeItem),this.registerNavigationItem(),this.isInitialized=!0,this.setAttribute("role",this.role),this.setAriaAttributes(),this.setDisabledClass(),this.updateTabIndex()}ngOnChanges(t){const{index:r,isDisabled:s}=t;_s(["index","checkable","isChecked","expandable","isExpanded","selectable","isSelected"],t)&&this.setAriaAttributes(),s&&this.setDisabledClass(),this.loadOnDemand&&!this.isButton&&this.moveLookupItem(t),this.moveNavigationItem(r),_s(["isDisabled","isVisible"],t)&&this.updateNodeAvailability()}ngOnDestroy(){this.navigationService.unregisterItem(this.id,this.index),this.loadOnDemand&&!this.isButton&&this.lookupService.unregisterItem(this.index,this.dataItem),this.subscriptions=this.subscriptions.reduce((t,r)=>(r.unsubscribe(),t),[])}subscribe(){this.subscriptions=[this.navigationService.moves.subscribe(t=>{this.updateTabIndex(),this.focusItem(t.shouldScroll)}),this.navigationService.expands.pipe(Wt(({index:t})=>t===this.index&&!this.isDisabled)).subscribe(({expand:t})=>this.expand(t))]}registerNavigationItem(){this.navigationService.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible),this.activateItem()}activateItem(){if(this.isDisabled)return;const t=this.navigationService,r=this.selectionService,s=this.index;r.setFirstSelected(s,this.isSelected),!t.isActive(s)&&r.isFirstSelected(s)&&t.activateIndex(s)}expand(t){this.expandService[t?"expand":"collapse"](this.index,this.dataItem)}isFocusable(){return!this.isDisabled&&this.navigationService.isFocusable(this.index)}focusItem(t=!1){this.isInitialized&&this.navigationService.isActive(this.index)&&this.element.nativeElement.focus({preventScroll:!t})}moveLookupItem(t={}){const{dataItem:r,index:s,parentDataItem:l,parentIndex:u}=t;s&&s.firstChange||!(r||s||l||u)||this.lookupService.replaceItem((s||{}).previousValue||this.index,this.treeItem,this.parentTreeItem)}moveNavigationItem(t={}){const{currentValue:r,firstChange:s,previousValue:l}=t;!s&&mt(r)&&mt(l)&&(this.navigationService.unregisterItem(this.id,l),this.navigationService.registerItem(this.id,r,this.isDisabled,this.isButton))}updateNodeAvailability(){const t=this.navigationService;this.isDisabled||!this.isVisible?t.activateClosest(this.index):t.activateFocusable(),t.unregisterItem(this.id,this.index),t.registerItem(this.id,this.index,this.isDisabled,this.isButton,this.isVisible)}setAriaAttributes(){this.setAttribute("aria-level",this.ib.level(this.index).toString()),this.setAttribute("aria-expanded",this.expandable?this.isExpanded.toString():null),this.setAttribute("aria-selected",this.selectable?this.isSelected.toString():null),this.setAttribute("aria-checked",this.checkable?this.ariaChecked:null)}setDisabledClass(){this.setClass("k-disabled",this.isDisabled)}setClass(t,r){this.renderer[r?"addClass":"removeClass"](this.element.nativeElement,t)}updateTabIndex(){this.setAttribute("tabIndex",this.isFocusable()?"0":"-1")}setAttribute(t,r){mt(r)?this.renderer.setAttribute(this.element.nativeElement,t,r):this.renderer.removeAttribute(this.element.nativeElement,t)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(Sg),n.Y36(wg),n.Y36(q1),n.Y36(J1),n.Y36(n.Qsj),n.Y36(am))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewItem",""]],inputs:{role:"role",loadOnDemand:"loadOnDemand",isDisabled:"isDisabled",isVisible:"isVisible",isChecked:"isChecked",isExpanded:"isExpanded",isSelected:"isSelected",dataItem:"dataItem",index:"index",parentDataItem:"parentDataItem",parentIndex:"parentIndex",checkable:"checkable",selectable:"selectable",expandable:"expandable"},features:[n.TTD]}),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"dataItem",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"index",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"parentDataItem",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"parentIndex",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"role",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"loadOnDemand",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"checkable",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"selectable",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"expandable",void 0),Ue([(0,n.IIB)(),Ee("design:type",String),Ee("design:paramtypes",[String])],i.prototype,"isChecked",null),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"isDisabled",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"isVisible",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean),Ee("design:paramtypes",[Boolean])],i.prototype,"isExpanded",null),Ue([(0,n.IIB)(),Ee("design:type",Boolean),Ee("design:paramtypes",[Boolean])],i.prototype,"isSelected",null),i=Ue([Ee("design:paramtypes",[n.SBq,Sg,wg,q1,J1,n.Qsj,am])],i),i})(),Jq=(()=>{let i=class{constructor(t,r,s,l){this.element=t,this.navigationService=r,this.selectionService=s,this.renderer=l,this.initialSelection=!1,this.isSelected=hq,this.subscriptions=new bn.w,this.subscriptions.add(this.navigationService.moves.subscribe(this.updateFocusClass.bind(this))),this.subscriptions.add(this.navigationService.selects.pipe(Wt(u=>u===this.index)).subscribe(u=>this.selectionService.select(u,this.dataItem))),this.subscriptions.add(this.selectionService.changes.subscribe(()=>{this.updateSelectionClass(this.isSelected(this.dataItem,this.index))}))}ngOnChanges(t){t.initialSelection&&this.updateSelectionClass(this.initialSelection),t.index&&this.updateFocusClass()}ngOnDestroy(){this.subscriptions.unsubscribe()}updateFocusClass(){this.render(this.navigationService.isActive(this.index),"k-focus")}updateSelectionClass(t){this.render(t,"k-selected")}render(t,r){this.renderer[t?"addClass":"removeClass"](this.element.nativeElement,r)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(wg),n.Y36(q1),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTreeViewItemContent",""]],inputs:{initialSelection:"initialSelection",isSelected:"isSelected",dataItem:"dataItem",index:"index"},features:[n.TTD]}),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"dataItem",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"index",void 0),Ue([(0,n.IIB)(),Ee("design:type",Boolean)],i.prototype,"initialSelection",void 0),Ue([(0,n.IIB)(),Ee("design:type",Function)],i.prototype,"isSelected",void 0),i=Ue([Ee("design:paramtypes",[n.SBq,wg,q1,n.Qsj])],i),i})(),Qq=(()=>{let i=class{constructor(t,r,s){this.element=t,this.renderer=r,this.changeDetector=s,this.id=`_${to()}`,this.tabindex=0,this.size="medium",this.checkStateChange=new n.vpe,this.checkState="none"}get classWrapper(){return!0}get indeterminate(){return"indeterminate"===this.checkState}get checked(){return"checked"===this.checkState}get checkBoxClasses(){return`k-checkbox ${this.size?GI("checkbox",this.size):""} k-rounded-md`}ngOnInit(){this.renderer.removeAttribute(this.element.nativeElement,"tabindex")}ngDoCheck(){this.checkState=this.isChecked(this.node,this.index)}handleChange(t){const r=t.target.checked?"checked":"none";this.checkState=r,this.changeDetector.detectChanges(),this.checkStateChange.emit(r)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-checkbox"]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-checkbox-wrapper",r.classWrapper)},inputs:{id:"id",tabindex:"tabindex",size:"size",isChecked:"isChecked",node:"node",index:"index",labelText:"labelText"},outputs:{checkStateChange:"checkStateChange"},decls:3,vars:8,consts:[["type","checkbox",3,"id","checked","indeterminate","tabindex","change"],["tabindex","-1",1,"k-checkbox-label",3,"for"]],template:function(t,r){1&t&&(n.TgZ(0,"input",0),n.NdJ("change",function(l){return r.handleChange(l)}),n.qZA(),n.TgZ(1,"label",1),n._uU(2),n.qZA()),2&t&&(n.Tol(r.checkBoxClasses),n.Q6J("id",r.id)("checked",r.checked)("indeterminate",r.indeterminate)("tabindex",r.tabindex),n.xp6(1),n.Q6J("for",r.id),n.xp6(1),n.Oqu(r.labelText))},encapsulation:2}),Ue([(0,n.pfw)("class.k-checkbox-wrapper"),Ee("design:type",Boolean),Ee("design:paramtypes",[])],i.prototype,"classWrapper",null),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"id",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"isChecked",void 0),Ue([(0,n.IIB)(),Ee("design:type",Object)],i.prototype,"node",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"index",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"labelText",void 0),Ue([(0,n.IIB)(),Ee("design:type",Number)],i.prototype,"tabindex",void 0),Ue([(0,n.IIB)(),Ee("design:type",String)],i.prototype,"size",void 0),Ue([(0,n.r_U)(),Ee("design:type",n.vpe)],i.prototype,"checkStateChange",void 0),i=Ue([Ee("design:paramtypes",[n.SBq,n.Qsj,n.sBO])],i),i})(),qme=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),Jme=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,qme,eq]}),i})(),Qme=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Jme]}),i})();function Wme(i,o){function t(){return!t.pred.apply(t.thisArg,arguments)}return t.pred=i,t.thisArg=o,t}const Xq={leading:!0,trailing:!1};class n_e{constructor(o,t,r,s){this.duration=o,this.scheduler=t,this.leading=r,this.trailing=s}call(o,t){return t.subscribe(new i_e(o,this.duration,this.scheduler,this.leading,this.trailing))}}class i_e extends Ji.L{constructor(o,t,r,s,l){super(o),this.duration=t,this.scheduler=r,this.leading=s,this.trailing=l,this._hasTrailingValue=!1,this._trailingValue=null}_next(o){this.throttled?this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(o_e,this.duration,{subscriber:this})),this.leading?this.destination.next(o):this.trailing&&(this._trailingValue=o,this._hasTrailingValue=!0))}_complete(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()}clearThrottle(){const o=this.throttled;o&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),o.unsubscribe(),this.remove(o),this.throttled=null)}}function o_e(i){const{subscriber:o}=i;o.clearThrottle()}function eJ(i){return o=>o.lift(new r_e(i))}class r_e{constructor(o){this.predicate=o}call(o,t){return t.subscribe(new a_e(o,this.predicate))}}class a_e extends Ji.L{constructor(o,t){super(o),this.predicate=t,this.skipping=!0,this.index=0}_next(o){const t=this.destination;this.skipping&&this.tryCallPredicate(o),this.skipping||t.next(o)}tryCallPredicate(o){try{const t=this.predicate(o,this.index++);this.skipping=Boolean(t)}catch(t){this.destination.error(t)}}}const s_e=["input"],WI=function(i,o){return{focus:i,blur:o}},l_e=["content"],c_e=["list"],d_e=["virtualContainer"];function u_e(i,o){}const Hp=function(i,o){return{templateRef:i,$implicit:o}};function p_e(i,o){if(1&i&&n.YNc(0,u_e,0,0,"ng-template",10),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.WLB(1,Hp,t.fixedGroupTemplate.templateRef,t.currentGroup))}}function h_e(i,o){if(1&i&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Oqu(t.currentGroup)}}const tJ=function(i){return{"k-virtual-item":i}},nJ=function(i,o,t){return{"height.px":i,"minHeight.px":o,boxSizing:t}};function g_e(i,o){if(1&i&&(n.TgZ(0,"div",8),n.YNc(1,p_e,1,4,null,5),n.YNc(2,h_e,2,1,"ng-template",9),n.qZA()),2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(4,tJ,t.virtual))("ngStyle",n.kEZ(6,nJ,null==t.virtual?null:t.virtual.itemHeight,null==t.virtual?null:t.virtual.itemHeight,t.virtual?"border-box":"inherit")),n.xp6(1),n.Q6J("ngIf",t.fixedGroupTemplate),n.xp6(1),n.Q6J("ngIf",!t.fixedGroupTemplate)}}function f_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"label",14)(1,"input",15),n.NdJ("change",function(s){n.CHM(t);const l=n.oxw().index,u=n.oxw(2);return n.KtG(u.onCheckedChange(s,l))}),n.qZA()()}if(2&i){const t=n.oxw().index,r=n.oxw(2);n.xp6(1),n.Q6J("checked",r.isChecked(t))}}function m_e(i,o){}function __e(i,o){if(1&i&&n.YNc(0,m_e,0,0,"ng-template",10),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Q6J("templateContext",n.WLB(1,Hp,r.template.templateRef,t))}}function b_e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Oqu(r.getText(t))}}const iJ=function(i,o){return{"k-virtual-item":i,"k-state-disabled":o}};function v_e(i,o){if(1&i&&(n.TgZ(0,"li",12),n.YNc(1,f_e,2,1,"label",13),n.YNc(2,__e,1,4,null,5),n.YNc(3,b_e,1,1,"ng-template",9),n.qZA()),2&i){const t=o.$implicit,r=o.index,s=n.oxw(2);n.Q6J("checkboxes",s.checkboxes)("height",null==s.virtual?null:s.virtual.itemHeight)("index",r+s.startFrom)("multipleSelection",s.multipleSelection)("ngClass",n.WLB(10,iJ,s.virtual,s.isDisabled(r))),n.uIk("id",s.optionPrefix+"-"+s.getValue(t))("tabIndex",-1),n.xp6(1),n.Q6J("ngIf",s.checkboxes.enabled),n.xp6(1),n.Q6J("ngIf",s.template),n.xp6(1),n.Q6J("ngIf",!s.template)}}function y_e(i,o){if(1&i&&n.YNc(0,v_e,4,13,"ng-template",11),2&i){const t=n.oxw();n.Q6J("ngForOf",t.data)}}function C_e(i,o){}function A_e(i,o){if(1&i&&n.YNc(0,C_e,0,0,"ng-template",10),2&i){const t=n.oxw(2).$implicit,r=n.oxw(2);n.Q6J("templateContext",n.WLB(1,Hp,r.groupTemplate.templateRef,t.value))}}function x_e(i,o){if(1&i&&(n.TgZ(0,"strong"),n._uU(1),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",t.value,"")}}function T_e(i,o){if(1&i&&(n.TgZ(0,"li",18),n.YNc(1,A_e,1,4,null,5),n.YNc(2,x_e,2,1,"ng-template",9),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Q6J("ngClass",n.VKq(7,tJ,r.virtual))("ngStyle",n.kEZ(9,nJ,null==r.virtual?null:r.virtual.itemHeight,null==r.virtual?null:r.virtual.itemHeight,r.virtual?"border-box":"inherit")),n.uIk("group-index",t.index)("id",r.optionPrefix+"-"+r.getValue(t.value))("tabIndex",-1),n.xp6(1),n.Q6J("ngIf",r.groupTemplate),n.xp6(1),n.Q6J("ngIf",!r.groupTemplate)}}function S_e(i,o){}function w_e(i,o){if(1&i&&n.YNc(0,S_e,0,0,"ng-template",10),2&i){const t=n.oxw(2).$implicit,r=n.oxw(2);n.Q6J("templateContext",n.WLB(1,Hp,r.template.templateRef,t.value))}}function M_e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(2).$implicit,r=n.oxw(2);n.Oqu(r.getText(t.value))}}function D_e(i,o){if(1&i&&(n.TgZ(0,"li",19),n.YNc(1,w_e,1,4,null,5),n.YNc(2,M_e,1,1,"ng-template",9),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Q6J("height",null==r.virtual?null:r.virtual.itemHeight)("index",t.offsetIndex)("multipleSelection",r.multipleSelection)("ngClass",n.WLB(9,iJ,r.virtual,r.isDisabled(t.offsetIndex))),n.uIk("absolute-index",t.index)("id",r.optionPrefix+"-"+r.getValue(t.value))("tabIndex",-1),n.xp6(1),n.Q6J("ngIf",r.template),n.xp6(1),n.Q6J("ngIf",!r.template)}}function k_e(i,o){if(1&i&&(n.YNc(0,T_e,3,13,"li",16),n.YNc(1,D_e,3,12,"li",17)),2&i){const t=o.$implicit;n.Q6J("ngIf",t.header&&t.index>0),n.xp6(1),n.Q6J("ngIf",!t.header)}}function I_e(i,o){if(1&i&&n.YNc(0,k_e,2,2,"ng-template",11),2&i){const t=n.oxw();n.Q6J("ngForOf",t.data)}}function E_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",20),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.listResize.emit())}),n.qZA()}}function P_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",21,22)(2,"div")(3,"kendo-resize-sensor",20),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.listResize.emit())}),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(2),n.Udp("height",t.scrollHeight,"px")}}const O_e=function(i,o){return{"k-virtual-content":i,"k-list-scroller":o}},N_e=function(i){return{"k-virtual-list":i}},wy=["container"],My=["popupTemplate"],KI=["optionsList"];function L_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",8),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))})("mousedown",function(s){return s.preventDefault()}),n.qZA()}if(2&i){const t=n.oxw();n.Udp("visibility",t.clearButtonVisiblity),n.uIk("title",t.clearTitle)}}function R_e(i,o){1&i&&n._UZ(0,"span",9)}function F_e(i,o){}const va=function(i){return{templateRef:i}};function B_e(i,o){if(1&i&&n.YNc(0,F_e,0,0,"ng-template",14),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.headerTemplate.templateRef))}}function H_e(i,o){}function $_e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.noDataText)}}function U_e(i,o){if(1&i&&(n.TgZ(0,"div",15),n.YNc(1,H_e,0,0,"ng-template",16),n.YNc(2,$_e,2,1,"ng-template",6),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function Y_e(i,o){}function j_e(i,o){if(1&i&&n.YNc(0,Y_e,0,0,"ng-template",14),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.footerTemplate.templateRef))}}function Z_e(i,o){if(1&i){const t=n.EpF();n.YNc(0,B_e,1,3,null,10),n.TgZ(1,"kendo-list",11,12),n.NdJ("pageChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pageChange(s))}),n.qZA(),n.YNc(3,U_e,3,5,"div",13),n.YNc(4,j_e,1,3,null,10)}if(2&i){const t=n.oxw();n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("id",t.listBoxId)("optionPrefix",t.optionPrefix)("data",t.data)("textField",t.valueField)("valueField",t.valueField)("template",t.template)("groupTemplate",t.groupTemplate)("fixedGroupTemplate",t.fixedGroupTemplate)("height",t.listHeight)("show",t.isOpen)("virtual",t.virtual),n.xp6(2),n.Q6J("ngIf",0===t.data.length),n.xp6(1),n.Q6J("ngIf",t.footerTemplate)}}function V_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",17),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const pT=["wrapper"],z_e=["select"],XI=function(i){return{mousedown:i}};function G_e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",12),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))}),n.qZA()}if(2&i){const t=n.oxw();n.Udp("visibility",t.clearButtonVisiblity),n.Q6J("kendoEventsOutsideAngular",n.VKq(4,XI,t.preventEventDefault)),n.uIk("title",t.clearTitle)}}function q_e(i,o){}function J_e(i,o){if(1&i&&n.YNc(0,q_e,0,0,"ng-template",17),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.headerTemplate.templateRef))}}function Q_e(i,o){}function W_e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.noDataText)}}function K_e(i,o){if(1&i&&(n.TgZ(0,"div",18),n.YNc(1,Q_e,0,0,"ng-template",19),n.YNc(2,W_e,2,1,"ng-template",10),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function X_e(i,o){}function e1e(i,o){if(1&i&&n.YNc(0,X_e,0,0,"ng-template",17),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.footerTemplate.templateRef))}}function t1e(i,o){if(1&i){const t=n.EpF();n.YNc(0,J_e,1,3,null,13),n.TgZ(1,"kendo-list",14,15),n.NdJ("pageChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pageChange(s))}),n.qZA(),n.YNc(3,K_e,3,5,"div",16),n.YNc(4,e1e,1,3,null,13)}if(2&i){const t=n.oxw();n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("id",t.listBoxId)("optionPrefix",t.optionPrefix)("data",t.data)("textField",t.textField)("valueField",t.valueField)("template",t.template)("groupTemplate",t.groupTemplate)("fixedGroupTemplate",t.fixedGroupTemplate)("height",t.listHeight)("show",t.isOpen)("virtual",t.virtual),n.xp6(2),n.Q6J("ngIf",0===t.data.length),n.xp6(1),n.Q6J("ngIf",t.footerTemplate)}}function n1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",20),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const j7=function(i){return{"k-state-disabled":i}};function i1e(i,o){}function o1e(i,o){if(1&i&&n.YNc(0,i1e,0,0,"ng-template",10),2&i){const t=n.oxw();n.Q6J("templateContext",n.WLB(1,Hp,t.valueTemplate.templateRef,t.dataItem))}}function r1e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw();n.Oqu(t.getText())}}function a1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",14),n.NdJ("click",function(s){return s.stopImmediatePropagation()}),n.TgZ(1,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.filterText=s)})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.keydown(s))})("input",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleFilter(s))})("focus",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onFilterFocus())})("blur",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.blurFilterInput())}),n.qZA(),n._UZ(2,"span",16),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("filterInput",t.isFocused&&!t.touchEnabled)("dir",t.direction)("ngModel",t.filterText),n.uIk("aria-owns",t.ariaOwns)("aria-activedescendant",t.ariaActivedescendant)("aria-label",t.noDataLabel)}}function s1e(i,o){if(1&i&&(n.TgZ(0,"div",17),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(3,j7,t.isDisabledDefaultItem))("index",-1),n.xp6(1),n.hij(" ",t.getDefaultItemText()," ")}}function l1e(i,o){}function c1e(i,o){if(1&i&&(n.TgZ(0,"div",17),n.YNc(1,l1e,0,0,"ng-template",10),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(3,j7,t.isDisabledDefaultItem))("index",-1),n.xp6(1),n.Q6J("templateContext",n.WLB(5,Hp,t.itemTemplate.templateRef,t.defaultItem))}}function d1e(i,o){}function u1e(i,o){if(1&i&&n.YNc(0,d1e,0,0,"ng-template",10),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.headerTemplate.templateRef))}}function p1e(i,o){}function h1e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.noDataText)}}function g1e(i,o){if(1&i&&(n.TgZ(0,"div",18),n.YNc(1,p1e,0,0,"ng-template",19),n.YNc(2,h1e,2,1,"ng-template",5),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function f1e(i,o){}function m1e(i,o){if(1&i&&n.YNc(0,f1e,0,0,"ng-template",10),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.footerTemplate.templateRef))}}function _1e(i,o){if(1&i){const t=n.EpF();n.YNc(0,a1e,3,6,"ng-template",5),n.YNc(1,s1e,2,5,"ng-template",5),n.YNc(2,c1e,2,8,"ng-template",5),n.YNc(3,u1e,1,3,null,4),n.TgZ(4,"kendo-list",11,12),n.NdJ("pageChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pageChange(s))}),n.qZA(),n.YNc(6,g1e,3,5,"div",13),n.YNc(7,m1e,1,3,null,4)}if(2&i){const t=n.oxw();n.Q6J("ngIf",t.filterable),n.xp6(1),n.Q6J("ngIf",t.defaultItem&&!t.itemTemplate),n.xp6(1),n.Q6J("ngIf",t.defaultItem&&t.itemTemplate),n.xp6(1),n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("id",t.listBoxId)("optionPrefix",t.optionPrefix)("data",t.data)("textField",t.textField)("valueField",t.valueField)("template",t.itemTemplate)("groupTemplate",t.groupTemplate)("fixedGroupTemplate",t.fixedGroupTemplate)("height",t.listHeight)("show",t.isOpen)("virtual",t.virtual),n.xp6(2),n.Q6J("ngIf",0===t.data.length),n.xp6(1),n.Q6J("ngIf",t.footerTemplate)}}function b1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",20),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const oJ=function(i){return{"k-dropdown-wrap":!0,"k-state-disabled":i}};function v1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",11),n.NdJ("mousedown",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearAll(s))}),n.qZA()}if(2&i){const t=n.oxw();n.Udp("visibility",t.clearButtonVisiblity),n.uIk("title",t.clearTitle)}}function y1e(i,o){1&i&&n._UZ(0,"span",12)}function C1e(i,o){}function A1e(i,o){if(1&i&&n.YNc(0,C1e,0,0,"ng-template",18),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.headerTemplate.templateRef))}}function x1e(i,o){}function T1e(i,o){if(1&i&&n.YNc(0,x1e,0,0,"ng-template",18),2&i){const t=n.oxw(3);n.Q6J("templateContext",n.WLB(1,Hp,t.customItemTemplate.templateRef,t.text))}}function S1e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(3);n.Oqu(t.text)}}function w1e(i,o){if(1&i&&(n.TgZ(0,"div",19)(1,"div",20),n.YNc(2,T1e,1,4,null,21),n.YNc(3,S1e,1,1,"ng-template",null,22,n.W1O),n._UZ(5,"span",23),n.qZA()()),2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(1),n.Q6J("multipleSelection",!0)("index",-1),n.xp6(1),n.Q6J("ngIf",r.customItemTemplate)("ngIfElse",t)}}function M1e(i,o){}function D1e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.noDataText)}}function k1e(i,o){if(1&i&&(n.TgZ(0,"div",24),n.YNc(1,M1e,0,0,"ng-template",25),n.YNc(2,D1e,2,1,"ng-template",9),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,t.noDataTemplate?t.noDataTemplate.templateRef:void 0)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function I1e(i,o){}function E1e(i,o){if(1&i&&n.YNc(0,I1e,0,0,"ng-template",18),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,t.footerTemplate.templateRef))}}function P1e(i,o){if(1&i){const t=n.EpF();n.YNc(0,A1e,1,3,null,13),n.YNc(1,w1e,6,4,"div",14),n.TgZ(2,"kendo-list",15,16),n.NdJ("pageChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pageChange(s))}),n.qZA(),n.YNc(4,k1e,3,5,"div",17),n.YNc(5,E1e,1,3,null,13)}if(2&i){const t=n.oxw();n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("ngIf",t.allowCustom&&t.text),n.xp6(1),n.Q6J("id",t.listBoxId)("optionPrefix",t.optionPrefix)("data",t.data)("textField",t.textField)("valueField",t.valueField)("height",t.listHeight)("template",t.template)("groupTemplate",t.groupTemplate)("fixedGroupTemplate",t.fixedGroupTemplate)("show",t.isOpen)("multipleSelection",!0)("virtual",t.virtual)("checkboxes",t.checkboxes),n.xp6(2),n.Q6J("ngIf",0===t.data.length),n.xp6(1),n.Q6J("ngIf",t.footerTemplate)}}function O1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",26),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const N1e=["header"];function L1e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",12),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))}),n.qZA()}if(2&i){const t=n.oxw();n.Udp("visibility",t.clearButtonVisiblity),n.Q6J("kendoEventsOutsideAngular",n.VKq(4,XI,t.preventEventDefault)),n.uIk("title",t.clearTitle)}}function R1e(i,o){}function F1e(i,o){if(1&i&&n.YNc(0,R1e,0,0,"ng-template",23),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,null==t.headerTemplate?null:t.headerTemplate.templateRef))}}function B1e(i,o){if(1&i&&n._UZ(0,"col"),2&i){const t=n.oxw().$implicit;n.Udp("width",t.width,"px")}}function H1e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,B1e,1,2,"col",24),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.hidden&&t.matchesMedia)}}function $1e(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij(" ",t.title||t.field," ")}}function U1e(i,o){}const Y1e=function(i,o,t){return{templateRef:i,$implicit:o,column:t}};function j1e(i,o){if(1&i&&n.YNc(0,U1e,0,0,"ng-template",23),2&i){const t=n.oxw(2).$implicit;n.Q6J("templateContext",n.kEZ(1,Y1e,null==t.headerTemplate?null:t.headerTemplate.templateRef,t,t))}}function Z1e(i,o){if(1&i&&(n.TgZ(0,"th",26),n.YNc(1,$1e,2,1,"ng-container",13),n.YNc(2,j1e,1,5,null,13),n.qZA()),2&i){const t=n.oxw().$implicit;n.Q6J("ngStyle",t.headerStyle)("ngClass",t.headerClass),n.xp6(1),n.Q6J("ngIf",!t.headerTemplate),n.xp6(1),n.Q6J("ngIf",t.headerTemplate)}}function V1e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Z1e,3,4,"th",25),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.hidden&&t.matchesMedia)}}function z1e(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=n.oxw(2).$implicit,r=n.oxw().$implicit,s=n.oxw(2);n.xp6(1),n.hij(" ",s.textFrom(r,t.field)," ")}}function G1e(i,o){}const q1e=function(i,o,t,r){return{templateRef:i,$implicit:o,dataItem:t,column:r}};function J1e(i,o){if(1&i&&n.YNc(0,G1e,0,0,"ng-template",23),2&i){const t=n.oxw(2).$implicit,r=n.oxw().$implicit;n.Q6J("templateContext",n.l5B(1,q1e,null==t.cellTemplate?null:t.cellTemplate.templateRef,r,r,t))}}function Q1e(i,o){if(1&i&&(n.TgZ(0,"span",28),n.YNc(1,z1e,2,1,"ng-container",13),n.YNc(2,J1e,1,6,null,13),n.qZA()),2&i){const t=n.oxw().$implicit;n.Udp("width",t.width,"px"),n.Q6J("ngClass",t.class)("ngStyle",t.style),n.xp6(1),n.Q6J("ngIf",!t.cellTemplate),n.xp6(1),n.Q6J("ngIf",t.cellTemplate)}}function W1e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Q1e,3,6,"span",27),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.hidden&&t.matchesMedia)}}function K1e(i,o){if(1&i&&n.YNc(0,W1e,2,1,"ng-container",18),2&i){const t=n.oxw(2);n.Q6J("ngForOf",t.columns)}}function X1e(i,o){}function e0e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.noDataText)}}function t0e(i,o){if(1&i&&(n.TgZ(0,"div",29),n.YNc(1,X1e,0,0,"ng-template",30),n.YNc(2,e0e,2,1,"ng-template",31),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function n0e(i,o){}function i0e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",32),n.YNc(2,n0e,0,0,"ng-template",23),n.qZA(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("templateContext",n.VKq(1,va,t.footerTemplate.templateRef))}}function o0e(i,o){if(1&i){const t=n.EpF();n.YNc(0,F1e,1,3,null,13),n.TgZ(1,"div",14,15)(3,"div",16)(4,"table",17)(5,"colgroup"),n.YNc(6,H1e,2,1,"ng-container",18),n.qZA(),n.TgZ(7,"tbody")(8,"tr"),n.YNc(9,V1e,2,1,"ng-container",18),n.qZA()()()()(),n.YNc(10,K1e,1,1,"ng-template",null,19,n.W1O),n.TgZ(12,"kendo-list",20,21),n.NdJ("pageChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pageChange(s))})("listResize",function(){n.CHM(t);const s=n.MAs(2),l=n.oxw();return n.KtG(l.updateHeaderPadding(s))}),n.qZA(),n.YNc(14,t0e,3,5,"div",22),n.YNc(15,i0e,3,3,"ng-container",13)}if(2&i){const t=n.MAs(11),r=n.oxw();n.Q6J("ngIf",r.headerTemplate),n.xp6(6),n.Q6J("ngForOf",r.columns),n.xp6(3),n.Q6J("ngForOf",r.columns),n.xp6(3),n.Q6J("id",r.listBoxId)("optionPrefix",r.optionPrefix)("data",r.data)("textField",r.textField)("valueField",r.valueField)("template",n.VKq(17,va,t))("groupTemplate",r.groupTemplate)("fixedGroupTemplate",r.fixedGroupTemplate)("height",r.listHeight)("show",r.isOpen)("virtual",r.virtual)("listClass","k-reset k-grid-list"),n.xp6(2),n.Q6J("ngIf",0===r.data.length),n.xp6(1),n.Q6J("ngIf",r.footerTemplate)}}function r0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",33),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const rJ=["treeview"],aJ=["filterInput"];function a0e(i,o){}function s0e(i,o){if(1&i&&n.YNc(0,a0e,0,0,"ng-template",11),2&i){const t=n.oxw();n.Q6J("templateContext",n.WLB(1,Hp,t.valueTemplate.templateRef,t.dataItem))}}function l0e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw();n.hij(" ",t.text||t.placeholder," ")}}function c0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",12),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearValue(s))}),n.qZA()}if(2&i){const t=n.oxw();n.Udp("visibility",t.clearButtonVisiblity),n.uIk("title",t.messageFor("clearTitle"))}}const Z7=function(i){return{blur:i}};function d0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",16)(1,"input",17,18),n.NdJ("input",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleFilterInputChange(s.target.value))})("keydown.arrowdown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleKeydown(s))})("keydown.alt.arrowup",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleKeydown(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.filter=s)}),n.qZA(),n._UZ(3,"span",19),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("filterInput",t.filterable&&!t.touchEnabled)("ngModel",t.filter)("kendoEventsOutsideAngular",n.VKq(4,Z7,t.handleBlur))("scope",t)}}function u0e(i,o){}function p0e(i,o){if(1&i&&n.YNc(0,u0e,0,0,"ng-template",11),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,null==t.headerTemplate?null:t.headerTemplate.templateRef))}}function h0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-treeview",20,21),n.NdJ("selectedKeysChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.selectedKeys=s)})("focusout",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleBlur(s))})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleKeydown(s))})("selectionChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.onSelectionChange(s))})("expand",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.nodeExpand.emit(s))})("collapse",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.nodeCollapse.emit(s))}),n.qZA()}if(2&i){const t=n.oxw(2);n.Udp("max-height",t.listHeight,"px"),n.Q6J("nodes",t.data)("animate",!1)("selectedKeys",t.selectedKeys)("selectBy",t.selectBy)("textField",t.textField)("children",t.children)("hasChildren",t.hasChildren)("loadOnDemand",t.loadOnDemand)("isExpanded",t.isNodeExpanded)("isDisabled",t.itemDisabled)("nodeTemplate",t.nodeTemplate)("filter",t.filter)("isVisible",t.isNodeVisible)}}function g0e(i,o){}function f0e(i,o){if(1&i&&n.YNc(0,g0e,0,0,"ng-template",11),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,null==t.footerTemplate?null:t.footerTemplate.templateRef))}}function m0e(i,o){}function _0e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.messageFor("noDataText"))}}function b0e(i,o){if(1&i&&(n.TgZ(0,"div",22),n.YNc(1,m0e,0,0,"ng-template",23),n.YNc(2,_0e,2,1,"ng-template",5),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}function v0e(i,o){if(1&i&&(n.YNc(0,d0e,4,6,"span",13),n.YNc(1,p0e,1,3,null,4),n.YNc(2,h0e,2,15,"kendo-treeview",14),n.YNc(3,f0e,1,3,null,4),n.YNc(4,b0e,3,5,"div",15)),2&i){const t=n.oxw();n.Q6J("ngIf",t.filterable),n.xp6(1),n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("ngIf",0!==t.data.length&&!t.allNodesHidden),n.xp6(1),n.Q6J("ngIf",t.footerTemplate),n.xp6(1),n.Q6J("ngIf",0===t.data.length||t.allNodesHidden)}}const y0e=["checkAllInput"];function C0e(i,o){if(1&i&&(n.TgZ(0,"span",9),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.placeholder," ")}}function A0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",10),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clearAll(s))}),n.qZA()}if(2&i){const t=n.oxw();n.uIk("title",t.messageFor("clearTitle"))}}function x0e(i,o){1&i&&n._UZ(0,"span",11)}function T0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",18)(1,"input",19,20),n.NdJ("input",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleFilterInputChange(s.target.value))})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleKeydown(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.filter=s)}),n.qZA(),n._UZ(3,"span",21),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("filterInput",t.filterable&&!t.touchEnabled)("ngModel",t.filter)("kendoEventsOutsideAngular",n.VKq(4,Z7,t.handleBlur))("scope",t)}}function S0e(i,o){}function w0e(i,o){if(1&i&&n.YNc(0,S0e,0,0,"ng-template",22),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,null==t.headerTemplate?null:t.headerTemplate.templateRef))}}function M0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",23)(1,"input",24,25),n.NdJ("checkedItemsChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleCheckedItemsChange(s))})("keydown",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleKeydown(s))}),n.qZA(),n.TgZ(3,"span",26),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.toggleCheckAll())})("mousedown",function(s){return s.preventDefault()}),n._uU(4),n.qZA()()}if(2&i){n.oxw();const t=n.MAs(4),r=n.oxw();n.xp6(1),n.Q6J("checkAll",!r.filterable&&!r.touchEnabled)("treeview",t)("checkedItems",r.checkedItems)("valueField",r.valueField)("lastAction",r.lastAction)("kendoEventsOutsideAngular",n.VKq(8,Z7,r.handleBlur))("scope",r),n.xp6(3),n.hij(" ",r.messageFor("checkAllText")," ")}}function D0e(i,o){}function k0e(i,o){if(1&i&&n.YNc(0,D0e,0,0,"ng-template",22),2&i){const t=n.oxw(2);n.Q6J("templateContext",n.VKq(1,va,null==t.footerTemplate?null:t.footerTemplate.templateRef))}}function I0e(i,o){}function E0e(i,o){if(1&i&&(n.TgZ(0,"div"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.messageFor("noDataText"))}}function P0e(i,o){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,I0e,0,0,"ng-template",28),n.YNc(2,E0e,2,1,"ng-template",29),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.noDataTemplate)("templateContext",n.VKq(3,va,null==t.noDataTemplate?null:t.noDataTemplate.templateRef)),n.xp6(1),n.Q6J("ngIf",!t.noDataTemplate)}}const O0e=function(i){return{focusout:i}};function N0e(i,o){if(1&i){const t=n.EpF();n.YNc(0,T0e,4,6,"span",12),n.YNc(1,w0e,1,3,null,13),n.YNc(2,M0e,5,10,"div",14),n.TgZ(3,"kendo-treeview",15,16),n.NdJ("keydown",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleKeydown(s))})("nodeClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleNodeClick(s))})("expand",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.nodeExpand.emit(s))})("collapse",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.nodeCollapse.emit(s))})("checkedItemsChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleCheckedItemsChange(s))}),n.qZA(),n.YNc(5,k0e,1,3,null,13),n.YNc(6,P0e,3,5,"div",17)}if(2&i){const t=n.oxw();n.Q6J("ngIf",t.filterable),n.xp6(1),n.Q6J("ngIf",t.headerTemplate),n.xp6(1),n.Q6J("ngIf",t.checkAll),n.xp6(1),n.Udp("max-height",t.listHeight,"px"),n.Q6J("nodes",t.data)("animate",!1)("checkable",t.checkableSettings)("checkedItems",t.checkedItems)("valueField",t.valueField)("textField",t.textField)("children",t.children)("hasChildren",t.hasChildren)("isExpanded",t.isNodeExpanded)("isDisabled",t.itemDisabled)("nodeTemplate",t.nodeTemplate)("loadOnDemand",t.loadOnDemand)("filter",t.filter)("isVisible",t.isNodeVisible)("kendoEventsOutsideAngular",n.VKq(23,O0e,t.handleBlur))("scope",t),n.xp6(2),n.Q6J("ngIf",t.footerTemplate),n.xp6(1),n.Q6J("ngIf",0===(null==t.data?null:t.data.length)||t.allNodesHidden)}}const L0e=function(i){return{"k-multiselect-wrap":!0,"k-floatwrap":!0,"k-state-disabled":i}};function R0e(i,o){}function F0e(i,o){1&i&&n.YNc(0,R0e,0,0,"ng-template")}function B0e(i,o){}function H0e(i,o){if(1&i&&n.YNc(0,B0e,0,0,"ng-template",10),2&i){const t=n.oxw(2).$implicit,r=n.oxw();n.Q6J("templateContext",n.WLB(1,Hp,r.groupTemplate.templateRef,t))}}function $0e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(2).$implicit;n.AsE("",t.length," ",1===t.length?"item":"items"," selected")}}function U0e(i,o){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,H0e,1,4,null,8),n.YNc(2,$0e,1,2,"ng-template",9),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.groupTemplate),n.xp6(1),n.Q6J("ngIf",!t.groupTemplate)}}function Y0e(i,o){}function j0e(i,o){if(1&i&&n.YNc(0,Y0e,0,0,"ng-template",10),2&i){const t=n.oxw(2).$implicit,r=n.oxw();n.Q6J("templateContext",n.WLB(1,Hp,r.template.templateRef,t))}}function Z0e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(2),r=t.$implicit,s=t.index,l=n.oxw();n.Oqu(l.tagProp(r,l.textField,s))}}function V0e(i,o){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,j0e,1,4,null,8),n.YNc(2,Z0e,1,1,"ng-template",9),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.template),n.xp6(1),n.Q6J("ngIf",!t.template)}}const z0e=function(i,o){return{"k-state-focused":i,"k-state-disabled":o}};function G0e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",2),n.YNc(1,F0e,1,0,null,3),n.YNc(2,U0e,3,2,"ng-template",null,4,n.W1O),n.YNc(4,V0e,3,2,"ng-template",null,5,n.W1O),n.TgZ(6,"span",6)(7,"span",7),n.NdJ("mousedown",function(s){const l=n.CHM(t),u=l.$implicit,p=l.index,y=n.oxw();return n.KtG(y.deleteTag(s,u,p))}),n.qZA()()()}if(2&i){const t=o.$implicit,r=o.index,s=n.MAs(3),l=n.MAs(5),u=n.oxw();n.Q6J("ngClass",n.WLB(8,z0e,r===u.focused,u.isTagDisabled(t,r))),n.uIk("id",u.itemId(t,r))("aria-hidden",u.tagAriaHidden(r))("aria-setsize",null==u.tags?null:u.tags.length),n.xp6(1),n.Q6J("ngIf",u.isGroupTag(t))("ngIfThen",s)("ngIfElse",l),n.xp6(5),n.uIk("aria-hidden",r!==u.focused)}}const eE={name:"@progress/kendo-angular-dropdowns",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1639043976,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},je=i=>null!=i,kl=()=>{let o,t,i="";for(o=0;o<32;o++)t=16*Math.random()|0,(8===o||12===o||16===o||20===o)&&(i+="-"),i+=(12===o?4:16===o?3&t|8:t).toString(16);return i},ol=i=>Array.isArray(i),K1=i=>je(i)&&"object"==typeof i,sJ=i=>"string"==typeof i&&0===i.length,tE=i=>ol(i)&&i.every(o=>K1(o)),V7=(i,o,t)=>{const r=o.map(s=>je(s)&&je(Yt(s,t))?Yt(s,t):s);return i.reduce((s,l)=>{const u=je(l)&&je(Yt(l,t))?Yt(l,t):l,p=r.indexOf(u);return-1!==p&&s.push(p),s},[])},Yt=(i,o)=>je(i)?je(o)&&K1(i)?ys(o)(i):i:null,lJ=(i,o,t)=>{if(!je(i))return!1;let r=String(i);return t&&(r=r.toLowerCase()),0===r.indexOf(o)},cJ=(i,o)=>!!je(i)&&o.every(t=>i.hasOwnProperty(t)),Dy=i=>i.className.includes("ng-untouched"),X1=i=>{},tbe=(i,o)=>{const t=i.matches||i.msMatchesSelector||i.webkitMatchesSelector;return!!t&&t.call(i,o)},nE=(i,o=0)=>{const t=Number(i);return isNaN(t)?o:t},hT=(i,o,t)=>i.nativeElement.contains(o)||t&&t.popupElement.contains(o),z7=i=>(i||"").split("_").length-1,G7=(i,o)=>{if(!je(i)||0===i.children.length)return[];let t=i.children;return je(o)&&(t=t.filter(r=>o(r.item))),t.forEach(r=>t=t.concat(G7(r,o))),t},sm=({dataItem:i,index:o,level:t},r)=>{const s=Array.isArray(r)?r:[r],l=je(t)?t:z7(o);return ys(s[Math.min(l,s.length-1)])(i)};let ic=(()=>{let i=class{constructor(t,r){this.localization=t,this.valueChange=new n.vpe,this.onBlur=new n.vpe,this.onFocus=new n.vpe,this.onClick=new n.vpe,this.onNavigate=new n.vpe,this.searchBarClass=!0,this._userInput="",this._previousValue="",this._placeholder="",this.direction=t.rtl?"rtl":"ltr",this.renderer=r}get userInput(){return this._userInput}set userInput(t){this._userInput=t||""}get value(){return this.input.nativeElement.value}set placeholder(t){this._placeholder=t||"",this.setInputSize()}get placeholder(){return this._placeholder}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:t})=>this.direction=t?"rtl":"ltr")}ngOnChanges(t){let r;if(this.input&&(t.userInput||t.suggestedText)){r=t.userInput&&t.userInput.previousValue?this._previousValue===t.userInput.previousValue?this._previousValue:t.userInput.currentValue||"":this._previousValue;const s=this.input.nativeElement.selectionStart,l=r.length===s;this.writeInputValue(this.suggestedText?((i,o)=>i.concat(o.substr(o.toLowerCase().indexOf(i.toLowerCase())+i.length)))(this.userInput,this.suggestedText):this.userInput),this.suggestedText?this.setInputSelection(this.userInput.length,this.suggestedText.length):l?this.setInputSelection(this.userInput.length,this.userInput.length):this.setInputSelection(s,s),this._previousValue=this.userInput}}ngOnDestroy(){this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}writeInputValue(t){Dt()&&this.renderer.setProperty(this.input.nativeElement,"value",t)}setInputSelection(t,r){if(Dt()&&this.input.nativeElement===document.activeElement)try{this.input.nativeElement.setSelectionRange(t,r)}catch{}}handleInput(t){const r=t.target.value;r!==this.userInput&&(this._previousValue=r,this.valueChange.emit(r))}handleFocus(t){this.onFocus.emit(t)}handleBlur(t){this.onBlur.emit(t)}handleKeydown(t){[Ie.ArrowUp,Ie.ArrowDown,Ie.ArrowLeft,Ie.ArrowRight,Ie.Enter,Ie.Escape,Ie.Delete,Ie.Backspace,Ie.Home,Ie.End].indexOf(t.keyCode)>-1&&this.onNavigate.emit(t)}focus(){Dt()&&this.input.nativeElement.focus()}blur(){Dt()&&this.input.nativeElement.blur()}setInputSize(){const t=p=>p?p.length:0,r=this.input.nativeElement,s=t(this.placeholder),l=t(this.value),u=Math.max(s,l,1);this.renderer.setAttribute(r,"size",u.toString())}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Te),n.Y36(n.Qsj))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-searchbar"]],viewQuery:function(t,r){if(1&t&&n.Gf(s_e,7),2&t){let s;n.iGM(s=n.CRH())&&(r.input=s.first)}},hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-searchbar",r.searchBarClass)},inputs:{userInput:"userInput",placeholder:"placeholder",id:"id",listId:"listId",tagListId:"tagListId",activeDescendant:"activeDescendant",noDataLabel:"noDataLabel",disabled:"disabled",readonly:"readonly",tabIndex:"tabIndex",popupOpen:"popupOpen",role:"role",suggestedText:"suggestedText"},outputs:{valueChange:"valueChange",onBlur:"onBlur",onFocus:"onFocus",onClick:"onClick",onNavigate:"onNavigate"},features:[n.TTD],decls:2,vars:21,consts:[["autocomplete","off","aria-haspopup","listbox",3,"id","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope","input","keydown"],["input",""]],template:function(t,r){1&t&&(n.TgZ(0,"input",0,1),n.NdJ("input",function(l){return r.handleInput(l)})("keydown",function(l){return r.handleKeydown(l)}),n.qZA()),2&t&&(n.Tol("k-input"),n.Q6J("id",r.id)("disabled",r.disabled)("readonly",r.readonly)("placeholder",r.placeholder)("kendoEventsOutsideAngular",n.WLB(18,WI,r.handleFocus,r.handleBlur))("scope",r),n.uIk("tabIndex",r.tabIndex)("dir",r.direction)("role",r.role)("aria-disabled",r.disabled)("aria-readonly",r.readonly)("aria-expanded",r.popupOpen)("aria-owns",r.listId)("aria-describedby",r.tagListId)("aria-activedescendant",r.activeDescendant)("aria-label",r.noDataLabel))},dependencies:[_a],encapsulation:2}),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"id",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"listId",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"tagListId",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"activeDescendant",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"noDataLabel",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Number)],i.prototype,"tabIndex",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"popupOpen",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"role",void 0),re([(0,n.IIB)(),ee("design:type",String),ee("design:paramtypes",[String])],i.prototype,"userInput",null),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"suggestedText",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"onBlur",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"onFocus",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"onClick",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"onNavigate",void 0),re([(0,n.i9L)("input",{static:!0}),ee("design:type",n.SBq)],i.prototype,"input",void 0),re([(0,n.pfw)("class.k-searchbar"),ee("design:type",Boolean)],i.prototype,"searchBarClass",void 0),re([(0,n.IIB)(),ee("design:type",String),ee("design:paramtypes",[String])],i.prototype,"placeholder",null),i=re([ee("design:paramtypes",[Te,n.Qsj])],i),i})(),Il=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListItemTemplate",""],["","kendoComboBoxItemTemplate",""],["","kendoAutoCompleteItemTemplate",""],["","kendoMultiSelectItemTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),ts=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListHeaderTemplate",""],["","kendoComboBoxHeaderTemplate",""],["","kendoDropDownTreeHeaderTemplate",""],["","kendoMultiColumnComboBoxHeaderTemplate",""],["","kendoAutoCompleteHeaderTemplate",""],["","kendoMultiSelectHeaderTemplate",""],["","kendoMultiSelectTreeHeaderTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),ns=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListFooterTemplate",""],["","kendoComboBoxFooterTemplate",""],["","kendoDropDownTreeFooterTemplate",""],["","kendoMultiColumnComboBoxFooterTemplate",""],["","kendoAutoCompleteFooterTemplate",""],["","kendoMultiSelectFooterTemplate",""],["","kendoMultiSelectTreeFooterTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),oc=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListGroupTemplate",""],["","kendoComboBoxGroupTemplate",""],["","kendoMultiColumnComboBoxGroupTemplate",""],["","kendoAutoCompleteGroupTemplate",""],["","kendoMultiSelectGroupTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),rc=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListFixedGroupTemplate",""],["","kendoComboBoxFixedGroupTemplate",""],["","kendoMultiColumnComboBoxFixedGroupTemplate",""],["","kendoAutoCompleteFixedGroupTemplate",""],["","kendoMultiSelectFixedGroupTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),ra=(()=>{let i=class{constructor(){this.onSelect=new n.vpe,this.onChange=new n.vpe,this.onFocus=new n.vpe,this.total=0,this.selectedIndices=[]}getTotal(){return this.total}isSelected(t){return je(this.selectedIndices.find(r=>r===t))}isFocused(t){return t===this.focused}focus(t){this.isFocused(t)||(this.focused=t,this.onFocus.emit(t))}select(t){this.isSelected(t)||(this.selectedIndices=[t],this.focused=t,this.onSelect.emit({indices:[t],newSelection:je(t)}))}add(t){this.isSelected(t)||(this.selectedIndices.push(t),this.focused=t,this.onChange.emit({added:t,indices:this.selectedIndices.slice()}))}unselect(t){if(!this.isSelected(t))return;const r=this.selectedIndices.indexOf(t);this.selectedIndices.splice(r,1),this.focused=t,this.onChange.emit({indices:this.selectedIndices.slice(),removed:t})}change(t){const r=je(t)&&!this.isSelected(t);this.selectedIndices=[t],this.focused=t,this.onChange.emit({indices:[t],newSelection:r})}resetSelection(t){this.selectedIndices=t instanceof Array?t:[t],this.focused=this.selectedIndices[this.selectedIndices.length-1]}get selected(){return this.selectedIndices.slice()}get focused(){return this.focusedIndex}set focused(t){this.focusedIndex!==t&&(this.focusedIndex=t,this.onFocus.emit(t))}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();var ai=(()=>(function(i){i[i.Undefined=0]="Undefined",i[i.Open=1]="Open",i[i.Close=2]="Close",i[i.Enter=3]="Enter",i[i.Tab=4]="Tab",i[i.Esc=5]="Esc",i[i.Delete=6]="Delete",i[i.Backspace=7]="Backspace",i[i.Home=8]="Home",i[i.End=9]="End",i[i.Up=10]="Up",i[i.Down=11]="Down",i[i.Left=12]="Left",i[i.Right=13]="Right"}(ai||(ai={})),ai))();let Ea=(()=>{let i=class{constructor(){this.grouped=!1,this.groupIndices=[]}set data(t){this._data=t,this.grouped=this.isGrouped(t),this.grouped&&(this.groupIndices=this.getGroupIndices(t),this._flatData=this.flatten(t))}get data(){return this.grouped?this._flatData:this._data}get itemsCount(){return je(this.data)&&0!==this.data.length?(this.grouped?this._flatData.filter(r=>!r.header):this.data).length:0}isGrouped(t){return je(t)&&0!==t.length&&je(t[0])&&cJ(t[0],["aggregates","field","items","value"])}getGroupIndices(t){let r=[];for(let s=0;s<=t.length-1;s++)r[s]=(r[s-1]||0)+t[s].items.length;return r}filter(t){let r=[];if(this.isGrouped(this.data))for(let s=0;s<=this.groupIndices.length-1;s++){const l=this.data[s].items.filter(t);l&&(r=r.concat(l))}else r=this.data.filter(t);return r}indexOf(t,r=0){let s=l=>l===t;return this.grouped&&(s=l=>l.value===t),this.findIndex(s,r)}findIndex(t,r=0){let s=-1;if(this.grouped){const l=this._flatData.filter(u=>!u.header&&u.offsetIndex>=r);s=l.findIndex(t),s=l[s]?l[s].offsetIndex:-1}else{const u=this.data.slice(r).findIndex(t);s=-1!==u?u+r:-1}return s}closestGroup(t){for(let r=t;r>=0;r--)if(this._flatData[r].header)return this._flatData[r]}find(t){const r=this.findIndex(t);return this.itemAt(r)}flatIndex(t){if(0===this.itemsCount)return-1;if(!this.grouped)return t;{const r=this._flatData.find(s=>!s.header&&s.offsetIndex===t);if(r)return r.index}return-1}itemAt(t){let r;if(0===this.itemsCount)return r;if(this.grouped){const s=this._flatData.find(l=>!l.header&&l.offsetIndex===t);s&&(r=s.value)}else r=this.data[t];return r}groupAt(t){if(0!==this.itemsCount&&this.isGrouped)return this._flatData.find(r=>r.header&&r.index===t)}groupField(){return 0!==this.itemsCount&&this.isGrouped?this._data[0].field:null}itemGroup(t){if(!t||0===this.itemsCount||!this.isGrouped)return;const r=this.groupField();return r?Yt(t,r):void 0}flatten(t,r,s=0,l=0){let u=[];je(r)&&u.push({header:!0,index:l+s,offsetIndex:l,value:r});for(let p=0;p<t.length;p++){let y=[];t[p].items?(y=this.flatten(t[p].items,t[p].value,s,p),s+=t[p].items.length):y.push({header:!1,index:l+s+p+1,offsetIndex:s+p,value:t[p]}),u=u.concat(y)}return u}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),Pa=(()=>{let i=class{constructor(t){this.dataService=t,this.itemDisabled=null}isIndexDisabled(t){if(this.itemDisabled){const r=this.dataService.itemAt(t);if(je(r))return this.itemDisabled({dataItem:r,index:t});if(je(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}isItemDisabled(t){if(this.itemDisabled){const r=this.dataService.indexOf(t);if(-1!==r)return this.itemDisabled({dataItem:t,index:r});if(je(this.defaultItem))return this.itemDisabled({dataItem:this.defaultItem,index:-1})}}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Ea))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=re([ee("design:paramtypes",[Ea])],i),i})();class uJ{constructor(o,t){this.index=o,this.originalEvent=t}}let Oa=(()=>{let i=class{constructor(t,r){this.disabledItemsService=t,this.selectionService=r,this.open=new n.vpe,this.close=new n.vpe,this.enter=new n.vpe,this.tab=new n.vpe,this.esc=new n.vpe,this.up=new n.vpe,this.right=new n.vpe,this.down=new n.vpe,this.left=new n.vpe,this.delete=new n.vpe,this.backspace=new n.vpe,this.home=new n.vpe,this.end=new n.vpe}process(t){const r=t.originalEvent.keyCode,s=t.originalEvent.altKey;let l,u=ai.Undefined;s&&r===Ie.ArrowDown?u=ai.Open:s&&r===Ie.ArrowUp?u=ai.Close:r===Ie.Enter?u=ai.Enter:r===Ie.Escape?u=ai.Esc:r===Ie.Tab?u=ai.Tab:r===Ie.ArrowUp?(l=this.next({current:t.current,start:t.min,end:t.max,step:-1}),u=ai.Up):r===Ie.ArrowLeft?(l=this.next({current:t.current,start:t.min,end:t.max,step:-1}),u=ai.Left):r===Ie.ArrowDown?(l=this.next({current:t.current,start:t.min,end:t.max,step:1}),u=ai.Down):r===Ie.ArrowRight?(l=this.next({current:t.current,start:t.min,end:t.max,step:1}),u=ai.Right):r===Ie.Home?(l=this.isDisabled(0)?t.current:0,u=ai.Home):r===Ie.End?(l=this.isDisabled(t.max)?t.current:t.max,u=ai.End):r===Ie.Delete?u=ai.Delete:r===Ie.Backspace&&(u=ai.Backspace);const p=new uJ(l,t.originalEvent);return u!==ai.Undefined&&this[ai[u].toLowerCase()].emit(p),u}next(t){const{current:r,start:s,end:l,step:u}=t,p=je(r)?this.clampIndex(r+u,s,l):s,y=this.firstFocusableIndex(p,s,l,u);return je(y)?y:this.selectionService.isSelected(r)&&r>=s?r:this.firstFocusableIndex(p,s,l,-1*u)}clampIndex(t,r,s){return!je(t)||t<r?r:t>s?s:t}firstFocusableIndex(t,r,s,l){for(;r<=t&&t<=s;){if(!this.isDisabled(t))return t;t+=l}}isDisabled(t){if(this.disabledItemsService)return this.disabledItemsService.isIndexDisabled(t)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Pa),n.LFG(ra))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=re([ee("design:paramtypes",[Pa,ra])],i),i})(),is=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListNoDataTemplate",""],["","kendoDropDownTreeNoDataTemplate",""],["","kendoComboBoxNoDataTemplate",""],["","kendoMultiColumnComboBoxNoDataTemplate",""],["","kendoAutoCompleteNoDataTemplate",""],["","kendoMultiSelectNoDataTemplate",""],["","kendoMultiSelectTreeNoDataTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})();class e0{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}class t0{}let gT=(()=>{let i=class{constructor(t){this.element=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["li","role","option"],["li","role","group"]]}),i=re([ee("design:paramtypes",[n.SBq])],i),i})(),$p=(()=>{let i=class{constructor(t,r,s,l,u,p,y){this.dataService=t,this.wrapper=r,this.selectionService=s,this.disabledItemsService=l,this.cdr=u,this.zone=p,this.renderer=y,this.selected=[],this.focused=-1,this.show=!0,this.multipleSelection=!1,this.listClass="k-list k-reset",this.checkboxes={enabled:!1},this.onClick=new n.vpe,this.pageChange=new n.vpe,this.listResize=new n.vpe,this.startFrom=0,this.lastLoaded=0,this.lastScrollTop=0,this.scrollToFocused=!1,this.selectSubscription=(0,Ko.T)(this.selectionService.onSelect.pipe((0,ft.U)(A=>A.indices[0])),this.selectionService.onFocus).pipe(kr(A=>this.zone.onStable.pipe($i(1),(0,ft.U)(()=>A)))).subscribe(this.scrollToItem.bind(this))}set data(t){this._data=t[0]&&t[0].header?t.slice(0):t}get data(){return this._data}get pageSize(){return this.virtual.pageSize?this.virtual.pageSize:Math.round(this.height/this.virtual.itemHeight)}get scrollHeight(){return(this.dataService.grouped?this.virtual.total-1:this.virtual.total)*this.virtual.itemHeight}get overflowY(){if(je(this.virtual))return this.hasVirtualScrollbar()?"scroll":"hidden"}ngOnChanges(t){cr("data",t,!1)&&(this.lastLoaded<=0&&(this.lastLoaded=this.data.length-1,this.scrollToFocused=!t.data.isFirstChange()),this.setOverflow()),cr("virtual",t,!1)&&this.setOverflow()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.scrollSubscription=jn(this.content.nativeElement,"scroll").pipe(Kl(100),oi(this.prefetchData.bind(this)),oi(this.findCurrentGroup.bind(this))).subscribe(()=>{this.lastScrollTop=this.content.nativeElement.scrollTop})}),this.setOverflow()}ngAfterViewChecked(){this.virtual&&this.positionItems(),this.items&&this.scrollToFocused&&(this.scrollToFocused=!1,this.scrollToItem(this.items.length&&-1===this.selectionService.focused?0:this.selectionService.focused)),this.dataService.grouped&&this.findCurrentGroup()}ngOnDestroy(){this.selectSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}onCheckedChange(t,r){const s=t.target.checked;s&&!this.selectionService.isSelected(r)&&this.selectionService.add(r),!s&&this.selectionService.isSelected(r)&&this.selectionService.unselect(r)}isChecked(t){return this.selectionService.isSelected(this.virtual?t+this.virtual.skip:t)}firstVisibleItem(){const t=this.content.nativeElement,r=t.getBoundingClientRect(),s=Array.prototype.slice.call(t.querySelectorAll(".k-state-disabled"));s.forEach(u=>this.renderer.setStyle(u,"pointer-events","auto"));const l=document.elementFromPoint(r.left+1,r.top+1);return s.forEach(u=>this.renderer.setStyle(u,"pointer-events","none")),((i,o)=>{let t=i;for(;null!==t&&1===t.nodeType;){if(tbe(t,"li"))return t;t=t.parentElement||t.parentNode}return null})(l)}findCurrentGroup(){if(!this.dataService.grouped)return void(this.currentGroup=void 0);const t=this.firstVisibleItem();if(t){let r;"group"===t.getAttribute("role")?(r=parseInt(t.getAttribute("group-index"),10),this.currentGroup=this.dataService.groupAt(r).value):(r=parseInt(t.getAttribute("index"),10),this.currentGroup=this.dataService.itemGroup(this.dataService.itemAt(r)))}else this.currentGroup=void 0;this.cdr.detectChanges()}prefetchData(){if(!this.virtual)return;const t=Math.trunc(this.content.nativeElement.clientHeight/this.virtual.itemHeight),r=this.content.nativeElement.scrollTop,s=Math.trunc(r/this.virtual.itemHeight),l=r>this.lastScrollTop,y=this.lastLoaded-this.pageSize+t>=s-(this.pageSize-(this.lastLoaded-this.startFrom));l&&s+t>=this.lastLoaded&&this.lastLoaded<this.virtual.total-1&&this.changePage(s),!l&&y&&this.changePage(s-this.pageSize+t+1)}changePage(t){this.zone.run(()=>{let r=this.pageSize+t;r>this.virtual.total&&(t--,r=this.virtual.total),t<0&&(t=0),this.startFrom=t,this.lastLoaded=r,this.pageChange.emit({skip:t,take:this.pageSize})})}index(t,r){return t>0?this.dataService.groupIndices[t-1]+r:r}getText(t){return Yt(t,this.textField)}getValue(t){return Yt(t,this.valueField)}isDisabled(t){return je(this.virtual)&&(t+=this.virtual.skip),this.disabledItemsService.isIndexDisabled(t)}scrollToItem(t){let r=t;if(this.dataService.grouped&&(r=this.dataService.flatIndex(t),r+=this.firstGroupHeaderInTargetedPage(r)?-1:0),this.virtual&&r>-1)return void this.scrollToIndex(r);const s=this.items.toArray();je(s[r])&&-1!==r&&this.scroll(s[r].element)}scrollToIndex(t){let r=this.content.nativeElement,s=r.scrollTop;const l=t*this.virtual.itemHeight,p=r.clientHeight,y=l+this.virtual.itemHeight;s>l?s=l:y>s+p&&(s=y-p),r.scrollTop=s}scroll(t){if(!t)return;const r=t.nativeElement;let s=this.content.nativeElement,l=r.offsetTop,p=s.scrollTop,y=s.clientHeight,A=l+r.offsetHeight;p>l?p=l:A>p+y&&(p=A-y),s.scrollTop=p}hasScrollbar(){return!!(je(this.items)&&this.items.length&&je(this.list)&&je(this.content))&&(je(this.virtual)&&this.hasVirtualScrollbar()||this.list.nativeElement.scrollHeight>this.content.nativeElement.offsetHeight)}setOverflow(){if(this.virtual){const t=this.hasVirtualScrollbar()?"scroll":"hidden";this.renderer.setStyle(this.content.nativeElement,"overflow-y",t)}}hasVirtualScrollbar(){return this.virtualContainer&&(this.virtualContainer&&this.virtualContainer.nativeElement.offsetHeight)>this.content.nativeElement.offsetHeight}positionItems(){this.items.forEach((t,r)=>{this.renderer.setStyle(t.element.nativeElement,"transform",`translateY(${(r+this.startFrom)*this.virtual.itemHeight}px`)})}firstGroupHeaderInTargetedPage(t){return!je(this.virtual)||0===this.virtual.skip&&this.virtual.pageSize>t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Ea),n.Y36(n.SBq),n.Y36(ra),n.Y36(Pa),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(n.Qsj))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-list"]],viewQuery:function(t,r){if(1&t&&(n.Gf(l_e,7),n.Gf(c_e,7),n.Gf(d_e,5),n.Gf(gT,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.content=s.first),n.iGM(s=n.CRH())&&(r.list=s.first),n.iGM(s=n.CRH())&&(r.virtualContainer=s.first),n.iGM(s=n.CRH())&&(r.items=s)}},inputs:{selected:"selected",focused:"focused",show:"show",multipleSelection:"multipleSelection",listClass:"listClass",checkboxes:"checkboxes",data:"data",textField:"textField",valueField:"valueField",height:"height",template:"template",groupTemplate:"groupTemplate",fixedGroupTemplate:"fixedGroupTemplate",id:"id",optionPrefix:"optionPrefix",virtual:"virtual"},outputs:{onClick:"onClick",pageChange:"pageChange",listResize:"listResize"},features:[n.TTD],decls:9,vars:20,consts:[["class","k-outer-group-header k-first",3,"ngClass","ngStyle",4,"ngIf"],["unselectable","on",3,"ngClass"],["content",""],["role","listbox",3,"ngClass"],["list",""],[4,"ngIf"],[3,"resize",4,"ngIf"],["class","k-height-container","role","presentation",4,"ngIf"],[1,"k-outer-group-header","k-first",3,"ngClass","ngStyle"],[3,"ngIf"],[3,"templateContext"],["ngFor","",3,"ngForOf"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"checkboxes","height","index","multipleSelection","ngClass"],["class","k-checkbox-label",4,"ngIf"],[1,"k-checkbox-label"],["type","checkbox",1,"k-checkbox",3,"checked","change"],["role","group","class","k-outer-group-header",3,"ngClass","ngStyle",4,"ngIf"],["role","option","kendoDropDownsSelectable","","class","k-item",3,"height","index","multipleSelection","ngClass",4,"ngIf"],["role","group",1,"k-outer-group-header",3,"ngClass","ngStyle"],["role","option","kendoDropDownsSelectable","",1,"k-item",3,"height","index","multipleSelection","ngClass"],[3,"resize"],["role","presentation",1,"k-height-container"],["virtualContainer",""]],template:function(t,r){1&t&&(n.YNc(0,g_e,3,10,"div",0),n.TgZ(1,"div",1,2)(3,"ul",3,4),n.YNc(5,y_e,1,1,null,5),n.YNc(6,I_e,1,1,null,5),n.YNc(7,E_e,1,0,"kendo-resize-sensor",6),n.qZA(),n.YNc(8,P_e,4,2,"div",7),n.qZA()),2&t&&(n.Q6J("ngIf",r.dataService.grouped),n.xp6(1),n.Udp("overscroll-behavior","none")("max-height",r.height,"px"),n.Q6J("ngClass",n.WLB(15,O_e,r.virtual,!r.virtual)),n.xp6(2),n.Tol(r.listClass),n.Q6J("ngClass",n.VKq(18,N_e,r.virtual)),n.uIk("id",r.id)("aria-hidden",!r.show),n.xp6(2),n.Q6J("ngIf",!r.dataService.grouped&&r.show),n.xp6(1),n.Q6J("ngIf",r.dataService.grouped),n.xp6(1),n.Q6J("ngIf",!r.virtual),n.xp6(1),n.Q6J("ngIf",r.virtual))},dependencies:function(){return[gt,Bt,Ge,uo,Bs,gT,_E,jp]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"selected",void 0),re([(0,n.IIB)(),ee("design:type",Number)],i.prototype,"focused",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Number)],i.prototype,"height",void 0),re([(0,n.IIB)(),ee("design:type",Il)],i.prototype,"template",void 0),re([(0,n.IIB)(),ee("design:type",oc)],i.prototype,"groupTemplate",void 0),re([(0,n.IIB)(),ee("design:type",rc)],i.prototype,"fixedGroupTemplate",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"show",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"id",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"optionPrefix",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"multipleSelection",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"virtual",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"listClass",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"checkboxes",void 0),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],i.prototype,"data",null),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"onClick",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"pageChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"listResize",void 0),re([(0,n.vR)(gT),ee("design:type",n.n_E)],i.prototype,"items",void 0),re([(0,n.i9L)("content",{static:!0}),ee("design:type",n.SBq)],i.prototype,"content",void 0),re([(0,n.i9L)("list",{static:!0}),ee("design:type",n.SBq)],i.prototype,"list",void 0),re([(0,n.i9L)("virtualContainer",{static:!1}),ee("design:type",n.SBq)],i.prototype,"virtualContainer",void 0),i=re([ee("design:paramtypes",[Ea,n.SBq,ra,Pa,n.sBO,n.R0b,n.Qsj])],i),i})();const pJ={pageSize:50,itemHeight:28},iE=(i,o)=>{const t=Object.assign({},pJ,o);return!0===i?t:i?Object.assign({pageSize:pJ.pageSize},i):null},rl=new n.OlP("dropdowns-touch-enabled");var oE;const ibe={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>ii)};let ii=oE=class{constructor(o,t,r,s,l,u,p,y,A,w,I){this.localization=o,this.dataService=t,this.popupService=r,this.selectionService=s,this.navigationService=l,this.disabledItemsService=u,this._zone=p,this.cdr=y,this.renderer=A,this.hostElement=w,this.touchEnabled=I,this.highlightFirst=!0,this.focusableId=`k-${kl()}`,this.placeholder="",this.listHeight=200,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new n.vpe,this.filterChange=new n.vpe,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.widgetClasses=!0,this.listBoxId=kl(),this.optionPrefix=kl(),this.onChangeCallback=X1,this.onTouchedCallback=X1,this.popupMouseDownHandler=P=>P.preventDefault(),this._popupSettings={animate:!0},this._open=!1,this._value="",this.valueChangeSubject=new Ht.xQ,this._isFocused=!1,(0,mi.s)(eE),this.direction=o.rtl?"rtl":"ltr",this.wrapper=this.hostElement.nativeElement,this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.selectionService.resetSelection([-1])}get width(){let o=0;Dt()&&(o=this.wrapper.offsetWidth);const t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get height(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}get listContainerClasses(){const o=["k-list-container","k-reset"];return this.popupSettings.popupClass&&o.push(this.popupSettings.popupClass),o}get suggestion(){if(!this.text||!this.suggestedText)return void(this.suggestedText=void 0);const o=this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase());return this.suggest&&!this.backspacePressed&&o?this.suggestedText:void 0}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!this._open;this._toggle(t)})}get isOpen(){return this._open}togglePopup(o){this.disabled||this.readonly||this.isOpen===o||this.triggerPopupEvents(o)||this._toggle(o)}get activeDescendant(){if(!this.isOpen||!je(this.selectionService.focused)||-1===this.selectionService.focused)return null;const o=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+Yt(o,this.valueField)}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}set data(o){this.dataService.data=o||[],this.virtual&&(this.virtual.skip=0),this.filterable&&(this.selectionService.focused=this.isOpen&&this.data.length&&this.highlightFirst?this.firstFocusableIndex(0):-1),this.suggest&&this.dataService.itemsCount>0&&(this.suggestedText=Yt(this.dataService.itemAt(0),this.valueField))}get data(){const o=this.virtual;if(o){const t=o.skip||0,r=t+o.pageSize;return o.total=this.dataService.data.length,this.dataService.data.slice(t,r)}return this.dataService.data}set value(o){this.verifySettings(o),this._value=o||"",this.text=this.value,this.cdr.markForCheck()}get value(){return this._value||""}set popupSettings(o){this._popupSettings=Object.assign({animate:!0},o)}get popupSettings(){return this._popupSettings}set itemDisabled(o){if("function"!=typeof o)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(o)}.`);this.disabledItemsService.itemDisabled=o}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set virtual(o){this._virtualSettings=iE(o)}get virtual(){return this._virtualSettings}get isFocused(){return this._isFocused}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.wrapper,"k-state-focused"),this._isFocused=o}get isDisabled(){return this.disabled}get dir(){return this.direction}ngOnInit(){this.renderer.removeAttribute(this.wrapper,"tabindex"),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.setMessages()}),this.setMessages()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe()}ngOnChanges(o){const t=this.virtual;t&&o.data&&o.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize})}reset(){this.value=""}clearValue(o){o.stopImmediatePropagation(),this.focus(),this.change(""),this.filterable&&this.filterChange.emit(""),this.selectionService.resetSelection([])}writeValue(o){this.value=o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}focusItemAt(o){const t=o>=0&&o<this.data.length;je(o)&&t&&!this.disabledItemsService.isIndexDisabled(o)?this.selectionService.focus(o):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}onResize(){if(this._open){const o=this.popupRef.popupElement,{min:t,max:r}=this.width;o.style.minWidth=t,o.style.width=r}}emitChange(o){this.onChangeCallback(o),this.valueChange.emit(o)}verifySettings(o){if((0,n.X6Q)()&&je(o)&&"string"!=typeof o)throw new Error("Expected value of type string. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/autocomplete/value-binding/")}search(o,t=0){let r;r=o.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(o),t):-1,this.disabledItemsService.isIndexDisabled(r)?r+1<this.dataService.itemsCount?this.search(o,r+1):this.selectionService.focus(-1):(this.selectionService.focus(r),this.suggest&&(this.suggestedText=Yt(this.dataService.itemAt(r),this.valueField)))}navigate(o){!this.isOpen||this.selectionService.focus(o)}handleNavigate(o){const t=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;if(this.disabled||this.readonly||isNaN(t))return;const r=this.navigationService.process({current:t,max:this.dataService.itemsCount-1,min:0,originalEvent:o});r!==ai.Undefined&&r!==ai.Backspace&&r!==ai.Delete&&r!==ai.Home&&r!==ai.End&&r!==ai.Left&&r!==ai.Right&&(r===ai.Enter&&this.isOpen||r!==ai.Enter)&&o.preventDefault()}handleEnter(o){const t=this.selectionService.focused;let r;if(this.isOpen&&o.originalEvent.preventDefault(),t>=0)r=Yt(this.dataService.itemAt(t),this.valueField);else{const s=this.suggest&&this.suggestedText&&this.data.length&&Yt(this.dataService.itemAt(0),this.valueField).toLowerCase()===this.searchbar.value.toLowerCase();r=this.isOpen&&s?this.suggestedText:this.searchbar.value}this.change(r)}handleEscape(){this.togglePopup(!1),this.selectionService.focused=-1,this.suggestedText=null}searchBarChange(o){const t=je(this.text)?this.text.length:0;this.backspacePressed=o.length<t,this.text=o,this.togglePopup(o.length>0),this.highlightFirst||(this.selectionService.focused=-1),this.filterable?this.filterChange.emit(o):this.highlightFirst&&this.search(o)}handleFocus(){this.isFocused=!0,Ut(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()})}handleBlur(){const o=this.filterable?this.selectionService.focused:-1;let t,r;this.searchbar.input.nativeElement.scrollLeft=0,-1!==o?(t=this.dataService.itemAt(o),r=Yt(t,this.valueField)||""):r=this.searchbar.value;const s=r===this.searchbar.value,l=r.toLowerCase()===this.searchbar.value.toLowerCase();!s&&l&&this.selectionService.resetSelection([]),this.isFocused=!1;const u=this.value!==this.text;Ut(this.onBlur)||Ut(this.close)||Dy(this.wrapper)||u?this._zone.run(()=>{u&&this.change(this.searchbar.value),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}pageChange(o){this.virtual.skip=o.skip}change(o){this.togglePopup(!1),this.valueChangeSubject.next(o)}subscribeEvents(){!Dt()||(this.valueChangeSubscription=this.valueChangeSubject.subscribe(o=>{const t=this.value!==o;this.value=o,this.text=o,t&&this.emitChange(o)}),this.changeSubscription=this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.focusSubscription=this.selectionService.onFocus.subscribe(this.handleItemFocus.bind(this)),this.navigationSubscription=(0,Ko.T)(this.navigationService.up,this.navigationService.down).subscribe(o=>this.navigate(o.index)),this.closeSubscription=this.navigationService.close.subscribe(()=>this.togglePopup(!1)),this.enterSubscription=this.navigationService.enter.subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)))}subscribeTouchEvents(){!Dt()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",o=>{this.isFocused&&!hT(this.hostElement,o.target,this.popupRef)&&this._zone.run(()=>this.blur())}))}unsubscribeEvents(){!Dt()||(this.changeSubscription.unsubscribe(),this.navigationSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.valueChangeSubscription.unsubscribe(),this.focusSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}handleItemChange(o){const t=o.indices.length?o.indices[0]:void 0;if(this.selectionService.resetSelection([-1]),!je(t))return;let r=Yt(this.dataService.itemAt(t),this.valueField);this.change(r)}handleItemFocus(o){const t=this.selectionService.focused;Boolean(this.suggest&&this.data&&this.data.length&&t>=0)&&(this.suggestedText=Yt(this.dataService.itemAt(t),this.valueField))}createPopup(){this.virtual&&(this.virtual.skip=0);const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",popupAlign:{horizontal:o,vertical:"top"},anchorAlign:{horizontal:o,vertical:"bottom"}});const s=this.popupRef.popupElement,{min:l,max:u}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=l,s.style.width=u,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}_toggle(o){this._open=o,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}firstFocusableIndex(o){const t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(o)?o<t?this.firstFocusableIndex(o+1):void 0:o}findIndexPredicate(o){return this.dataService.grouped?t=>{let r=Yt(t.value,this.valueField);return r=je(r)?r.toString().toLowerCase():"",r.startsWith(o.toLowerCase())}:t=>{let r=Yt(t,this.valueField);return r=je(r)?r.toString().toLowerCase():"",r.startsWith(o.toLowerCase())}}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};ii.\u0275fac=function(o){return new(o||ii)(n.Y36(Te),n.Y36(Ea),n.Y36(Do),n.Y36(ra),n.Y36(Oa),n.Y36(Pa),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(rl,8))},ii.\u0275cmp=n.Xpm({type:ii,selectors:[["kendo-autocomplete"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,Il,5),n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,is,5),n.Suo(r,oc,5),n.Suo(r,rc,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.template=s.first),n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTemplate=s.first),n.iGM(s=n.CRH())&&(t.fixedGroupTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(wy,7,n.s_b),n.Gf(My,7),n.Gf(ic,7),n.Gf(KI,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.searchbar=r.first),n.iGM(r=n.CRH())&&(t.optionsList=r.first)}},hostVars:7,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.dir),n.ekj("k-widget",t.widgetClasses)("k-autocomplete",t.widgetClasses)("k-state-disabled",t.isDisabled))},inputs:{highlightFirst:"highlightFirst",focusableId:"focusableId",placeholder:"placeholder",listHeight:"listHeight",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",valueField:"valueField",loading:"loading",suggest:"suggest"},outputs:{valueChange:"valueChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoAutoComplete"],features:[n._Bn([ibe,Ea,ra,Oa,Pa,Te,{provide:gn,useValue:"kendo.autocomplete"},{provide:t0,useExisting:(0,n.Gpc)(()=>oE)},{provide:Mo,useExisting:(0,n.Gpc)(()=>oE)}]),n.TTD],decls:10,vars:15,consts:function(){let i,o;return i="Nenhum item encontrado",o="clear",[["kendoAutoCompleteLocalizedMessages","","noDataText",i,"clearTitle",o],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","click","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"click","mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"kendo-searchbar",1,2),n.NdJ("onNavigate",function(s){return t.handleNavigate(s)})("valueChange",function(s){return t.searchBarChange(s)})("onBlur",function(){return t.handleBlur()})("onFocus",function(){return t.handleFocus()}),n.qZA(),n.YNc(3,L_e,1,3,"span",3),n.YNc(4,R_e,1,0,"span",4),n.YNc(5,Z_e,5,14,"ng-template",null,5,n.W1O),n.YNc(7,V_e,1,0,"ng-template",6),n.GkF(8,null,7)),2&o&&(n.xp6(1),n.Q6J("role","combobox")("id",t.focusableId)("listId",t.listBoxId)("activeDescendant",t.activeDescendant)("noDataLabel",t.noDataLabel)("userInput",t.text)("suggestedText",t.suggestion)("disabled",t.disabled)("readonly",t.readonly)("tabIndex",t.tabIndex)("popupOpen",t.isOpen)("placeholder",t.placeholder),n.xp6(2),n.Q6J("ngIf",!t.loading&&!t.readonly&&t.clearButton&&(null==t.text?null:t.text.length)),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(3),n.Q6J("ngIf",t.isOpen))},dependencies:function(){return[$p,ic,jp,Ge,Bs,ac]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"highlightFirst",void 0),re([(0,n.IIB)(),ee("design:type",String)],ii.prototype,"focusableId",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],ii.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",String),ee("design:paramtypes",[String])],ii.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",String)],ii.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",String)],ii.prototype,"placeholder",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],ii.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Number)],ii.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"clearButton",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"suggest",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Function),ee("design:paramtypes",[Function])],ii.prototype,"itemDisabled",null),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Number)],ii.prototype,"tabindex",void 0),re([(0,n.IIB)("tabIndex"),ee("design:type",Number),ee("design:paramtypes",[Number])],ii.prototype,"tabIndex",null),re([(0,n.IIB)(),ee("design:type",Boolean)],ii.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],ii.prototype,"virtual",null),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"filterChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],ii.prototype,"closed",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],ii.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],ii.prototype,"onBlur",void 0),re([(0,n.aQ5)(Il,{static:!1}),ee("design:type",Il)],ii.prototype,"template",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],ii.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],ii.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],ii.prototype,"noDataTemplate",void 0),re([(0,n.aQ5)(oc,{static:!1}),ee("design:type",oc)],ii.prototype,"groupTemplate",void 0),re([(0,n.aQ5)(rc,{static:!1}),ee("design:type",rc)],ii.prototype,"fixedGroupTemplate",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],ii.prototype,"container",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],ii.prototype,"popupTemplate",void 0),re([(0,n.i9L)(ic,{static:!0}),ee("design:type",ic)],ii.prototype,"searchbar",void 0),re([(0,n.i9L)("optionsList",{static:!1}),ee("design:type",$p)],ii.prototype,"optionsList",void 0),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-autocomplete"),ee("design:type",Boolean)],ii.prototype,"widgetClasses",void 0),re([(0,n.pfw)("class.k-state-disabled"),ee("design:type",Boolean),ee("design:paramtypes",[])],ii.prototype,"isDisabled",null),re([(0,n.pfw)("attr.dir"),ee("design:type",Object),ee("design:paramtypes",[])],ii.prototype,"dir",null),ii=oE=re([Oc(10,(0,n.FiY)()),Oc(10,(0,n.tBr)(rl)),ee("design:paramtypes",[Te,Ea,Do,ra,Oa,Pa,n.R0b,n.sBO,n.Qsj,n.SBq,Boolean])],ii);const Up_dataItems="Expected dataItems of type Object[] to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems",Up_valueDepth="Expected valueDepth of type number[] to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth";var cE;const obe={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>nn)};let nn=cE=class{constructor(o,t,r,s,l,u,p,y,A,w,I){this.localization=o,this.popupService=t,this.selectionService=r,this.navigationService=s,this.disabledItemsService=l,this.dataService=u,this.zone=p,this.cdr=y,this.renderer=A,this.hostElement=w,this.touchEnabled=I,this.selected=[],this.focusableId=`k-${kl()}`,this.allowCustom=!1,this.valueNormalizer=P=>P.pipe((0,ft.U)(F=>F)),this.placeholder="",this.listHeight=200,this.suggest=!1,this.clearButton=!0,this.disabled=!1,this.readonly=!1,this.tabindex=0,this.filterable=!1,this.valueChange=new n.vpe,this.selectionChange=new n.vpe,this.filterChange=new n.vpe,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.widgetClasses=!0,this._isFocused=!1,this.listBoxId=kl(),this.optionPrefix=kl(),this.onChangeCallback=P=>{},this.onTouchedCallback=P=>{},this.defaultVirtualItemHeight=28,this.defaultVirtualPageSize=50,this._filtering=!1,this._text="",this.filterText="",this._open=!1,this._popupSettings={animate:!0},this.popupMouseDownHandler=P=>P.preventDefault(),this.customValueSubject=new Ht.xQ,this.valueSubject=new Ht.xQ,this.clearValueSubject=new Ht.xQ,this.subs=new bn.w,(0,mi.s)(eE),this.direction=o.rtl?"rtl":"ltr",this.data=[]}set text(o){this._text=je(o)?o.toString():""}get text(){return this._text}togglePopup(o){this.disabled||this.readonly||this.isOpen===o||this.triggerPopupEvents(o)||this._toggle(o)}get activeDescendant(){if(!this.isOpen||!je(this.selectionService.focused)||-1===this.selectionService.focused)return null;const o=this.dataService.itemAt(this.selectionService.focused);return this.optionPrefix+"-"+(o?Yt(o,this.valueField):"")}get noDataLabel(){if(0===this.data.length)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}set data(o){if(this.dataService.data=o||[],this.virtual&&(this.virtual.skip=0),this.setState(),this._filtering){const r=this.text.length>0&&this.dataService.itemsCount>0?this.firstFocusableIndex(0):-1;this.selectionService.focused=r}this.suggest&&this.dataService.itemsCount&&this.text&&(this.suggestedText=Yt(this.dataService.itemAt(0),this.textField))}get data(){const o=this.virtual;if(o){const t=o.skip||0,r=t+o.pageSize;return o.total=this.dataService.data.length,this.dataService.data.slice(t,r)}return this.dataService.data}set value(o){this._value=o,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set valuePrimitive(o){this._valuePrimitive=o}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}set popupSettings(o){this._popupSettings=Object.assign({animate:!0},o)}get popupSettings(){return this._popupSettings}set itemDisabled(o){if("function"!=typeof o)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(o)}.`);this.disabledItemsService.itemDisabled=o}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set virtual(o){this._virtualSettings=iE(o,{itemHeight:this.defaultVirtualItemHeight,pageSize:this.defaultVirtualPageSize})}get virtual(){return this._virtualSettings}get clearable(){return this.clearButton}get dir(){return this.direction}get isFocused(){return this._isFocused}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=o}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}get popupWidth(){let o=0;Dt()&&(o=this.wrapper.nativeElement.offsetWidth);const t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get popupHeight(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.attachStreams(),this.createValueStream(),this.subscribeTouchEvents(),this.attachSelectClickHandler(),this.setMessages()}createValueStream(){const o=this.valueSubject.pipe(Wt(p=>{const y=Yt(this.value,this.valueField),A=Yt(p,this.valueField);let w=Yt(p,this.textField);return!(!je(this.value)&&!je(A)||(je(w)&&(w=w.toString()),y===A&&this.text===w&&(this.clearFilter(),1)))}),(0,ft.U)(p=>{const y=Yt(p,this.valueField);return{dataItem:p,text:Yt(p,this.textField),value:this.valuePrimitive?y:p}})),t=function Kme(i,o){return t=>[Wt(i,o)(t),Wt(Wme(i,o))(t)]}(()=>this.allowCustom)(this.customValueSubject.pipe(function t_e(i,o=Au,t=Xq){return r=>r.lift(new n_e(i,o,t.leading,t.trailing))}(300))),r=t[0].pipe(oi(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),Wt(()=>{const p=this.text!==Yt(this.value,this.valueField);return this.loading=p,this.disabled=p,p||this.clearFilter(),p}),this.valueNormalizer,(0,ft.U)(p=>({custom:!0,dataItem:p,text:this.text,value:p}))),s=t[1].pipe((0,ft.U)(()=>({custom:!0,dataItem:void 0,text:void 0,value:void 0}))),l=this.clearValueSubject.pipe((0,ft.U)(()=>({dataItem:void 0,text:void 0,value:void 0})));this.valueSubscription&&this.valueSubscription.unsubscribe();const u=(0,Ko.T)(o,r,s,l);this.valueSubscription=u.pipe(hs(()=>{const p=void 0!==Yt(this.dataItem,this.valueField);return this.dataItem=void 0,this.value=void 0,this.text=void 0,this.loading=!1,this.disabled=!1,p&&this.selectionChange.emit(void 0),this.emitValueChange(),this.createValueStream(),Et(null)})).subscribe(p=>{const y=Yt(this.dataItem,this.valueField)!==Yt(p.dataItem,this.valueField);this.dataItem=p.dataItem,this.value=p.value,this.text=p.text,this.loading=!1,this.disabled=!1,this.clearFilter(),p.custom&&(this.selectionService.focused=-1),y&&this.selectionChange.emit(p.custom?void 0:this.dataItem),this.emitValueChange()})}attachStreams(){!Dt()||(this.subs.add(this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.setMessages()})),this.subs.add((0,Ko.T)(this.navigationService.up,this.navigationService.down,this.navigationService.home,this.navigationService.end).pipe(Wt(o=>je(o.index))).subscribe(o=>this.navigate(o.index))),this.subs.add(this.navigationService.open.subscribe(this.handleNavigationOpen.bind(this))),this.subs.add(this.navigationService.close.subscribe(()=>this.togglePopup(!1))),this.subs.add(this.navigationService.esc.subscribe(this.handleEscape.bind(this))),this.subs.add(this.navigationService.enter.pipe(oi(o=>{this.isOpen&&o.originalEvent.preventDefault()})).subscribe(this.handleEnter.bind(this))),this.subs.add((0,Ko.T)(this.selectionService.onChange,this.selectionService.onSelect.pipe(Wt(o=>!this.isOpen))).pipe(oi(o=>{this._filtering=!1,this.togglePopup(!1)}),(0,ft.U)(o=>this.dataService.itemAt(o.indices[0]))).subscribe(o=>{this.change(o)})),this.subs.add(this.selectionService.onSelect.pipe(Wt(o=>this.isOpen),oi(o=>this._filtering=!1),(0,ft.U)(o=>this.dataService.itemAt(o.indices[0]))).subscribe(o=>{const t=Yt(o,this.valueField)!==Yt(this.dataItem,this.valueField);this.updateState({dataItem:o}),t&&this.selectionChange.emit(o)})))}ngOnDestroy(){this.destroyPopup(),clearTimeout(this.messagesTimeout),this.subs.unsubscribe(),je(this.valueSubscription)&&this.valueSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectClickDisposeHandler&&this.selectClickDisposeHandler()}ngOnChanges(o){const t=this.virtual;t&&o.data&&o.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),cr("valueNormalizer",o)&&this.createValueStream(),_s(["textField","valueField","valuePrimitive"],o,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(o){const t=o>=0&&o<this.data.length;je(o)&&t&&!this.disabledItemsService.isIndexDisabled(o)?this.selectionService.focus(o):this.selectionService.focus(-1)}focus(){this.disabled||this.searchbar.focus()}blur(){this.disabled||this.searchbar.blur()}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!this._open;this._toggle(t),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.value=void 0,this.clearState(),this.resetSelection()}isEmpty(){const o=!je(this.text)||sJ(this.text),t=!je(this.value)||sJ(this.value);return o&&t}clearValue(o){o.stopImmediatePropagation(),this.focus(),this._filtering=!0,this._previousDataItem=void 0,this.selectionService.resetSelection([]),this.clearValueSubject.next(),this._filtering=!1}writeValue(o){this.value=null===o?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}onResize(){if(this.isOpen){const o=this.popupRef.popupElement,{min:t,max:r}=this.popupWidth;o.style.minWidth=t,o.style.width=r}}verifySettings(){if((0,n.X6Q)()){if(!0===this.valuePrimitive&&je(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!1===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-value-selection");if(!je(this.valueField)!=!je(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/combobox/#toc-bind-to-arrays-of-complex-data");if(this.virtual&&isNaN(this.virtual.itemHeight))throw new Error("Expected virtual.itemHeight of type number.")}}setState(){if(this._filtering)return;const o=this.value,r=this.findDataItem({valueField:this.valueField,value:o});je(r.index)&&-1!==r.index?(this.updateState({dataItem:r.dataItem,confirm:!0}),this.resetSelection(r.index)):je(o)&&this.allowCustom?(this.updateState({dataItem:o}),this.resetSelection(-1)):this._previousDataItem&&this.value?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection(-1))}updateState({dataItem:o,confirm:t=!1}){this.dataItem=o,this.text=Yt(o,this.textField),t&&(this._previousDataItem=o)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(o){const t=!je(o)||o<0;this.selectionService.resetSelection(t?[]:[o]),this.selectionService.focused=o}firstFocusableIndex(o){const t=this.data.length-1;return this.disabledItemsService.isIndexDisabled(o)?o<t?this.firstFocusableIndex(o+1):void 0:o}findIndexPredicate(o){return this.dataService.grouped?t=>{let r=Yt(t.value,this.textField);return r=je(r)?r.toString().toLowerCase():"",r.startsWith(o.toLowerCase())}:t=>{let r=Yt(t,this.textField);return r=je(r)?r.toString().toLowerCase():"",r.startsWith(o.toLowerCase())}}findDataItem({valueField:o,value:t}){const r={dataItem:null,index:-1},l=this.dataService.findIndex(u=>Yt(this.dataService.grouped?u.value:u,o)===Yt(t,o));return r.dataItem=this.dataService.itemAt(l),r.index=l,r}search(o,t=0){let r;r=o.length&&this.dataService.itemsCount?this.dataService.findIndex(this.findIndexPredicate(o),t):-1,this.disabledItemsService.isIndexDisabled(r)?r+1<this.dataService.itemsCount?this.search(o,r+1):this.selectionService.focus(-1):(this.selectionService.focus(r),this.suggest&&(this.suggestedText=Yt(this.dataService.itemAt(r),this.textField)))}getSuggestion(){if(!this.selectionService.selected.length&&this.suggest&&!this.backspacePressed&&this.suggestedText&&this.text&&this.suggestedText.toLowerCase().startsWith(this.text.toLowerCase()))return this.suggestedText;this.suggestedText=void 0}navigate(o){0!==this.dataService.itemsCount&&(this.text=Yt(this.dataService.itemAt(o),this.textField),this.selectionService.select(o))}handleNavigate(o){const t=je(this.selectionService.selected[0]),r=isNaN(this.selectionService.focused)?this.firstFocusableIndex(0):this.selectionService.focused;let s=0;if(this.disabled||this.readonly||o.keyCode===Ie.Home||o.keyCode===Ie.End)return;t||(o.keyCode===Ie.ArrowDown?s=-1:o.keyCode===Ie.ArrowUp&&(s=1));const l=this.navigationService.process({current:s+r,max:this.dataService.itemsCount-1,min:0,originalEvent:o});l!==ai.Undefined&&l!==ai.Left&&l!==ai.Right&&l!==ai.Backspace&&l!==ai.Delete&&(l===ai.Enter&&this.isOpen||l!==ai.Enter)&&o.preventDefault()}handleEnter(){const o=this.text,t=this.selectionService.focused,r=je(t)&&-1!==t,s=Yt(this._previousDataItem,this.textField)||"",l=Yt(this.dataService.itemAt(t),this.textField),u=o!==s;this.togglePopup(!1),this._filtering=!1,this.allowCustom&&u&&(o===l||this.useSuggestion()?this.selectionService.change(t):this.change(o,!0)),this.allowCustom||(r?this.selectionService.change(t):u&&this.change(o,!0))}handleBlur(){this._filtering=!1,this.searchbar.input.nativeElement.scrollLeft=0,this.isFocused=!1;const o=Yt(this.dataItem,this.valueField)!==Yt(this.value,this.valueField),t=this.searchbar.value,r=t!==(Yt(this.dataItem,this.textField)||""),s=o||r;s||Ut(this.onBlur)||Ut(this.close)||Dy(this.hostElement.nativeElement)?this.zone.run(()=>{s&&(je(this.focusedItemText)&&this.focusedItemText.toLowerCase()===t.toLowerCase()||o?this.selectionService.change(this.selectionService.focused):this.change(t,!0)),this.onBlur.emit(),this.onTouchedCallback(),this.togglePopup(!1)}):this.togglePopup(!1)}handleEscape(){this.togglePopup(!1),this.selectionService.selected.length>0||(this.suggestedText=null,this.selectionService.focused=-1)}handleNavigationOpen(){this.restoreItemFocus(),this.togglePopup(!0)}searchBarChange(o){this.backspacePressed=o.length<(this.text?this.text.length:0),this.text=o,this.selectionService.resetSelection([]),this.togglePopup(!0),this._filtering=!0,this.filterable&&this.filterText!==o?(this.filterText=o,this.filterChange.emit(o)):this.search(o)}handleFocus(){this.isFocused=!0,Ut(this.onFocus)&&this.zone.run(()=>this.onFocus.emit())}pageChange(o){this.virtual.skip=o.skip}change(o,t=!1){t?this.customValueSubject.next(o):this.valueSubject.next(o)}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value),this._previousDataItem=this.dataItem}selectClick(){this.touchEnabled||this.searchbar.focus(),this.isOpen||this.restoreItemFocus(),this.togglePopup(!this.isOpen)}get listContainerClasses(){return["k-list-container","k-reset"].concat(this.popupSettings.popupClass||[])}preventEventDefault(o){o.preventDefault()}get focusedItemText(){const o=this.selectionService.focused;if(!je(o)||-1===o)return null;const t=Yt(this.dataService.itemAt(o),this.textField);return je(t)?t.toString():""}restoreItemFocus(){!(je(this.selectionService.focused)&&this.selectionService.focused>-1)&&this.text&&this.dataService.itemsCount&&(this.filterable?this.selectionService.focused=this.firstFocusableIndex(0):this.search(this.text))}useSuggestion(){if(!this.suggest||!je(this.searchbar.value))return!1;const o=this.dataService.itemAt(this.selectionService.focused),t=Yt(o,this.textField);return!!je(t)&&this.searchbar.value.toLowerCase()===t.toLowerCase()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupClass:this.listContainerClasses,positionMode:"absolute",anchorAlign:{horizontal:o,vertical:"bottom"},popupAlign:{horizontal:o,vertical:"top"}});const s=this.popupRef.popupElement,{min:l,max:u}=this.popupWidth;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=l,s.style.width=u,s.style.height=this.popupHeight,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}_toggle(o){this._open=o,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}clearFilter(){!this.filterable||!this.filterText||(this.filterText="",this.filterChange.emit(this.filterText))}setMessages(){this.zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}subscribeTouchEvents(){!Dt()||!this.touchEnabled||this.zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",o=>{const r=hT(this.hostElement,o.target,this.popupRef);this.isFocused&&!r?this.zone.run(()=>this.blur()):this.isOpen&&!r&&this.zone.run(()=>this.togglePopup(!1))}))}attachSelectClickHandler(){this.selectClickDisposeHandler=this.renderer.listen(this.select.nativeElement,cq?"pointerdown":"click",this.selectClick.bind(this))}};nn.\u0275fac=function(o){return new(o||nn)(n.Y36(Te),n.Y36(Do),n.Y36(ra),n.Y36(Oa),n.Y36(Pa),n.Y36(Ea),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(rl,8))},nn.\u0275cmp=n.Xpm({type:nn,selectors:[["kendo-combobox"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,Il,5),n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,is,5),n.Suo(r,oc,5),n.Suo(r,rc,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.template=s.first),n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTemplate=s.first),n.iGM(s=n.CRH())&&(t.fixedGroupTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(wy,7,n.s_b),n.Gf(My,7),n.Gf(ic,7),n.Gf(KI,5),n.Gf(pT,7),n.Gf(z_e,7)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.searchbar=r.first),n.iGM(r=n.CRH())&&(t.optionsList=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.select=r.first)}},hostVars:7,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.dir),n.ekj("k-widget",t.widgetClasses)("k-combobox",t.widgetClasses)("k-combobox-clearable",t.clearable))},inputs:{focusableId:"focusableId",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",placeholder:"placeholder",listHeight:"listHeight",suggest:"suggest",clearButton:"clearButton",disabled:"disabled",readonly:"readonly",tabindex:"tabindex",filterable:"filterable",data:"data",value:"value",valuePrimitive:"valuePrimitive",popupSettings:"popupSettings",itemDisabled:"itemDisabled",tabIndex:"tabIndex",virtual:"virtual",loading:"loading",textField:"textField",valueField:"valueField",iconClass:"iconClass"},outputs:{valueChange:"valueChange",selectionChange:"selectionChange",filterChange:"filterChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoComboBox"],features:[n._Bn([obe,Ea,ra,Oa,Pa,Te,{provide:gn,useValue:"kendo.combobox"},{provide:t0,useExisting:(0,n.Gpc)(()=>cE)},{provide:Mo,useExisting:(0,n.Gpc)(()=>cE)}]),n.TTD],decls:14,vars:21,consts:function(){let i,o;return i="Nenhum item encontrado",o="clear",[["kendoComboBoxLocalizedMessages","","noDataText",i,"clearTitle",o],["unselectable","on",1,"k-dropdown-wrap",3,"ngClass"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2)(3,"kendo-searchbar",3,4),n.NdJ("onNavigate",function(s){return t.handleNavigate(s)})("valueChange",function(s){return t.searchBarChange(s)})("onBlur",function(){return t.handleBlur()})("onFocus",function(){return t.handleFocus()}),n.qZA(),n.YNc(5,G_e,1,6,"span",5),n.TgZ(6,"span",6,7),n._UZ(8,"span",8),n.qZA(),n.YNc(9,t1e,5,14,"ng-template",null,9,n.W1O),n.qZA(),n.YNc(11,n1e,1,0,"ng-template",10),n.GkF(12,null,11)),2&o&&(n.xp6(1),n.Q6J("ngClass",n.VKq(17,j7,t.disabled)),n.xp6(2),n.Q6J("role","combobox")("id",t.focusableId)("listId",t.listBoxId)("activeDescendant",t.activeDescendant)("noDataLabel",t.noDataLabel)("userInput",t.text)("suggestedText",t.getSuggestion())("disabled",t.disabled)("readonly",t.readonly)("tabIndex",t.tabIndex)("popupOpen",t.isOpen)("placeholder",t.placeholder),n.xp6(2),n.Q6J("ngIf",t.clearButton&&!t.loading&&!t.disabled&&!t.readonly&&(null==t.text?null:t.text.length)),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.VKq(19,XI,t.preventEventDefault)),n.xp6(2),n.Q6J("ngClass",t.buttonClasses),n.xp6(3),n.Q6J("ngIf",t.isOpen))},dependencies:function(){return[$p,ic,jp,gt,Ge,Bs,ac,_a]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",String)],nn.prototype,"focusableId",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"allowCustom",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],nn.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],nn.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",String)],nn.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",String)],nn.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],nn.prototype,"valuePrimitive",null),re([(0,n.IIB)(),ee("design:type",Function)],nn.prototype,"valueNormalizer",void 0),re([(0,n.IIB)(),ee("design:type",String)],nn.prototype,"placeholder",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],nn.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Number)],nn.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",String)],nn.prototype,"iconClass",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"suggest",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"clearButton",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Function),ee("design:paramtypes",[Function])],nn.prototype,"itemDisabled",null),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Number)],nn.prototype,"tabindex",void 0),re([(0,n.IIB)("tabIndex"),ee("design:type",Number),ee("design:paramtypes",[Number])],nn.prototype,"tabIndex",null),re([(0,n.IIB)(),ee("design:type",Boolean)],nn.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],nn.prototype,"virtual",null),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"selectionChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"filterChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],nn.prototype,"closed",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],nn.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],nn.prototype,"onBlur",void 0),re([(0,n.aQ5)(Il,{static:!1}),ee("design:type",Il)],nn.prototype,"template",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],nn.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],nn.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],nn.prototype,"noDataTemplate",void 0),re([(0,n.aQ5)(oc,{static:!1}),ee("design:type",oc)],nn.prototype,"groupTemplate",void 0),re([(0,n.aQ5)(rc,{static:!1}),ee("design:type",rc)],nn.prototype,"fixedGroupTemplate",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],nn.prototype,"container",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],nn.prototype,"popupTemplate",void 0),re([(0,n.i9L)(ic,{static:!0}),ee("design:type",ic)],nn.prototype,"searchbar",void 0),re([(0,n.i9L)("optionsList",{static:!1}),ee("design:type",$p)],nn.prototype,"optionsList",void 0),re([(0,n.i9L)("wrapper",{static:!0}),ee("design:type",n.SBq)],nn.prototype,"wrapper",void 0),re([(0,n.i9L)("select",{static:!0}),ee("design:type",n.SBq)],nn.prototype,"select",void 0),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-combobox"),ee("design:type",Boolean)],nn.prototype,"widgetClasses",void 0),re([(0,n.pfw)("class.k-combobox-clearable"),ee("design:type",Boolean),ee("design:paramtypes",[])],nn.prototype,"clearable",null),re([(0,n.pfw)("attr.dir"),ee("design:type",Object),ee("design:paramtypes",[])],nn.prototype,"dir",null),nn=cE=re([Oc(10,(0,n.FiY)()),Oc(10,(0,n.tBr)(rl)),ee("design:paramtypes",[Te,Do,ra,Oa,Pa,Ea,n.R0b,n.sBO,n.Qsj,n.SBq,Boolean])],nn);let lm=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownListValueTemplate",""],["","kendoDropDownTreeValueTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})();var dE;const rbe={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>Hn)};let Hn=dE=class{constructor(o,t,r,s,l,u,p,y,A,w,I){this.localization=o,this.popupService=t,this.selectionService=r,this.navigationService=s,this.disabledItemsService=l,this.dataService=u,this._zone=p,this.renderer=y,this.hostElement=A,this.cdr=w,this.touchEnabled=I,this.focusableId=`k-${kl()}`,this.listHeight=200,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.ignoreCase=!0,this.delay=500,this.tabindex=0,this.valueChange=new n.vpe,this.filterChange=new n.vpe,this.selectionChange=new n.vpe,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.widgetClasses=!0,this.groupIndices=[],this.listBoxId=kl(),this.optionPrefix=kl(),this.filterText="",this._isFocused=!1,this.onTouchedCallback=P=>{},this.onChangeCallback=P=>{},this.word="",this.last="",this.filterFocused=new n.vpe,this.filterBlurred=new n.vpe,this.wrapperFocused=new n.vpe,this.wrapperBlurred=new n.vpe,this.selectionSubscription=new bn.w,this._open=!1,this._popupSettings={animate:!0},(0,mi.s)(eE),this.direction=o.rtl?"rtl":"ltr",this.data=[],this.subscribeEvents(),this.subscribeTouchEvents(),this.popupMouseDownHandler=this.onMouseDown.bind(this)}get width(){const o=Dt()?this.wrapper.nativeElement.offsetWidth:0,t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get height(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}get widgetTabIndex(){if(this.disabled)return;const o=Number(this.tabIndex);return isNaN(o)?0:o}get ariaExpanded(){return this.isOpen}get ariaOwns(){if(this.isOpen)return this.listBoxId}get ariaActivedescendant(){if(je(this.dataItem))return this.optionPrefix+"-"+Yt(this.dataItem,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}set data(o){this.dataService.data=o||[],this.virtual&&(this.virtual.skip=0),this.setState()}get data(){const o=this.virtual;if(o){const t=o.skip||0,r=t+o.pageSize;return o.total=this.dataService.data.length,this.dataService.data.slice(t,r)}return this.dataService.data}set value(o){je(o)||(this._previousDataItem=void 0),this._value=o,this.setState(),this.cdr.markForCheck()}get value(){return this._value}set popupSettings(o){this._popupSettings=Object.assign({animate:!0},o)}get popupSettings(){return this._popupSettings}set itemDisabled(o){if("function"!=typeof o)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(o)}.`);this.disabledItemsService.itemDisabled=o}set virtual(o){this._virtualSettings=iE(o)}get virtual(){return this._virtualSettings}set valuePrimitive(o){this._valuePrimitive=o}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}blurComponent(){this.wrapperBlurred.emit()}blurFilterInput(){this.filterBlurred.emit()}focusComponent(){this.wrapperFocused.emit(),this.isFocused||(this.isFocused=!0,Ut(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}keydown(o){const t=je(this.defaultItem)?-1:0;let r=isNaN(this.selectionService.focused)?this.firstFocusableIndex(t):this.selectionService.focused,s=0;if(this.disabled||this.readonly)return;if(this.filterable&&this.isFocused&&this.isOpen&&(o.keyCode===Ie.Home||o.keyCode===Ie.End))return;const p=je(this.selectionService.selected[0]),y=je(this.selectionService.focused)&&!this.selectionService.isSelected(this.selectionService.focused);(!p||y)&&(o.keyCode===Ie.ArrowDown||o.keyCode===Ie.ArrowRight?s=-1:(o.keyCode===Ie.ArrowUp||o.keyCode===Ie.ArrowLeft)&&(s=1));const A=o,w=this.navigationService.process({current:r+s,max:this.dataService.itemsCount-1,min:this.defaultItem?-1:0,originalEvent:A});w!==ai.Undefined&&w!==ai.Tab&&w!==ai.Backspace&&w!==ai.Delete&&(w!==ai.Left&&w!==ai.Right||!this.filterable)&&w!==ai.Enter&&A.preventDefault()}keypress(o){this.disabled||this.readonly||this.filterable||this.onKeyPress(o)}click(o){o.preventDefault(),this.focus(),this.togglePopup(!this.isOpen)}onResize(){if(this._open){const o=this.popupRef.popupElement,{min:t,max:r}=this.width;o.style.minWidth=t,o.style.width=r}}get dir(){return this.direction}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=o}get isFocused(){return this._isFocused}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.assignAriaDescribedBy()}isEmpty(){const o=this.value;return!(0===o||!1===o||o||this.defaultItem)}onFilterFocus(){this.filterFocused.emit()}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout),this.localizationChangesSubscription&&this.localizationChangesSubscription.unsubscribe()}ngOnChanges(o){const t=this.virtual;t&&o.data&&o.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),cr("defaultItem",o,!1)&&(this.disabledItemsService.defaultItem=this.defaultItem),_s(["textField","valueField","valuePrimitive","defaultItem","itemDisabled"],o,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}focusItemAt(o){const r=(je(this.defaultItem)?-1:0)<=o&&o<this.data.length;je(o)&&r&&!this.disabledItemsService.isIndexDisabled(o)?this.selectionService.focus(o):this.selectionService.focus(null)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!this._open;this._toggle(t)})}_toggle(o){this._open=o,this.destroyPopup(),this._open&&this.createPopup()}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}togglePopup(o){this.disabled||this.readonly||this.isOpen===o||this.triggerPopupEvents(o)||(!o&&this.filterable&&this.isFocused&&this.focus(),this._toggle(o))}get isOpen(){return this._open}reset(){this.value=void 0}writeValue(o){this.value=null===o?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}get buttonClasses(){return this.loading?"k-i-loading":this.iconClass||"k-i-arrow-s"}get listContainerClasses(){const o=["k-list-container","k-reset"];return this.popupSettings.popupClass&&o.push(this.popupSettings.popupClass),o}get isDisabledDefaultItem(){return this.disabledItemsService.isItemDisabled(this.defaultItem)}getText(){return this.text}getDefaultItemText(){return Yt(this.defaultItem,this.textField)}createPopup(){this.virtual&&(this.virtual.skip=0);const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:o,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:o,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const s=this.popupRef.popupElement,{min:l,max:u}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=l,s.style.width=u,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.filterable||this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.togglePopup(!1))}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}updateState({dataItem:o,confirm:t=!1}){this.dataItem=o,this.text=Yt(o,this.textField),t&&(this._previousDataItem=o)}clearState(){this.text=void 0,this.dataItem=void 0}resetSelection(o){const t=!je(o);this.selectionService.resetSelection(t?[]:[o]),this.selectionService.focused=t?this.firstFocusableIndex(0):o}onSelectionChange({dataItem:o}){this.updateState({dataItem:o}),this.selectionChange.emit(o),this.assignAriaDescribedBy()}subscribeEvents(){!Dt()||(this.selectionSubscription.add(this.selectionService.onSelect.pipe(Wt(o=>this.isOpen),(0,ft.U)(this.itemFromEvent.bind(this))).subscribe(this.onSelectionChange.bind(this))),this.selectionSubscription.add((0,Ko.T)(this.selectionService.onSelect.pipe(Wt(o=>!this.isOpen)),this.selectionService.onChange).pipe((0,ft.U)(this.itemFromEvent.bind(this)),oi(o=>this.togglePopup(!1))).subscribe(({dataItem:o,value:t,newSelection:r})=>{r&&this.onSelectionChange({dataItem:o});const s=!je(o)&&this._previousDataItem,l=t!==Yt(this.value,this.valueField);s?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):l&&(this.value=this.valuePrimitive?t:o,this._previousDataItem=o,this.emitChange(this.value)),this.clearFilter()})),this.navigationSubscription=(0,Ko.T)(this.navigationService.up,this.navigationService.down,this.navigationService.left.pipe(eJ(()=>this.filterable)),this.navigationService.right.pipe(eJ(()=>this.filterable)),this.navigationService.home,this.navigationService.end).pipe(Wt(o=>!isNaN(o.index))).subscribe(o=>this.selectionService.select(o.index)),this.openSubscription=this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.closeSubscription=this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.enterSubscription=this.navigationService.enter.pipe(oi(o=>o.originalEvent.preventDefault())).subscribe(this.handleEnter.bind(this)),this.escSubscription=this.navigationService.esc.subscribe(this.handleEscape.bind(this)),this.filterBlurredSubscription=this.filterBlurred.pipe(ld(()=>wx(10).pipe($i(1),Si(this.wrapperFocused)))).subscribe(()=>{this.wrapperBlurred.emit()}),this._zone.runOutsideAngular(()=>{this.componentBlurredSubscription=(0,Ko.T)(this.wrapperBlurred.pipe(ld(()=>wx(10).pipe($i(1),Si(this.filterFocused)))),this.navigationService.tab).pipe(oi(o=>o instanceof uJ&&this.focus()),Wt(()=>this.isFocused)).subscribe(()=>this.componentBlur())}))}subscribeTouchEvents(){!Dt()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",o=>{this.isFocused&&!hT(this.hostElement,o.target,this.popupRef)&&this._zone.run(()=>{this.filterFocused&&this.togglePopup(!1),this.blur()})}))}unsubscribeEvents(){!Dt()||(this.navigationSubscription.unsubscribe(),this.openSubscription.unsubscribe(),this.closeSubscription.unsubscribe(),this.enterSubscription.unsubscribe(),this.escSubscription.unsubscribe(),this.componentBlurredSubscription.unsubscribe(),this.filterBlurredSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler(),this.selectionSubscription&&this.selectionSubscription.unsubscribe())}itemFromEvent(o){const t=o.indices[0];let r=this.dataService.itemAt(t);r=je(r)?r:this.currentOrDefault(t);const s=Yt(r,this.valueField);return{dataItem:r,index:t,newSelection:o.newSelection,value:s}}currentOrDefault(o){return je(this.dataItem)&&-1!==o?this.dataItem:this.defaultItem}firstFocusableIndex(o){const t=this.dataService.itemsCount-1;return this.disabledItemsService.isIndexDisabled(o)?o<t?this.firstFocusableIndex(o+1):void 0:o}handleEnter(){this.isOpen?(this.selectionService.change(this.selectionService.focused),this.focus()):this.togglePopup(!0)}handleEscape(){je(this.selectionService.selected[0])?this.selectionService.change(this.selectionService.selected[0]):(this.togglePopup(!1),this.clearFilter()),this.focus()}clearFilter(){!this.filterable||!this.filterText||(this.filterText="",this.cdr.markForCheck(),this.filterChange.emit(this.filterText))}verifySettings(){if((0,n.X6Q)()){if(this.defaultItem&&this.valueField&&"object"!=typeof this.defaultItem)throw new Error("defaultItem and data items must be of same type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownListComponent/#toc-defaultitem");if(!0===this.valuePrimitive&&je(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!1===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-value-selection");if(!je(this.valueField)!=!je(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdownlist/#toc-bind-to-arrays-of-complex-data")}}componentBlur(){this.isFocused=!1;const t=je(this.selectionService.selected[0])&&Yt(this.value,this.valueField)!==Yt(this.dataService.itemAt(this.selectionService.selected[0]),this.valueField);t||Ut(this.close)||Ut(this.onBlur)||Ut(this.filterChange)||Dy(this.hostElement.nativeElement)?this._zone.run(()=>{t&&this.selectionService.change(this.selectionService.selected[0]),this.togglePopup(!1),this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1)}onMouseDown(o){"input"!==o.target.tagName.toLowerCase()&&o.preventDefault()}onKeyPress(o){if(0===o.which||o.keyCode===Ie.Enter)return;let t=String.fromCharCode(o.charCode||o.keyCode);this.ignoreCase&&(t=t.toLowerCase())," "===t&&o.preventDefault(),this.word+=t,this.last=t,this.search()}search(){clearTimeout(this.typingTimeout),this.filterable||(this.typingTimeout=setTimeout(()=>{this.word=""},this.delay),this.selectNext())}selectNext(){let o=this.dataService.filter(A=>je(A)&&!A.header&&!this.disabledItemsService.isItemDisabled(A)).map(A=>this.dataService.grouped?{item:A.value,itemIndex:A.offsetIndex}:{item:A,itemIndex:this.dataService.indexOf(A)});const t=((i,o)=>{for(let t=0;t<i.length;t++)if(i.charAt(t)!==o)return!1;return!0})(this.word,this.last);let u,p,y,r=o.length,s=!isNaN(this.selectionService.selected[0]),l=s?this.selectionService.selected[0]:0;for(this.defaultItem&&!this.disabledItemsService.isItemDisabled(this.defaultItem)&&(y={item:this.defaultItem,itemIndex:-1},r+=1,l+=1),l+=t&&s?1:0,o=((i,o,t)=>{let r=i;return t&&(r=[t].concat(r)),r.slice(o).concat(r.slice(0,o))})(o,l,y),p=0;p<r;p++){u=Yt(o[p].item,this.textField);const A=Boolean(t&&lJ(u,this.last,this.ignoreCase)),w=Boolean(lJ(u,this.word,this.ignoreCase));if(A||w){p=o[p].itemIndex;break}}p!==r&&this.navigate(p)}emitChange(o){this.onChangeCallback(o),this.valueChange.emit(o)}navigate(o){this.selectionService.select(o)}findDataItem({valueField:o,value:t}){const r={dataItem:null,index:-1},s=p=>Yt(p,o);let l;l=this.dataService.grouped?p=>s(p.value)===s(t):p=>s(p)===s(t);const u=this.dataService.findIndex(l);return r.dataItem=this.dataService.itemAt(u),r.index=u,r}setState(){const o=this.value,t=this.valueField,r=this.textField,s=this.valuePrimitive;if(this.defaultItem){const p=Yt(this.defaultItem,t),y=Yt(o,t);if(!je(o)||y===p)return this.updateState({dataItem:this.defaultItem,confirm:!0}),this.resetSelection(-1),void(this.filterable&&this.filterText&&this.dataService.itemsCount&&(this.selectionService.focused=this.firstFocusableIndex(0)))}const l=this.findDataItem({valueField:t,value:o}),u=!(s&&r);l.dataItem?(this.updateState({dataItem:l.dataItem,confirm:!0}),this.resetSelection(l.index)):je(o)&&u?(this.updateState({dataItem:o}),this.resetSelection()):this._previousDataItem?(this.updateState({dataItem:this._previousDataItem}),this.resetSelection()):(this.clearState(),this.resetSelection())}handleFilter(o){this.filterChange.emit(o.target.value)}pageChange(o){this.virtual.skip=o.skip}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}assignAriaDescribedBy(){const t=(this.wrapper.nativeElement.getAttribute("aria-describedby")||"").replace(this.valueLabelId,"").trim();this.valueLabelId=kl();const r=`${this.valueLabelId} ${t}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",r)}};Hn.\u0275fac=function(o){return new(o||Hn)(n.Y36(Te),n.Y36(Do),n.Y36(ra),n.Y36(Oa),n.Y36(Pa),n.Y36(Ea),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(rl,8))},Hn.\u0275cmp=n.Xpm({type:Hn,selectors:[["kendo-dropdownlist"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,Il,5),n.Suo(r,oc,5),n.Suo(r,rc,5),n.Suo(r,lm,5),n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,is,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.itemTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTemplate=s.first),n.iGM(s=n.CRH())&&(t.fixedGroupTemplate=s.first),n.iGM(s=n.CRH())&&(t.valueTemplate=s.first),n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(wy,7,n.s_b),n.Gf(My,7),n.Gf(pT,7),n.Gf(KI,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.optionsList=r.first)}},hostVars:5,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.dir),n.ekj("k-widget",t.widgetClasses)("k-dropdown",t.widgetClasses))},inputs:{focusableId:"focusableId",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",filterable:"filterable",ignoreCase:"ignoreCase",delay:"delay",tabindex:"tabindex",data:"data",value:"value",popupSettings:"popupSettings",itemDisabled:"itemDisabled",virtual:"virtual",valuePrimitive:"valuePrimitive",tabIndex:"tabIndex",iconClass:"iconClass",loading:"loading",textField:"textField",valueField:"valueField",defaultItem:"defaultItem"},outputs:{valueChange:"valueChange",filterChange:"filterChange",selectionChange:"selectionChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur"},exportAs:["kendoDropDownList"],features:[n._Bn([rbe,Ea,ra,Oa,Pa,Te,{provide:gn,useValue:"kendo.dropdownlist"},{provide:t0,useExisting:(0,n.Gpc)(()=>dE)},{provide:Mo,useExisting:(0,n.Gpc)(()=>dE)}]),n.TTD],decls:13,vars:23,consts:function(){let i;return i="Nenhum item encontrado",[["kendoDropDownListLocalizedMessages","","noDataText",i],["unselectable","on","role","listbox","aria-haspopup","listbox",3,"id","ngClass","kendoEventsOutsideAngular","scope","keydown","keypress","click"],["wrapper",""],["unselectable","on",1,"k-input",3,"id"],[4,"ngIf"],[3,"ngIf"],["unselectable","on",1,"k-select"],["unselectable","on",1,"k-icon",3,"ngClass"],["popupTemplate",""],["container",""],[3,"templateContext"],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[1,"k-list-filter",3,"click"],["tabindex","-1",1,"k-textbox",3,"filterInput","dir","ngModel","ngModelChange","keydown","input","focus","blur"],["unselectable","on",1,"k-icon","k-i-search"],["kendoDropDownsSelectable","",1,"k-list-optionlabel",3,"ngClass","index"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2),n.NdJ("keydown",function(s){return t.keydown(s)})("keypress",function(s){return t.keypress(s)})("click",function(s){return t.click(s)}),n.TgZ(3,"span",3),n.YNc(4,o1e,1,4,null,4),n.YNc(5,r1e,1,1,"ng-template",5),n.qZA(),n.TgZ(6,"span",6),n._UZ(7,"span",7),n.qZA(),n.YNc(8,_1e,8,17,"ng-template",null,8,n.W1O),n.qZA(),n.YNc(10,b1e,1,0,"ng-template",5),n.GkF(11,null,9)),2&o&&(n.xp6(1),n.Q6J("id",t.focusableId)("ngClass",n.VKq(18,oJ,t.disabled))("kendoEventsOutsideAngular",n.WLB(20,WI,t.focusComponent,t.blurComponent))("scope",t),n.uIk("dir",t.direction)("readonly",t.readonly)("tabindex",t.widgetTabIndex)("aria-disabled",t.disabled)("aria-readonly",t.readonly)("aria-expanded",t.ariaExpanded)("aria-owns",t.ariaOwns)("aria-activedescendant",t.ariaActivedescendant)("aria-label",t.noDataLabel),n.xp6(2),n.Q6J("id",t.valueLabelId),n.xp6(1),n.Q6J("ngIf",t.valueTemplate),n.xp6(1),n.Q6J("ngIf",!t.valueTemplate),n.xp6(2),n.Q6J("ngClass",t.buttonClasses),n.xp6(3),n.Q6J("ngIf",t.isOpen))},dependencies:function(){return[$p,_E,jp,gt,Ge,wi,ti,ni,Bs,ac,mE,_a]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",String)],Hn.prototype,"focusableId",void 0),re([(0,n.IIB)(),ee("design:type",String)],Hn.prototype,"iconClass",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Hn.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Hn.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Hn.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",String)],Hn.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",String)],Hn.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Hn.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Number)],Hn.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",Object)],Hn.prototype,"defaultItem",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Hn.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Function),ee("design:paramtypes",[Function])],Hn.prototype,"itemDisabled",null),re([(0,n.IIB)(),ee("design:type",Boolean)],Hn.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Hn.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Hn.prototype,"virtual",null),re([(0,n.IIB)(),ee("design:type",Boolean)],Hn.prototype,"ignoreCase",void 0),re([(0,n.IIB)(),ee("design:type",Number)],Hn.prototype,"delay",void 0),re([(0,n.IIB)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],Hn.prototype,"valuePrimitive",null),re([(0,n.IIB)(),ee("design:type",Number)],Hn.prototype,"tabindex",void 0),re([(0,n.IIB)("tabIndex"),ee("design:type",Number),ee("design:paramtypes",[Number])],Hn.prototype,"tabIndex",null),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"filterChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"selectionChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Hn.prototype,"closed",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],Hn.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],Hn.prototype,"onBlur",void 0),re([(0,n.aQ5)(Il,{static:!1}),ee("design:type",Il)],Hn.prototype,"itemTemplate",void 0),re([(0,n.aQ5)(oc,{static:!1}),ee("design:type",oc)],Hn.prototype,"groupTemplate",void 0),re([(0,n.aQ5)(rc,{static:!1}),ee("design:type",rc)],Hn.prototype,"fixedGroupTemplate",void 0),re([(0,n.aQ5)(lm,{static:!1}),ee("design:type",lm)],Hn.prototype,"valueTemplate",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],Hn.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],Hn.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],Hn.prototype,"noDataTemplate",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],Hn.prototype,"container",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],Hn.prototype,"popupTemplate",void 0),re([(0,n.i9L)("wrapper",{static:!0}),ee("design:type",n.SBq)],Hn.prototype,"wrapper",void 0),re([(0,n.i9L)("optionsList",{static:!1}),ee("design:type",$p)],Hn.prototype,"optionsList",void 0),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-dropdown"),ee("design:type",Boolean)],Hn.prototype,"widgetClasses",void 0),re([(0,n.pfw)("attr.dir"),ee("design:type",String),ee("design:paramtypes",[])],Hn.prototype,"dir",null),Hn=dE=re([Oc(10,(0,n.FiY)()),Oc(10,(0,n.tBr)(rl)),ee("design:paramtypes",[Te,Do,ra,Oa,Pa,Ea,n.R0b,n.Qsj,n.SBq,n.sBO,Boolean])],Hn);let uE=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiSelectCustomItemTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),cm=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiSelectTagTemplate",""],["","kendoMultiSelectTreeTagTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),dm=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiSelectGroupTagTemplate",""],["","kendoMultiSelectTreeGroupTagTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})();class gJ extends e0{constructor(o){super(),this.dataItem=o}}var pE;const sbe={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>mn)};let mn=pE=class{constructor(o,t,r,s,l,u,p,y,A,w,I,P){this.localization=o,this.popupService=t,this.dataService=r,this.selectionService=s,this.navigationService=l,this.disabledItemsService=u,this.cdr=p,this.differs=y,this.renderer=A,this.hostElement=w,this._zone=I,this.touchEnabled=P,this.listBoxId=kl(),this.tagListId=kl(),this.tagPrefix="tag-"+kl(),this.optionPrefix="option-"+kl(),this.focusedTagIndex=void 0,this.focusableId=`k-${kl()}`,this.autoClose=!0,this.tabindex=0,this.disabled=!1,this.readonly=!1,this.filterable=!1,this.listHeight=200,this.clearButton=!0,this.tagMapper=F=>F||[],this.allowCustom=!1,this.valueNormalizer=F=>F.pipe((0,ft.U)(V=>{const oe=Se=>"string"==typeof Se&&V.toLowerCase()===Se.toLowerCase(),Ae=this.value.find(oe);return Ae||(this.dataService.find(oe)||V)})),this.filterChange=new n.vpe,this.valueChange=new n.vpe,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.removeTag=new n.vpe,this.widgetClasses=!0,this.initialized=!1,this.onChangeCallback=F=>{},this.onTouchedCallback=F=>{},this._placeholder="",this._open=!1,this._value=[],this._popupSettings={animate:!0},this._checkboxes={enabled:!1},this._isFocused=!1,this.selectedDataItems=[],this.customValueSubject=new Ht.xQ,this.observableSubscriptions=new bn.w,(0,mi.s)(eE),this.popupMouseDownHandler=this.onMouseDown.bind(this),this.data=[],this.direction=this.localization.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}focusItemAt(o){const r=(this.allowCustom?-1:0)<=0&&o<this.data.length;je(o)&&r&&!this.disabledItemsService.isIndexDisabled(o)?this.selectionService.focus(o):this.selectionService.focus(null)}focus(){this.disabled||this.searchbar.focus()}onSearchBarFocus(){this.isFocused||(this.isFocused=!0,Ut(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}blur(){this.disabled||this.searchbar.blur()}onSearchBarBlur(){!this.isFocused||(this.isFocused=!1,Ut(this.onBlur)||Ut(this.filterChange)||Ut(this.close)||Dy(this.hostElement.nativeElement)?this._zone.run(()=>{this.closePopup(),this.isOpen&&this.allowCustom||this.clearFilter(),this.onBlur.emit(),this.onTouchedCallback()}):(this.allowCustom||this.clearFilter(),this.closePopup()))}wrapperMousedown(o){if(0===o.button){if(this.isFocused&&this.isOpen&&o.target===this.searchbar.input.nativeElement)return;(!this.touchEnabled||this.touchEnabled&&"SPAN"!==o.target.tagName)&&this.searchbar.focus(),this.togglePopup(!this.isOpen),o.preventDefault()}}onMouseDown(o){o.preventDefault()}onResize(){if(this._open){const o=this.popupRef.popupElement,{min:t,max:r}=this.width;o.style.minWidth=t,o.style.width=r}}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}set data(o){this.dataService.data=o||[],this.virtual&&(this.virtual.skip=0),this.initialized&&this.setState(this.value)}get data(){const o=this.virtual;if(o){const t=o.skip||0,r=t+o.pageSize;return o.total=this.dataService.data.length,this.dataService.data.slice(t,r)}return this.dataService.data}set value(o){this._value=o||[],!this.differ&&this.value&&(this.differ=this.differs.find(this.value).create()),this.valueChangeDetected=!0,this.initialized&&this.setState(this.value)}get value(){return this._value}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set placeholder(o){this._placeholder=o||""}get placeholder(){return this.selectedDataItems.length?"":this._placeholder}set itemDisabled(o){if("function"!=typeof o)throw new Error(`itemDisabled must be a function, but received ${JSON.stringify(o)}.`);this.disabledItemsService.itemDisabled=o}set checkboxes(o){this._checkboxes=(i=>K1(i)?Object.assign({},{enabled:!0,checkOnClick:!0},i):{enabled:Boolean(i),checkOnClick:!0})(o)}get checkboxes(){return this._checkboxes}set virtual(o){this._virtualSettings=iE(o)}get virtual(){return this._virtualSettings}set popupSettings(o){this._popupSettings=Object.assign({animate:!0},o)}get popupSettings(){return this._popupSettings}set valuePrimitive(o){this._valuePrimitive=o}get valuePrimitive(){return je(this._valuePrimitive)?this._valuePrimitive:!je(this.valueField)}get dir(){return this.direction}get disabledClass(){return this.disabled}get listContainerClasses(){const o=["k-list-container","k-reset"];return this.popupSettings.popupClass&&o.push(this.popupSettings.popupClass),o}get width(){let o=0;Dt()&&(o=this.wrapper.nativeElement.offsetWidth);const t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get height(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}get activeDescendant(){const o=this.focusedTagIndex,t=this.selectionService.focused;let r,s;if(je(o)&&!this.isOpen)s=this.tags[o],r=this.tagPrefix;else{if(!je(t)||-1===t||!this.isOpen)return null;s=this.dataService.itemAt(t),r=this.optionPrefix}return r+"-"+Yt(s,this.valueField)}get noDataLabel(){if(0===this.dataService.itemsCount)return this.noDataText}get clearTitle(){return this.localization.get("clearTitle")}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}verifySettings(){if((0,n.X6Q)()&&0!==this.value.length){if(!ol(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!0===this.valuePrimitive&&tE(this.value))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!1===this.valuePrimitive&&!tE(this.value))throw new Error("Expected values of Object type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#value-selection");if(!je(this.valueField)!=!je(this.textField))throw new Error("Expected textField and valueField options to be set. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/#toc-bind-to-arrays-of-complex-data")}}change(o){if(!je(o.added)&&!je(o.removed)||-1!==o.added&&-1!==o.removed){if(je(o.added)){const r=this.dataService.itemAt(o.added),s=this.valuePrimitive&&je(r)&&je(r[this.valueField])?r[this.valueField]:r;this.value=[...this.value,s]}if(je(o.removed)){const r=this.dataService.itemAt(o.removed);this.value=this.value.filter(l=>Yt(l,this.valueField)!==Yt(r,this.valueField)),this.selectionService.focused=o.removed,this.cdr.detectChanges()}this.emitValueChange()}else this.addCustomValue(this.text)}setState(o){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(s=>!s.header).map(s=>s.value));const r=V7(this.value,t,this.valueField);this.selectionService.resetSelection(r),this.disabledItemsService.isIndexDisabled(this.selectionService.focused)&&(this.selectionService.focused=this.firstFocusableIndex(0)),this.isOpen&&void 0===this.selectionService.focused&&(this.dataService.itemsCount>0?this.selectionService.focused=this.firstFocusableIndex(0):this.allowCustom&&(this.selectionService.focused=-1)),this.valuePrimitive&&!this.valueField&&(this.selectedDataItems=o.slice()),(tE(o)||this.valuePrimitive&&this.valueField)&&(this.selectedDataItems=((i,o,t)=>{const r=((i,o)=>ol(i)&&i.filter(t=>K1(t)&&je(Yt(t,o))))(i,t)||[];return(((i,o=[],t)=>i.map(r=>o.find(s=>Yt(s,t)===r)).filter(r=>void 0!==r))(i,o,t)||[]).concat(r)})(o,t,this.valueField)),this.selectedDataItems.length<o.length&&(this.selectedDataItems=o.map(s=>{const l=this.selectedDataItems.find(u=>Yt(u,this.valueField)===Yt(s,this.valueField));return je(l)?l:this.resolveDataItemFromTags(s)}).filter(s=>je(s))),this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.disabledIndices=this.disabledItemsMapper(),this.cdr.markForCheck()}handleFilter(o){this.text=o,o&&!this.isOpen&&this.openPopup(),this.filterable?this.filterChange.emit(o):this.searchTextAndFocus(o),this.searchbar.setInputSize()}pageChange(o){this.virtual.skip=o.skip}clearFilter(){this.filterable&&this.text&&this.filterChange.emit(""),this.text="",this.searchbar.input.nativeElement.value="",this.searchbar.setInputSize()}handleNavigate(o){const t=this.text&&o.keyCode!==Ie.ArrowDown&&o.keyCode!==Ie.ArrowUp,r=this.text&&o.keyCode===Ie.Enter||o.keyCode===Ie.Escape;if(!this.text&&o.keyCode===Ie.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||t&&!r)return;const l=o,u=isNaN(this.selectionService.focused)?-1:this.selectionService.focused,p=this.navigationService.process({current:u,max:this.dataService.itemsCount-1,min:this.allowCustom&&this.text?-1:0,open:this.isOpen,originalEvent:l});p!==ai.Undefined&&(p===ai.Enter&&this.isOpen||p!==ai.Enter)&&o.preventDefault()}handleRemoveTag({tag:o}){const t=new gJ(o);this.disabled||this.readonly||(this.focus(),this.removeTag.emit(t),!t.isDefaultPrevented()&&(o instanceof Array?this.removeGroupTag(o):this.removeSingleTag(o),this.cdr.detectChanges()))}clearAll(o){o.stopImmediatePropagation(),o.preventDefault(),this.focus(),this.clearFilter();const t=this.selectionService.selected;this.value=this.value.filter((r,s)=>this.disabledItemsService.isIndexDisabled(t[s])),this.emitValueChange()}addCustomValue(o){this.customValueSubject.next(o)}ngAfterContentChecked(){this.verifySettings()}ngDoCheck(){this.differ&&this.differ.diff(this.value)&&!this.valueChangeDetected&&this.setState(this.value),this.valueChangeDetected=!1}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.createCustomValueStream(),this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.setMessages()}),this.setMessages(),this.setState(this.value),this.initialized=!0}ngOnChanges(o){const t=this.virtual;t&&o.data&&o.data.isFirstChange()&&this.pageChange({skip:0,take:t.pageSize}),cr("valueNormalizer",o)&&this.createCustomValueStream(),_s(["textField","valueField","valuePrimitive"],o)&&this.setState(this.value)}ngAfterViewInit(){this.searchbar.setInputSize()}ngOnDestroy(){this._toggle(!1),this.unsubscribeEvents(),clearTimeout(this.messagesTimeout)}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!this._open;this._toggle(t),this.cdr.markForCheck()})}get isOpen(){return this._open}reset(){this.text="",this.value=[]}writeValue(o){this.value=o||[]}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o}onTagMapperChange(){this.tags=this.tagMapper(this.selectedDataItems.slice(0)),this.cdr.markForCheck()}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=o}get isFocused(){return this._isFocused}subscribeEvents(){if(!Dt())return;const o=()=>this.isOpen,t=()=>!this.isOpen,r=()=>!this.isOpen&&void 0!==this.focusedTagIndex;[this.selectionService.onChange.subscribe(this.handleItemChange.bind(this)),this.navigationService.esc.subscribe(this.closePopup.bind(this)),this.navigationService.enter.pipe(Wt(o)).subscribe(this.handleEnter.bind(this)),this.navigationService.open.subscribe(this.openPopup.bind(this)),this.navigationService.close.subscribe(this.handleClose.bind(this)),this.navigationService.up.pipe(Wt(o)).subscribe(s=>this.handleUp(s.index)),this.navigationService.home.pipe(Wt(()=>t)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Wt(()=>t)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Wt(r)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Wt(r)).subscribe(this.handleDelete.bind(this)),this.navigationService.left.subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.down.subscribe(s=>this.handleDownKey(s.index))].forEach(s=>this.observableSubscriptions.add(s))}subscribeTouchEvents(){!Dt()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",o=>{(this.isFocused||this.isOpen)&&!hT(this.hostElement,o.target,this.popupRef)&&this._zone.run(()=>{this.blur(),this.isOpen&&this.togglePopup(!1)})}))}unsubscribeEvents(){!Dt()||(this.observableSubscriptions.unsubscribe(),this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.touchstartDisposeHandler&&this.touchstartDisposeHandler())}removeGroupTag(o){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(s=>!s.header).map(s=>s.value));const r=new Set(o.map(s=>Yt(s,this.valueField)));this.value=this.value.filter(s=>{const l=V7([s],t,this.valueField)[0],u=this.disabledItemsService.isIndexDisabled(l);return!r.has(Yt(s,this.valueField))||u}),this.emitValueChange()}removeSingleTag(o){let t=this.dataService.data;this.dataService.grouped&&(t=t.filter(s=>!s.header).map(s=>s.value));const r=V7([o],t,this.valueField)[0];this.disabledItemsService.isIndexDisabled(r)||((i=>!isNaN(i))(r)?(this.selectionService.unselect(r),this.selectionService.focused=r,this.togglePopup(!1)):(this.value=this.value.filter(l=>Yt(l,this.valueField)!==Yt(o,this.valueField)),this.emitValueChange()))}disabledItemsMapper(){const{selected:o}=this.selectionService;return new Set(this.selectedDataItems.reduce((t,r,s)=>(this.disabledItemsService.isIndexDisabled(o[s])&&t.push(s),t),[]))}createCustomValueStream(){this.customValueSubscription&&this.customValueSubscription.unsubscribe(),this.customValueSubscription=this.customValueSubject.pipe(oi(()=>{this.loading=!0,this.disabled=!0,this.cdr.detectChanges()}),this.valueNormalizer,hs(()=>(this.loading=!1,this.disabled=!1,this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()}),this.createCustomValueStream(),Et(null)))).subscribe(o=>{if(this.loading=!1,this.disabled=!1,je(o)){const t=this.valuePrimitive?Yt(o,this.valueField):o,r=this.dataService.indexOf(t),s=-1===r;-1===this.value.indexOf(t)?(this.tags=this.tagMapper([...this.selectedDataItems,o]),s?this.value=[...this.value,t]:this.selectionService.add(r)):!s&&this.selectionService.isSelected(r)?(this.selectionService.unselect(r),this.selectionService.focused=r):this.value=this.value.filter(l=>Yt(l,this.valueField)!==t),this.emitValueChange()}this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter(),this.nextTick(()=>{this.searchbar.focus()})})}handleItemChange(o){this.change(o),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()}handleEnter(o){const t=this.selectionService,r=this.selectionService.focused;this.isOpen&&o.originalEvent.preventDefault(),-1!==r?(t.isSelected(r)?(t.unselect(r),t.focused=r):t.add(r),this.autoClose&&this.togglePopup(!1),(this.autoClose||!this.filterable)&&this.clearFilter()):this.allowCustom&&this.text&&this.addCustomValue(this.text)}handleClose(){this.closePopup(),this.searchbar.focus()}handleEnd(){this.focusedTagIndex=this.tags.length-1}handleHome(){this.focusedTagIndex=0}handleUp(o){this.selectionService.focused=o}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():(this.handleRemoveTag({tag:this.tags[this.tags.length-1]}),this.searchbar.focus())}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex]}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}handleLeftKey(){void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleDownKey(o){this.isOpen?this.selectionService.focused=o||this.firstFocusableIndex(0):this.openPopup()}handleRightKey(){const o=this.tags.length-1;this.focusedTagIndex===o?this.focusedTagIndex=void 0:this.focusedTagIndex<o&&this.focusedTagIndex++}findIndex(o,t=0){let r;o=o.toLowerCase();let s=this.dataService.findIndex(l=>(r=Yt(this.dataService.grouped?l.value:l,this.textField),r=je(r)?r.toString().toLowerCase():"",o&&r.startsWith(o)),t);return this.disabledItemsService.isIndexDisabled(s)?s+1>this.dataService.itemsCount?-1:this.findIndex(o,s+1):s}searchTextAndFocus(o){const t=this.findIndex(o);this.selectionService.focused=t}closePopup(){this.togglePopup(!1),this.focusedTagIndex=void 0}openPopup(){this.togglePopup(!0),this.focusedTagIndex=void 0}togglePopup(o){this.disabled||this.readonly||this.isOpen===o||this.triggerPopupEvents(o)||this._toggle(o)}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}_toggle(o){this._open=o,this.destroyPopup(),this._open&&this.createPopup()}destroyPopup(){this.popupRef&&(this.popupRef.popupElement.removeEventListener("mousedown",this.popupMouseDownHandler),this.popupRef.close(),this.popupRef=null)}createPopup(){this.virtual&&(this.virtual.skip=0);const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{horizontal:o,vertical:"bottom"},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{horizontal:o,vertical:"top"},popupClass:this.listContainerClasses,positionMode:"absolute"});const s=this.popupRef.popupElement,{min:l,max:u}=this.width;s.addEventListener("mousedown",this.popupMouseDownHandler),s.style.minWidth=l,s.style.width=u,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.optionsList.scrollToItem(this.selectionService.focused),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>{this.togglePopup(!1)})}emitValueChange(){this.onChangeCallback(this.value),this.valueChange.emit(this.value)}resolveDataItemFromTags(o){return this.tags&&this.tags.length&&je(o)?this.tags.reduce((r,s)=>{const l=ol(s)?s:[s];return r.push(...l),r},[]).find(r=>Yt(r,this.valueField)===Yt(o,this.valueField)):void 0}firstFocusableIndex(o){const t=this.dataService.itemsCount;if(this.disabledItemsService.isIndexDisabled(o)){const r=o+1;return r<t?this.firstFocusableIndex(r):void 0}return o}nextTick(o){this._zone.runOutsideAngular(()=>{setTimeout(()=>this._zone.run(o))})}setMessages(){this._zone.runOutsideAngular(()=>{clearTimeout(this.messagesTimeout),this.messagesTimeout=setTimeout(()=>{this.noDataText=this.localization.get("noDataText"),this.cdr.detectChanges()})})}};mn.\u0275fac=function(o){return new(o||mn)(n.Y36(Te),n.Y36(Do),n.Y36(Ea),n.Y36(ra),n.Y36(Oa),n.Y36(Pa),n.Y36(n.sBO),n.Y36(n.aQg),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(rl,8))},mn.\u0275cmp=n.Xpm({type:mn,selectors:[["kendo-multiselect"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,Il,5),n.Suo(r,uE,5),n.Suo(r,oc,5),n.Suo(r,rc,5),n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,cm,5),n.Suo(r,dm,5),n.Suo(r,is,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.template=s.first),n.iGM(s=n.CRH())&&(t.customItemTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTemplate=s.first),n.iGM(s=n.CRH())&&(t.fixedGroupTemplate=s.first),n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.tagTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTagTemplate=s.first),n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(wy,7,n.s_b),n.Gf(ic,7),n.Gf(My,7),n.Gf(pT,7),n.Gf(KI,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.searchbar=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.optionsList=r.first)}},hostVars:7,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.dir),n.ekj("k-widget",t.widgetClasses)("k-multiselect",t.widgetClasses)("k-state-disabled",t.disabledClass))},inputs:{focusableId:"focusableId",autoClose:"autoClose",tabindex:"tabindex",disabled:"disabled",readonly:"readonly",filterable:"filterable",listHeight:"listHeight",clearButton:"clearButton",tagMapper:"tagMapper",allowCustom:"allowCustom",valueNormalizer:"valueNormalizer",data:"data",value:"value",tabIndex:"tabIndex",placeholder:"placeholder",itemDisabled:"itemDisabled",checkboxes:"checkboxes",virtual:"virtual",popupSettings:"popupSettings",valuePrimitive:"valuePrimitive",loading:"loading",valueField:"valueField",textField:"textField"},outputs:{filterChange:"filterChange",valueChange:"valueChange",open:"open",opened:"opened",close:"close",closed:"closed",onFocus:"focus",onBlur:"blur",removeTag:"removeTag"},exportAs:["kendoMultiSelect"],features:[n._Bn([sbe,Ea,ra,Oa,Pa,Te,{provide:gn,useValue:"kendo.multiselect"},{provide:t0,useExisting:(0,n.Gpc)(()=>pE)},{provide:Mo,useExisting:(0,n.Gpc)(()=>pE)}]),n.TTD],decls:13,vars:24,consts:function(){let i,o;return i="Nenhum item encontrado",o="clear",[["kendoMultiSelectLocalizedMessages","","noDataText",i,"clearTitle",o],[1,"k-multiselect-wrap","k-floatwrap",3,"mousedown"],["wrapper",""],[3,"id","tags","textField","valueField","focused","disabled","template","groupTemplate","tagPrefix","disabledIndices","removeTag"],[3,"id","role","tagListId","activeDescendant","noDataLabel","userInput","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"visibility","mousedown",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],[3,"ngIf"],["container",""],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"mousedown"],[1,"k-icon","k-i-loading"],[4,"ngIf"],["class","k-list",4,"ngIf"],[3,"id","optionPrefix","data","textField","valueField","height","template","groupTemplate","fixedGroupTemplate","show","multipleSelection","virtual","checkboxes","pageChange"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[1,"k-list"],["kendoDropDownsSelectable","",1,"k-item","k-custom-item",3,"multipleSelection","index"],[4,"ngIf","ngIfElse"],["default_custom_item_template",""],[1,"k-icon","k-i-plus",2,"float","right"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"resize"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"div",1,2),n.NdJ("mousedown",function(s){return t.wrapperMousedown(s)}),n.TgZ(3,"kendo-taglist",3),n.NdJ("removeTag",function(s){return t.handleRemoveTag(s)}),n.qZA(),n.TgZ(4,"kendo-searchbar",4,5),n.NdJ("onNavigate",function(s){return t.handleNavigate(s)})("valueChange",function(s){return t.handleFilter(s)})("onBlur",function(){return t.onSearchBarBlur()})("onFocus",function(){return t.onSearchBarFocus()}),n.qZA(),n.YNc(6,v1e,1,3,"span",6),n.YNc(7,y1e,1,0,"span",7),n.qZA(),n.YNc(8,P1e,6,17,"ng-template",null,8,n.W1O),n.YNc(10,O1e,1,0,"ng-template",9),n.GkF(11,null,10)),2&o&&(n.xp6(3),n.Q6J("id",t.tagListId)("tags",t.tags)("textField",t.textField)("valueField",t.valueField)("focused",t.focusedTagIndex)("disabled",t.disabled)("template",t.tagTemplate)("groupTemplate",t.groupTagTemplate)("tagPrefix",t.tagPrefix)("disabledIndices",t.disabledIndices),n.xp6(1),n.Q6J("id",t.focusableId)("role","listbox")("tagListId",t.tagListId)("activeDescendant",t.activeDescendant)("noDataLabel",t.noDataLabel)("userInput",t.text)("disabled",t.disabled)("readonly",t.readonly)("tabIndex",t.tabIndex)("popupOpen",t.isOpen)("placeholder",t.placeholder),n.xp6(2),n.Q6J("ngIf",!t.loading&&!t.readonly&&t.clearButton&&((null==t.tags?null:t.tags.length)||(null==t.text?null:t.text.length))),n.xp6(1),n.Q6J("ngIf",t.loading),n.xp6(3),n.Q6J("ngIf",t.isOpen))},dependencies:function(){return[$p,_E,ic,jp,W7,Ge,Bs,ac]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",String)],mn.prototype,"focusableId",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"autoClose",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],mn.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],mn.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",String)],mn.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",String)],mn.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",Number)],mn.prototype,"tabindex",void 0),re([(0,n.IIB)("tabIndex"),ee("design:type",Number),ee("design:paramtypes",[Number])],mn.prototype,"tabIndex",null),re([(0,n.IIB)(),ee("design:type",String),ee("design:paramtypes",[String])],mn.prototype,"placeholder",null),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Function),ee("design:paramtypes",[Function])],mn.prototype,"itemDisabled",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],mn.prototype,"checkboxes",null),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],mn.prototype,"virtual",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],mn.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Number)],mn.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",Boolean),ee("design:paramtypes",[Boolean])],mn.prototype,"valuePrimitive",null),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"clearButton",void 0),re([(0,n.IIB)(),ee("design:type",Object)],mn.prototype,"tagMapper",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],mn.prototype,"allowCustom",void 0),re([(0,n.IIB)(),ee("design:type",Function)],mn.prototype,"valueNormalizer",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"filterChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"closed",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],mn.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],mn.prototype,"onBlur",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],mn.prototype,"removeTag",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],mn.prototype,"container",void 0),re([(0,n.i9L)(ic,{static:!0}),ee("design:type",ic)],mn.prototype,"searchbar",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],mn.prototype,"popupTemplate",void 0),re([(0,n.i9L)("wrapper",{static:!0}),ee("design:type",n.SBq)],mn.prototype,"wrapper",void 0),re([(0,n.i9L)("optionsList",{static:!1}),ee("design:type",$p)],mn.prototype,"optionsList",void 0),re([(0,n.aQ5)(Il,{static:!1}),ee("design:type",Il)],mn.prototype,"template",void 0),re([(0,n.aQ5)(uE,{static:!1}),ee("design:type",uE)],mn.prototype,"customItemTemplate",void 0),re([(0,n.aQ5)(oc,{static:!1}),ee("design:type",oc)],mn.prototype,"groupTemplate",void 0),re([(0,n.aQ5)(rc,{static:!1}),ee("design:type",rc)],mn.prototype,"fixedGroupTemplate",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],mn.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],mn.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(cm,{static:!1}),ee("design:type",cm)],mn.prototype,"tagTemplate",void 0),re([(0,n.aQ5)(dm,{static:!1}),ee("design:type",dm)],mn.prototype,"groupTagTemplate",void 0),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],mn.prototype,"noDataTemplate",void 0),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-multiselect"),ee("design:type",Boolean)],mn.prototype,"widgetClasses",void 0),re([(0,n.pfw)("attr.dir"),ee("design:type",String),ee("design:paramtypes",[])],mn.prototype,"dir",null),re([(0,n.pfw)("class.k-state-disabled"),ee("design:type",Boolean),ee("design:paramtypes",[])],mn.prototype,"disabledClass",null),mn=pE=re([Oc(11,(0,n.FiY)()),Oc(11,(0,n.tBr)(rl)),ee("design:paramtypes",[Te,Do,Ea,ra,Oa,Pa,n.sBO,n.aQg,n.Qsj,n.SBq,n.R0b,Boolean])],mn);let J7,hE=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiColumnComboBoxColumnCellTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),gE=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiColumnComboBoxColumnHeaderTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})(),q7=(()=>{let i=class{constructor(){this.hidden=!1,this.matchesMedia=!0}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-combobox-column"]],contentQueries:function(t,r,s){if(1&t&&(n.Suo(s,hE,5),n.Suo(s,gE,5)),2&t){let l;n.iGM(l=n.CRH())&&(r.cellTemplate=l.first),n.iGM(l=n.CRH())&&(r.headerTemplate=l.first)}},inputs:{hidden:"hidden",field:"field",title:"title",width:"width",style:"style",headerStyle:"headerStyle",class:"class",headerClass:"headerClass",media:"media"},decls:0,vars:0,template:function(t,r){},encapsulation:2}),re([(0,n.aQ5)(hE,{static:!1}),ee("design:type",hE)],i.prototype,"cellTemplate",void 0),re([(0,n.aQ5)(gE,{static:!1}),ee("design:type",gE)],i.prototype,"headerTemplate",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"field",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"title",void 0),re([(0,n.IIB)(),ee("design:type",Number)],i.prototype,"width",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"hidden",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"style",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"headerStyle",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"class",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"headerClass",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"media",void 0),i})();const Q7=()=>{if(isNaN(J7)){const i=document.createElement("div");i.style.cssText="overflow: scroll; overflow-x: hidden; zoom: 1; clear: both; display: block;",i.innerHTML="&nbsp;",document.body.appendChild(i),J7=i.offsetWidth-i.scrollWidth,document.body.removeChild(i)}return J7};var mT;let Yp=mT=class extends nn{constructor(o,t,r,s,l,u,p,y,A,w,I){super(o,t,r,s,l,u,p,y,A,w,I),this.hostClasses=!0,this.removeWindowResizeListener=X1,this.defaultVirtualItemHeight=36,this.defaultVirtualPageSize=30}set header(o){this.updateHeaderPadding(o&&o.nativeElement)}get popupWidth(){const o=this.wrapper.nativeElement.offsetWidth,t=`${o}px`,r=this.popupSettings.width||(i=>{if(!(i=>!(!je(i)||0===i.length)&&i.toArray().every(o=>!isNaN(o.width)&&o.width>0))(i))return null;const t=Q7()+2;return i.reduce((r,s)=>(!s.hidden&&s.matchesMedia&&(r+=parseInt(s.width,10)),r),t)})(this.columns)||o;return{min:t,max:isNaN(r)?r:`${r}px`}}get listContainerClasses(){return["k-list-container","k-popup","k-reset","k-group","k-dropdowngrid-popup","k-popup-flush","k-state-border-up"].concat(this.popupSettings.popupClass||[])}ngAfterViewInit(){this.updateColumnsMediaState(),this.addWindowResizeListener()}ngOnDestroy(){super.ngOnDestroy(),this.removeWindowResizeListener()}textFrom(o,t){return Yt(o,t)}updateHeaderPadding(o){if(!je(o))return;const t=this.localization.rtl?"padding-left":"padding-right";this.optionsList.hasScrollbar()&&Q7()>0?this.renderer.setStyle(o,t,`${Q7()}px`):this.renderer.removeStyle(o,t)}verifySettings(){if((0,n.X6Q)()){if(je(this.data)&&this.data.length>0&&this.data.some(o=>!K1(o)))throw new Error("Provided data must consist only of objects. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/");if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multicolumncombobox/data-binding/#toc-fields-configuration");super.verifySettings()}}addWindowResizeListener(){!Dt()||this.zone.runOutsideAngular(()=>this.removeWindowResizeListener=this.renderer.listen(window,"resize",this.updateColumnsMediaState.bind(this)))}updateColumnsMediaState(){!je(this.columns)||!Dt()||this.columns.forEach(o=>{const t=!o.media||window.matchMedia(o.media).matches;o.matchesMedia!==t&&(o.matchesMedia=t,this.isOpen&&this.zone.run(()=>this.popupRef.popupElement.style.width=this.popupWidth.max))})}};Yp.\u0275fac=function(o){return new(o||Yp)(n.Y36(Te),n.Y36(Do),n.Y36(ra),n.Y36(Oa),n.Y36(Pa),n.Y36(Ea),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(rl))},Yp.\u0275cmp=n.Xpm({type:Yp,selectors:[["kendo-multicolumncombobox"]],contentQueries:function(o,t,r){if(1&o&&n.Suo(r,q7,4),2&o){let s;n.iGM(s=n.CRH())&&(t.columns=s)}},viewQuery:function(o,t){if(1&o&&n.Gf(N1e,5),2&o){let r;n.iGM(r=n.CRH())&&(t.header=r.first)}},hostVars:2,hostBindings:function(o,t){2&o&&n.ekj("k-dropdowngrid",t.hostClasses)},features:[n._Bn([ra,Ea,Oa,Pa,Te,{provide:gn,useValue:"kendo.multicolumncombobox"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>mT)},{provide:Mo,useExisting:(0,n.Gpc)(()=>mT)},{provide:t0,useExisting:(0,n.Gpc)(()=>mT)}]),n.qOj],decls:14,vars:20,consts:function(){let i,o;return i="Nenhum item encontrado",o="clear",[["kendoMultiColumnComboBoxLocalizedMessages","","noDataText",i,"clearTitle",o],["unselectable","on",1,"k-dropdown-wrap"],["wrapper",""],[3,"role","id","listId","activeDescendant","noDataLabel","userInput","suggestedText","disabled","readonly","tabIndex","popupOpen","placeholder","onNavigate","valueChange","onBlur","onFocus"],["searchbar",""],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","kendoEventsOutsideAngular","click",4,"ngIf"],["aria-hidden","true","unselectable","on",1,"k-select",3,"kendoEventsOutsideAngular"],["select",""],[1,"k-icon",3,"ngClass"],["popupTemplate",""],[3,"resize",4,"ngIf"],["container",""],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"kendoEventsOutsideAngular","click"],[4,"ngIf"],[1,"k-grid-header"],["header",""],[1,"k-grid-header-wrap"],["role","presentation"],[4,"ngFor","ngForOf"],["rowTemplate",""],[3,"id","optionPrefix","data","textField","valueField","template","groupTemplate","fixedGroupTemplate","height","show","virtual","listClass","pageChange","listResize"],["optionsList",""],["class","k-nodata",4,"ngIf"],[3,"templateContext"],[3,"width",4,"ngIf"],["class","k-header",3,"ngStyle","ngClass",4,"ngIf"],[1,"k-header",3,"ngStyle","ngClass"],["class","k-cell",3,"ngClass","width","ngStyle",4,"ngIf"],[1,"k-cell",3,"ngClass","ngStyle"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"],[1,"k-footer"],[3,"resize"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2)(3,"kendo-searchbar",3,4),n.NdJ("onNavigate",function(s){return t.handleNavigate(s)})("valueChange",function(s){return t.searchBarChange(s)})("onBlur",function(){return t.handleBlur()})("onFocus",function(){return t.handleFocus()}),n.qZA(),n.YNc(5,L1e,1,6,"span",5),n.TgZ(6,"span",6,7),n._UZ(8,"span",8),n.qZA()(),n.YNc(9,o0e,16,19,"ng-template",null,9,n.W1O),n.YNc(11,r0e,1,0,"kendo-resize-sensor",10),n.GkF(12,null,11)),2&o&&(n.xp6(1),n.ekj("k-state-disabled",t.disabled),n.xp6(2),n.Q6J("role","combobox")("id",t.focusableId)("listId",t.listBoxId)("activeDescendant",t.activeDescendant)("noDataLabel",t.noDataLabel)("userInput",t.text)("suggestedText",t.getSuggestion())("disabled",t.disabled)("readonly",t.readonly)("tabIndex",t.tabIndex)("popupOpen",t.isOpen)("placeholder",t.placeholder),n.xp6(2),n.Q6J("ngIf",t.clearButton&&!t.loading&&!t.disabled&&!t.readonly&&(null==t.text?null:t.text.length)),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.VKq(18,XI,t.preventEventDefault)),n.xp6(2),n.Q6J("ngClass",t.buttonClasses),n.xp6(3),n.Q6J("ngIf",t.isOpen))},dependencies:function(){return[$p,ic,jp,gt,Bt,Ge,uo,Bs,ac,_a]},encapsulation:2}),re([(0,n.pfw)("class.k-dropdowngrid"),ee("design:type",Boolean)],Yp.prototype,"hostClasses",void 0),re([(0,n.AcB)(q7),ee("design:type",n.n_E)],Yp.prototype,"columns",void 0),re([(0,n.i9L)("header",{static:!1}),ee("design:type",n.SBq),ee("design:paramtypes",[n.SBq])],Yp.prototype,"header",null),Yp=mT=re([Oc(10,(0,n.tBr)(rl)),ee("design:paramtypes",[Te,Do,ra,Oa,Pa,Ea,n.R0b,n.sBO,n.Qsj,n.SBq,Boolean])],Yp);let n0=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownTreeNodeTemplate",""],["","kendoMultiSelectTreeNodeTemplate",""]]}),i=re([ee("design:paramtypes",[n.Rgc])],i),i})();var ky;const fJ={animate:!0},dbe=()=>!1,ube=()=>Et([]),pbe=()=>!1,hbe=()=>!0;let Dn=ky=class{constructor(o,t,r,s,l,u,p,y){this.popupService=o,this.navigationService=t,this.renderer=r,this.hostElement=s,this._zone=l,this.cdr=u,this.localization=p,this.touchEnabled=y,this.hostClasses=!0,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.nodeExpand=new n.vpe,this.nodeCollapse=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.valueChange=new n.vpe,this.filterChange=new n.vpe,this.clearButton=!0,this.hasChildren=dbe,this.fetchChildren=ube,this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.itemDisabled=pbe,this.isNodeVisible=hbe,this.loadOnDemand=!0,this.filterable=!1,this.filter="",this.focusableId=`k-${to()}`,this.selectedKeys=[],this.filterStateChange=new n.vpe,this.allNodesHidden=!1,this.valueLabelId=`k-${to()}`,this._popupSettings=fJ,this._tabindex=0,this._isFocused=!1,this.subscriptions=[],this.onTouchedCallback=X1,this.onChangeCallback=X1,this.direction=p.rtl?"rtl":"ltr",this.subscribeEvents(),this.subscribeTouchEvents()}get clearable(){return this.clearButton}set treeview(o){o&&((this.isFocused&&!this.filterable||this.touchEnabled)&&o.focus(),o.animate=!0,this._treeview=o)}get treeview(){return this._treeview}set data(o){this._nodes=o,this.setState()}get data(){return this._nodes}set value(o){this._value=o,this.setState()}get value(){return this._value}set popupSettings(o){this._popupSettings=Object.assign({},fJ,o)}get popupSettings(){return this._popupSettings}set dataItem(o){this._dataItem=o,this.setState()}get dataItem(){return this._dataItem?this._dataItem:this.value}set tabindex(o){const t=Number(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?-1:this._tabindex}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.wrapper.nativeElement,"k-state-focused"),this._isFocused=o}get isFocused(){return this._isFocused}get width(){const o=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get height(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}get isOpen(){return je(this.popupRef)}get clearButtonVisiblity(){if(this.touchEnabled)return"visible"}set isExpanded(o){this.isNodeExpanded=o}get isExpanded(){return this.isNodeExpanded}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set nodes(o){this.data=o}get nodes(){return this.data}set children(o){this.fetchChildren=o}get children(){return this.fetchChildren}set isVisible(o){this.isNodeVisible=o}get isVisible(){return this.isNodeVisible}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.assignAriaDescribedBy(),this.subscriptions.push(this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(o){_s(["textField","valueField","valuePrimitive"],o,!1)&&this.setState()}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!this.text&&!this.placeholder}togglePopup(o){this.disabled||this.readonly||this.isOpen===o||this.triggerPopupEvents(o)||(o?this.createPopup():this.destroyPopup())}handleFocus(){this.isFocused||(this.isFocused=!0,Ut(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}))}handleBlur(o){const t=o&&o.relatedTarget;this.hostElement.nativeElement.contains(t)||this.isOpen&&this.popupRef.popupElement.contains(t)||(this.isFocused=!1,Ut(this.onBlur)||Dy(this.hostElement.nativeElement)?this._zone.run(()=>{this.togglePopup(!1),this.onBlur.emit(),this.onTouchedCallback()}):this.togglePopup(!1))}handleKeydown(o){this.disabled||this.readonly||this.navigationService.process({originalEvent:o})}handleClick(){this.togglePopup(!this.isOpen)}focusItemAt(o){if(this.treeview){const t=this.treeview.itemLookup(o);!je(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(o)}}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}reset(){this.value=void 0,this.dataItem=void 0}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!je(this.popupRef);this.destroyPopup(),t&&this.createPopup()})}get popupContainerClasses(){const o=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&o.push(this.popupSettings.popupClass),o}onSelectionChange({dataItem:o,index:t}){this.valueDepth=t.split("_").length-1;const r=this.getField(this.valueField,o),s=this.valuePrimitive?ys(r)(o):o;s!==this.value&&(this.value=s,this.dataItem=o,this.emitValueChange(this.value)),this.togglePopup(!1),this.focus()}messageFor(o){return this.localization.get(o)}clearValue(o){o.stopImmediatePropagation(),this.focus(),this.value=void 0,this.dataItem=void 0,this.clearState(),this.valueChange.emit(void 0),this.emitValueChange()}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}preventEventDefault(o){o.preventDefault()}writeValue(o){!je(o)&&je(this.value)&&(this.dataItem=null),this.value=null===o?void 0:o}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}handleFilterInputChange(o){this.filterChange.next(o),this.allNodesHidden=this.nodes.every((t,r)=>!this.isVisible(t,String(r)))}get buttonClasses(){return this.loading?"k-i-loading":"k-i-arrow-s"}verifySettings(){if((0,n.X6Q)()){if(!0===this.valuePrimitive&&je(this.value)&&"object"==typeof this.value)throw new Error("Expected value of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-primitive-values");if(!0===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.dataItem)throw new Error("Expected dataItem of type Object to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/DropDownTreeComponent/#toc-dataitem");if(!1===this.valuePrimitive&&je(this.value)&&"object"!=typeof this.value)throw new Error("Expected value of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding/#toc-object-values");if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/dropdowntree/value-binding");if((ol(this.valueField)||ol(this.textField))&&je(this.value)&&!je(this.valueDepth))throw new Error("Expected valueDepth to be set. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/DropDownTreeComponent/#toc-valuedepth")}}emitValueChange(o){this.onChangeCallback(o),this.valueChange.emit(o)}getText(o,t){return je(t)&&je(o)?ys(this.getField(o,t))(t):null}getField(o,t){const r=o.length-1;return"string"==typeof o?o:je(this.valueDepth)?r<this.valueDepth?o[r]:o[this.valueDepth]:o.find(s=>s in t)}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}createPopup(){const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:o,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:o,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const s=this.popupRef.popupElement,{min:l,max:u}=this.width;s.style.minWidth=l,s.style.width=u,s.style.height=this.height,s.setAttribute("dir",this.direction),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Ut(this.filterChange)&&this._zone.run(()=>{this.filterChange.emit("")})))}handleEscape(){this.togglePopup(!1),this.focus()}setState(){if(je(this.value)&&je(this.dataItem)&&je(this.valueField)){this.text=this.getText(this.textField,this.dataItem);const o=this.getField(this.valueField,this.dataItem);this.selectBy=o,this.selectedKeys=[ys(o)(this.dataItem)]}else this.clearState();this.cdr.markForCheck()}clearState(){this.text=void 0,this.selectedKeys=[]}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.close.subscribe(()=>{this.togglePopup(!1),this.focus()}),this.navigationService.enter.pipe(oi(o=>o.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),this.navigationService.esc.subscribe(()=>this.handleEscape()),this.navigationService.tab.subscribe(()=>this.focus()),this.navigationService.down.subscribe(o=>{!this.treeview||(o.originalEvent.preventDefault(),this.treeview.isActive||this.treeview.focus())}),this.navigationService.up.subscribe(o=>{!this.treeview||(o.originalEvent.preventDefault(),this.filterable&&"0"===this.treeview.navigationService.activeIndex&&this.filterInput.nativeElement.focus())}))}subscribeTouchEvents(){!Dt()||!this.touchEnabled||this._zone.runOutsideAngular(()=>this.touchstartDisposeHandler=this.renderer.listen(document,"touchstart",o=>{this.isFocused&&!hT(this.hostElement,o.target,this.popupRef)&&this._zone.run(()=>{this.isOpen&&this.treeview.blur(),this.blur()})}))}unsubscribeEvents(){this.subscriptions.forEach(o=>o.unsubscribe()),this.touchstartDisposeHandler&&this.touchstartDisposeHandler()}assignAriaDescribedBy(){const o=this.wrapper.nativeElement.getAttribute("aria-describedby")||"",t=`${this.valueLabelId} ${o.trim()}`.trim();this.renderer.setAttribute(this.wrapper.nativeElement,"aria-describedby",t)}};var Iy;Dn.\u0275fac=function(o){return new(o||Dn)(n.Y36(Do),n.Y36(Oa),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(Te),n.Y36(rl,8))},Dn.\u0275cmp=n.Xpm({type:Dn,selectors:[["kendo-dropdowntree"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,is,5),n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,n0,5),n.Suo(r,lm,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first),n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.nodeTemplate=s.first),n.iGM(s=n.CRH())&&(t.valueTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(rJ,5),n.Gf(My,7),n.Gf(pT,7),n.Gf(wy,7,n.s_b),n.Gf(aJ,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.treeview=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.filterInput=r.first)}},hostVars:7,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-widget",t.hostClasses)("k-dropdowntree",t.hostClasses)("k-dropdowntree-clearable",t.clearable))},inputs:{clearButton:"clearButton",hasChildren:"hasChildren",fetchChildren:"fetchChildren",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",itemDisabled:"itemDisabled",isNodeVisible:"isNodeVisible",loadOnDemand:"loadOnDemand",filterable:"filterable",filter:"filter",focusableId:"focusableId",data:"data",value:"value",popupSettings:"popupSettings",dataItem:"dataItem",tabindex:"tabindex",isNodeExpanded:"isNodeExpanded",valueDepth:"valueDepth",loading:"loading",textField:"textField",valueField:"valueField"},outputs:{open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",onFocus:"focus",onBlur:"blur",valueChange:"valueChange",filterChange:"filterChange"},exportAs:["kendoDropDownTree"],features:[n._Bn([Ea,ra,Oa,Pa,Te,{provide:gn,useValue:"kendo.dropdowntree"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>ky)},{provide:Mo,useExisting:(0,n.Gpc)(()=>ky)},{provide:Ml,useExisting:(0,n.Gpc)(()=>ky)},{provide:G1,useExisting:(0,n.Gpc)(()=>ky)}]),n.TTD],decls:13,vars:18,consts:function(){let i,o;return i="Nenhum item encontrado",o="clear",[["kendoDropDownTreeLocalizedMessages","","noDataText",i,"clearTitle",o],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[1,"k-input"],[4,"ngIf"],[3,"ngIf"],["class","k-icon k-clear-value k-i-close","aria-hidden","true",3,"visibility","click",4,"ngIf"],["aria-hidden","true",1,"k-select"],[1,"k-icon","k-i-arrow-60-down",3,"ngClass"],["popupTemplate",""],["container",""],[3,"templateContext"],["aria-hidden","true",1,"k-icon","k-clear-value","k-i-close",3,"click"],["class","k-list-filter",4,"ngIf"],["kendoTreeViewSelectable","",3,"nodes","maxHeight","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse",4,"ngIf"],["class","k-nodata",4,"ngIf"],[1,"k-list-filter"],["role","textbox","aria-haspopup","true","aria-expanded","false","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-textbox",3,"filterInput","ngModel","kendoEventsOutsideAngular","scope","input","keydown.arrowdown","keydown.alt.arrowup","ngModelChange"],["filterInput",""],[1,"k-icon","k-i-zoom"],["kendoTreeViewSelectable","",3,"nodes","animate","selectedKeys","selectBy","textField","children","hasChildren","loadOnDemand","isExpanded","isDisabled","nodeTemplate","filter","isVisible","selectedKeysChange","focusout","keydown","selectionChange","expand","collapse"],["treeview",""],[1,"k-nodata"],[3,"ngIf","templateContext"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2),n.NdJ("click",function(){return t.handleClick()})("keydown",function(s){return t.handleKeydown(s)}),n.TgZ(3,"span",3),n.YNc(4,s0e,1,4,null,4),n.YNc(5,l0e,1,1,"ng-template",5),n.qZA(),n.YNc(6,c0e,1,3,"span",6),n.TgZ(7,"span",7),n._UZ(8,"span",8),n.qZA()(),n.YNc(9,v0e,5,5,"ng-template",null,9,n.W1O),n.GkF(11,null,10)),2&o&&(n.xp6(1),n.Q6J("ngClass",n.VKq(13,oJ,t.disabled))("kendoEventsOutsideAngular",n.WLB(15,WI,t.handleFocus,t.handleBlur))("scope",t),n.uIk("id",t.focusableId)("aria-expanded",t.isOpen)("aria-readonly",t.readonly)("tabindex",t.tabindex)("dir",t.direction),n.xp6(2),n.uIk("id",t.valueLabelId),n.xp6(1),n.Q6J("ngIf",t.valueTemplate),n.xp6(1),n.Q6J("ngIf",!t.valueTemplate),n.xp6(1),n.Q6J("ngIf",!t.loading&&!t.readonly&&t.clearButton&&(null==t.text?null:t.text.length)&&!t.disabled),n.xp6(2),n.Q6J("ngClass",t.buttonClasses))},dependencies:function(){return[jp,gt,Ge,wi,ti,ni,ac,mE,_a,Or,B7]},encapsulation:2,changeDetection:0}),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-dropdowntree"),(0,n.pfw)("class.k-dropdowntree-clearable"),ee("design:type",Boolean)],Dn.prototype,"hostClasses",void 0),re([(0,n.pfw)("attr.dir"),ee("design:type",String)],Dn.prototype,"direction",void 0),re([(0,n.pfw)("class.k-dropdowntree-clearable"),ee("design:type",Boolean),ee("design:paramtypes",[])],Dn.prototype,"clearable",null),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],Dn.prototype,"noDataTemplate",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],Dn.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],Dn.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(n0,{static:!1}),ee("design:type",n0)],Dn.prototype,"nodeTemplate",void 0),re([(0,n.aQ5)(lm,{static:!1}),ee("design:type",lm)],Dn.prototype,"valueTemplate",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],Dn.prototype,"popupTemplate",void 0),re([(0,n.i9L)("wrapper",{static:!0}),ee("design:type",n.SBq)],Dn.prototype,"wrapper",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],Dn.prototype,"container",void 0),re([(0,n.i9L)("treeview",{static:!1}),ee("design:type",Or),ee("design:paramtypes",[Or])],Dn.prototype,"treeview",null),re([(0,n.i9L)("filterInput",{static:!1}),ee("design:type",n.SBq)],Dn.prototype,"filterInput",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"closed",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"nodeExpand",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"nodeCollapse",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],Dn.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],Dn.prototype,"onBlur",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],Dn.prototype,"filterChange",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"clearButton",void 0),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],Dn.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Dn.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",Object)],Dn.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",Object)],Dn.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Number)],Dn.prototype,"valueDepth",void 0),re([(0,n.IIB)(),ee("design:type",Function)],Dn.prototype,"hasChildren",void 0),re([(0,n.IIB)(),ee("design:type",Function)],Dn.prototype,"fetchChildren",void 0),re([(0,n.IIB)(),ee("design:type",String)],Dn.prototype,"placeholder",void 0),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Dn.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],Dn.prototype,"dataItem",null),re([(0,n.IIB)(),ee("design:type",Number)],Dn.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"valuePrimitive",void 0),re([(0,n.IIB)(),ee("design:type",Number),ee("design:paramtypes",[Number])],Dn.prototype,"tabindex",null),re([(0,n.IIB)(),ee("design:type",Function)],Dn.prototype,"itemDisabled",void 0),re([(0,n.IIB)(),ee("design:type",Function)],Dn.prototype,"isNodeExpanded",void 0),re([(0,n.IIB)(),ee("design:type",Function)],Dn.prototype,"isNodeVisible",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"loadOnDemand",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],Dn.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",String)],Dn.prototype,"filter",void 0),re([(0,n.IIB)(),ee("design:type",String)],Dn.prototype,"focusableId",void 0),Dn=ky=re([Oc(7,(0,n.FiY)()),Oc(7,(0,n.tBr)(rl)),ee("design:paramtypes",[Do,Oa,n.Qsj,n.SBq,n.R0b,n.sBO,Te,Boolean])],Dn);const mJ={animate:!0},_J={checkChildren:!0,checkOnClick:!0},gbe=()=>!1,fbe=()=>Et([]),mbe=()=>!1,_be=()=>!0;let fn=Iy=class{constructor(o,t,r,s,l,u,p,y){this.popupService=o,this.renderer=t,this.hostElement=r,this.navigationService=s,this._zone=l,this.localization=u,this.cdr=p,this.touchEnabled=y,this.hostClasses=!0,this.valueDepth=[],this.placeholder="",this.listHeight=200,this.disabled=!1,this.readonly=!1,this.valuePrimitive=!1,this.loadOnDemand=!1,this.focusableId=`k-${to()}`,this.clearButton=!0,this.filterable=!1,this.checkAll=!1,this.hasChildren=gbe,this.fetchChildren=fbe,this.isNodeVisible=_be,this.itemDisabled=mbe,this.tagMapper=A=>A||[],this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.open=new n.vpe,this.opened=new n.vpe,this.close=new n.vpe,this.closed=new n.vpe,this.nodeExpand=new n.vpe,this.nodeCollapse=new n.vpe,this.valueChange=new n.vpe,this.removeTag=new n.vpe,this.filterChange=new n.vpe,this.filterStateChange=new n.vpe,this.checkedItems=[],this.checkBy=A=>A,this.showAfter=0,this.allNodesHidden=!1,this.tagListId=to(),this.tagPrefix="tag-"+to(),this.focusedTagIndex=void 0,this._value=[],this._tabindex=0,this._popupSettings=mJ,this._checkableSettings=_J,this._isFocused=!1,this.subscriptions=[],this.lastAction="check",this.onTouchedCallback=X1,this.onChangeCallback=X1,this.direction=u.rtl?"rtl":"ltr",this.subscribeEvents()}set treeview(o){this._treeview=o,o&&((this.isFocused&&!this.filterable&&!this.checkAll||this.touchEnabled)&&o.focus(),Promise.resolve(null).then(()=>this.treeview.animate=!0))}get treeview(){return this._treeview}set tabindex(o){const t=nE(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?-1:this._tabindex}set popupSettings(o){this._popupSettings=Object.assign({},mJ,o),this.cdr.detectChanges()}get popupSettings(){return this._popupSettings}set checkableSettings(o){this._checkableSettings=Object.assign({},_J,o)}get checkableSettings(){return this._checkableSettings}set data(o){this._nodes=o,this.setState()}get data(){return this._nodes}set value(o){this._value=o||[],this.setState()}get value(){return this._value}set dataItems(o){this._dataItems=(o||[]).map((t,r)=>cJ(t,["dataItem","index","level"])?t:{dataItem:t,index:null,level:this.valueDepth[r]||0}),this.setState()}get dataItems(){return this._dataItems||this.value.map((o,t)=>({dataItem:o,index:null,level:this.valueDepth[t]||0}))}get focusedTagId(){return!je(this.focusedTagIndex)||this.isOpen?null:`${this.tagPrefix}-${sm({dataItem:this.tags[this.focusedTagIndex]},this.valueField)}`}set isFocused(o){this.renderer[o?"addClass":"removeClass"](this.hostElement.nativeElement,"k-state-focused"),this._isFocused=o}get isFocused(){return this._isFocused}get isOpen(){return je(this.popupRef)}get width(){const o=this.wrapper.nativeElement.offsetWidth,t=this.popupSettings.width||o;return{min:isNaN(o)?o:`${o}px`,max:isNaN(t)?t:`${t}px`}}get height(){const o=this.popupSettings.height;return je(o)?`${o}px`:"auto"}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}get popupContainerClasses(){const o=["k-popup-dropdowntree","k-reset","k-group","k-list-container"];return this.popupSettings.popupClass&&o.push(this.popupSettings.popupClass),o}set nodes(o){this.data=o}get nodes(){return this.data}set children(o){this.fetchChildren=o}get children(){return this.fetchChildren}get expand(){return this.nodeExpand}get collapse(){return this.nodeCollapse}set isExpanded(o){this.isNodeExpanded=o}get isExpanded(){return this.isNodeExpanded}set isVisible(o){this.isNodeVisible=o}get isVisible(){return this.isNodeVisible}get isTagFocused(){return!this.isOpen&&void 0!==this.focusedTagIndex}get isTreeViewActive(){return this.treeview&&this.treeview.isActive}get isWrapperActive(){return document.activeElement===this.wrapper.nativeElement}get isFilterActive(){return this.filterInput&&document.activeElement===this.filterInput.nativeElement}get isCheckAllActive(){return this.checkAllInput&&document.activeElement===this.checkAllInput.nativeElement}ngOnInit(){this.renderer.removeAttribute(this.hostElement.nativeElement,"tabindex"),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded",String(this.isOpen)),this.subscriptions.push(this.localization.changes.subscribe(({rtl:o})=>{this.direction=o?"rtl":"ltr",this.cdr.markForCheck()}))}ngOnDestroy(){this.destroyPopup(),this.unsubscribeEvents()}ngOnChanges(o){_s(["textField","valueField","valuePrimitive"],o,!1)&&this.setState(),_s(["valueDepth","value","dataItems"],o,!1)&&(this.dataItems=!o.value||o.dataItems||this.valuePrimitive?this.dataItems.map((t,r)=>Object.assign({},t,{level:this.valueDepth[r]||0})):this.value)}ngAfterContentChecked(){this.verifySettings()}isEmpty(){return!(Boolean(this.placeholder)||je(this.value)&&0!==this.value.length)}focus(){this.disabled||this.wrapper.nativeElement.focus()}blur(){this.disabled||this.wrapper.nativeElement.blur()}focusItemAt(o){if(this.treeview){const t=this.treeview.itemLookup(o);!je(t)||this.treeview.isDisabled(t.item.dataItem,t.item.index)||this.treeview.focus(o)}}reset(){this.value=[],this.dataItems=[],this.valueDepth=[]}toggle(o){Promise.resolve(null).then(()=>{const t=je(o)?o:!je(this.popupRef);this.destroyPopup(),t&&this.createPopup()})}handleFocus(){this.isFocused||(this.isFocused=!0,Ut(this.onFocus)&&this._zone.run(()=>{this.onFocus.emit()}),this.isOpen&&this.treeview&&(this.lastNodeOnFocus.setAttribute("tabindex","0"),this.treeview.focus()))}handleBlur(o){const t=o&&o.relatedTarget;this.hostElement.nativeElement.contains(t)||this.isOpen&&this.popupRef.popupElement.contains(t)||(this.isFocused=!1,this.togglePopup(!1),(Ut(this.onBlur)||Dy(this.hostElement.nativeElement))&&this._zone.run(()=>{this.onBlur.emit(),this.onTouchedCallback()}))}handleClick(){this.togglePopup(!this.isOpen)}handleKeydown(o){if(this.isWrapperActive&&o.keyCode===Ie.Backspace&&this.tags.length>0)return void this.handleBackspace();if(this.disabled||this.readonly)return;const r=o;this.navigationService.process({originalEvent:r})===ai.Open&&r.preventDefault()}handleNodeClick(o){this.isFocused||(this.lastNodeOnFocus=o.originalEvent.target.parentElement.parentElement,this.focus())}togglePopup(o){const t=this.disabled||this.readonly,r=this.isOpen===o;this._zone.run(()=>{this.focusedTagIndex=void 0}),t||r||(this.triggerPopupEvents(o)?this.removeTreeViewFromTabOrder():o?this.createPopup():this.destroyPopup())}messageFor(o){return this.localization.get(o)}handleCheckedItemsChange(o){this.valueDepth=o.map(t=>t.level),this.lastAction=o.length>this.dataItems.length?"check":"uncheck",this.dataItems=o.slice(),this.updateValue(this.dataItems)}handleRemoveTag({tag:o,index:t}){if(this.disabled||this.readonly)return;const r=new gJ(o);this.removeTag.emit(r),!r.isDefaultPrevented()&&(o instanceof Array?(this.dataItems=this.dataItems.filter((s,l)=>l<this.showAfter||this.disabledIndices.has(l)),this.valueDepth=this.valueDepth.filter((s,l)=>l<this.showAfter||this.disabledIndices.has(l))):(this.dataItems=this.dataItems.filter((s,l)=>l!==t||this.disabledIndices.has(l)),this.valueDepth=this.valueDepth.filter((s,l)=>l!==t||this.disabledIndices.has(l))),this.updateValue(this.dataItems),this.isFocused||this.focus())}handleTagMapperChange(o){this.showAfter=nE(o),this.setTags()}clearAll(o){o.stopImmediatePropagation(),o.preventDefault(),this.focus(),this.value=this.value.filter((t,r)=>this.disabledIndices.has(r)),this.dataItems=this.dataItems.filter((t,r)=>this.disabledIndices.has(r)),this.valueDepth=this.valueDepth.filter((t,r)=>this.disabledIndices.has(r)),this.emitValueChange(this.value)}writeValue(o){this.value=o||[],this.valuePrimitive||(this.dataItems=this.value)}registerOnChange(o){this.onChangeCallback=o}registerOnTouched(o){this.onTouchedCallback=o}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}handleFilterInputChange(o){this.filterChange.next(o),this.allNodesHidden=this.nodes.every((t,r)=>!this.isVisible(t,String(r)))}toggleCheckAll(){this.checkAllInput.nativeElement.focus(),this.checkAllInput.nativeElement.click()}verifySettings(){if((0,n.X6Q)()){if(!je(this.valueField)||!je(this.textField))throw new Error("Expected textField and valueField options to be set. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding");if(!ol(this.value))throw new Error("Expected values of array type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/#value-selection");if(this.value.length>0){if(this.valuePrimitive&&this.value.some(t=>K1(t)))throw new Error("Expected values of primitive type. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-primitive-values");const o=this.dataItems.every(t=>K1(t.dataItem));if(this.valuePrimitive&&!ol(this.dataItems))throw new Error(Up_dataItems);if(this.valuePrimitive&&!o)throw new Error(Up_dataItems);if(this.valuePrimitive&&this.dataItems.length!==this.value.length)throw new Error("Expected dataItems length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui/components/dropdowns/api/MultiSelectTreeComponent/#toc-dataitems");if(!this.valuePrimitive&&!tE(this.value))throw new Error("Expected values of type Object. See http://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselecttree/value-binding/#toc-object-values");if((ol(this.valueField)||ol(this.textField))&&!ol(this.valueDepth))throw new Error(Up_valueDepth);if((ol(this.valueField)||ol(this.textField))&&0===this.valueDepth.length)throw new Error(Up_valueDepth);if((ol(this.valueField)||ol(this.textField))&&this.valueDepth.length!==this.value.length)throw new Error("Expected valueDepth length to match the number of provided values. See https://www.telerik.com/kendo-angular-ui-develop/components/dropdowns/api/MultiSelectTreeComponent/#toc-valuedepth")}}}emitValueChange(o){this.onChangeCallback(o),this.valueChange.emit(o)}triggerPopupEvents(o){const t=new e0;return o?this.open.emit(t):this.close.emit(t),t.isDefaultPrevented()}createPopup(){const o="rtl"===this.direction?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,appendTo:this.appendTo,anchorAlign:{horizontal:o,vertical:"bottom"},content:this.popupTemplate,popupAlign:{horizontal:o,vertical:"top"},positionMode:"absolute",popupClass:this.popupContainerClasses});const s=this.popupRef.popupElement,{min:l,max:u}=this.width;s.style.minWidth=l,s.style.width=u,s.style.height=this.height,this.renderer.setAttribute(s,"dir",this.direction),this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","true"),this.popupRef.popupOpen.subscribe(()=>{this.cdr.detectChanges(),this.opened.emit()}),this.popupRef.popupClose.subscribe(()=>{this.closed.emit()})}destroyPopup(){this.popupRef&&(this.popupRef.close(),this.popupRef=null,this.renderer.setAttribute(this.wrapper.nativeElement,"aria-expanded","false"),""!==this.filter&&(this.filter="",this.allNodesHidden=!1,Ut(this.filterChange)&&this._zone.run(()=>{this.filterChange.emit("")})))}subscribeEvents(){this.subscriptions.push(this.navigationService.open.subscribe(()=>this.togglePopup(!0)),this.navigationService.enter.pipe(oi(o=>o.originalEvent.preventDefault())).subscribe(()=>this.togglePopup(!0)),(0,Ko.T)(this.navigationService.close,this.navigationService.esc).subscribe(()=>{this.focus(),this.togglePopup(!1)}),this.navigationService.tab.subscribe(this.handleTabKey.bind(this)),this.navigationService.up.subscribe(this.handleUpKey.bind(this)),this.navigationService.down.subscribe(this.handleDownKey.bind(this)),this.navigationService.left.pipe(Wt(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleRightKey.bind(this):this.handleLeftKey.bind(this)),this.navigationService.right.pipe(Wt(()=>!this.isTreeViewActive)).subscribe("rtl"===this.direction?this.handleLeftKey.bind(this):this.handleRightKey.bind(this)),this.navigationService.home.pipe(Wt(()=>!this.isOpen)).subscribe(this.handleHome.bind(this)),this.navigationService.end.pipe(Wt(()=>!this.isOpen)).subscribe(this.handleEnd.bind(this)),this.navigationService.backspace.pipe(Wt(()=>this.isTagFocused)).subscribe(this.handleBackspace.bind(this)),this.navigationService.delete.pipe(Wt(()=>this.isTagFocused)).subscribe(this.handleDelete.bind(this)))}handleTabKey(){this.focus(),this.isOpen&&(this.treeview.blur(),this.removeTreeViewFromTabOrder())}handleUpKey(o){if(!this.treeview||(o.originalEvent.preventDefault(),this.isWrapperActive))return;const t="0"===this.treeview.navigationService.activeIndex;this.filterable&&this.isFilterActive?this.focus():this.checkAll&&!this.isCheckAllActive&&t?this.checkAllInput.nativeElement.focus():(this.isCheckAllActive||t)&&(this.filterable?this.filterInput.nativeElement.focus():this.focus())}handleDownKey(o){!this.treeview||(o.originalEvent.preventDefault(),this.filterable&&this.isWrapperActive?this.filterInput.nativeElement.focus():this.checkAll&&(this.isWrapperActive||this.isFilterActive)?this.checkAllInput.nativeElement.focus():this.treeview.isActive||this.treeview.focus(),this.focusedTagIndex=void 0)}handleRightKey(o){o.originalEvent.preventDefault();const t=this.tags.length-1;this.focusedTagIndex===t?this.focusedTagIndex=void 0:this.focusedTagIndex<t?this.focusedTagIndex++:this.focusedTagIndex||(this.focusedTagIndex=0)}handleLeftKey(o){o.originalEvent.preventDefault(),void 0===this.focusedTagIndex||this.focusedTagIndex<0?this.focusedTagIndex=this.tags.length-1:0!==this.focusedTagIndex&&this.focusedTagIndex--}handleEnd(o){o.originalEvent.preventDefault(),this.focusedTagIndex=this.tags.length-1}handleHome(o){o.originalEvent.preventDefault(),this.focusedTagIndex=0}handleBackspace(){void 0!==this.focusedTagIndex?this.handleDelete():this.handleRemoveTag({tag:this.tags[this.tags.length-1],index:this.tags.length-1})}handleDelete(){this.handleRemoveTag({tag:this.tags[this.focusedTagIndex],index:this.focusedTagIndex}),this.focusedTagIndex===this.tags.length&&(this.focusedTagIndex=void 0)}unsubscribeEvents(){this.subscriptions.forEach(o=>o.unsubscribe())}removeTreeViewFromTabOrder(){this.treeview.element.nativeElement.querySelectorAll("li").forEach(t=>{"0"===t.getAttribute("tabindex")&&(this.lastNodeOnFocus=t,this.lastNodeOnFocus.setAttribute("tabindex","-1"))})}setState(){je(this.dataItems)&&je(this.valueField)&&(this.setTags(),this.checkedItems=this.dataItems.slice()),this.cdr.markForCheck()}setTags(){const o=this.dataItems.map(t=>t.dataItem);this.tags=this.tagMapper(o),this.disabledIndices=this.disabledItemsMapper()}updateValue(o){const t=o.map(this.valuePrimitive?r=>sm(r,this.valueField):r=>r.dataItem);this.value=t,this.emitValueChange(this.value)}disabledItemsMapper(){return new Set(this.dataItems.reduce((o,t,r)=>(this.itemDisabled(t.dataItem,t.index)&&o.push(r),o),[]))}};fn.\u0275fac=function(o){return new(o||fn)(n.Y36(Do),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(Oa),n.Y36(n.R0b),n.Y36(Te),n.Y36(n.sBO),n.Y36(rl,8))},fn.\u0275cmp=n.Xpm({type:fn,selectors:[["kendo-multiselecttree"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,ts,5),n.Suo(r,ns,5),n.Suo(r,n0,5),n.Suo(r,is,5),n.Suo(r,cm,5),n.Suo(r,dm,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.headerTemplate=s.first),n.iGM(s=n.CRH())&&(t.footerTemplate=s.first),n.iGM(s=n.CRH())&&(t.nodeTemplate=s.first),n.iGM(s=n.CRH())&&(t.noDataTemplate=s.first),n.iGM(s=n.CRH())&&(t.tagTemplate=s.first),n.iGM(s=n.CRH())&&(t.groupTagTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(rJ,5),n.Gf(My,7),n.Gf(pT,7),n.Gf(wy,7,n.s_b),n.Gf(aJ,5),n.Gf(y0e,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.treeview=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.filterInput=r.first),n.iGM(r=n.CRH())&&(t.checkAllInput=r.first)}},hostVars:5,hostBindings:function(o,t){2&o&&(n.uIk("dir",t.direction),n.ekj("k-widget",t.hostClasses)("k-dropdowntree",t.hostClasses))},inputs:{valueDepth:"valueDepth",placeholder:"placeholder",listHeight:"listHeight",disabled:"disabled",readonly:"readonly",valuePrimitive:"valuePrimitive",loadOnDemand:"loadOnDemand",focusableId:"focusableId",clearButton:"clearButton",filterable:"filterable",checkAll:"checkAll",hasChildren:"hasChildren",fetchChildren:"fetchChildren",isNodeVisible:"isNodeVisible",itemDisabled:"itemDisabled",tagMapper:"tagMapper",tabindex:"tabindex",popupSettings:"popupSettings",checkableSettings:"checkableSettings",data:"data",value:"value",dataItems:"dataItems",isNodeExpanded:"isNodeExpanded",textField:"textField",valueField:"valueField",loading:"loading"},outputs:{onFocus:"focus",onBlur:"blur",open:"open",opened:"opened",close:"close",closed:"closed",nodeExpand:"nodeExpand",nodeCollapse:"nodeCollapse",valueChange:"valueChange",removeTag:"removeTag",filterChange:"filterChange"},exportAs:["kendoMultiSelectTree"],features:[n._Bn([Te,Oa,Ea,Pa,ra,{provide:gn,useValue:"kendo.multiselecttree"},{multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>Iy)},{provide:Ml,useExisting:(0,n.Gpc)(()=>Iy)},{provide:G1,useExisting:(0,n.Gpc)(()=>Iy)},{provide:Mo,useExisting:(0,n.Gpc)(()=>Iy)}]),n.TTD],decls:11,vars:28,consts:function(){let i,o,t;return i="NO DATA FOUND",o="clear",t="Check all",[["kendoMultiSelectTreeLocalizedMessages","","noDataText",i,"clearTitle",o,"checkAllText",t],["role","listbox","aria-haspopup","tree",3,"ngClass","kendoEventsOutsideAngular","scope","click","keydown"],["wrapper",""],[3,"id","tags","focused","textField","valueField","valueDepth","disabled","tagPrefix","template","groupTemplate","disabledIndices","removeTag"],["class","k-input k-readonly",4,"ngIf"],["class","k-icon k-clear-value k-i-close","role","button","tabindex","-1",3,"click",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["popupTemplate",""],["container",""],[1,"k-input","k-readonly"],["role","button","tabindex","-1",1,"k-icon","k-clear-value","k-i-close",3,"click"],[1,"k-icon","k-i-loading"],["class","k-list-filter",4,"ngIf"],[4,"ngIf"],["class","k-check-all",4,"ngIf"],["kendoMultiSelectTreeCheckable","",3,"nodes","animate","checkable","checkedItems","valueField","textField","children","hasChildren","isExpanded","isDisabled","nodeTemplate","loadOnDemand","filter","isVisible","kendoEventsOutsideAngular","scope","keydown","nodeClick","expand","collapse","checkedItemsChange"],["treeview",""],["class","k-nodata",4,"ngIf"],[1,"k-list-filter"],["role","textbox","aria-haspopup","true","aria-expanded","false","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-textbox",3,"filterInput","ngModel","kendoEventsOutsideAngular","scope","input","keydown","ngModelChange"],["filterInput",""],[1,"k-icon","k-i-zoom"],[3,"templateContext"],[1,"k-check-all"],["type","checkbox","role","checkbox","tabindex","0","aria-disabled","false","aria-readonly","false",1,"k-checkbox",3,"checkAll","treeview","checkedItems","valueField","lastAction","kendoEventsOutsideAngular","scope","checkedItemsChange","keydown"],["checkAllInput",""],[1,"k-checkbox-label",3,"click","mousedown"],[1,"k-nodata"],[3,"ngIf","templateContext"],[3,"ngIf"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"div",1,2),n.NdJ("click",function(){return t.handleClick()})("keydown",function(s){return t.handleKeydown(s)}),n.TgZ(3,"kendo-taglist",3),n.NdJ("removeTag",function(s){return t.handleRemoveTag(s)}),n.qZA(),n.YNc(4,C0e,2,1,"span",4),n.YNc(5,A0e,1,1,"span",5),n.YNc(6,x0e,1,0,"span",6),n.qZA(),n.YNc(7,N0e,7,25,"ng-template",null,7,n.W1O),n.GkF(9,null,8)),2&o&&(n.xp6(1),n.Q6J("ngClass",n.VKq(23,L0e,t.disabled))("kendoEventsOutsideAngular",n.WLB(25,WI,t.handleFocus,t.handleBlur))("scope",t),n.uIk("aria-describedby",t.tagListId)("aria-readonly",t.readonly)("aria-activedescendant",t.focusedTagId)("tabindex",t.tabindex)("id",t.focusableId)("dir",t.direction),n.xp6(2),n.Q6J("id",t.tagListId)("tags",t.tags)("focused",t.focusedTagIndex)("textField",t.textField)("valueField",t.valueField)("valueDepth",t.valueDepth)("disabled",t.disabled)("tagPrefix",t.tagPrefix)("template",t.tagTemplate)("groupTemplate",t.groupTagTemplate)("disabledIndices",t.disabledIndices),n.xp6(1),n.Q6J("ngIf",!t.tags||!t.tags.length),n.xp6(1),n.Q6J("ngIf",!t.disabled&&!t.loading&&!t.readonly&&t.clearButton&&(null==t.tags?null:t.tags.length)),n.xp6(1),n.Q6J("ngIf",t.loading))},dependencies:function(){return[jp,W7,yJ,CJ,gt,Ge,wi,ti,ni,ac,mE,_a,Or]},encapsulation:2}),re([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-dropdowntree"),ee("design:type",Boolean)],fn.prototype,"hostClasses",void 0),re([(0,n.pfw)("attr.dir"),ee("design:type",String)],fn.prototype,"direction",void 0),re([(0,n.aQ5)(ts,{static:!1}),ee("design:type",ts)],fn.prototype,"headerTemplate",void 0),re([(0,n.aQ5)(ns,{static:!1}),ee("design:type",ns)],fn.prototype,"footerTemplate",void 0),re([(0,n.aQ5)(n0,{static:!1}),ee("design:type",n0)],fn.prototype,"nodeTemplate",void 0),re([(0,n.aQ5)(is,{static:!1}),ee("design:type",is)],fn.prototype,"noDataTemplate",void 0),re([(0,n.aQ5)(cm,{static:!1}),ee("design:type",cm)],fn.prototype,"tagTemplate",void 0),re([(0,n.aQ5)(dm,{static:!1}),ee("design:type",dm)],fn.prototype,"groupTagTemplate",void 0),re([(0,n.i9L)("popupTemplate",{static:!0}),ee("design:type",n.Rgc)],fn.prototype,"popupTemplate",void 0),re([(0,n.i9L)("wrapper",{static:!0}),ee("design:type",n.SBq)],fn.prototype,"wrapper",void 0),re([(0,n.i9L)("container",{read:n.s_b,static:!0}),ee("design:type",n.s_b)],fn.prototype,"container",void 0),re([(0,n.i9L)("treeview",{static:!1}),ee("design:type",Or),ee("design:paramtypes",[Or])],fn.prototype,"treeview",null),re([(0,n.i9L)("filterInput",{static:!1}),ee("design:type",n.SBq)],fn.prototype,"filterInput",void 0),re([(0,n.i9L)("checkAllInput",{static:!1}),ee("design:type",n.SBq)],fn.prototype,"checkAllInput",void 0),re([(0,n.IIB)(),ee("design:type",Number),ee("design:paramtypes",[Number])],fn.prototype,"tabindex",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],fn.prototype,"popupSettings",null),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],fn.prototype,"checkableSettings",null),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],fn.prototype,"data",null),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],fn.prototype,"value",null),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],fn.prototype,"dataItems",null),re([(0,n.IIB)(),ee("design:type",Object)],fn.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",Object)],fn.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Array)],fn.prototype,"valueDepth",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"loading",void 0),re([(0,n.IIB)(),ee("design:type",String)],fn.prototype,"placeholder",void 0),re([(0,n.IIB)(),ee("design:type",Number)],fn.prototype,"listHeight",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"readonly",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"valuePrimitive",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"loadOnDemand",void 0),re([(0,n.IIB)(),ee("design:type",String)],fn.prototype,"focusableId",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"clearButton",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"filterable",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],fn.prototype,"checkAll",void 0),re([(0,n.IIB)(),ee("design:type",Function)],fn.prototype,"hasChildren",void 0),re([(0,n.IIB)(),ee("design:type",Function)],fn.prototype,"fetchChildren",void 0),re([(0,n.IIB)(),ee("design:type",Function)],fn.prototype,"isNodeExpanded",void 0),re([(0,n.IIB)(),ee("design:type",Function)],fn.prototype,"isNodeVisible",void 0),re([(0,n.IIB)(),ee("design:type",Function)],fn.prototype,"itemDisabled",void 0),re([(0,n.IIB)(),ee("design:type",Object)],fn.prototype,"tagMapper",void 0),re([(0,n.r_U)("focus"),ee("design:type",n.vpe)],fn.prototype,"onFocus",void 0),re([(0,n.r_U)("blur"),ee("design:type",n.vpe)],fn.prototype,"onBlur",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"open",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"opened",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"close",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"closed",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"nodeExpand",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"nodeCollapse",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"valueChange",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"removeTag",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],fn.prototype,"filterChange",void 0),fn=Iy=re([Oc(7,(0,n.FiY)()),Oc(7,(0,n.tBr)(rl)),ee("design:paramtypes",[Do,n.Qsj,n.SBq,Oa,n.R0b,Te,n.sBO,Boolean])],fn);let W7=(()=>{let i=class{constructor(){this.disabledIndices=new Set,this.removeTag=new n.vpe}tagProp(t,r,s){const l=r&&this.getPropField(t,r,s);return Yt(t,l)}isTagDisabled(t,r){return this.isGroupTag(t)?t.every((s,l)=>this.disabledIndices.has(l+r)):this.disabledIndices.has(r)}deleteTag(t,r,s){t.preventDefault(),t.stopImmediatePropagation(),!this.disabled&&1===t.which&&this.removeTag.emit({tag:r,index:s})}itemId(t,r){if(t)return this.tagPrefix+"-"+this.tagProp(t,this.valueField,r)}isGroupTag(t){return t instanceof Array}tagAriaHidden(t){return je(this.focused)&&this.focused!==t}getPropField(t,r,s){const l=r.length-1;if("string"==typeof r)return r;if(this.valueDepth){const u=this.valueDepth[s];return l<u?r[l]:r[u]}return r.find(u=>u in t)}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-taglist"]],inputs:{disabledIndices:"disabledIndices",tags:"tags",textField:"textField",valueField:"valueField",valueDepth:"valueDepth",focused:"focused",template:"template",groupTemplate:"groupTemplate",disabled:"disabled",tagPrefix:"tagPrefix",id:"id"},outputs:{removeTag:"removeTag"},decls:2,vars:2,consts:[[1,"k-reset"],["role","option","aria-selected","true","class","k-button",3,"ngClass",4,"ngFor","ngForOf"],["role","option","aria-selected","true",1,"k-button",3,"ngClass"],[4,"ngIf","ngIfThen","ngIfElse"],["groupTag",""],["singleTag",""],["aria-label","delete",1,"k-select"],[1,"k-icon","k-i-close",3,"mousedown"],[4,"ngIf"],[3,"ngIf"],[3,"templateContext"]],template:function(t,r){1&t&&(n.TgZ(0,"ul",0),n.YNc(1,G0e,8,11,"li",1),n.qZA()),2&t&&(n.uIk("id",r.id),n.xp6(1),n.Q6J("ngForOf",r.tags))},dependencies:function(){return[gt,Bt,Ge,gT,jp]},encapsulation:2}),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"tags",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"textField",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"valueDepth",void 0),re([(0,n.IIB)(),ee("design:type",Number)],i.prototype,"focused",void 0),re([(0,n.IIB)(),ee("design:type",cm)],i.prototype,"template",void 0),re([(0,n.IIB)(),ee("design:type",dm)],i.prototype,"groupTemplate",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"disabled",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"tagPrefix",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"id",void 0),re([(0,n.IIB)(),ee("design:type",Set)],i.prototype,"disabledIndices",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"removeTag",void 0),i})(),fE=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{noDataText:"noDataText",clearTitle:"clearTitle",checkAllText:"checkAllText"},features:[n.qOj]}),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"noDataText",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"clearTitle",void 0),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"checkAllText",void 0),i})();var K7;let ac=K7=class extends fE{constructor(o){super(),this.service=o}};var X7;ac.\u0275fac=function(o){return new(o||ac)(n.Y36(Te))},ac.\u0275dir=n.lG2({type:ac,selectors:[["","kendoDropDownListLocalizedMessages",""],["","kendoDropDownTreeLocalizedMessages",""],["","kendoComboBoxLocalizedMessages",""],["","kendoMultiColumnComboBoxLocalizedMessages",""],["","kendoAutoCompleteLocalizedMessages",""],["","kendoMultiSelectLocalizedMessages",""],["","kendoMultiSelectTreeLocalizedMessages",""]],features:[n._Bn([{provide:fE,useExisting:(0,n.Gpc)(()=>K7)}]),n.qOj]}),ac=K7=re([ee("design:paramtypes",[Te])],ac);let o0=X7=class extends fE{constructor(o){super(),this.service=o}get override(){return!0}};o0.\u0275fac=function(o){return new(o||o0)(n.Y36(Te))},o0.\u0275cmp=n.Xpm({type:o0,selectors:[["kendo-dropdownlist-messages"],["kendo-combobox-messages"],["kendo-multicolumncombobox-messages"],["kendo-autocomplete-messages"],["kendo-multiselect-messages"],["kendo-dropdowntree-messages"],["kendo-multiselecttree-messages"]],features:[n._Bn([{provide:fE,useExisting:(0,n.Gpc)(()=>X7)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),o0=X7=re([ee("design:paramtypes",[Te])],o0);const xbe={caseSensitive:!1,operator:"startsWith"};let bJ=(()=>{let i=class{constructor(t){this.component=t,this.filterable=!0,this._data=[]}set data(t){this._data=t||[]}get data(){return this._data}ngOnInit(){this.component.filterable=this.filterable,this.filterChangeSubscription=this.component.filterChange.subscribe(this.handleFilterChange.bind(this))}ngOnDestroy(){je(this.filterChangeSubscription)&&this.filterChangeSubscription.unsubscribe()}handleFilterChange(t){this.component.data=this.data.filter(r=>this.matchesAnyField(r,t))}matchesAnyField(t,r){const s=this.normalizeValue(r),{fields:l}=this.filterSettings;return 0===l.length?this.checkItem(t,s):l.some(u=>this.checkItem(Yt(t,u),s))}checkItem(t,r){return t=this.normalizeValue(t),"contains"===this.filterSettings.operator?-1!==t.indexOf(r):0===t.indexOf(r)}normalizeValue(t){const r=je(t)?t.toString():"";return this.filterSettings.caseSensitive?r:r.toLowerCase()}getFilterFields(t){return this.component.textField||this.component.valueField?ol(t)&&t.length>0?t:[this.component.textField||this.component.valueField]:[]}get filterSettings(){const t=this.rawSettings,r=je(t)&&"object"==typeof t?t.fields:[];return Object.assign({},xbe,t,{fields:this.getFilterFields(r)})}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(t0))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownFilter",""]],inputs:{filterable:"filterable",data:"data",rawSettings:["kendoDropDownFilter","rawSettings"]}}),re([(0,n.IIB)(),ee("design:type",Array),ee("design:paramtypes",[Array])],i.prototype,"data",null),re([(0,n.IIB)("kendoDropDownFilter"),ee("design:type",Object)],i.prototype,"rawSettings",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"filterable",void 0),i=re([ee("design:paramtypes",[t0])],i),i})(),mE=(()=>{let i=class{constructor(t,r){this.element=t,this.zone=r}ngOnChanges(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(t){this.zone.runOutsideAngular(()=>setTimeout(t))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","filterInput",""]],inputs:{focused:["filterInput","focused"]},features:[n.TTD]}),re([(0,n.IIB)("filterInput"),ee("design:type",Boolean)],i.prototype,"focused",void 0),i=re([ee("design:paramtypes",[n.SBq,n.R0b])],i),i})(),r0=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),_E=(()=>{let i=class{constructor(t){this.checkboxes={enabled:!1},this.multipleSelection=!1,this.selectionService=t}get focusedClassName(){return this.selectionService.isFocused(this.index)}get selectedClassName(){return!this.checkboxes.enabled&&this.selectionService.isSelected(this.index)}onClick(t){t.stopPropagation(),(!this.checkboxes.enabled||this.checkboxes.checkOnClick)&&(this.multipleSelection?this.selectionService.isSelected(this.index)?this.selectionService.unselect(this.index):this.selectionService.add(this.index):this.selectionService.change(this.index))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(ra))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDropDownsSelectable",""]],hostVars:9,hostBindings:function(t,r){1&t&&n.NdJ("click",function(l){return r.onClick(l)}),2&t&&(n.uIk("index",r.index),n.Udp("height",r.height,"px")("min-height",r.height,"px"),n.ekj("k-state-focused",r.focusedClassName)("k-state-selected",r.selectedClassName))},inputs:{checkboxes:"checkboxes",multipleSelection:"multipleSelection",index:"index",height:"height"}}),re([(0,n.pfw)("attr.index"),(0,n.IIB)(),ee("design:type",Number)],i.prototype,"index",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"checkboxes",void 0),re([(0,n.pfw)("style.height.px"),(0,n.pfw)("style.minHeight.px"),(0,n.IIB)(),ee("design:type",Number)],i.prototype,"height",void 0),re([(0,n.IIB)(),ee("design:type",Boolean)],i.prototype,"multipleSelection",void 0),re([(0,n.pfw)("class.k-state-focused"),ee("design:type",Boolean),ee("design:paramtypes",[])],i.prototype,"focusedClassName",null),re([(0,n.pfw)("class.k-state-selected"),ee("design:type",Boolean),ee("design:paramtypes",[])],i.prototype,"selectedClassName",null),re([(0,n.L6J)("click",["$event"]),ee("design:type",Function),ee("design:paramtypes",[Object]),ee("design:returntype",void 0)],i.prototype,"onClick",null),i=re([ee("design:paramtypes",[ra])],i),i})(),jp=(()=>{let i=class{constructor(t){this.viewContainerRef=t}set templateContext(t){this.insertedViewRef&&(this.viewContainerRef.remove(this.viewContainerRef.indexOf(this.insertedViewRef)),this.insertedViewRef=void 0),t.templateRef&&(this.insertedViewRef=this.viewContainerRef.createEmbeddedView(t.templateRef,t))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b))},i.\u0275dir=n.lG2({type:i,selectors:[["","templateContext",""]],inputs:{templateContext:"templateContext"}}),re([(0,n.IIB)(),ee("design:type",Object),ee("design:paramtypes",[Object])],i.prototype,"templateContext",null),i=re([ee("design:paramtypes",[n.s_b])],i),i})(),vJ=(()=>{class i{addItem(t){if(this.isItemChecked(t))return;const r=z7(t.index),s=Object.assign({},t,{level:r});this.checkedItems.push(s),this.checkedKeys.add(sm(s,this.valueField))}removeItem(t){if(!this.isItemChecked(t))return;const r=z7(t.index),s=Object.assign({},t,{level:r});this.checkedItems=this.checkedItems.filter(l=>sm(l,this.valueField)!==sm(s,this.valueField)),this.checkedKeys.delete(sm(s,this.valueField))}isItemChecked(t){return this.checkedKeys.has(sm(t,this.valueField))}updateItems(){this.checkedItems=this.checkedItems||[],this.checkedKeys=new Set(this.checkedItems.map(t=>sm(t,this.valueField)))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,inputs:{checkedItems:"checkedItems",valueField:"valueField"}}),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"checkedItems",void 0),i})(),yJ=(()=>{let i=class extends vJ{constructor(t){super(),this.treeView=t,this.checkedItemsChange=new n.vpe,this.checkedKeys=new Set,this.subscriptions=new bn.w,this.subscriptions.add(this.treeView.checkedChange.subscribe(this.handleCheckedChange.bind(this))),this.treeView.isChecked=this.getCheckedState.bind(this)}ngOnChanges(t){je(t.checkable)&&this.toggleCheckOnClick(),je(t.checkedItems)&&this.updateItems()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.unsubscribeClick()}getCheckedState(t,r){return this.isItemChecked({dataItem:t,index:r})?"checked":this.checkable.checkChildren&&this.isItemIndeterminate(this.treeView.itemLookup(r))?"indeterminate":"none"}handleCheckedChange(t){this.checkNode(t),this.checkable.checkChildren&&this.checkParents(t.parent),this.checkedItemsChange.emit(this.checkedItems.slice())}toggleCheckOnClick(){this.unsubscribeClick(),this.checkable.checkOnClick&&(this.clickSubscription=this.treeView.nodeClick.pipe(Wt(t=>"click"===t.type)).subscribe(t=>{const r=this.treeView.itemLookup(t.item.index);this.handleCheckedChange(r)}))}unsubscribeClick(){this.clickSubscription&&(this.clickSubscription.unsubscribe(),this.clickSubscription=null)}checkNode(t){if(this.treeView.isDisabled(t.item.dataItem,t.item.index))return;const r=t.item,s=[r];this.checkable.checkChildren&&G7(t,p=>this.treeView.isVisible(p.dataItem,p.index)&&!this.treeView.isDisabled(p.dataItem,p.index)).forEach(p=>s.push(p.item));const l=!this.isItemChecked(r);s.forEach(u=>{l?this.addItem(u):this.removeItem(u)})}checkParents(t){let r=t;for(;r;)r.children.every(l=>this.isItemChecked(l))?this.addItem(r.item):this.removeItem(r.item),r=r.parent}isItemIndeterminate(t){const r=t.children;if(!Array.isArray(r)||0===r.length)return!1;let s=0,l=r[s];for(;je(l);){if(this.isItemChecked(l.item)||this.isItemIndeterminate(l))return!0;s+=1,l=r[s]}return!1}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Or))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoMultiSelectTreeCheckable",""]],inputs:{checkable:"checkable",valueField:"valueField",checkedItems:"checkedItems"},outputs:{checkedItemsChange:"checkedItemsChange"},features:[n.qOj,n.TTD]}),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"checkable",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"valueField",void 0),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"checkedItems",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"checkedItemsChange",void 0),i=re([ee("design:paramtypes",[Or])],i),i})(),CJ=(()=>{let i=class extends vJ{constructor(t,r,s,l){super(),this.element=t,this.zone=r,this.cdr=s,this.renderer=l,this.checkedItemsChange=new n.vpe,this.checkedKeys=new Set}handleChange(t){this.currentCheckedState=t.checked,this.currentIndeterminateState=this.isIndeterminate,this.treeview.nodes.map((r,s)=>{const l=String(s),u=this.treeview.itemLookup(l);this.checkNode(u)}),this.checkedItemsChange.emit(this.checkedItems.slice())}get isIndeterminate(){const t=this.treeview.nodes.some((r,s)=>{const l=String(s),u=this.treeview.itemLookup(l);return this.someChecked(u)});return!this.isChecked&&t}get isChecked(){return this.treeview.nodes.every((r,s)=>{const l=String(s),u=this.treeview.itemLookup(l);return this.allChecked(u)})}ngOnChanges(t){je(t.checkedItems)&&(this.updateItems(),this.renderer.setProperty(this.element.nativeElement,"checked",this.isChecked),this.renderer.setProperty(this.element.nativeElement,"indeterminate",this.isIndeterminate))}ngOnInit(){this.focused&&this.nextTick(()=>this.element.nativeElement.focus())}nextTick(t){this.zone.runOutsideAngular(()=>setTimeout(t))}checkNode(t){if(this.treeview.isDisabled(t.item.dataItem,t.item.index))return;const r=[];r.push(t.item),G7(t,l=>this.treeview.isVisible(l.dataItem,l.index)&&!this.treeview.isDisabled(l.dataItem,l.index)).forEach(l=>r.push(l.item)),r.forEach(l=>{this.currentIndeterminateState?"check"===this.lastAction?this.addItem(l):this.removeItem(l):this.currentCheckedState?this.addItem(l):this.removeItem(l)})}allChecked(t){const r=t&&t.children;return Array.isArray(r)?r.every(l=>l.children.length?this.isItemChecked(l.item)&&this.allChecked(l):this.isItemChecked(l.item))&&this.isItemChecked(t.item):void 0}someChecked(t){const r=t&&t.children;return Array.isArray(r)?r.some(l=>l.children.length?this.isItemChecked(l.item)||this.someChecked(l):this.isItemChecked(l.item))||this.isItemChecked(t.item):void 0}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.sBO),n.Y36(n.Qsj))},i.\u0275dir=n.lG2({type:i,selectors:[["","checkAll",""]],hostBindings:function(t,r){1&t&&n.NdJ("change",function(l){return r.handleChange(l.target)})},inputs:{lastAction:"lastAction",treeview:"treeview",checkedItems:"checkedItems",valueField:"valueField",focused:["checkAll","focused"]},outputs:{checkedItemsChange:"checkedItemsChange"},features:[n.qOj,n.TTD]}),re([(0,n.IIB)(),ee("design:type",String)],i.prototype,"lastAction",void 0),re([(0,n.IIB)(),ee("design:type",Or)],i.prototype,"treeview",void 0),re([(0,n.IIB)(),ee("design:type",Array)],i.prototype,"checkedItems",void 0),re([(0,n.IIB)(),ee("design:type",Object)],i.prototype,"valueField",void 0),re([(0,n.IIB)("checkAll"),ee("design:type",Boolean)],i.prototype,"focused",void 0),re([(0,n.r_U)(),ee("design:type",n.vpe)],i.prototype,"checkedItemsChange",void 0),re([(0,n.L6J)("change",["$event.target"]),ee("design:type",Function),ee("design:paramtypes",[Object]),ee("design:returntype",void 0)],i.prototype,"handleChange",null),i=re([ee("design:paramtypes",[n.SBq,n.R0b,n.sBO,n.Qsj])],i),i})(),_T=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Sx,Eu,cg,r0,bs,Lt,Sx,Eu,cg,r0,bs]}),i})(),Tbe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_T,Qme,r0]}),i})(),wbe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_T,r0]}),i})();const Mbe=iT;let Dbe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:rl,useValue:Mbe}],imports:[_T,r0]}),i})(),kbe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[_T,r0]}),i})();const Ibe=iT;let Ebe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:rl,useValue:Ibe}],imports:[_T,r0]}),i})(),Pbe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[wbe,Dbe,kbe,Ebe,Tbe]}),i})();function ht(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function sc(i,o){return function(t,r){o(t,r,i)}}function qe(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}function ke(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function vE(i,o){return function(t,r){o(t,r,i)}}function _e(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}let bT=(()=>{let i=class{constructor(){this.buttonLookChange=new Qn("default"),this.buttonClicked=new Ht.xQ,this.buttonClicked$=this.buttonClicked.asObservable()}click(t){this.buttonClicked.next(t)}setButtonLook(t){this.buttonLookChange.next(t)}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const AE={name:"@progress/kendo-angular-buttons",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635937762,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let Mg=(()=>{let i=class{constructor(t,r,s,l,u){this.service=s,this.ngZone=u,this.toggleable=!1,this.primary=!1,this.look="default",this.role="button",this.selectedChange=new n.vpe,this.click=new n.vpe,this.isDisabled=!1,this.isIcon=!1,this.isIconClass=!1,this._focused=!1,this.domEvents=[],(0,mi.s)(AE),this.direction=l.rtl?"rtl":"ltr",this.localizationChangeSubscription=l.changes.subscribe(({rtl:p})=>this.direction=p?"rtl":"ltr"),this.element=t.nativeElement,this.renderer=r}get togglable(){return this.toggleable}set togglable(t){this.toggleable=t}get selected(){return this._selected||!1}set selected(t){this._selected=t}set tabIndex(t){this.element.tabIndex=t}get tabIndex(){return this.element.tabIndex}set icon(t){t?this.iconSetter(t,()=>{this.isIcon=!0,this.addIcon("k-icon k-i-"+t)}):(this.isIcon=!1,this.updateIconNode())}set iconClass(t){t?this.iconSetter(t,()=>{this.isIconClass=!0,this.addIcon(t)}):(this.isIconClass=!1,this.updateIconNode())}set imageUrl(t){t?this.iconSetter(t,this.addImgIcon.bind(this)):this.removeImageNode()}set disabled(t){this.isDisabled=t,this.renderer.setProperty(this.element,"disabled",t)}get disabled(){return this.isDisabled}set isFocused(t){this.toggleClass("k-state-focused",t),this._focused=t}get isFocused(){return this._focused}get classButton(){return!0}get classPrimary(){return this.primary}get isToggleable(){return this.toggleable}get isFlat(){return"flat"===this.look}get isBare(){return"bare"===this.look}get isOutline(){return"outline"===this.look}get isClear(){return"clear"===this.look}get roleSetter(){return this.role}get classDisabled(){return this.isDisabled}get classActive(){return this.selected}get getDirection(){return this.direction}onFocus(){this.isFocused=!0}onBlur(){this.isFocused=!1}ngOnInit(){const t="SPAN"===this.element.tagName;this.service&&(this.buttonLookChangeSubscription=this.service.buttonLookChange.pipe(Wt(r=>"default"!==r)).subscribe(r=>this.look=r)),!this.element.hasAttribute("role")&&this.togglable&&this.toggleAriaPressed(this.toggleable),this.role&&this.setAttribute("role",this.role),this.ngZone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element,"click",this._onButtonClick.bind(this))),this.domEvents.push(this.renderer.listen(this.element,"keydown",r=>{t&&(r.keyCode===Ie.Space||r.keyCode===Ie.Enter)&&(this.click.emit(r),this._onButtonClick())}))})}ngOnChanges(t){(cr("togglable",t)||cr("toggleable",t))&&this.toggleAriaPressed(this.toggleable)}ngAfterViewChecked(){this.setIconTextClasses()}ngOnDestroy(){this.imageNode=null,this.iconNode=null,this.renderer=null,this.localizationChangeSubscription.unsubscribe(),this.service&&this.buttonLookChangeSubscription&&this.buttonLookChangeSubscription.unsubscribe(),clearTimeout(this.deferTimeout),this.domEvents.forEach(t=>t())}focus(){Dt()&&(this.element.focus(),this.isFocused=!0)}blur(){Dt()&&(this.element.blur(),this.isFocused=!1)}setAttribute(t,r){this.renderer.setAttribute(this.element,t,r)}removeAttribute(t){this.renderer.removeAttribute(this.element,t)}setSelected(t){const r=this.selected!==t;this.selected=t,this.setAttribute("aria-pressed",this.selected.toString()),this.toggleClass("k-state-selected",this.selected),r&&Ut(this.selectedChange)&&this.ngZone.run(()=>{this.selectedChange.emit(t)})}toggleAriaPressed(t){!Dt()||(t?this.setAttribute("aria-pressed",this.selected.toString()):this.removeAttribute("aria-pressed"))}hasText(){return!!Dt()&&String(this.element.textContent).trim().length>0}addImgIcon(t){let r=this.renderer;this.imageNode?r.setProperty(this.imageNode,"src",t):Dt()&&(this.imageNode=r.createElement("img"),r.setProperty(this.imageNode,"src",t),r.setProperty(this.imageNode,"className","k-image"),r.setAttribute(this.imageNode,"role","presentation"),this.prependChild(this.imageNode))}addIcon(t){let r=this.renderer;this.iconNode?r.setProperty(this.iconNode,"className",t):Dt()&&(this.iconNode=r.createElement("span"),r.setProperty(this.iconNode,"className",t),r.setAttribute(this.iconNode,"role","presentation"),this.prependChild(this.iconNode))}prependChild(t){this.defer(()=>{this.renderer&&t!==this.element.firstChild&&this.renderer.insertBefore(this.element,t,this.element.firstChild)})}defer(t){this.ngZone.runOutsideAngular(()=>{this.deferTimeout=setTimeout(t,0)})}iconSetter(t,r){t&&r(t),this.setIconTextClasses()}removeImageNode(){this.imageNode&&this.renderer.parentNode(this.imageNode)&&(this.renderer.removeChild(this.element,this.imageNode),this.imageNode=null)}removeIconNode(){this.iconNode&&this.renderer.parentNode(this.iconNode)&&(this.renderer.removeChild(this.element,this.iconNode),this.iconNode=null)}updateIconNode(){!this.isIcon&&!this.isIconClass&&this.removeIconNode()}setIconTextClasses(){const t=this.isIcon||this.isIconClass||this.imageNode,r=this.hasText();this.toggleClass("k-button-icon",t&&!r),this.toggleClass("k-button-icontext",t&&r)}toggleClass(t,r){r?this.renderer.addClass(this.element,t):this.renderer.removeClass(this.element,t)}_onButtonClick(){!this.disabled&&this.service&&this.ngZone.run(()=>{this.service.click(this)}),this.togglable&&!this.service&&this.setSelected(!this.selected)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(bT,8),n.Y36(Te),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["button","kendoButton",""],["span","kendoButton",""]],hostVars:21,hostBindings:function(t,r){1&t&&n.NdJ("focus",function(){return r.onFocus()})("blur",function(){return r.onBlur()}),2&t&&(n.uIk("role",r.roleSetter)("aria-disabled",r.classDisabled)("dir",r.getDirection),n.ekj("k-button",r.classButton)("k-primary",r.classPrimary)("k-toggle-button",r.isToggleable)("k-flat",r.isFlat)("k-bare",r.isBare)("k-outline",r.isOutline)("k-button-clear",r.isClear)("k-state-disabled",r.classDisabled)("k-state-selected",r.classActive))},inputs:{toggleable:"toggleable",primary:"primary",look:"look",role:"role",togglable:"togglable",selected:"selected",tabIndex:"tabIndex",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled"},outputs:{selectedChange:"selectedChange",click:"click"},exportAs:["kendoButton"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.button"}]),n.TTD]}),ke([(0,n.IIB)(),_e("design:type",Boolean)],i.prototype,"toggleable",void 0),ke([(0,n.IIB)(),_e("design:type",Boolean),_e("design:paramtypes",[Boolean])],i.prototype,"togglable",null),ke([(0,n.IIB)(),_e("design:type",Boolean)],i.prototype,"primary",void 0),ke([(0,n.IIB)(),_e("design:type",String)],i.prototype,"look",void 0),ke([(0,n.IIB)(),_e("design:type",Boolean),_e("design:paramtypes",[Boolean])],i.prototype,"selected",null),ke([(0,n.IIB)(),_e("design:type",Number),_e("design:paramtypes",[Number])],i.prototype,"tabIndex",null),ke([(0,n.IIB)(),_e("design:type",String),_e("design:paramtypes",[String])],i.prototype,"icon",null),ke([(0,n.IIB)(),_e("design:type",String),_e("design:paramtypes",[String])],i.prototype,"iconClass",null),ke([(0,n.IIB)(),_e("design:type",String),_e("design:paramtypes",[String])],i.prototype,"imageUrl",null),ke([(0,n.IIB)(),_e("design:type",Boolean),_e("design:paramtypes",[Boolean])],i.prototype,"disabled",null),ke([(0,n.IIB)(),_e("design:type",String)],i.prototype,"role",void 0),ke([(0,n.r_U)(),_e("design:type",n.vpe)],i.prototype,"selectedChange",void 0),ke([(0,n.r_U)(),_e("design:type",n.vpe)],i.prototype,"click",void 0),ke([(0,n.pfw)("class.k-button"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"classButton",null),ke([(0,n.pfw)("class.k-primary"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"classPrimary",null),ke([(0,n.pfw)("class.k-toggle-button"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"isToggleable",null),ke([(0,n.pfw)("class.k-flat"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"isFlat",null),ke([(0,n.pfw)("class.k-bare"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"isBare",null),ke([(0,n.pfw)("class.k-outline"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"isOutline",null),ke([(0,n.pfw)("class.k-button-clear"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"isClear",null),ke([(0,n.pfw)("attr.role"),_e("design:type",String),_e("design:paramtypes",[])],i.prototype,"roleSetter",null),ke([(0,n.pfw)("attr.aria-disabled"),(0,n.pfw)("class.k-state-disabled"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"classDisabled",null),ke([(0,n.pfw)("class.k-state-selected"),_e("design:type",Boolean),_e("design:paramtypes",[])],i.prototype,"classActive",null),ke([(0,n.pfw)("attr.dir"),_e("design:type",String),_e("design:paramtypes",[])],i.prototype,"getDirection",null),ke([(0,n.L6J)("focus"),_e("design:type",Function),_e("design:paramtypes",[]),_e("design:returntype",void 0)],i.prototype,"onFocus",null),ke([(0,n.L6J)("blur"),_e("design:type",Function),_e("design:paramtypes",[]),_e("design:returntype",void 0)],i.prototype,"onBlur",null),i=ke([vE(2,(0,n.FiY)()),_e("design:paramtypes",[n.SBq,n.Qsj,bT,Te,n.R0b])],i),i})();Promise.resolve(null);let vT=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();new n.OlP("navigation.config");let wE=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{splitButtonLabel:"splitButtonLabel"},features:[n.qOj]}),ke([(0,n.IIB)(),_e("design:type",String)],i.prototype,"splitButtonLabel",void 0),i})();var rR;let l0=rR=class extends wE{constructor(o){super(),this.service=o}};var aR;l0.\u0275fac=function(o){return new(o||l0)(n.Y36(Te))},l0.\u0275dir=n.lG2({type:l0,selectors:[["","kendoSplitButtonLocalizedMessages",""]],features:[n._Bn([{provide:wE,useExisting:(0,n.Gpc)(()=>rR)}]),n.qOj]}),l0=rR=ke([_e("design:paramtypes",[Te])],l0);let Ey=aR=class extends wE{constructor(o){super(),this.service=o}get override(){return!0}};function Lve(i,o){1&i&&n.Hsn(0,0,["*ngIf","!actions"])}function Rve(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",2),n.NdJ("click",function(s){const u=n.CHM(t).$implicit,p=n.oxw(2);return n.KtG(p.onButtonClick(u,s))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit,r=n.oxw(2);n.Q6J("ngClass",r.buttonClass(t)),n.uIk("aria-label",t.text),n.xp6(1),n.hij(" ",t.text," ")}}function Fve(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Rve,2,3,"button",1),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.actions)}}function Bve(i,o){}function Hve(i,o){if(1&i&&n.YNc(0,Bve,0,0,"ng-template",3),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",t.actions)}}Ey.\u0275fac=function(o){return new(o||Ey)(n.Y36(Te))},Ey.\u0275cmp=n.Xpm({type:Ey,selectors:[["kendo-splitbutton-messages"]],features:[n._Bn([{provide:wE,useExisting:(0,n.Gpc)(()=>aR)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),Ey=aR=ke([_e("design:paramtypes",[Te])],Ey);const dR=["*"];function $ve(i,o){if(1&i&&(n.TgZ(0,"kendo-dialog-titlebar",7),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.Q6J("closeTitle",t.closeTitle)("id",t.titleId),n.xp6(1),n.Oqu(t.title)}}function Uve(i,o){1&i&&n.Hsn(0,0,["*ngIf","!title"])}function Yve(i,o){1&i&&n.Hsn(0,1,["*ngIf","!contentTemplate"])}function jve(i,o){}function Zve(i,o){if(1&i&&n.YNc(0,jve,0,0,"ng-template",8),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",t.contentTemplate)}}function Vve(i,o){1&i&&n.Hsn(0,2,["*ngIf","!actions"])}function zve(i,o){if(1&i&&n._UZ(0,"kendo-dialog-actions",9),2&i){const t=n.oxw();n.Q6J("actions",t.actions)("layout",t.actionsLayout)}}const Gve=[[["kendo-dialog-titlebar"]],"*",[["kendo-dialog-actions"]]],qve=["kendo-dialog-titlebar","*","kendo-dialog-actions"];function Jve(i,o){1&i&&n.Hsn(0,0,["*ngIf","!template"])}function Qve(i,o){}const Wve=function(i){return{$implicit:i}};function Kve(i,o){if(1&i&&n.YNc(0,Qve,0,0,"ng-template",1),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",n.VKq(2,Wve,t.service))}}function Xve(i,o){if(1&i&&(n.TgZ(0,"kendo-window-titlebar",5)(1,"div",6),n._uU(2),n.qZA(),n.TgZ(3,"div",7),n._UZ(4,"button",8)(5,"button",9)(6,"button",10)(7,"button",11),n.qZA()()),2&i){const t=n.oxw();n.Q6J("template",t.titleBarTemplate),n.xp6(2),n.Oqu(t.title),n.xp6(2),n.uIk("title",t.minimizeButtonTitle)("aria-label",t.minimizeButtonTitle),n.xp6(1),n.uIk("title",t.maximizeButtonTitle)("aria-label",t.maximizeButtonTitle),n.xp6(1),n.uIk("title",t.restoreButtonTitle)("aria-label",t.restoreButtonTitle),n.xp6(1),n.uIk("title",t.closeButtonTitle)("aria-label",t.closeButtonTitle)}}function eye(i,o){1&i&&n.Hsn(0,0,["*ngIf","!showDefaultTitleBar"])}function tye(i,o){1&i&&n.Hsn(0,1,["*ngIf","!contentTemplate"])}function nye(i,o){}function iye(i,o){if(1&i&&n.YNc(0,nye,0,0,"ng-template",13),2&i){const t=n.oxw(2);n.Q6J("ngTemplateOutlet",t.contentTemplate)}}function oye(i,o){if(1&i&&(n.TgZ(0,"div",12),n.YNc(1,tye,1,0,"ng-content",2),n.YNc(2,iye,1,1,null,2),n.qZA()),2&i){const t=n.oxw();n.Q6J("hidden","minimized"===t.state&&t.keepContent),n.xp6(1),n.Q6J("ngIf",!t.contentTemplate),n.xp6(1),n.Q6J("ngIf",t.contentTemplate)}}function rye(i,o){1&i&&n._UZ(0,"div",15),2&i&&n.Q6J("direction",o.$implicit)}function aye(i,o){if(1&i&&n.YNc(0,rye,1,1,"div",14),2&i){const t=n.oxw();n.Q6J("ngForOf",t.resizeDirections)}}const sye=[[["kendo-window-titlebar"]],"*"],lye=["kendo-window-titlebar","*"],ui=i=>null!=i,PJ=i=>String(i).trim().split(" "),dye=/^(?:a|input|select|textarea|button|object)$/i;var Ro=(()=>(function(i){i[i.esc=27]="esc",i[i.tab=9]="tab",i[i.enter=13]="enter",i[i.space=32]="space",i[i.ctrl=17]="ctrl",i[i.shift=16]="shift",i[i.left=37]="left",i[i.up=38]="up",i[i.right=39]="right",i[i.down=40]="down"}(Ro||(Ro={})),Ro))();const OJ="k-dialog-wrapper k-dialog-buttongroup k-dialog-action",Py=(i,o)=>{const t=PJ(o);return Boolean(PJ(i.className).find(r=>t.indexOf(r)>=0))},NJ=(i,o=!0)=>{if(i.tagName){const t=i.tagName.toLowerCase(),r=i.getAttribute("tabIndex"),s=null!==r&&!isNaN(r)&&r>-1;let l=!1;return l=dye.test(t)?!i.disabled:s,l&&(!o||(i=>{const o=i.getBoundingClientRect();return!(!o.width||!o.height)&&"hidden"!==window.getComputedStyle(i).visibility})(i))}return!1},LJ=(i,o,t)=>{for(const r in i)r&&o.setAttribute(t,r,i[r])},AT=i=>vye(i)?gye(i):uR(i)?fye(i):Array.isArray(i)?mye(i):void 0,gye=i=>{const o=[];return Object.keys(i).forEach(t=>{const r=pR(t);i[t]&&r[0]&&o.push(...r)}),o},fye=i=>{const o=[];return pR(i).forEach(r=>{o.push(r)}),o},mye=i=>{const o=[];return i.forEach(t=>{const r=pR(t);r[0]&&o.push(...r)}),o},_ye=["a[href]","area[href]","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"].join(","),RJ=({originalEvent:i})=>{i.stopPropagation(),i.preventDefault()},bye=["n","e","s","w","se","sw","ne","nw"],xT=["top","left","width","height"],uR=i=>i instanceof String||"string"==typeof i,vye=i=>ui(i)&&!Array.isArray(i)&&"object"==typeof i,Oy=i=>i+((i=>"number"==typeof i&&isFinite(i))(i)?"px":""),pR=i=>i.trim().replace(/\s+/g," ").split(" ");let pm=(()=>{let i=class{constructor(t){this.el=t,this.layout="stretched",this.action=new n.vpe,this.buttonGroupClassName=!0}get className(){return"stretched"===this.layout}actionTemplate(){return this.actions instanceof n.Rgc}onButtonClick(t,r){this.action.emit(t)}buttonClass(t){let r=["k-button k-button-md k-rounded-md"];const s=t.fillMode?t.fillMode:"solid",l=t.themeColor?t.themeColor:"base",u=t.cssClass?AT(t.cssClass):[];return r.push(`k-button-${s} k-button-${s}-${l}`),u.length>0&&(r=r.concat(u)),r.join(" ")}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-dialog-actions"]],hostVars:6,hostBindings:function(t,r){2&t&&n.ekj("k-dialog-buttongroup",r.buttonGroupClassName)("k-actions",r.buttonGroupClassName)("k-actions-stretched",r.className)},inputs:{layout:"layout",actions:"actions"},outputs:{action:"action"},ngContentSelectors:dR,decls:3,vars:3,consts:[[4,"ngIf"],["type","button",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button",3,"ngClass","click"],[3,"ngTemplateOutlet"]],template:function(t,r){1&t&&(n.F$t(),n.YNc(0,Lve,1,0,"ng-content",0),n.YNc(1,Fve,2,1,"ng-container",0),n.YNc(2,Hve,1,1,null,0)),2&t&&(n.Q6J("ngIf",!r.actions),n.xp6(1),n.Q6J("ngIf",!r.actionTemplate()),n.xp6(1),n.Q6J("ngIf",r.actionTemplate()))},dependencies:[gt,Bt,Ge,Pi],encapsulation:2}),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"actions",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"layout",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"action",void 0),ht([(0,n.pfw)("class.k-dialog-buttongroup"),(0,n.pfw)("class.k-actions"),qe("design:type",Boolean)],i.prototype,"buttonGroupClassName",void 0),ht([(0,n.pfw)("class.k-actions-stretched"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"className",null),i=ht([qe("design:paramtypes",[n.SBq])],i),i})();class hR{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const gR=new n.OlP("Dialog LocalizationService");let FJ=(()=>{let i=class extends Te{constructor(t,r,s,l){super(t,r,s),this.dialogLocalization=l}get(t){return this.dialogLocalization?this.dialogLocalization.get(t):super.get(t)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(gn),n.LFG(Mk,8),n.LFG(nc,8),n.LFG(gR,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ht([sc(0,(0,n.tBr)(gn)),sc(1,(0,n.FiY)()),sc(2,(0,n.FiY)()),sc(2,(0,n.tBr)(nc)),sc(3,(0,n.FiY)()),sc(3,(0,n.tBr)(gR)),qe("design:paramtypes",[String,Mk,Boolean,Te])],i),i})(),kg=(()=>{let i=class{constructor(t,r,s){this.zone=t,this.hostElement=r,this.localizationService=s,this.close=new n.vpe}get className(){return!0}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}ngAfterViewInit(){this.zone.onStable.pipe($i(1)).subscribe(()=>{this.hostElement.nativeElement.querySelector(".k-dialog-title").setAttribute("id",this.id)})}onCloseClick(t){t.preventDefault();const r=new hR;this.close.emit(r)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(Te,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-dialog-titlebar"]],hostVars:4,hostBindings:function(t,r){2&t&&n.ekj("k-window-titlebar",r.className)("k-dialog-titlebar",r.className)},inputs:{id:"id",closeTitle:"closeTitle"},outputs:{close:"close"},features:[n._Bn([FJ,{provide:Te,useExisting:FJ},{provide:gn,useValue:"kendo.dialog"}])],ngContentSelectors:dR,decls:6,vars:2,consts:function(){let o;return o="Close",[["kendoDialogTitleBarLocalizedMessages","","closeTitle",o],[1,"k-window-title","k-dialog-title"],[1,"k-window-actions","k-dialog-actions"],["role","button",1,"k-button","k-button-md","k-rounded-md","k-button-flat","k-button-flat-base","k-icon-button","k-window-action","k-dialog-action","k-dialog-close",3,"click"],[1,"k-button-icon","k-icon","k-i-x"]]},template:function(t,r){1&t&&(n.F$t(),n.ynx(0,0),n.TgZ(1,"div",1),n.Hsn(2),n.qZA(),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(l){return r.onCloseClick(l)}),n._UZ(5,"span",4),n.qZA()(),n.BQk()),2&t&&(n.xp6(4),n.uIk("title",r.closeButtonTitle)("aria-label",r.closeButtonTitle))},dependencies:function(){return[Vp]},encapsulation:2}),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"close",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"id",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"closeTitle",void 0),ht([(0,n.pfw)("class.k-window-titlebar"),(0,n.pfw)("class.k-dialog-titlebar"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"className",null),i=ht([sc(2,(0,n.FiY)()),qe("design:paramtypes",[n.R0b,n.SBq,Te])],i),i})();const BJ={name:"@progress/kendo-angular-dialog",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646217112,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};class hm{}class HJ{}let fR=(()=>{let i=class{constructor(t,r,s,l,u){this.wrapper=t,this.renderer=r,this.cdr=l,this.ngZone=u,this.actionsLayout="stretched",this.titleId=null,this.contentId=null,this.action=new n.vpe,this.close=new n.vpe,this.tabIndex=0,this.subscriptions=[],this.domSubs=new bn.w,(0,mi.s)(BJ),this.direction=s.rtl?"rtl":"ltr",this.subscriptions.push(s.changes.subscribe(({rtl:p})=>this.direction=p?"rtl":"ltr")),this.titleId=this.generateTitleId(),this.contentId=this.generateContentId()}set htmlAttributes(t){LJ(t,this.renderer,this.wrapper.nativeElement);const r=this.wrapper.nativeElement,s=r.getAttribute("dir"),l=r.getAttribute("tabindex");this.direction!==s&&s&&(this.direction=s),this.tabIndex!==l&&l&&(this.tabIndex=l),this._htmlAttributes=t}get htmlAttributes(){return this._htmlAttributes}set cssClass(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t}get cssClass(){return this._cssClass}get dir(){return this.direction}ngAfterContentInit(){this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-describedby",this.contentId),this.titlebarContent.first?this.titlebarContent.first.id=this.titleId:this.subscriptions.push(this.titlebarContent.changes.subscribe(()=>{ui(this.titlebarContent.first)&&(this.titlebarContent.first.id=this.titleId,this.ngZone.onStable.pipe($i(1)).subscribe(()=>{this.bubble("close",this.titlebarContent.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))}))}ngAfterViewInit(){this.handleInitialFocus(),this.bubble("close",this.titlebarView.first),this.bubble("action",this.actionsView),this.titlebarView.first||this.titlebarContent.first?this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId):this.subscriptions.push(this.titlebarView.changes.subscribe(()=>{ui(this.titlebarView.first)&&(this.titlebarView.first.id=this.titleId,this.ngZone.onStable.pipe($i(1)).subscribe(()=>{this.bubble("close",this.titlebarView.first),this.renderer.setAttribute(this.wrapper.nativeElement.querySelector(".k-dialog"),"aria-labelledby",this.titleId)}))})),this.initDomEvents()}ngOnInit(){this.renderer.removeAttribute(this.wrapper.nativeElement,"title"),this.cdr.detectChanges()}ngOnDestroy(){this.subscriptions.forEach(t=>t.unsubscribe()),this.subscriptions=[],this.domSubs&&this.domSubs.unsubscribe()}focus(){const t=this.wrapper.nativeElement;ui(t)&&t.focus()}initDomEvents(){!this.wrapper||this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.wrapper.nativeElement,"keydown",t=>{this.onKeyDown(t)}))})}onKeyDown(t){const r=t.target,s=r.parentElement;(Py(r,OJ)||Py(s,OJ))&&t.keyCode===Ro.esc&&this.ngZone.run(()=>{this.close.emit(new hm)}),Py(r,"k-button")&&Py(s,"k-dialog-buttongroup")&&(t.keyCode===Ro.left||t.keyCode===Ro.right)&&this.ngZone.run(()=>{this.handleActionButtonFocus(s,t.keyCode)}),t.keyCode===Ro.tab&&this.ngZone.run(()=>{this.keepFocusWithinComponent(r,t)})}setServiceClasses(t,r){const s=this.wrapper.nativeElement;t&&AT(t).forEach(l=>{this.renderer.removeClass(s,l)}),r&&AT(r).forEach(l=>{this.renderer.addClass(s,l)})}handleInitialFocus(){const t=this.wrapper.nativeElement,r=this.findPrimary(t);if(this.autoFocusedElement){const s=t.querySelector(this.autoFocusedElement);s&&s.focus()}else this.shouldFocusPrimary(r)?r.focus():t.focus()}findPrimary(t){return(i=>{for(let o=i.length-1;o>=0;o--){const t=i[o].classList;for(let r=0;r<t.length;r++)if(t[r].endsWith("-primary"))return i[o]}})(t.querySelectorAll(".k-actions .k-button"))}handleActionButtonFocus(t,r){const s=this.getAllFocusableChildren(t);for(let l=0;l<s.length;l++)if(s[l]===document.activeElement){if(r===Ro.left&&l>0){s[l-1].focus();break}if(r===Ro.right&&l<s.length-1){s[l+1].focus();break}}}keepFocusWithinComponent(t,r){const s=this.wrapper.nativeElement,[l,u]=this.getFirstAndLastFocusable(s),y=r.shiftKey&&t===l;!r.shiftKey&&t===u&&(r.preventDefault(),l.focus()),y&&(r.preventDefault(),u.focus())}shouldFocusPrimary(t){return ui(t)&&NJ(t)}getAllFocusableChildren(t){return t.querySelectorAll(_ye)}getFirstAndLastFocusable(t){const r=this.getAllFocusableChildren(t);return[r.length>0?r[0]:t,r.length>0?r[r.length-1]:t]}generateTitleId(){return"kendo-dialog-title-"+Math.ceil(1e6*Math.random()).toString()}generateContentId(){return"kendo-dialog-content-"+Math.ceil(1e6*Math.random()).toString()}get wrapperClass(){return!0}get styles(){const t={};return this.width&&(t.width=Oy(this.width)),this.height&&(t.height=Oy(this.height)),this.minWidth&&(t.minWidth=Oy(this.minWidth)),this.maxWidth&&(t.maxWidth=Oy(this.maxWidth)),this.minHeight&&(t.minHeight=Oy(this.minHeight)),this.maxHeight&&(t.maxHeight=Oy(this.maxHeight)),t}bubble(t,r){if(r){const l=r[t].subscribe(u=>this[t].emit(u));this.subscriptions.push(l)}}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Te),n.Y36(n.sBO),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-dialog"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,kg,4),2&t){let l;n.iGM(l=n.CRH())&&(r.titlebarContent=l)}},viewQuery:function(t,r){if(1&t&&(n.Gf(pm,5),n.Gf(kg,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.actionsView=s.first),n.iGM(s=n.CRH())&&(r.titlebarView=s)}},hostVars:4,hostBindings:function(t,r){2&t&&(n.uIk("tabIndex",r.tabIndex)("dir",r.dir),n.ekj("k-dialog-wrapper",r.wrapperClass))},inputs:{actionsLayout:"actionsLayout",actions:"actions",autoFocusedElement:"autoFocusedElement",title:"title",width:"width",minWidth:"minWidth",maxWidth:"maxWidth",height:"height",minHeight:"minHeight",maxHeight:"maxHeight"},outputs:{action:"action",close:"close"},exportAs:["kendoDialog"],features:[n._Bn([Te,{provide:gR,useExisting:Te},{provide:gn,useValue:"kendo.dialog"}])],ngContentSelectors:qve,decls:10,vars:10,consts:function(){let o;return o="Close",[["kendoDialogLocalizedMessages","","closeTitle",o],[1,"k-overlay"],["role","dialog","aria-modal","true",1,"k-window","k-dialog",3,"ngStyle"],[3,"closeTitle","id",4,"ngIf"],[4,"ngIf"],[1,"k-content","k-window-content","k-dialog-content",3,"id"],[3,"actions","layout",4,"ngIf"],[3,"closeTitle","id"],[3,"ngTemplateOutlet"],[3,"actions","layout"]]},template:function(t,r){1&t&&(n.F$t(Gve),n.ynx(0,0),n._UZ(1,"div",1),n.TgZ(2,"div",2),n.YNc(3,$ve,2,3,"kendo-dialog-titlebar",3),n.YNc(4,Uve,1,0,"ng-content",4),n.TgZ(5,"div",5),n.YNc(6,Yve,1,0,"ng-content",4),n.YNc(7,Zve,1,1,null,4),n.qZA(),n.YNc(8,Vve,1,0,"ng-content",4),n.YNc(9,zve,1,2,"kendo-dialog-actions",6),n.qZA(),n.BQk()),2&t&&(n.xp6(1),n.Q6J("@overlayAppear",void 0),n.xp6(1),n.Q6J("ngStyle",r.styles)("@dialogSlideInAppear",void 0),n.xp6(1),n.Q6J("ngIf",r.title),n.xp6(1),n.Q6J("ngIf",!r.title),n.xp6(1),n.Q6J("id",r.contentId),n.xp6(1),n.Q6J("ngIf",!r.contentTemplate),n.xp6(1),n.Q6J("ngIf",r.contentTemplate),n.xp6(1),n.Q6J("ngIf",!r.actions),n.xp6(1),n.Q6J("ngIf",r.actions))},dependencies:function(){return[pm,Vp,Ge,Pi,uo,kg]},encapsulation:2,data:{animation:[Tp("overlayAppear",[Ad("in",Kt({opacity:1})),Dc("void => *",[Kt({opacity:.1}),Wi(".3s cubic-bezier(.2, .6, .4, 1)")])]),Tp("dialogSlideInAppear",[Ad("in",Kt({transform:"translate(0, 0)"})),Dc("void => *",[Kt({transform:"translate(0, -10%)"}),Wi(".3s cubic-bezier(.2, 1, .2, 1)")])])]}}),ht([(0,n.IIB)(),qe("design:type",Array)],i.prototype,"actions",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"actionsLayout",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"autoFocusedElement",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"title",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"width",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"minWidth",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"maxWidth",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"height",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"minHeight",void 0),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"maxHeight",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"action",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"close",void 0),ht([(0,n.pfw)("attr.dir"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"dir",null),ht([(0,n.pfw)("attr.tabIndex"),qe("design:type",Number)],i.prototype,"tabIndex",void 0),ht([(0,n.AcB)(kg,{descendants:!1}),qe("design:type",n.n_E)],i.prototype,"titlebarContent",void 0),ht([(0,n.vR)(kg),qe("design:type",n.n_E)],i.prototype,"titlebarView",void 0),ht([(0,n.i9L)(pm,{static:!1}),qe("design:type",pm)],i.prototype,"actionsView",void 0),ht([(0,n.pfw)("class.k-dialog-wrapper"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"wrapperClass",null),i=ht([qe("design:paramtypes",[n.SBq,n.Qsj,Te,n.sBO,n.R0b])],i),i})(),Aye=(()=>{class i{constructor(t){this.dialog=t}ngAfterViewInit(){this.dialogTitleBar&&this.dialogTitleBar.close.pipe(Wt(t=>!t.isDefaultPrevented())).subscribe(()=>{this.dialog.close()}),this.dialogActions&&this.dialogActions.actions&&this.dialogActions.action.subscribe(t=>this.dialog.dialog.instance.action.emit(t))}}return i.\u0275fac=function(t){n.$Z()},i.\u0275dir=n.lG2({type:i,viewQuery:function(t,r){if(1&t&&(n.Gf(kg,5),n.Gf(pm,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.dialogTitleBar=s.first),n.iGM(s=n.CRH())&&(r.dialogActions=s.first)}}}),ht([(0,n.i9L)(kg,{static:!1}),qe("design:type",kg)],i.prototype,"dialogTitleBar",void 0),ht([(0,n.i9L)(pm,{static:!1}),qe("design:type",pm)],i.prototype,"dialogActions",void 0),i})();var mR;let Ed=mR=class{set container(o){mR.container=o}get container(){return mR.container}};Ed.\u0275fac=function(o){return new(o||Ed)},Ed.\u0275prov=n.Yz7({token:Ed,factory:function(i){return Ed.\u0275fac(i)}}),Ed.container=null;class Tye{constructor(o,t){this.getDialogRef=o,this.parentInjector=t}get(o,t){return o===HJ?this.getDialogRef():this.parentInjector.get(o,t)}}let Na=(()=>{let i=class{constructor(t,r){this.resolver=t,this.containerService=r}open(t){const r=this.resolver.resolveComponentFactory(fR),s=t.appendTo||this.containerService.container;if(!s)throw new Error("\nCannot attach dialog to the page.\nAdd an element that uses the kendoDialogContainer directive, or set the 'appendTo' property.\nSee https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/.\n          ");return this.initializeDialog(t.content,r,s,{close:()=>{},content:null,dialog:null,result:null},t)}initializeDialog(t,r,s,l,u){const p=this.contentFrom(t,s,l),y=s.createComponent(r,void 0,void 0,p.nodes);l.dialog=y,y.changeDetectorRef.markForCheck(),this.applyOptions(y.instance,u);const A=new Ht.xQ,w=P=>{P instanceof hR&&(P=new hm),A.next(P||new hm),p.componentRef&&p.componentRef.destroy(),y.destroy()},I=(0,Ko.T)(A,(0,Ko.T)(y.instance.close,y.instance.action).pipe((0,ft.U)(P=>P instanceof hR?new hm:P),Wt(P=>{if(u.preventAction){const F=(i=>uR(i)||i instanceof n.Rgc)(t)?void 0:l;return!u.preventAction(P,F)}return!0}))).pipe($i(1),(0,Jf.B)());if(I.subscribe(w),l.close=w,l.result=I,t&&(0,n.X6Q)()){const P=p.nodes[0]&&p.nodes[0].length>0,F=p.nodes[2]&&p.nodes[2].length>0,V=u.title&&P,oe=u.actions&&F;t.prototype instanceof Aye?(V||oe)&&console.warn("\n                    Multiple Title and/or Actions configurations detected.\n                    When using a component as content, provide the title and actions either in the component's markup\n                    or via the title and actions properties of the DialogSettings object, but not both.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'"):(P||F)&&console.warn("\n                    When Title and/or Actions markup is provided in content component's template,\n                    the component needs to inherit the DialogContentBase class to ensure that close and result events are properly hooked.\n                    See https://www.telerik.com/kendo-angular-ui/components/dialogs/dialog/service/#toc-passing-title-content-and-actions-as-a-single-component'")}return l}applyOptions(t,r){t.title=r.title,t.actions=r.actions,t.actionsLayout=r.actionsLayout||"stretched",t.width=r.width,t.minWidth=r.minWidth,t.maxWidth=r.maxWidth,t.height=r.height,t.minHeight=r.minHeight,t.maxHeight=r.maxHeight,t.autoFocusedElement=r.autoFocusedElement,t.closeTitle=r.closeTitle,t.cssClass=r.cssClass,t.htmlAttributes=r.htmlAttributes,r.content instanceof n.Rgc&&(t.contentTemplate=r.content)}contentFrom(t,r,s){const l=r.injector.get(n.Qsj);let u=[],p=[],y=[],A=null;if("string"==typeof t)u=[l.createText(t)];else if(t&&!(t instanceof n.Rgc)){const w=new Tye(()=>s,r.injector),I=this.resolver.resolveComponentFactory(t);A=r.createComponent(I,void 0,w),p=Array.from(A.location.nativeElement.querySelectorAll("kendo-dialog-titlebar")),u=[A.location.nativeElement],y=Array.from(A.location.nativeElement.querySelectorAll("kendo-dialog-actions")),s.content=A}return{componentRef:A,nodes:[p,u,y]}}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n._Vd),n.LFG(Ed))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ht([sc(1,(0,n.tBr)(Ed)),qe("design:paramtypes",[n._Vd,Ed])],i),i})(),$J=10002;const Sye={draggable:!0,height:null,left:null,minHeight:100,minWidth:120,position:"absolute",resizable:!0,state:"default",top:null,width:null},UJ=(i,o)=>t=>i.kendoDrag.pipe(Si(i.kendoRelease.pipe(oi(()=>{o.emit()}))),(0,ft.U)(({pageX:r,pageY:s})=>({originalX:t.pageX,originalY:t.pageY,pageX:r,pageY:s})));let $s=(()=>{let i=class{constructor(t){this.ngZone=t,this.close=new n.vpe,this.focus=new n.vpe,this.change=new n.vpe,this.stateChange=new n.vpe,this.dragStart=new n.vpe,this.dragEnd=new n.vpe,this.resizeStart=new n.vpe,this.resizeEnd=new n.vpe,this.options=Object.assign({},Sye),this.lastAction=null,this.subscriptions=new bn.w,this.dragSubscription=new bn.w}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.dragSubscription&&this.dragSubscription.unsubscribe()}init(t){const r=this.options.state;let s=this.options;this.window=t,"default"!==r&&(this.restoreOptions=Object.assign({},s)),"minimized"===r&&(s.height=0,s.minHeight=0),"maximized"===r&&(s.position="fixed")}onDrag(t){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let r,s;this.dragSubscription=t.kendoPress.pipe(oi(l=>{l.isTouch||RJ(l),this.focus.emit(),r=this.currentPosition(),s=!1}),kr(UJ(t,this.dragEnd))).subscribe(({pageX:l,pageY:u,originalX:p,originalY:y})=>{s||(this.ensureWidth(),this.dragStart.emit(),s=!0),this.handleDrag({originalX:p,originalY:y,pageX:l,pageY:u,startPosition:r})})}))}handleDrag({originalX:t,originalY:r,pageX:s,pageY:l,startPosition:u}){this.options.left=u.x+s-t,this.options.top=u.y+l-r,"minimized"===this.options.state&&ui(this.restoreOptions)&&(this.restoreOptions.left=this.options.left,this.restoreOptions.top=this.options.top),this.change.emit({left:u.x+s-t,top:u.y+l-r})}onResize(t,r){this.subscriptions.add(this.ngZone.runOutsideAngular(()=>{let s,l=!1;t.kendoPress.pipe(oi(u=>{RJ(u),this.focus.emit(),s=this.currentOffsetAndPosition(),l=!1}),kr(UJ(t,this.resizeEnd))).subscribe(({pageX:u,pageY:p,originalX:y,originalY:A})=>{l||(this.resizeStart.emit(r),l=!0),this.handleResize(s,r,u-y,p-A)})}))}handleResize(t,r,s,l){const u=this.options;let p={};if(r.indexOf("e")>=0){const y=t.width+s;y!==u.width&&y>=u.minWidth&&(p.width=y)}if(r.indexOf("n")>=0){const y=t.height-l,A=t.y+l;y!==u.height&&y>=u.minHeight&&A!==u.top&&(p.height=y,p.top=A)}if(r.indexOf("s")>=0){const y=t.height+l;y!==u.height&&y>=u.minHeight&&(p.height=y)}if(r.indexOf("w")>=0){const y=t.x+s,A=t.width-s;A!==u.width&&A>=u.minWidth&&y!==u.left&&(p.width=A,p.left=y)}(ui(p.width)||ui(p.height))&&(xT.forEach(y=>{ui(p[y])&&(this.options[y]=p[y])}),this.change.emit(p))}restoreAction(){this.lastAction="restore",this.defaultState()}defaultState(){ui(this.restoreOptions)&&(this.options=Object.assign({},this.restoreOptions)),this.options.state="default",this.stateChange.emit("default")}storeOptions(){this.restoreOptions=Object.assign({},this.options)}maximizeAction(){this.lastAction="maximize",this.maximizeState()}maximizeState(){this.storeOptions();const t=this.windowViewPort;this.options=Object.assign({},this.options,{height:t.height,left:0,position:"fixed",state:"maximized",top:0,width:t.width}),this.stateChange.emit("maximized")}minimizeAction(){this.lastAction="minimize",this.minimizeState()}minimizeState(){this.storeOptions(),this.options=Object.assign({},this.options,{height:null,minHeight:0,state:"minimized"}),this.stateChange.emit("minimized")}applyManualState(){switch(this.options.state){case"default":this.clearHeight(),this.defaultState();break;case"maximized":this.clearHeight(),this.maximizeState();break;case"minimized":this.minimizeState()}}closeAction(){this.close.emit()}ensureWidth(){const t=ku(this.window.nativeElement);ui(this.options.width)||(this.options.width=t.width,this.change.emit({width:t.width}))}clearHeight(){0===this.options.height&&delete this.options.height,0===this.options.minHeight&&delete this.options.minHeight}center(){if("maximized"===this.options.state)return;let t=Nk(this.window.nativeElement),r=this.windowViewPort,s=ku(this.window.nativeElement),l={};ui(this.options.left)||(this.options.left=t.x+Math.max(0,(r.width-s.width)/2),l.left=this.options.left),ui(this.options.top)||(this.options.top=t.y+Math.max(0,(r.height-s.height)/2),l.top=this.options.top),this.change.emit(l)}currentOffsetAndPosition(){const t=this.options,r=ku(this.window.nativeElement);return Object.assign({},this.currentPosition(),{height:t.height?t.height:r.height,width:t.width?t.width:r.width})}currentPosition(){const t=this.options;return(!t.top||!t.left)&&this.setPosition(),{x:this.options.left,y:this.options.top}}setPosition(){const t=tL(this.window.nativeElement,Pk(this.window.nativeElement));this.options.left=t.left,this.options.top=t.top}setRestoreOption(t,r){ui(this.restoreOptions)&&(this.restoreOptions[t]=r)}get nextPossibleZIndex(){return $J}get nextZIndex(){return $J++}get windowViewPort(){return Ok(this.window.nativeElement)}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ht([qe("design:paramtypes",[n.R0b])],i),i})(),IE=(()=>{let i=class{constructor(t,r,s,l){this.draggable=t,this.el=r,this.renderer=s,this.service=l,this.subscriptions=new bn.w}get hostClass(){return!0}ngOnInit(){this.setDisplay(),this.renderer.addClass(this.el.nativeElement,"k-resize-"+this.direction),this.subscriptions.add(Et(this.draggable).subscribe(t=>{this.service.onResize(t,this.direction)})),this.subscriptions.add(this.service.resizeStart.subscribe(t=>{t!==this.direction&&this.setDisplay("none")})),this.subscriptions.add(this.service.dragStart.subscribe(()=>{this.setDisplay("none")})),this.subscriptions.add((0,Ko.T)(this.service.resizeEnd,this.service.dragEnd).subscribe(()=>{this.setDisplay("block")})),this.subscriptions.add(this.service.stateChange.subscribe(t=>{this.setDisplay("default"===t?"block":"none")}))}ngOnDestroy(){this.subscriptions.unsubscribe()}setDisplay(t="block"){this.renderer.setStyle(this.el.nativeElement,"display","default"===this.service.options.state?t:"none")}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(kp,1),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoWindowResizeHandle",""]],hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-resize-handle",r.hostClass)},inputs:{direction:"direction"}}),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"direction",void 0),ht([(0,n.pfw)("class.k-resize-handle"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"hostClass",null),i=ht([sc(0,(0,n.AA_)()),qe("design:paramtypes",[kp,n.SBq,n.Qsj,$s])],i),i})(),Zp=(()=>{let i=class{constructor(t,r,s){this.el=t,this.ngZone=s,this.service=r}ngOnInit(){this.dragDirective=new kp(this.el,this.ngZone),this.dragDirective.ngOnInit(),this.isDraggable&&this.subscribeDrag(),this.subscribeStateChange()}ngOnDestroy(){this.dragDirective.ngOnDestroy(),this.unsubscribeDrag(),this.unsubscribeState()}subscribeDrag(){this.unsubscribeDrag(),this.dragSubscription=Et(this.dragDirective).subscribe(t=>{this.service.onDrag(t)})}subscribeStateChange(){this.stateSubscription=this.service.stateChange.subscribe(t=>{this.service.options.draggable&&("maximized"===t?this.unsubscribeDrag():this.subscribeDrag())})}unsubscribeDrag(){this.dragSubscription&&(this.service.dragSubscription.unsubscribe(),this.dragSubscription.unsubscribe(),this.dragSubscription=null)}unsubscribeState(){this.stateSubscription&&(this.stateSubscription.unsubscribe(),this.stateSubscription=null)}get className(){return!0}get touchAction(){if(this.isDraggable)return"none"}handle(t){const r=t.target,s=this.service.options.state;!Py(r,"k-icon")&&!NJ(r,!1)&&this.service.options.resizable&&("default"===s?this.service.maximizeAction():"maximized"===s&&this.service.restoreAction())}get isDraggable(){const t=this.service.options;return t.draggable&&"maximized"!==t.state}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36($s),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-window-titlebar"]],hostVars:6,hostBindings:function(t,r){1&t&&n.NdJ("dblclick",function(l){return r.handle(l)}),2&t&&(n.Udp("touch-action",r.touchAction),n.ekj("k-window-titlebar",r.className)("k-dialog-titlebar",r.className))},inputs:{template:"template"},ngContentSelectors:dR,decls:2,vars:2,consts:[[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.F$t(),n.YNc(0,Jve,1,0,"ng-content",0),n.YNc(1,Kve,1,4,null,0)),2&t&&(n.Q6J("ngIf",!r.template),n.xp6(1),n.Q6J("ngIf",r.template))},dependencies:[Ge,Pi],encapsulation:2}),ht([(0,n.IIB)(),qe("design:type",n.Rgc)],i.prototype,"template",void 0),ht([(0,n.pfw)("class.k-window-titlebar"),(0,n.pfw)("class.k-dialog-titlebar"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"className",null),ht([(0,n.pfw)("style.touch-action"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"touchAction",null),ht([(0,n.L6J)("dblclick",["$event"]),qe("design:type",Function),qe("design:paramtypes",[Object]),qe("design:returntype",void 0)],i.prototype,"handle",null),i=ht([qe("design:paramtypes",[n.SBq,$s,n.R0b])],i),i})(),_R=(()=>{let i=class{constructor(t,r){this.window=t,this.ngZone=r}process(t){const r=t.keyCode;switch(r){case Ro.up:case Ro.down:case Ro.left:case Ro.right:t.preventDefault(),this.ngZone.run(()=>{this.handleArrow(r,t)});break;case Ro.esc:this.ngZone.run(()=>{this.handleEscape()})}}handleArrow(t,r){const s=this.window.options;r.altKey?this.handleStateChange(t,s.state):(r.ctrlKey||r.metaKey)&&"default"===s.state?this.handleResize(t):this.handleDrag(t)}handleEscape(){this.window.closeAction()}handleDrag(t){let r=this.window.options;if(!r.draggable)return;const s=this.window.currentOffsetAndPosition();let l=this.window.restoreOptions,u={},p=10;switch((t===Ro.left||t===Ro.up)&&(p*=-1),t){case Ro.left:case Ro.right:u.left=s.x+p,r.left=u.left;break;case Ro.up:case Ro.down:u.top=s.y+p,r.top=u.top}"minimized"===r.state&&ui(l)&&(l.left=r.left,l.top=r.top),this.window.change.emit(u)}handleResize(t){const r=this.window.options;if(!r.resizable)return;const s=this.window.currentOffsetAndPosition();let l,u,p={},y=10;switch((t===Ro.left||t===Ro.up)&&(y*=-1),t){case Ro.left:case Ro.right:l=s.width+y,l!==r.width&&l>=r.minWidth&&(p.width=l);break;case Ro.up:case Ro.down:u=s.height+y,u!==r.height&&u>=r.minHeight&&(p.height=u)}(ui(p.width)||ui(p.height))&&(xT.forEach(A=>{ui(p[A])&&(this.window.options[A]=p[A])}),this.window.change.emit(p))}handleStateChange(t,r){"minimized"===r&&t===Ro.up||"maximized"===r&&t===Ro.down?this.window.restoreAction():"default"===r&&(t===Ro.up?this.window.maximizeAction():t===Ro.down&&this.window.minimizeAction())}};return i.\u0275fac=function(t){return new(t||i)(n.LFG($s),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ht([qe("design:paramtypes",[$s,n.R0b])],i),i})(),TT=(()=>{let i=class{constructor(t,r,s,l,u,p){this.el=t,this.renderer=r,this.service=s,this.navigation=l,this.ngZone=u,this.localization=p,this.keepContent=!1,this.dragStart=new n.vpe,this.dragEnd=new n.vpe,this.resizeStart=new n.vpe,this.resizeEnd=new n.vpe,this.close=new n.vpe,this.widthChange=new n.vpe,this.heightChange=new n.vpe,this.topChange=new n.vpe,this.leftChange=new n.vpe,this.stateChange=new n.vpe,this.messages={},this.tabIndex=0,this.draged=!1,this.resized=!1,this.windowSubscription=new bn.w,this.domSubs=new bn.w,(0,mi.s)(BJ),this.direction=this.localization.rtl?"rtl":"ltr",this.localizationChangeSubscription=this.localization.changes.subscribe(({rtl:y})=>this.direction=y?"rtl":"ltr"),this.resizeDirections=bye,this.subscribeEvents()}set draggable(t){this.options.draggable=t}get draggable(){return this.options.draggable}set resizable(t){this.options.resizable=t}get resizable(){return this.options.resizable}set cssClass(t){this.setServiceClasses(this._cssClass,t),this._cssClass=t}get cssClass(){return this._cssClass}set htmlAttributes(t){LJ(t,this.renderer,this.el.nativeElement);const r=this.el.nativeElement,s=r.getAttribute("dir"),l=r.getAttribute("tabindex");this.direction!==s&&(this.direction=s),this.tabIndex!==l&&(this.tabIndex=l),this._htmlAttributes=t}get htmlAttributes(){return this._htmlAttributes}set state(t){this.options.state=t}get state(){return this.options.state}set minWidth(t){this.setOption("minWidth",t)}get minWidth(){return this.options.minWidth}set minHeight(t){this.setOption("minHeight",t)}get minHeight(){return this.options.minHeight}set width(t){this.setOption("width",t)}get width(){return this.options.width}set height(t){this.setOption("height",t)}get height(){return this.options.height}set top(t){this.setOption("top",t)}get top(){return this.options.top}set left(t){this.setOption("left",t)}get left(){return this.options.left}get closeButtonTitle(){return this.messages&&this.messages.closeTitle?this.messages.closeTitle:this.localization.get("closeTitle")}get restoreButtonTitle(){return this.messages&&this.messages.restoreTitle?this.messages.restoreTitle:this.localization.get("restoreTitle")}get maximizeButtonTitle(){return this.messages&&this.messages.maximizeTitle?this.messages.maximizeTitle:this.localization.get("maximizeTitle")}get minimizeButtonTitle(){return this.messages&&this.messages.minimizeTitle?this.messages.minimizeTitle:this.localization.get("minimizeTitle")}get hostClasses(){return!0}get dir(){return this.direction}ngAfterViewInit(){this.setNextZIndex(),this.handleInitialFocus(),this.ngZone.runOutsideAngular(()=>Promise.resolve(null).then(()=>this.setInitialOffset())),this.initDomEvents()}ngOnInit(){this.renderer.removeAttribute(this.el.nativeElement,"title"),this.service.init(this.el)}ngOnChanges(t){if(xT.forEach(r=>{cr(r,t)&&this.setStyle(r,this.options[r])}),cr("draggable",t)){const r=ui(this.titleBarContent)?this.titleBarContent:this.titleBarView;(i=>!!i)(t.draggable.currentValue)?r.subscribeDrag():r.unsubscribeDrag()}cr("state",t)&&(ui(this.service.lastAction)?this.service.lastAction=null:(this.service.applyManualState(),this.updateAllOffset()))}ngOnDestroy(){this.windowSubscription&&this.windowSubscription.unsubscribe(),this.domSubs&&this.domSubs.unsubscribe(),this.localizationChangeSubscription.unsubscribe()}focus(){const t=this.el.nativeElement;ui(t)&&t.focus()}bringToFront(){this.setNextZIndex()}setDimension(t,r){this.setOption(t,r),this.setStyle(t,r)}setOffset(t,r){this.setOption(t,r),this.setStyle(t,r)}get showDefaultTitleBar(){return!ui(this.titleBarContent)}get styleMinWidth(){return this.minWidth+"px"}get styleMinHeight(){return this.minHeight+"px"}get stylePosition(){return this.options.position}get wrapperMaximizedClass(){return"maximized"===this.state}get wrapperMinimizedClass(){return"minimized"===this.state}onComponentFocus(){this.renderer.addClass(this.el.nativeElement,"k-focus"),this.setNextZIndex()}onComponentBlur(){this.renderer.removeClass(this.el.nativeElement,"k-focus")}subscribeEvents(){!Dt()||(this.windowSubscription.add(this.service.focus.subscribe(()=>{this.el.nativeElement.focus()})),this.windowSubscription.add(this.service.dragStart.subscribe(()=>{this.draged=!0,this.ngZone.run(()=>{this.dragStart.emit()})})),this.windowSubscription.add(this.service.dragEnd.subscribe(()=>{this.draged&&(this.draged=!1,this.ngZone.run(()=>{this.dragEnd.emit()}))})),this.windowSubscription.add(this.service.close.subscribe(()=>{this.close.emit()})),this.windowSubscription.add(this.service.resizeStart.subscribe(()=>{this.resized=!0,this.ngZone.run(()=>{this.resizeStart.emit()})})),this.windowSubscription.add(this.service.resizeEnd.subscribe(()=>{this.resized&&(this.resized=!1,this.ngZone.run(()=>{this.resizeEnd.emit()}))})),this.windowSubscription.add(this.service.change.subscribe(t=>{xT.forEach(r=>{if(ui(t[r])&&(this.setStyle(r,t[r]),"maximized"!==this.state)){const s=this[r+"Change"];s.observers.length&&this.ngZone.run(()=>{s.emit(t[r])})}})})),this.windowSubscription.add(this.service.stateChange.subscribe(t=>{ui(this.service.lastAction)&&(this.updateAllOffset(),this.stateChange.emit(t))})))}initDomEvents(){!this.el||this.ngZone.runOutsideAngular(()=>{this.domSubs.add(this.renderer.listen(this.el.nativeElement,"keydown",t=>{this.onKeyDown(t)}))})}onKeyDown(t){Py(t.target,"k-window")&&this.navigation.process(t)}setServiceClasses(t,r){const s=this.el.nativeElement;t&&AT(t).forEach(l=>{this.renderer.removeClass(s,l)}),r&&AT(r).forEach(l=>{this.renderer.addClass(s,l)})}setNextZIndex(){const t=this.el.nativeElement.style["z-index"];(!t||this.service.nextPossibleZIndex-t>1)&&this.renderer.setStyle(this.el.nativeElement,"z-index",this.service.nextZIndex)}setInitialOffset(){if("maximized"!==this.state)this.updateAllOffset(),(!ui(this.left)||!ui(this.top))&&this.service.center();else{const t=this.service.windowViewPort;this.setStyle("width",t.width),this.setStyle("height",t.height),this.setStyle("top",0),this.setStyle("left",0)}}updateAllOffset(){xT.forEach(t=>{ui(this[t])?this.setStyle(t,this[t]):this.removeStyle(t)})}setStyle(t,r){this.renderer.setStyle(this.el.nativeElement,t,r+"px")}removeStyle(t){this.renderer.removeStyle(this.el.nativeElement,t)}get options(){return this.service.options}setOption(t,r){if("number"!=typeof r&&"string"!=typeof r)return;const s="number"==typeof r?r:parseInt(r,10);this.options[t]=s,this.service.setRestoreOption(t,s)}handleInitialFocus(){if(this.autoFocusedElement){const r=this.el.nativeElement.querySelector(this.autoFocusedElement);r&&r.focus()}else this.focus()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s),n.Y36(_R),n.Y36(n.R0b),n.Y36(Te))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-window"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,Zp,5),2&t){let l;n.iGM(l=n.CRH())&&(r.titleBarContent=l.first)}},viewQuery:function(t,r){if(1&t&&(n.Gf(Zp,5),n.Gf(IE,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.titleBarView=s.first),n.iGM(s=n.CRH())&&(r.resizeHandles=s)}},hostVars:14,hostBindings:function(t,r){1&t&&n.NdJ("focus",function(){return r.onComponentFocus()})("blur",function(){return r.onComponentBlur()}),2&t&&(n.uIk("tabIndex",r.tabIndex)("dir",r.dir),n.Udp("min-width",r.styleMinWidth)("min-height",r.styleMinHeight)("position",r.stylePosition),n.ekj("k-window",r.hostClasses)("k-window-maximized",r.wrapperMaximizedClass)("k-window-minimized",r.wrapperMinimizedClass))},inputs:{keepContent:"keepContent",draggable:"draggable",resizable:"resizable",state:"state",minWidth:"minWidth",minHeight:"minHeight",width:"width",height:"height",top:"top",left:"left",autoFocusedElement:"autoFocusedElement",title:"title"},outputs:{dragStart:"dragStart",dragEnd:"dragEnd",resizeStart:"resizeStart",resizeEnd:"resizeEnd",close:"close",widthChange:"widthChange",heightChange:"heightChange",topChange:"topChange",leftChange:"leftChange",stateChange:"stateChange"},exportAs:["kendoWindow"],features:[n._Bn([$s,_R,Te,{provide:gn,useValue:"kendo.window"}]),n.TTD],ngContentSelectors:lye,decls:6,vars:4,consts:function(){let o,t,r,s;return o="Close",t="Restore",r="Maximize",s="Minimize",[["kendoWindowLocalizedMessages","","closeTitle",o,"restoreTitle",t,"maximizeTitle",r,"minimizeTitle",s],[3,"template",4,"ngIf"],[4,"ngIf"],["class","k-content k-window-content",3,"hidden",4,"ngIf"],[3,"ngIf"],[3,"template"],[1,"k-window-title"],[1,"k-window-actions"],["kendoWindowMinimizeAction",""],["kendoWindowMaximizeAction",""],["kendoWindowRestoreAction",""],["kendoWindowCloseAction",""],[1,"k-content","k-window-content",3,"hidden"],[3,"ngTemplateOutlet"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction",4,"ngFor","ngForOf"],["kendoWindowResizeHandle","","kendoDraggable","",3,"direction"]]},template:function(t,r){1&t&&(n.F$t(sye),n.ynx(0,0)(1),n.YNc(2,Xve,8,10,"kendo-window-titlebar",1),n.YNc(3,eye,1,0,"ng-content",2),n.YNc(4,oye,3,3,"div",3),n.YNc(5,aye,1,1,"ng-template",4),n.BQk()()),2&t&&(n.xp6(2),n.Q6J("ngIf",r.showDefaultTitleBar),n.xp6(1),n.Q6J("ngIf",!r.showDefaultTitleBar),n.xp6(1),n.Q6J("ngIf","minimized"!==r.state||r.keepContent),n.xp6(1),n.Q6J("ngIf",r.resizable))},dependencies:function(){return[Vp,Bt,Ge,Pi,kp,IE,Zp,yR,vR,bR,CR]},encapsulation:2}),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"autoFocusedElement",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"title",void 0),ht([(0,n.IIB)(),qe("design:type",Boolean),qe("design:paramtypes",[Boolean])],i.prototype,"draggable",null),ht([(0,n.IIB)(),qe("design:type",Boolean),qe("design:paramtypes",[Boolean])],i.prototype,"resizable",null),ht([(0,n.IIB)(),qe("design:type",Boolean)],i.prototype,"keepContent",void 0),ht([(0,n.IIB)(),qe("design:type",String),qe("design:paramtypes",[String])],i.prototype,"state",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"minWidth",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"minHeight",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"width",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"height",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"top",null),ht([(0,n.IIB)(),qe("design:type",Number),qe("design:paramtypes",[Number])],i.prototype,"left",null),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"dragStart",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"dragEnd",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"resizeStart",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"resizeEnd",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"close",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"widthChange",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"heightChange",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"topChange",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"leftChange",void 0),ht([(0,n.r_U)(),qe("design:type",n.vpe)],i.prototype,"stateChange",void 0),ht([(0,n.pfw)("attr.tabIndex"),qe("design:type",Number)],i.prototype,"tabIndex",void 0),ht([(0,n.pfw)("class.k-window"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"hostClasses",null),ht([(0,n.pfw)("attr.dir"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"dir",null),ht([(0,n.i9L)(Zp,{static:!1}),qe("design:type",Zp)],i.prototype,"titleBarView",void 0),ht([(0,n.aQ5)(Zp,{static:!1}),qe("design:type",Zp)],i.prototype,"titleBarContent",void 0),ht([(0,n.vR)(IE),qe("design:type",n.n_E)],i.prototype,"resizeHandles",void 0),ht([(0,n.pfw)("style.minWidth"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"styleMinWidth",null),ht([(0,n.pfw)("style.minHeight"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"styleMinHeight",null),ht([(0,n.pfw)("style.position"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"stylePosition",null),ht([(0,n.pfw)("class.k-window-maximized"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"wrapperMaximizedClass",null),ht([(0,n.pfw)("class.k-window-minimized"),qe("design:type",Boolean),qe("design:paramtypes",[])],i.prototype,"wrapperMinimizedClass",null),ht([(0,n.L6J)("focus"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onComponentFocus",null),ht([(0,n.L6J)("blur"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onComponentBlur",null),i=ht([qe("design:paramtypes",[n.SBq,n.Qsj,$s,_R,n.R0b,Te])],i),i})(),bR=(()=>{let i=class extends Mg{constructor(t,r,s,l,u){super(t,r,null,l,u),this.buttonType="button",this.window=s,this.fillMode="flat",this.icon="window-maximize"}onClick(){this.isDisabled||this.window.maximizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s,8),n.Y36(Te),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["button","kendoWindowMaximizeAction",""]],hostVars:3,hostBindings:function(t,r){1&t&&n.NdJ("click",function(){return r.onClick()}),2&t&&(n.uIk("type",r.buttonType),n.Udp("display",r.visible))},inputs:{window:"window"},exportAs:["kendoWindowMaximizeAction"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.button"}]),n.qOj]}),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"window",void 0),ht([(0,n.pfw)("attr.type"),qe("design:type",String)],i.prototype,"buttonType",void 0),ht([(0,n.L6J)("click"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onClick",null),ht([(0,n.pfw)("style.display"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"visible",null),i=ht([sc(2,(0,n.FiY)()),qe("design:paramtypes",[n.SBq,n.Qsj,$s,Te,n.R0b])],i),i})(),vR=(()=>{let i=class extends Mg{constructor(t,r,s,l,u){super(t,r,null,l,u),this.buttonType="button",this.window=s,this.fillMode="flat",this.icon="window-minimize"}onClick(){this.isDisabled||this.window.minimizeAction()}get visible(){return"default"===this.window.options.state?"inline-flex":"none"}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s,8),n.Y36(Te),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["button","kendoWindowMinimizeAction",""]],hostVars:3,hostBindings:function(t,r){1&t&&n.NdJ("click",function(){return r.onClick()}),2&t&&(n.uIk("type",r.buttonType),n.Udp("display",r.visible))},inputs:{window:"window"},exportAs:["kendoWindowMinimizeAction"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.button"}]),n.qOj]}),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"window",void 0),ht([(0,n.pfw)("attr.type"),qe("design:type",String)],i.prototype,"buttonType",void 0),ht([(0,n.L6J)("click"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onClick",null),ht([(0,n.pfw)("style.display"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"visible",null),i=ht([sc(2,(0,n.FiY)()),qe("design:paramtypes",[n.SBq,n.Qsj,$s,Te,n.R0b])],i),i})(),yR=(()=>{let i=class extends Mg{constructor(t,r,s,l,u){super(t,r,null,l,u),this.buttonType="button",this.window=s,this.fillMode="flat",this.icon="close"}onClick(){this.isDisabled||this.window.closeAction()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s,8),n.Y36(Te),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["button","kendoWindowCloseAction",""]],hostVars:1,hostBindings:function(t,r){1&t&&n.NdJ("click",function(){return r.onClick()}),2&t&&n.uIk("type",r.buttonType)},inputs:{window:"window"},exportAs:["kendoWindowCloseAction"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.button"}]),n.qOj]}),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"window",void 0),ht([(0,n.pfw)("attr.type"),qe("design:type",String)],i.prototype,"buttonType",void 0),ht([(0,n.L6J)("click"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onClick",null),i=ht([sc(2,(0,n.FiY)()),qe("design:paramtypes",[n.SBq,n.Qsj,$s,Te,n.R0b])],i),i})(),CR=(()=>{let i=class extends Mg{constructor(t,r,s,l,u){super(t,r,null,l,u),this.buttonType="button",this.window=s,this.fillMode="flat",this.icon="window-restore"}onClick(){this.isDisabled||this.window.restoreAction()}get visible(){return"default"===this.window.options.state?"none":"inline-flex"}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36($s,8),n.Y36(Te),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["button","kendoWindowRestoreAction",""]],hostVars:3,hostBindings:function(t,r){1&t&&n.NdJ("click",function(){return r.onClick()}),2&t&&(n.uIk("type",r.buttonType),n.Udp("display",r.visible))},inputs:{window:"window"},exportAs:["kendoWindowRestoreAction"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.button"}]),n.qOj]}),ht([(0,n.IIB)(),qe("design:type",Object)],i.prototype,"window",void 0),ht([(0,n.pfw)("attr.type"),qe("design:type",String)],i.prototype,"buttonType",void 0),ht([(0,n.L6J)("click"),qe("design:type",Function),qe("design:paramtypes",[]),qe("design:returntype",void 0)],i.prototype,"onClick",null),ht([(0,n.pfw)("style.display"),qe("design:type",String),qe("design:paramtypes",[])],i.prototype,"visible",null),i=ht([sc(2,(0,n.FiY)()),qe("design:paramtypes",[n.SBq,n.Qsj,$s,Te,n.R0b])],i),i})();class YJ{}var AR;let Pd=AR=class{set container(o){AR.container=o}get container(){return AR.container}};Pd.\u0275fac=function(o){return new(o||Pd)},Pd.\u0275prov=n.Yz7({token:Pd,factory:function(i){return Pd.\u0275fac(i)}}),Pd.container=null;class Dye{constructor(o,t){this.getWindowRef=o,this.parentInjector=t}get(o,t){return o===class wye{}?this.getWindowRef():this.parentInjector.get(o,t)}}let kye=(()=>{let i=class{constructor(t,r){this.resolver=t,this.containerService=r}open(t){const r=this.resolver.resolveComponentFactory(TT),s=t.appendTo||this.containerService.container;if(!s)throw new Error("Cannot attach window to the page.\n                Add an element that uses the kendoWindowContainer directive, or set the 'appendTo' property.\n                See https://www.telerik.com/kendo-angular-ui/components/dialogs/window/service/\n            ");const l={close:()=>{},content:null,result:null,window:null},u=this.contentFrom(t.content,s,l),p=s.createComponent(r,void 0,void 0,u.nodes);l.window=p,this.applyOptions(p.instance,t);const y=new Ht.xQ,A=I=>{y.next(I||new YJ),u.componentRef&&u.componentRef.destroy(),p.destroy()},w=(0,Ko.T)(y,p.instance.close.pipe((0,ft.U)(I=>I||new YJ),Wt(I=>{if(t.preventClose){const P=(i=>uR(i)||i instanceof n.Rgc)(t.content)?void 0:l;return!t.preventClose(I,P)}return!0}))).pipe($i(1),(0,Jf.B)());return w.subscribe(A),l.close=A,l.result=w,p.changeDetectorRef.markForCheck(),l}applyOptions(t,r){ui(r.htmlAttributes)&&(t.htmlAttributes=r.htmlAttributes),ui(r.cssClass)&&(t.cssClass=r.cssClass),ui(r.title)&&(t.title=r.title),ui(r.keepContent)&&(t.keepContent=r.keepContent),ui(r.width)&&(t.width=r.width),ui(r.minWidth)&&(t.minWidth=r.minWidth),ui(r.height)&&(t.height=r.height),ui(r.minHeight)&&(t.minHeight=r.minHeight),ui(r.left)&&(t.left=r.left),ui(r.top)&&(t.top=r.top),ui(r.draggable)&&(t.draggable=r.draggable),ui(r.resizable)&&(t.resizable=r.resizable),ui(r.messages&&r.messages.closeTitle)&&(t.messages.closeTitle=r.messages.closeTitle),ui(r.messages&&r.messages.restoreTitle)&&(t.messages.restoreTitle=r.messages.restoreTitle),ui(r.messages&&r.messages.maximizeTitle)&&(t.messages.maximizeTitle=r.messages.maximizeTitle),ui(r.messages&&r.messages.minimizeTitle)&&(t.messages.minimizeTitle=r.messages.minimizeTitle),ui(r.autoFocusedElement)&&(t.autoFocusedElement=r.autoFocusedElement),ui(r.state)&&(t.state=r.state,"minimized"===r.state&&(t.keepContent=!0)),r.content instanceof n.Rgc&&(t.contentTemplate=r.content),r.titleBarContent instanceof n.Rgc&&(t.titleBarTemplate=r.titleBarContent)}contentFrom(t,r,s){const l=r.injector.get(n.Qsj);let u=[],p=null;if("string"==typeof t)u=[l.createText(t)];else if(t&&!(t instanceof n.Rgc)){const y=new Dye(()=>s,r.injector),A=this.resolver.resolveComponentFactory(t);p=r.createComponent(A,void 0,y),u=[p.location.nativeElement],s.content=p}return{componentRef:p,nodes:[[],u]}}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n._Vd),n.LFG(Pd))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=ht([sc(1,(0,n.tBr)(Pd)),qe("design:paramtypes",[n._Vd,Pd])],i),i})(),jJ=(()=>{let i=class{constructor(t,r){r.container=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(Ed))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoDialogContainer",""]]}),i=ht([qe("design:paramtypes",[n.s_b,Ed])],i),i})(),EE=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{closeTitle:"closeTitle",restoreTitle:"restoreTitle",maximizeTitle:"maximizeTitle",minimizeTitle:"minimizeTitle"},features:[n.qOj]}),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"closeTitle",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"restoreTitle",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"maximizeTitle",void 0),ht([(0,n.IIB)(),qe("design:type",String)],i.prototype,"minimizeTitle",void 0),i})();var xR;let Vp=xR=class extends EE{constructor(o){super(),this.service=o}};var TR;Vp.\u0275fac=function(o){return new(o||Vp)(n.Y36(Te))},Vp.\u0275dir=n.lG2({type:Vp,selectors:[["","kendoDialogLocalizedMessages",""],["","kendoWindowLocalizedMessages",""],["","kendoDialogTitleBarLocalizedMessages",""]],features:[n._Bn([{provide:EE,useExisting:(0,n.Gpc)(()=>xR)}]),n.qOj]}),Vp=xR=ht([qe("design:paramtypes",[Te])],Vp);let c0=TR=class extends EE{constructor(o){super(),this.service=o}get override(){return!0}};c0.\u0275fac=function(o){return new(o||c0)(n.Y36(Te))},c0.\u0275cmp=n.Xpm({type:c0,selectors:[["kendo-dialog-messages"],["kendo-window-messages"]],features:[n._Bn([{provide:EE,useExisting:(0,n.Gpc)(()=>TR)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),c0=TR=ht([qe("design:paramtypes",[Te])],c0);let ZJ=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Lt]}),i})(),VJ=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Ed,Na],imports:[ZJ]}),i})(),zJ=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Pd,kye],imports:[ZJ,Mx]}),i})();class La{static calculeAlturaLarguraMenor(o){let t=window.innerHeight-100;o&&(t="100%");let r="100%";return window.innerWidth>600&&(r="calc(100% - "+(window.innerWidth-600)+"px)"),{altura:t,largura:r}}static calculeAlturaLargura(o){let t=window.innerHeight-100;o&&(t="100%");let r="100%";return window.innerWidth>600&&(r="calc(100% - "+(window.innerWidth-600)+"px)"),{altura:t,largura:r}}static abraJanela(o,t,r,s,l,u=null,p="dialog-produto"){const y=s.dialog.location.nativeElement;if(y){const I=y.getElementsByClassName("k-dialog-content");I.length>0&&I[0].classList.add(p)}const A=document.querySelector(".carrinho_desktop .is-sticky");-1===document.body.className.indexOf("mobile")&&(document.body.style.overflow="hidden",document.body.style.paddingRight="17px",A&&(A.style.paddingRight="17px"));let w=!1;return o.navigate([],{relativeTo:r,queryParams:l,queryParamsHandling:"merge"}).then(I=>{w=I}),s.result.subscribe(I=>{u&&u(I),I.back?(document.body.style.overflow="",document.body.style.paddingRight="",A&&(A.style.paddingRight="")):I instanceof hm&&(document.body.style.overflow="",document.body.style.paddingRight="",A&&(A.style.paddingRight=""),w?t.back():o.navigate([],{relativeTo:r,queryParams:{c:null,e:null},replaceUrl:!0,queryParamsHandling:"merge"}).then(()=>{}))}),s}}class al{static prepareItemdoPedido(o){al.prepareAdicionais(o,o.produto.camposAdicionais)}static prepareAdicionaisSabores(o,t){if(!o.sabores)return;let r=t.camposAdicionais,s=r.filter(y=>"multipla-escolha"===y.tipo).length,l=r.filter(y=>"escolha-simples"===y.tipo).length,u=!0,p=l;for(;u;){let y=String(`campo${p}`);o.adicionais[y]?(delete o.adicionais[y],delete o.adicionais[String(`escolhido_campo${p}`)],p++):u=!1}for(u=!0,p=s;u;){let y=String(`lista${p}`);o.adicionais[y]?(delete o.adicionais[y],p++):u=!1}o.sabores.forEach(y=>{if(y.produto!==t.id)for(let A of y.camposAdicionais)"multipla-escolha"===A.tipo?(A.posicao=s++,al.setListaMultiplaEscolha(o,A)):"escolha-simples"===A.tipo&&(A.posicao=l++,al.setOpcaoSimples(o,A))})}static prepareAdicionais(o,t){let r,s=0,l=0;for(r of t)"multipla-escolha"===r.tipo?(r.posicao=s++,al.setListaMultiplaEscolha(o,r)):"escolha-simples"===r.tipo&&(r.posicao=l++,al.setOpcaoSimples(o,r));o.atualizeTotal()}static setListaMultiplaEscolha(o,t){o.adicionais["lista"+t.posicao]||(o.adicionais["lista"+t.posicao]={},o.adicionais["lista"+t.posicao].totalSelecionado=0,o.adicionais["lista"+t.posicao].tipoDeCobranca=t.tipoDeCobranca,o.adicionais["lista"+t.posicao].ordem=t.ordem);for(let r of t.opcoesDisponiveis)o.adicionais["lista"+t.posicao]["opcao_"+r.id]||(o.adicionais["lista"+t.posicao]["opcao_"+r.id]={selecionada:!1,opcao:r},t.podeRepetirItem&&(o.adicionais["lista"+t.posicao]["opcao_"+r.id].qtde=0))}static setOpcaoSimples(o,t){o.adicionais["campo"+t.posicao]&&(o.adicionais["escolhido_campo"+t.posicao]=o.adicionais["campo"+t.posicao].id)}}let SR=new n.OlP("currency.mask.config");class Iye{constructor(o){this.htmlInputElement=o}setCursorAt(o){if(this.htmlInputElement.setSelectionRange)this.htmlInputElement.focus(),this.htmlInputElement.setSelectionRange(o,o);else if(this.htmlInputElement.createTextRange){let t=this.htmlInputElement.createTextRange();t.collapse(!0),t.moveEnd("character",o),t.moveStart("character",o),t.select()}}updateValueAndCursor(o,t,r){this.rawValue=o,this.setCursorAt(r-=t-o.length)}get canInputMoreNumbers(){let o=!(this.rawValue.length>=this.htmlInputElement.maxLength&&this.htmlInputElement.maxLength>=0),t=this.inputSelection.selectionStart,r=this.inputSelection.selectionEnd,s=!(t==r||!this.htmlInputElement.value.substring(t,r).match(/\d/)),l="0"==this.htmlInputElement.value.substring(0,1);return o||s||l}get inputSelection(){let o=0,t=0;if("number"==typeof this.htmlInputElement.selectionStart&&"number"==typeof this.htmlInputElement.selectionEnd)o=this.htmlInputElement.selectionStart,t=this.htmlInputElement.selectionEnd;else{let r=document.getSelection().anchorNode;if(r&&r.firstChild==this.htmlInputElement){let s=this.htmlInputElement.value.length,l=this.htmlInputElement.value.replace(/\r\n/g,"\n"),u=this.htmlInputElement.createTextRange(),p=this.htmlInputElement.createTextRange();p.collapse(!1),u.compareEndPoints("StartToEnd",p)>-1?o=t=s:(o=-u.moveStart("character",-s),o+=l.slice(0,o).split("\n").length-1,u.compareEndPoints("EndToEnd",p)>-1?t=s:(t=-u.moveEnd("character",-s),t+=l.slice(0,t).split("\n").length-1))}}return{selectionStart:o,selectionEnd:t}}get rawValue(){return this.htmlInputElement&&this.htmlInputElement.value}set rawValue(o){this._storedRawValue=o,this.htmlInputElement&&(this.htmlInputElement.value=o)}get storedRawValue(){return this._storedRawValue}}class Eye{constructor(o,t){this.htmlInputElement=o,this.options=t,this.inputManager=new Iye(o)}addNumber(o){this.rawValue||(this.rawValue=this.applyMask(!1,"0"));let t=String.fromCharCode(o),r=this.inputSelection.selectionStart,s=this.inputSelection.selectionEnd;this.rawValue=this.rawValue.substring(0,r)+t+this.rawValue.substring(s,this.rawValue.length),this.updateFieldValue(r+1)}applyMask(o,t){let{allowNegative:r,decimal:s,precision:l,prefix:u,suffix:p,thousands:y}=this.options,A=(t=o?new Number(t).toFixed(l):t).replace(/[^0-9]/g,"");if(!A)return"";let w=A.slice(0,A.length-l).replace(/^0*/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,y);""==w&&(w="0");let I=w,P=A.slice(A.length-l);l>0&&(P="0".repeat(l-P.length)+P,I+=s+P);let F=0==parseInt(w)&&(0==parseInt(P)||""==P);return(t.indexOf("-")>-1&&r&&!F?"-":"")+u+I+p}clearMask(o){if(null==o||""==o)return null;let t=o.replace(this.options.prefix,"").replace(this.options.suffix,"");return this.options.thousands&&(t=t.replace(new RegExp("\\"+this.options.thousands,"g"),"")),this.options.decimal&&(t=t.replace(this.options.decimal,".")),parseFloat(t)}changeToNegative(){if(this.options.allowNegative&&""!=this.rawValue&&"-"!=this.rawValue.charAt(0)&&0!=this.value){let o=this.inputSelection.selectionStart;this.rawValue="-"+this.rawValue,this.updateFieldValue(o+1)}}changeToPositive(){let o=this.inputSelection.selectionStart;this.rawValue=this.rawValue.replace("-",""),this.updateFieldValue(o-1)}fixCursorPosition(o){let t=this.inputSelection.selectionStart;t>this.getRawValueWithoutSuffixEndPosition()||o?this.inputManager.setCursorAt(this.getRawValueWithoutSuffixEndPosition()):t<this.getRawValueWithoutPrefixStartPosition()&&this.inputManager.setCursorAt(this.getRawValueWithoutPrefixStartPosition())}getRawValueWithoutSuffixEndPosition(){return this.rawValue.length-this.options.suffix.length}getRawValueWithoutPrefixStartPosition(){return null!=this.value&&this.value<0?this.options.prefix.length+1:this.options.prefix.length}removeNumber(o){let{decimal:t,thousands:r}=this.options,s=this.inputSelection.selectionEnd,l=this.inputSelection.selectionStart;l>this.rawValue.length-this.options.suffix.length&&(s=this.rawValue.length-this.options.suffix.length,l=this.rawValue.length-this.options.suffix.length),s==l&&((46==o||63272==o)&&/^\d+$/.test(this.rawValue.substring(l,s+1))&&(s+=1),(46==o||63272==o)&&(this.rawValue.substring(l,s+1)==t||this.rawValue.substring(l,s+1)==r)&&(s+=2,l+=1),8==o&&/^\d+$/.test(this.rawValue.substring(l-1,s))&&(l-=1),8==o&&(this.rawValue.substring(l-1,s)==t||this.rawValue.substring(l-1,s)==r)&&(l-=2,s-=1)),this.rawValue=this.rawValue.substring(0,l)+this.rawValue.substring(s,this.rawValue.length),this.updateFieldValue(l)}updateFieldValue(o){let t=this.applyMask(!1,this.rawValue||"");this.inputManager.updateValueAndCursor(t,this.rawValue.length,o=o??this.rawValue.length)}updateOptions(o){let t=this.value;this.options=o,this.value=t}get canInputMoreNumbers(){return this.inputManager.canInputMoreNumbers}get inputSelection(){return this.inputManager.inputSelection}get rawValue(){return this.inputManager.rawValue}set rawValue(o){this.inputManager.rawValue=o}get storedRawValue(){return this.inputManager.storedRawValue}get value(){return this.clearMask(this.rawValue)}set value(o){this.rawValue=this.applyMask(!0,""+o)}}class Pye{constructor(o,t){this.inputService=new Eye(o,t),this.htmlInputElement=o}handleClick(o,t){0==Math.abs(this.inputService.inputSelection.selectionEnd-this.inputService.inputSelection.selectionStart)&&!isNaN(this.inputService.value)&&this.inputService.fixCursorPosition(t)}handleCut(o){this.isReadOnly()||setTimeout(()=>{this.inputService.updateFieldValue(),this.setValue(this.inputService.value),this.onModelChange(this.inputService.value)},0)}handleInput(o){if(this.isReadOnly())return;let t=this.getNewKeyCode(this.inputService.storedRawValue,this.inputService.rawValue),r=this.inputService.rawValue.length,s=this.inputService.inputSelection.selectionEnd,l=this.inputService.getRawValueWithoutSuffixEndPosition(),u=this.inputService.storedRawValue.length;if(this.inputService.rawValue=this.inputService.storedRawValue,s==l&&1==Math.abs(r-u)||0==u){if(r<u&&(0!=this.inputService.value?this.inputService.removeNumber(8):this.setValue(null)),r>u)switch(t){case 43:this.inputService.changeToPositive();break;case 45:this.inputService.changeToNegative();break;default:if(!this.inputService.canInputMoreNumbers||isNaN(this.inputService.value)&&null==String.fromCharCode(t).match(/\d/))return;this.inputService.addNumber(t)}this.setCursorPosition(o),this.onModelChange(this.inputService.value)}else this.setCursorPosition(o)}handleKeydown(o){if(this.isReadOnly())return;let t=o.which||o.charCode||o.keyCode;if(8==t||46==t||63272==t){o.preventDefault();let r=Math.abs(this.inputService.inputSelection.selectionEnd-this.inputService.inputSelection.selectionStart);(r==this.inputService.rawValue.length||0==this.inputService.value)&&(this.setValue(null),this.onModelChange(this.inputService.value)),0==r&&!isNaN(this.inputService.value)&&(this.inputService.removeNumber(t),this.onModelChange(this.inputService.value)),(8===t||46===t)&&0!=r&&!isNaN(this.inputService.value)&&(this.inputService.removeNumber(t),this.onModelChange(this.inputService.value))}}handleKeypress(o){if(this.isReadOnly())return;let t=o.which||o.charCode||o.keyCode;if(null!=t&&-1==[9,13].indexOf(t)&&!this.isArrowEndHomeKeyInFirefox(o)){switch(t){case 43:this.inputService.changeToPositive();break;case 45:this.inputService.changeToNegative();break;default:this.inputService.canInputMoreNumbers&&(!isNaN(this.inputService.value)||null!=String.fromCharCode(t).match(/\d/))&&this.inputService.addNumber(t)}o.preventDefault(),this.onModelChange(this.inputService.value)}}handleKeyup(o){this.inputService.fixCursorPosition()}handlePaste(o){this.isReadOnly()||setTimeout(()=>{this.inputService.updateFieldValue(),this.setValue(this.inputService.value),this.onModelChange(this.inputService.value)},1)}updateOptions(o){this.inputService.updateOptions(o)}getOnModelChange(){return this.onModelChange}setOnModelChange(o){this.onModelChange=o}getOnModelTouched(){return this.onModelTouched}setOnModelTouched(o){this.onModelTouched=o}setValue(o){this.inputService.value=o}getNewKeyCode(o,t){if(o.length>t.length)return null;for(let r=0;r<t.length;r++)if(o.length==r||o[r]!=t[r])return t.charCodeAt(r)}isArrowEndHomeKeyInFirefox(o){return-1!=[35,36,37,38,39,40].indexOf(o.keyCode)&&(null==o.charCode||0==o.charCode)}isReadOnly(){return this.htmlInputElement&&this.htmlInputElement.readOnly}setCursorPosition(o){let t=this.inputService.getRawValueWithoutSuffixEndPosition();setTimeout(function(){o.target.setSelectionRange(t,t)},0)}}var wR;const Oye={provide:Ri,useExisting:(0,n.Gpc)(()=>aa),multi:!0};let aa=wR=class{constructor(o,t,r){this.currencyMaskConfig=o,this.elementRef=t,this.keyValueDiffers=r,this.options={},this.optionsTemplate={align:"right",allowNegative:!0,decimal:".",precision:2,prefix:"$ ",suffix:"",thousands:","},o&&(this.optionsTemplate=o),this.keyValueDiffer=r.find({}).create()}ngAfterViewInit(){this.elementRef.nativeElement.style.textAlign=this.options.align?this.options.align:this.optionsTemplate.align}ngDoCheck(){this.keyValueDiffer.diff(this.options)&&(this.elementRef.nativeElement.style.textAlign=this.options.align?this.options.align:this.optionsTemplate.align,this.inputHandler.updateOptions(Object.assign({},this.optionsTemplate,this.options)))}ngOnInit(){this.inputHandler=new Pye(this.elementRef.nativeElement,Object.assign({},this.optionsTemplate,this.options))}handleBlur(o){this.inputHandler.getOnModelTouched().apply(o)}handleClick(o){this.inputHandler.handleClick(o,this.isChromeAndroid())}handleCut(o){this.isChromeAndroid()||this.inputHandler.handleCut(o)}handleInput(o){this.isChromeAndroid()&&this.inputHandler.handleInput(o)}handleKeydown(o){this.isChromeAndroid()||this.inputHandler.handleKeydown(o)}handleKeypress(o){this.isChromeAndroid()||this.inputHandler.handleKeypress(o)}handleKeyup(o){this.isChromeAndroid()||this.inputHandler.handleKeyup(o)}handlePaste(o){this.isChromeAndroid()||this.inputHandler.handlePaste(o)}isChromeAndroid(){return/chrome/i.test(navigator.userAgent)&&/android/i.test(navigator.userAgent)}registerOnChange(o){this.inputHandler.setOnModelChange(o)}registerOnTouched(o){this.inputHandler.setOnModelTouched(o)}setDisabledState(o){this.elementRef.nativeElement.disabled=o}validate(o){let t={};return o.value>this.max&&(t.max=!0),o.value<this.min&&(t.min=!0),t!={}?t:null}writeValue(o){this.inputHandler.setValue(o)}};aa.\u0275fac=function(o){return new(o||aa)(n.Y36(SR,8),n.Y36(n.SBq),n.Y36(n.aQg))},aa.\u0275dir=n.lG2({type:aa,selectors:[["","currencyMask",""]],hostBindings:function(o,t){1&o&&n.NdJ("blur",function(s){return t.handleBlur(s)})("click",function(s){return t.handleClick(s)})("cut",function(s){return t.handleCut(s)})("input",function(s){return t.handleInput(s)})("keydown",function(s){return t.handleKeydown(s)})("keypress",function(s){return t.handleKeypress(s)})("keyup",function(s){return t.handleKeyup(s)})("paste",function(s){return t.handlePaste(s)})},inputs:{options:"options",max:"max",min:"min"},features:[n._Bn([Oye,{provide:Ui,useExisting:wR,multi:!0}])]}),aa.ctorParameters=()=>[{type:void 0,decorators:[{type:n.FiY},{type:n.tBr,args:[SR]}]},{type:n.SBq},{type:n.aQg}],xd([(0,n.IIB)()],aa.prototype,"max",void 0),xd([(0,n.IIB)()],aa.prototype,"min",void 0),xd([(0,n.IIB)()],aa.prototype,"options",void 0),xd([(0,n.L6J)("blur",["$event"])],aa.prototype,"handleBlur",null),xd([(0,n.L6J)("click",["$event"])],aa.prototype,"handleClick",null),xd([(0,n.L6J)("cut",["$event"])],aa.prototype,"handleCut",null),xd([(0,n.L6J)("input",["$event"])],aa.prototype,"handleInput",null),xd([(0,n.L6J)("keydown",["$event"])],aa.prototype,"handleKeydown",null),xd([(0,n.L6J)("keypress",["$event"])],aa.prototype,"handleKeypress",null),xd([(0,n.L6J)("keyup",["$event"])],aa.prototype,"handleKeyup",null),xd([(0,n.L6J)("paste",["$event"])],aa.prototype,"handlePaste",null),aa=wR=xd([SZ(0,(0,n.FiY)()),SZ(0,(0,n.tBr)(SR))],aa);let Nye=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,Sx]}),i})();const Lye=["sliderMain"],Rye=["imageDiv"];function Fye(i,o){if(1&i&&(n.TgZ(0,"div",16),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Q6J("dir",r.textDirection),n.xp6(1),n.Oqu(null==t?null:t.title)}}const Bye=function(i,o){return{"image-popup":i,"selected-image":o}},Hye=function(i,o,t){return{width:i,"margin-left":o,"margin-right":t}};function $ye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",12,13),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.imageOnClick(l.index))})("mouseenter",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.stopSlideOnHover&&s.imageMouseEnterHandler())})("mouseleave",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.stopSlideOnHover&&s.imageAutoSlide())}),n._UZ(2,"custom-img",14),n.YNc(3,Fye,2,2,"div",15),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(2);n.Q6J("ngClass",n.WLB(9,Bye,s.imagePopup,s.activeImageIndex==r))("ngStyle",n.kEZ(12,Hye,s.sliderImageWidth+"px",s.imageMargin+"px",s.imageMargin+"px")),n.xp6(2),n.Q6J("imageUrl",(null==t?null:t.thumbImage)||(null==t?null:t.posterImage)||(null==t?null:t.video))("isVideo",!!(null!=t&&t.posterImage||null!=t&&t.video))("alt",(null==t?null:t.alt)||(null==t?null:t.title)||"")("title",(null==t?null:t.title)||(null==t?null:t.alt)||"")("direction",s.textDirection)("ratio",s.manageImageRatio),n.xp6(1),n.Q6J("ngIf",null==t?null:t.title)}}const Uye=function(i){return{"with-ng-main-pagination":i}},Yye=function(i,o,t){return{"margin-left":i,width:o,transition:t}};function jye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",10),n.NdJ("touchstart",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.swipe(s,"start"))})("touchend",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.swipe(s,"end"))}),n.YNc(1,$ye,4,16,"div",11),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(3,Uye,t.paginationShow))("ngStyle",n.kEZ(5,Yye,t.leftPos+"px",t.imageParentDivWidth+"px",t.effectStyle)),n.xp6(1),n.Q6J("ngForOf",t.imageObj)}}function Zye(i,o){1&i&&(n.TgZ(0,"div",17),n._UZ(1,"span",18),n.qZA())}const PE=function(i){return{disable:i}};function Vye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",19),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.prev())})("mouseenter",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.stopSlideOnHover&&s.imageMouseEnterHandler())})("mouseleave",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.stopSlideOnHover&&s.imageAutoSlide())}),n._uU(1,"\u2039"),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(1,PE,t.sliderPrevDisable))}}function zye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.next())})("mouseenter",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.imageMouseEnterHandler())})("mouseleave",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.imageAutoSlide())}),n._uU(1,"\u203a"),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(1,PE,t.sliderNextDisable))}}function Gye(i,o){if(1&i&&(n.TgZ(0,"div",21),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.AsE("",t.visiableImageIndex+1," of ",t.totalImages,"")}}function qye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"slider-lightbox",22),n.NdJ("prevImage",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.lightboxArrowClickHandler(s))})("nextImage",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.lightboxArrowClickHandler(s))})("close",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.close())}),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("paginationShow",t.paginationShow)("showVideoControls",t.showVideoControls)("arrowKeyMove",t.arrowKeyMove)("images",t.ligthboxImageObj)("infinite",t.infinite)("animationSpeed",t.speed)("imageIndex",t.activeImageIndex)("show",t.ligthboxShow)("direction",t.textDirection)("videoAutoPlay",t.videoAutoPlay)}}const GJ=function(i){return{height:i}},qJ=function(i){return{ratio:i}};function Jye(i,o){if(1&i&&n._UZ(0,"img",7),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(4,qJ,t.ratio))("src",t.fileUrl,n.LSH)("alt",t.alt)("title",t.title)}}function Qye(i,o){if(1&i&&n._UZ(0,"iframe",8),2&i){const t=n.oxw(2);n.Q6J("src",t.fileUrl,n.uOi)}}function Wye(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"video",9),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.videoClickHandler(s))}),n._UZ(1,"source",10),n._uU(2," Your browser does not support the video tag. "),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("id","video_"+t.imageIndex)("ngClass",n.VKq(5,qJ,t.ratio))("autoplay",t.videoAutoPlay),n.uIk("controls",t.showVideoControls?t.showVideoControls:null),n.xp6(1),n.Q6J("src",t.fileUrl,n.LSH)}}function Kye(i,o){if(1&i&&(n.TgZ(0,"div",11),n._uU(1,"Invalid file format"),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("dir",t.direction)}}function Xye(i,o){1&i&&n._UZ(0,"span",12)}function eCe(i,o){if(1&i&&(n.TgZ(0,"div",1),n.YNc(1,Jye,1,6,"img",2),n.YNc(2,Qye,1,1,"iframe",3),n.YNc(3,Wye,3,7,"video",4),n.YNc(4,Kye,2,1,"div",5),n.YNc(5,Xye,1,0,"span",6),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.type===t.IMAGE&&t.fileUrl),n.xp6(1),n.Q6J("ngIf",t.type===t.YOUTUBE&&t.fileUrl),n.xp6(1),n.Q6J("ngIf",t.type===t.VIDEO),n.xp6(1),n.Q6J("ngIf",!t.fileUrl),n.xp6(1),n.Q6J("ngIf",t.type===t.YOUTUBE||t.type===t.VIDEO||t.isVideo)}}const tCe=["lightboxDiv"],nCe=["lightboxImageDiv"];function iCe(i,o){1&i&&(n.TgZ(0,"div",13),n._UZ(1,"div",14),n.qZA())}const oCe=function(i){return{width:i}};function rCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",15,16),n.NdJ("touchstart",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.swipeLightboxImg(s,"start"))})("touchend",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.swipeLightboxImg(s,"end"))}),n._UZ(2,"custom-img",17),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(2);n.Q6J("ngStyle",n.VKq(13,oCe,s.popupWidth+"px")),n.uIk("id","ng-lightbox-image-"+r),n.xp6(2),n.Q6J("imageUrl",(null==t?null:t.image)||(null==t?null:t.video))("isVideo",!!(null!=t&&t.posterImage||null!=t&&t.video))("currentImageIndex",s.currentImageIndex)("imageIndex",r)("speed",s.speed)("videoAutoPlay",s.videoAutoPlay&&r==s.currentImageIndex)("showVideoControls",s.showVideoControls?1:0)("alt",(null==t?null:t.alt)||(null==t?null:t.title)||"")("title",(null==t?null:t.title)||(null==t?null:t.alt)||"")("showVideo",!0)("direction",s.direction)}}function aCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",18),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.prevImageLightbox())}),n._uU(1,"\u2039"),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(1,PE,t.lightboxPrevDisable))}}function sCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",19),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.nextImageLightbox())}),n._uU(1,"\u203a"),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(1,PE,t.lightboxNextDisable))}}function lCe(i,o){if(1&i&&(n.TgZ(0,"div",20),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.AsE("",t.currentImageIndex+1," of ",t.totalImages,"")}}const cCe=function(i,o,t){return{"margin-left":i,"grid-template-columns":o,transition:t}},dCe=function(i,o){return{show:i,hide:o}};function uCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",1)(1,"div",2)(2,"a",3),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.closeLightbox())}),n.qZA(),n.TgZ(3,"div",4,5),n.YNc(5,iCe,2,0,"div",6),n.TgZ(6,"div",7),n.YNc(7,rCe,3,15,"div",8),n.qZA(),n.TgZ(8,"div",9),n._uU(9),n.qZA(),n.YNc(10,aCe,2,3,"a",10),n.YNc(11,sCe,2,3,"a",11),n.qZA()(),n.YNc(12,lCe,2,2,"div",12),n.qZA()}if(2&i){const t=n.oxw();n.xp6(5),n.Q6J("ngIf",t.showLoading),n.xp6(1),n.Q6J("ngStyle",n.kEZ(9,cCe,t.marginLeft+"px","repeat("+t.images.length+",1fr)",t.effectStyle)),n.xp6(1),n.Q6J("ngForOf",t.images),n.xp6(1),n.Q6J("dir",t.direction)("ngClass",n.WLB(13,dCe,t.title,!t.title)),n.xp6(1),n.Oqu(t.title),n.xp6(1),n.Q6J("ngIf",t.images.length>1),n.xp6(1),n.Q6J("ngIf",t.images.length>1),n.xp6(1),n.Q6J("ngIf",t.paginationShow)}}let MR=(()=>{class i{constructor(){}isBase64(t){return/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/.test(t)}base64FileExtension(t){return t.substring(11,t.indexOf(";base64"))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),OE=(()=>{class i{constructor(t,r,s,l){this.cdRef=t,this.platformId=r,this.imageSliderService=s,this.elRef=l,this.sliderMainDivWidth=0,this.imageParentDivWidth=0,this.imageObj=[],this.ligthboxImageObj=[],this.totalImages=0,this.leftPos=0,this.effectStyle="all 1s ease-in-out",this.speed=1,this.sliderPrevDisable=!1,this.sliderNextDisable=!1,this.slideImageCount=1,this.sliderImageWidth=205,this.sliderImageReceivedWidth=205,this.sliderImageHeight=200,this.sliderImageReceivedHeight=205,this.sliderImageSizeWithPadding=211,this.autoSlideCount=0,this.stopSlideOnHover=!0,this.showArrowButton=!0,this.textDirection="ltr",this.imageMargin=3,this.infinite=!1,this.imagePopup=!0,this.images=[],this.videoAutoPlay=!1,this.paginationShow=!1,this.arrowKeyMove=!0,this.manageImageRatio=!1,this.showVideoControls=!0,this.imageClick=new n.vpe,this.arrowClick=new n.vpe,this.lightboxArrowClick=new n.vpe,this.lightboxClose=new n.vpe,this.ligthboxShow=!1,this.activeImageIndex=-1,this.visiableImageIndex=0}set imageSize(t){t&&"object"==typeof t&&(t.hasOwnProperty("space")&&"number"==typeof t.space&&t.space>-1&&(this.imageMargin=t.space),t.hasOwnProperty("width")&&("number"==typeof t.width||"string"==typeof t.width)&&(this.sliderImageReceivedWidth=t.width),t.hasOwnProperty("height")&&("number"==typeof t.height||"string"==typeof t.height)&&(this.sliderImageReceivedHeight=t.height))}set direction(t){t&&(this.textDirection=t)}set animationSpeed(t){t&&"number"==typeof t&&t>=.1&&t<=5&&(this.speed=t,this.effectStyle=`all ${this.speed}s ease-in-out`)}set slideImage(t){t&&"number"==typeof t&&(this.slideImageCount=Math.round(t))}set autoSlide(t){t&&("number"==typeof t||"boolean"==typeof t||"object"==typeof t)&&("number"==typeof t&&t>=1&&t<=5?t=Math.round(t):"boolean"==typeof t?t=1:"object"==typeof t&&t.hasOwnProperty("interval")&&Math.round(t.interval)&&Math.round(t.interval)>=1&&Math.round(t.interval)<=5&&(this.stopSlideOnHover=!t.hasOwnProperty("stopOnHover")||t.stopOnHover,t=Math.round(t.interval)),this.autoSlideCount=1e3*t)}set showArrow(t){void 0!==t&&"boolean"==typeof t&&(this.showArrowButton=t)}onResize(t){this.setSliderWidth()}handleKeyboardEvent(t){t&&t.key&&("arrowright"===t.key.toLowerCase()&&!this.ligthboxShow&&this.arrowKeyMove&&this.next(),"arrowleft"===t.key.toLowerCase()&&!this.ligthboxShow&&this.arrowKeyMove&&this.prev(),"escape"===t.key.toLowerCase()&&this.ligthboxShow&&this.close())}ngOnInit(){if(this.infinite){this.effectStyle="none",this.leftPos=-1*this.sliderImageSizeWithPadding*this.slideImageCount;for(let t=1;t<=this.slideImageCount;t++)this.imageObj.unshift(this.imageObj[this.imageObj.length-t])}}ngAfterViewInit(){this.setSliderWidth(),this.cdRef.detectChanges(),Wa(this.platformId)&&this.imageAutoSlide()}ngOnDestroy(){this.autoSlideInterval&&clearInterval(this.autoSlideInterval),!0===this.ligthboxShow&&this.close()}ngOnChanges(t){if(t.images&&t.images.hasOwnProperty("previousValue")&&t.images.hasOwnProperty("currentValue")&&t.images.previousValue!=t.images.currentValue&&this.setSliderImages(t.images.currentValue),t&&t.imageSize){const r=t.imageSize;r&&r.previousValue&&r.currentValue&&r.previousValue.width&&r.previousValue.height&&r.currentValue.width&&r.currentValue.height&&(r.previousValue.width!==r.currentValue.width||r.previousValue.height!==r.currentValue.height)&&this.setSliderWidth()}}ngDoCheck(){this.images&&this.ligthboxImageObj&&this.images.length!==this.ligthboxImageObj.length&&this.setSliderImages(this.images)}setSliderImages(t){t&&t instanceof Array&&t.length&&(this.imageObj=t.map((r,s)=>(r.index=s,r)),this.ligthboxImageObj=[...this.imageObj],this.totalImages=this.imageObj.length,this.setSliderWidth())}setSliderWidth(){this.sliderMain&&this.sliderMain.nativeElement&&this.sliderMain.nativeElement.offsetWidth&&(this.sliderMainDivWidth=this.sliderMain.nativeElement.offsetWidth),this.sliderMainDivWidth&&this.sliderImageReceivedWidth&&("number"==typeof this.sliderImageReceivedWidth?this.sliderImageWidth=this.sliderImageReceivedWidth:"string"==typeof this.sliderImageReceivedWidth&&(this.sliderImageReceivedWidth.indexOf("px")>=0?this.sliderImageWidth=parseFloat(this.sliderImageReceivedWidth):this.sliderImageReceivedWidth.indexOf("%")>=0?this.sliderImageWidth=+(this.sliderMainDivWidth*parseFloat(this.sliderImageReceivedWidth)/100).toFixed(2):parseFloat(this.sliderImageReceivedWidth)&&(this.sliderImageWidth=parseFloat(this.sliderImageReceivedWidth)))),window&&window.innerHeight&&this.sliderImageReceivedHeight&&("number"==typeof this.sliderImageReceivedHeight?this.sliderImageHeight=this.sliderImageReceivedHeight:"string"==typeof this.sliderImageReceivedHeight&&(this.sliderImageReceivedHeight.indexOf("px")>=0?this.sliderImageHeight=parseFloat(this.sliderImageReceivedHeight):this.sliderImageReceivedHeight.indexOf("%")>=0?this.sliderImageHeight=+(window.innerHeight*parseFloat(this.sliderImageReceivedHeight)/100).toFixed(2):parseFloat(this.sliderImageReceivedHeight)&&(this.sliderImageHeight=parseFloat(this.sliderImageReceivedHeight)))),this.sliderImageSizeWithPadding=this.sliderImageWidth+2*this.imageMargin,this.imageParentDivWidth=this.imageObj.length*this.sliderImageSizeWithPadding,this.imageDiv&&this.imageDiv.nativeElement&&this.imageDiv.nativeElement.offsetWidth&&(this.leftPos=this.infinite?-1*this.sliderImageSizeWithPadding*this.slideImageCount:0),this.nextPrevSliderButtonDisable()}imageOnClick(t){this.activeImageIndex=t,this.imagePopup&&this.showLightbox(),this.imageClick.emit(t)}imageAutoSlide(){this.infinite&&this.autoSlideCount&&!this.ligthboxShow&&(this.autoSlideInterval=setInterval(()=>{this.next()},this.autoSlideCount))}imageMouseEnterHandler(){this.infinite&&this.autoSlideCount&&this.autoSlideInterval&&clearInterval(this.autoSlideInterval)}prev(){this.sliderPrevDisable||(this.infinite?this.infinitePrevImg():this.prevImg(),this.arrowClick.emit("previous"),this.sliderArrowDisableTeam(),this.getVisiableIndex())}next(){this.sliderNextDisable||(this.infinite?this.infiniteNextImg():this.nextImg(),this.arrowClick.emit("next"),this.sliderArrowDisableTeam(),this.getVisiableIndex())}prevImg(){0>=this.leftPos+this.sliderImageSizeWithPadding*this.slideImageCount?this.leftPos+=this.sliderImageSizeWithPadding*this.slideImageCount:this.leftPos=0}nextImg(){this.imageParentDivWidth+this.leftPos-this.sliderMainDivWidth>this.sliderImageSizeWithPadding*this.slideImageCount?this.leftPos-=this.sliderImageSizeWithPadding*this.slideImageCount:this.imageParentDivWidth+this.leftPos-this.sliderMainDivWidth>0&&(this.leftPos-=this.imageParentDivWidth+this.leftPos-this.sliderMainDivWidth)}infinitePrevImg(){this.effectStyle=`all ${this.speed}s ease-in-out`,this.leftPos=0,setTimeout(()=>{this.effectStyle="none",this.leftPos=-1*this.sliderImageSizeWithPadding*this.slideImageCount;for(let t=0;t<this.slideImageCount;t++)this.imageObj.unshift(this.imageObj[this.imageObj.length-this.slideImageCount-1]),this.imageObj.pop()},1e3*this.speed)}infiniteNextImg(){this.effectStyle=`all ${this.speed}s ease-in-out`,this.leftPos=-2*this.sliderImageSizeWithPadding*this.slideImageCount,setTimeout(()=>{this.effectStyle="none";for(let t=0;t<this.slideImageCount;t++)this.imageObj.push(this.imageObj[this.slideImageCount]),this.imageObj.shift();this.leftPos=-1*this.sliderImageSizeWithPadding*this.slideImageCount},1e3*this.speed)}getVisiableIndex(){const t=Math.round((Math.abs(this.leftPos)+this.sliderImageWidth)/this.sliderImageWidth);this.imageObj[t-1]&&void 0!==this.imageObj[t-1].index&&(this.visiableImageIndex=this.imageObj[t-1].index)}sliderArrowDisableTeam(){this.sliderNextDisable=!0,this.sliderPrevDisable=!0,setTimeout(()=>{this.nextPrevSliderButtonDisable()},1e3*this.speed)}nextPrevSliderButtonDisable(){this.sliderNextDisable=!1,this.sliderPrevDisable=!1,this.infinite||(this.imageParentDivWidth+this.leftPos<=this.sliderMainDivWidth&&(this.sliderNextDisable=!0),this.leftPos>=0&&(this.sliderPrevDisable=!0))}showLightbox(){this.imageObj.length&&(this.imageMouseEnterHandler(),this.ligthboxShow=!0,this.elRef.nativeElement.ownerDocument.body.style.overflow="hidden")}close(){this.ligthboxShow=!1,this.elRef.nativeElement.ownerDocument.body.style.overflow="",this.lightboxClose.emit(),this.imageAutoSlide()}lightboxArrowClickHandler(t){this.lightboxArrowClick.emit(t)}swipe(t,r){const s=[t.changedTouches[0].pageX,t.changedTouches[0].pageY],l=(new Date).getTime();if("start"===r)this.swipeCoord=s,this.swipeTime=l;else if("end"===r){const u=[s[0]-this.swipeCoord[0],s[1]-this.swipeCoord[1]];l-this.swipeTime<1e3&&Math.abs(u[0])>30&&Math.abs(u[0])>Math.abs(3*u[1])&&(u[0]<0?this.next():this.prev())}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO),n.Y36(n.Lbi),n.Y36(MR),n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ng-image-slider"]],viewQuery:function(t,r){if(1&t&&(n.Gf(Lye,5),n.Gf(Rye,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.sliderMain=s.first),n.iGM(s=n.CRH())&&(r.imageDiv=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("resize",function(l){return r.onResize(l)},!1,n.Jf7)("keyup",function(l){return r.handleKeyboardEvent(l)},!1,n.evT)},inputs:{infinite:"infinite",imagePopup:"imagePopup",images:"images",videoAutoPlay:"videoAutoPlay",paginationShow:"paginationShow",arrowKeyMove:"arrowKeyMove",manageImageRatio:"manageImageRatio",showVideoControls:"showVideoControls",imageSize:"imageSize",direction:"direction",animationSpeed:"animationSpeed",slideImage:"slideImage",autoSlide:"autoSlide",showArrow:"showArrow"},outputs:{imageClick:"imageClick",arrowClick:"arrowClick",lightboxArrowClick:"lightboxArrowClick",lightboxClose:"lightboxClose"},features:[n.TTD],decls:10,vars:12,consts:[[1,"ng-image-slider",3,"ngStyle"],[1,"ng-image-slider-container"],[1,"main",3,"ngStyle"],["sliderMain",""],["class","main-inner",3,"ngClass","ngStyle","touchstart","touchend",4,"ngIf"],["class","ng-image-slider-error",4,"ngIf"],["class","prev icons prev-icon",3,"ngClass","click","mouseenter","mouseleave",4,"ngIf"],["class","next icons next-icon",3,"ngClass","click","mouseenter","mouseleave",4,"ngIf"],["class","ng-main-pagination",4,"ngIf"],[4,"ngIf"],[1,"main-inner",3,"ngClass","ngStyle","touchstart","touchend"],["class","img-div",3,"ngClass","ngStyle","click","mouseenter","mouseleave",4,"ngFor","ngForOf"],[1,"img-div",3,"ngClass","ngStyle","click","mouseenter","mouseleave"],["imageDiv",""],[3,"imageUrl","isVideo","alt","title","direction","ratio"],["class","caption",3,"dir",4,"ngIf"],[1,"caption",3,"dir"],[1,"ng-image-slider-error"],[1,"ng-image-slider-loader"],[1,"prev","icons","prev-icon",3,"ngClass","click","mouseenter","mouseleave"],[1,"next","icons","next-icon",3,"ngClass","click","mouseenter","mouseleave"],[1,"ng-main-pagination"],[3,"paginationShow","showVideoControls","arrowKeyMove","images","infinite","animationSpeed","imageIndex","show","direction","videoAutoPlay","prevImage","nextImage","close"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2,3),n.YNc(4,jye,2,9,"div",4),n.YNc(5,Zye,2,0,"div",5),n.YNc(6,Vye,2,3,"a",6),n.YNc(7,zye,2,3,"a",7),n.qZA(),n.YNc(8,Gye,2,2,"div",8),n.qZA()(),n.YNc(9,qye,2,10,"div",9)),2&t&&(n.Q6J("ngStyle",n.VKq(8,GJ,r.sliderImageHeight+"px")),n.xp6(2),n.Q6J("ngStyle",n.VKq(10,GJ,r.sliderImageHeight+"px")),n.xp6(2),n.Q6J("ngIf",r.imageObj.length),n.xp6(1),n.Q6J("ngIf",!r.imageObj.length),n.xp6(1),n.Q6J("ngIf",r.showArrowButton&&r.imageObj.length>1),n.xp6(1),n.Q6J("ngIf",r.showArrowButton&&r.imageObj.length>1),n.xp6(1),n.Q6J("ngIf",r.imageObj.length&&r.paginationShow),n.xp6(1),n.Q6J("ngIf",r.ligthboxShow))},dependencies:function(){return[gt,Bt,Ge,uo,WJ,_Ce]},styles:[".ng-image-slider{display:inline-block;position:relative;width:100%}.ng-image-slider .ng-image-slider-container .main{overflow:hidden;position:absolute;height:200px;width:100%}.ng-image-slider .ng-image-slider-container .main .main-inner{width:1760px;padding:0;height:100%}.ng-image-slider .ng-image-slider-container .main .main-inner.with-ng-main-pagination{height:calc(100% - 30px)}.ng-image-slider .ng-image-slider-container .main .main-inner .full-screen{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABmJLR0QA/wD/AP+gvaeTAAAF+klEQVRoge2Yz28UyRXHv6+q50d7ftqDl42wrU1QFIXVkuAZD5pEzoYrihIhuERw2D8gl1UOKFeiaBfBIZGQIkVKGHGIQHsmspQoillgBfE4vpgQy4pFTIAdPB6Pe365u7peDsx4Z8z0/GDtS3Y+Uh+66vWr963u11X1gCFDhgz5qiEymYy5X86oW2c6nU4w8zcAxJhZaa2tZh8zK8MwLK11XAgRdF3360KIdxYWFn7VzWcqlfoJM38C4B8ASgC2WrpNZg4CgBCCAPiYeZOIfrOwsPC3Tv4Mr4GOHz8ecl13JRQKfS6ldJVSkpnJcZwQABARGYZRJiImIg4Gg/VCoTABoKsAZqZIJPKvy5cvjxQKBVEqlcJ7bUzTlOFw2ACA27dv6/n5+Z8BGEyAaZphpZR/fn7+290CavLkyZMnZ8+eVb3smNk1DEOl0+nv9uM3n89/dufOnddENvEUoJQ6YhjGFgDPhzugexkIIfxCiJ52TY4ePRoBEPDq9xTAzEoI4fY7UDAY9HUbqMVvvVwux69du/ZpIpEw4vG4b2JiInL48OF4IpEYk1L6Wu2LxeIOM5ffREBJKRXa237z5s17d+/edV6+fGmUSqVAtVoNO44TUkpFiejTXgLq9fqfiegP169f/xYRjTHzKBFpAAzAPX369L1Lly79sGlfKBRsIrK8/HUVoLWOtLY9f/786dWrV98D8DEzbwghiq7rFqWUm1LKlw8ePPhvLwHLy8s2PBJ9enr6R/fv3/9la9vm5qZi5uLAApaWlraTyaTftm3H7/f7AMC2bReAlcvlPuoV6JsghBBSyrb8KBaLmog8BYgu/jSAsmVZu9+fbdsKQN95MShEVK3Vam15VKlUGEDN6xnPN9BAK6V2f42FQqECQH6pKLuglKo015m9cXg900sAM/PuzdbW1g5eJduBIIQoa60H2mb0EtBGuVxW6PI6vyxSyrLruv7WNq01iMhz0np+Qo8ePVq3bbsOACsrK1Uiqu5DrF5sA4icOXPms3A47FarVfnixYtJZvZc4btu5qanp28Q0ffxSmgAwCYz/25xcfHX+xv3F8zMzHxPa/1NZg4IIbYBOMz8l1wuVzqoMYcMGTLkK0zXdeDkyZMTWmu/67phrXXNcZzny8vLnoeL/eDEiRM/kFJ+wMzNk6AiomWvYoGngFQq9VNm/r1hGBtSSsd1XZ9SalxKeezhw4drBxI9gGQy+dvJycnvnDt3jqWUtLGxobLZ7GypVAqurq7u7LXvdqB569ixYw9v3LjxfrMtk8msKaXGARyYACIKz87O2ufPn38feLUXymaznvbdzgOvYRiGo7Ue5JA/MMwcCoVCr30Z4+PjHWPtKoCI2hwZhmELIQ5UAIBwLBbre5fsKYCZCXv2/qZp1luS60Bg5lAikdjdUjfmkCuVysBvwBcIBNoEhMNhh5k7nZj2DSIKRCIRX8s9AFRM0+w4cZ6vioii8Xi8TQAzY5CiVD9kMhmzXq+PGoYx6rruGICo67qVVhshhLWzsxMF8Pne57t9a7FYLNaWA1NTU/ba2tovpqenf0xERSIqNkoeRQD/zuVyf0IfR85UKvUhM38IYNy27aAQoiaE2BgZGdmampp6kU6n0632Pp+vqpSKdfLVVcDo6GibgCtXrszmcrl/Pnv27O319fXRp0+futvb22RZllhZWXknmUz+PJfLfdJLADN/cPHixfVTp04FI5EIBwIBE8Bk43oNv99fq9VqgwsYGxtr6xdCiJmZmXc7GV+4cOHe48eP3+4VfAN15MiRkUOHDo33YyyldKWUHXPAM4mJqJ7P53tWm5s4jiPQ/4Gfte4/larVahTAfzr1dVuJC/l8/i3LsrZ1YzTLsqpa693CVjQaDRGRME0z2Kgc9Pv/ltlsdvvWrVvzlmV1nES/369N0wQzw7bt48zcsT7a7S/017m5uTNzc3NBAH4AFQCtNZsKgHqjzQcgxcx/7FPA35eWlhSA1Ubl2Wn4aI4tAUQbt1Vm/mhxcXG1T99vhEgmkyeTyeTXDnKQIUOG/B/yP/QEm5iXakbiAAAAAElFTkSuQmCC) 0 0/40px 40px no-repeat;position:absolute;z-index:8;display:block;height:40px;width:40px;top:4px;right:8px;opacity:.4;transition:.5s ease-in-out;cursor:pointer}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div{width:205px;height:100%;margin-right:3px;margin-left:3px;position:relative;border-radius:5px;display:inline-block;box-shadow:inset 0 0 1px rgba(0,0,0,.24),0 0 2px rgba(0,0,0,.12)}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div.image-popup{cursor:pointer}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div img,.ng-image-slider .ng-image-slider-container .main .main-inner .img-div video{position:absolute;top:0;bottom:0;margin:auto;height:100%;width:100%;left:0;right:0;border-radius:5px}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div img.ratio,.ng-image-slider .ng-image-slider-container .main .main-inner .img-div video.ratio{width:auto;height:auto;max-width:100%;max-height:100%}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div .youtube-icon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAC0CAMAAADSOgUjAAAAA3NCSVQICAjb4U/gAAAC9FBMVEX///+vr6+lpaWPj498fHx4eHh2dnZ0dHRvb29sbGxqampmZmZiYmJeXl5aWlpYWFhUVFRSUlJQUFBMTExKSkpISEhERERCQkJAQEA+Pj44ODg2NjYzMzMwMDAuLi4sLCwqKiooKCgkJCQiIiIgICAYGBgUFBQSEhIODg4MDAwKCgoICAgGBgYEBAQAAADj4+PV1dXBwcG/v7+9vb23t7ezs7Ovr6+rq6ulpaWhoaGPj4+Li4uJiYmHh4eDg4OBgYF+fn58fHx4eHhycnJvb29sbGxmZmZiYmJeXl5aWlpWVlZUVFRSUlJQUFBOTk5KSkpISEhGRkZERERCQkI+Pj47Ozs4ODg2NjYzMzMwMDAuLi4oKCgkJCQiIiIgICAeHh4cHBwUFBQSEhIODg4ICAgEBAQAAADl5eWrq6unp6ejo6OhoaGdnZ2ZmZmVlZWTk5OPj4+Li4uJiYmHh4eBgYF+fn58fHx4eHh0dHRycnJsbGxqampmZmZiYmJWVlYiIiIaGhoAAADMzMzDw8PBwcG/v7+9vb27u7u5ubm3t7e1tbWzs7OxsbGvr6+tra2pqamnp6elpaWhoaGfn5+dnZ2ZmZmVlZWTk5ORkZGJiYlISEjv7+/p6enj4+PT09PPz8/MzMzJycnHx8fFxcXDw8PBwcG/v7+9vb27u7u5ubm3t7ezs7Ovr6+Li4vf39/Z2dnX19fV1dXT09PR0dHPz8/MzMzJycnHx8e9vb3t7e3l5eXj4+Pf39/d3d3b29vZ2dnX19fV1dXT09PR0dHPz8/MzMzp6enn5+fl5eXj4+Ph4eHf39/d3d3X19fT09O9vb3v7+/t7e3r6+vp6enn5+fl5eXj4+Pf39/Z2dnT09PHx8f19fXz8/Px8fHv7+/t7e3r6+vp6enn5+fl5eXj4+P5+fn39/f19fXz8/Px8fHv7+/t7e3f39/7+/v5+fn39/f19fXz8/Px8fHv7+/////7+/v5+fn39/fz8/P////7+/v///9a1shPAAAA/HRSTlMAERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERESIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzRERERERERERERERERERERERERERERERERFVVVVVVVVVVVVVVVVVVVVVVVVVmZmZmZmZmZmZmZnd3d3d3d3d3d3d3d3eIiIiIiIiIiIiImZmZmZmZmZmZmZmqqqqqqqqqqqqqu7u7u7u7u7vMzMzMzMzM3d3d3d3u7v9/AAjkAAAACXBIWXMAAAsSAAALEgHS3X78AAAAFnRFWHRDcmVhdGlvbiBUaW1lADA2LzEyLzE09BLGOQAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNXG14zYAAA/MSURBVHic7Z15fBTlGcenhz20rbWXKHhU5RDhra22ilal0IpC1VJb1IKlVpmiRUBiuBEBFWIQMXgfAUtIREAIgciVBIpCLjUXeITdRITsJrqHurPp7PzTea+59pjZza7JOzu/z8eoO7PvO893n+d933nned/hOEeOHDly5MiRI0eOHDly5MiRI0eOsAAAvX0JbApAdFpxDkirAonU2xfX15UQngMxsSzBcyDGU1L4HIRGmQByECZUTDLg+1f/+pe/+JesSy+/8rvngpgnOgy5KCryJ6OWvvRyXbPbGwx2h8Pd3YGgx9VWve+lV6YOiQM7m2Xk8WDh7gaPPyJCSaKEJGIJgWMNe/KnOAg10nEAY/P3tfoEUVWISPOJ4G/cmTPJQYikY/D7R/d0aLmJemk/CzVsnfFDB6HW/u9N3+cRJcJJyy0SiRgxouD2NRZfmeUINaYPyGsSZHwqvJAQCLpr6g8eLC8p2bjhrbf217Z4A35B64uS6Cmdms0ENU3fskbofBSf4GmvK189lzd2FROe23ig2uXXOqK/YjqXpQQ1Ri9zK/gkMdxWWZhLDvE64c/uzN9W97ncNxOEUqBqdFYiVC0ecUjANEKSFOp6a/nYKHIGjBy4YtPRIA14SQpuzcIwVg1+w6/Eo7d29WgDPeX/tB/L51wwq7wlRBFGGvOyjKBq7fJW3J5BfG8u0NIzNoD6qJb/647n63z0y769t2QTQsXQG/eGCAHBU3SbSicePcKQnAemzD7sRwjlPx1Z5ISKmf92YXxS5Nha1fcSwjM6Yu7hIAlk4b9naDsmG0sxcq1fwm3Y59sBlxQ+FSHgprVEJPwzNF+ZFQSphT/bE8H8hNoxHEgOnhYi4Io6CcHgo+qh3jYzY6L2XdtIwte7SfGm5IUJjqsP4bKEnUBpP3vb0AyJWvcrL/GalpHx8RkeY0Y95lQQgtcDuLhQpc0JUtuWEYOF8v5x+MUtwUgRf3t6Gy5QrLE1QWr0I6j7kId+BTHxWS5H44Q/rYpgl27qb70c1kQNy/Nhb2keE6PzSLIsihCAInRLI0qN/exKkFr1BOFXMymKXyrlKU6Yj9oFuVm90KZRTGy6l/CrB0Z+KZaoELzPgwiKtUo7mAErek/EpBEeSe4tRfEg7UF7FG/6MH7Ai9vWCq5HhfZNEYtOd2MveTst/IwE53YigpF19msGqUHV+Obf6H9pKBkRzMU+GH7Cds0gsWY75lefPn4GgjOCiKDnOpu5IDFmqYD4HRmq45em0jHB/DCqoukiWxEktlzzBXIP923p5acjyK3FP9J+O3Uk1JQW1IH4Z6abn94HK1EzEV5uI4LEkPW4ASzW8kt3HXLBk9vgQFPqvNA2AIkdN5xENwq1GeGnJZjrQxUdTE8f1QdErDiMHKNrHMgIPy3BjcjVhedsApAYgXtg4akMOaAWIKhBd4uNU+wxGMQ2DIZPkETxQMb4aQnmBOGPFVpvi3tiYkIhnK+Tum7KVACrVUGC/0FB3HqHHQhiCy6Ed6liZFMm+akEQb+PYXXiVo59gMQA6BKi1AwsAkzRYtUFn0Utrqcf8y5ITOrnhh4hFHAW+CmjjxSsVlwQHJUH7WLkVY71foRcfQlqkxo0PYjZV1KEqLjg09AFJfclrLsgvvpT25ADrjYPYDC4ZwRVF2yGLii+lro39w3hq39UdUATfuC03btP6QlCSpB7DE7LSG2MA8QXP6AFpSGYO6B84Dut0smt3wAGJVuj7ILDYe4D8nqWCeJrH4FuTt13W+AHftIqieLJslFA22GnRLBYgB1//TCWXZBcehmK4F3AAj9w1jEJ5vt53p5vfGqXXKXyFztgrR0jWQ5ifOXnozFMYJElgP1d+Mma9MWBkakhVFxwG5o9W84wQHLl02EES/XAZAiDj53jRh4Is8e/rJpvTP1IolqefwjGsFh3FrsEyXWXotuqzdYAnteGAaI1D1+886Ix8dJytfKXGqELBq5lHeCwJuiA3pGWIhhMxABp6nnw3YeSRqjEcDmak1nJbj+Mr/sPfhiQ7w8GJjch2OpJFCBF6H930T1JIqQAn0cxXHExqwCJuXloIrDYzAE5HHeT2hWAdPVS97uz/2lMg7NSMRgPey/J9VdWY5hcdgUEGLzMUgTz/N8/1gDEEEUp/OELyQSyclIVbH39sxkH6IIO2D7eLNkiHkD8KA8itJ7NRc/YRJ2fZYATYBMoVlmKYPmkydEAEUGp+4MXLCfE0eMzAzCGqxgFSIx40gcBFnLWmkD+H8ejASoInzF6YeKqwSloFqglvQ/xvzKRa94G0wH9eRb7kDgA0dBaRvh+gbW2kBwcWgPntLx/YRrgIWi7Z4HZIMYUIF4TFz6+ZYoFhPTYTli5bw7TABugDW2g5wAJQuGTZyfqEcatG4AV6EtPs9kI4mse5oamN5tGsBWAdGHxic1m+V34c567NAxDv4RlgNd7rXXCCsBPEgAkjaEUObFJhzBO3QBcHiRP85kFyE0NQJvLTSOYAnzYFCAaWkdOFE9JNDtBAI5E+RA1TLaB5JKXwWGg8Fo6AWKE4sdv8vHXMxBi49vh6S2ARYLkigvhDb2wCpiOxZIBiOcZIl27JsYplFY2tAWe3chkyjm54lcgQP/z5iYkBZB0J5HOdadzCQnWwhA+Zu7/fVDkil+OQIC56Q1hJZBFsWPbt7gY5VKAaCbDwy5AnnsJAZybbg9UA1n0vfGD+ABhwrTYweTaLy3AwMKMACQT/w2/iQ+wCgI8ybwHZgygjK/r5UQhvF8PkCGCgABEbWBgTiYAoh0/tp4fsxfRhbCHxWXsOoD+B9MOELV/4XfmcKTkmNUrnQiDAPXDmOfSP4yR/7y/hY/XulGA7A9jlqKB9JPpBYjwfbplsTopE7t2ANBA2s0yQHwrtzHN98Ki+OWuxfyS+PmahN+ZTfALLSwDVCYT0uWBqPH733sv8ksS8KMAr0OTCbUMAwQ3oOmsynTdCyN83R9CfEt4UwcEl+mns1gECNCE6mEuPSGMBs6fbVmyJDE/xf/xhOoGJgFGTemnASDk9+nmJUZ+8QGugIMocQ2Ld3LKrQh+qLTI1AksAJTx4caP4DPjB0A5SvOdyzBAwJXCcYwv3yrAeFP6eKu8jxZFu1+Ch0oDq+FjTc94lgGCVYYH64lOjwsQz/6d2KLBl7BXIoe+iXJjm6ew2Amrs+o+/FTJzAsowFhP5RC+Ty3jU+p+QJ/awSZA4III2m/tAUA0cH7vYWvRq617U0iXXMQowAqUaHu5leysWADxwPkj3HdYw6fOxaD0tlxGAaoJlhBBkcX0NgNAPGX64bxY0WsK8M8owdI9kc0+RDFjIUrxrbvYxAzigZMNAOV/Pkui8dPVPAst8KkbyqgDUjPuQUnmnaNNXJB4oC4/ELrul5sXJ9H4aSsG61GS+WZWI1ixAy1zMLWDAFQyVEN01iCp4NXWfDda5hC8ilmAlCBeultnJUuf5+9sp+tE4A7xusbPIj2l3vloAHX0bDZHgVDEkP5oONthdjeHAU6iAOWR3ydJN36aaulSrxJ2HVCJYbzY0MwSbDZeJ4JmnHelhE+tthWNn5gdxHCqJfehHSDaEsw+qWfDlUrocdvbt8cY+VmCgH8JLk+gS/SYBUgJ/vwI2jb/mcS+gA+dCz1QEj6YzfOp4aOV4nk0YQ2Ts9FU1PDlKIYbTWxBh85xS6J4HKbjk9hNeqM84oBT8ZL/gQxHMKcQnIB3PVlpwQXPapW8JbcBnk8Rn/KjHUL7nhQz7YDaIS3sFw6ZtEfwwI8O7fl2D/ApAXxfN3T6rrsYB0jt+Rtchy6G8xPvgwMPDBwEtG9OSjr86DfQVGpknfmzmD4uCmC9svWTaRBHK/n6QAHq+DtvYt0BlUHtALz52EoTj+ghPqWAwU1olfx20wVmfV+EILdORFsxDbAymk4Zn+LwG1C33zGWeQdUXfDMY+jGaoe1hf+p4VO+PMqDRuNFTA+iqagLrsBbgN5vYVyWss0UYI1Eb32Yd0DFKB4cQpvQuq/P3MiW8ivCm9A+bQsHVIN4rh+/7eOSTBGkFc0MoBSG/Wb7rLAixQXfRI4R2pAhx6D+d44bb8Q9xiYOqFo25CjeCn52ZlyQlrkX9ffC47bhp7rgOPy+FJfZWKYntXDrI6il2Gllt1FWRAlyq/CbFjLx8jda3jQBDaGPDLGPA2pckCsV6bsqkp8msFAD4K4jL2S5MbP7LX/VUggOasYEd6SXIC0KjEIvKhWFAnvx0xC81YUJbgdpJKjwG+PCr7wqsxs/DcHpHpztUnqxSrBnRiqlgDkuXPY++/FTAPJguR9bWTkoPQTVMmaS36ZmeMLsVUZFzZQJhvEmnzUXaF+m3sNi5QLWBPDzvCN3pTKT3fcVRVBqPoNL9olb/EK5R7pxqccvALbkp4libiMh6L6XS23eXl8i6o/eiOAym86wYQOIpfGWFYRgYC3QhnFKk89Io5tIJubRHwN7BjCUhuDjHST95fBYoFeSZWE91kH41d9uY34agjyY6SYmux4fYkBoOfuKnn5zpYALE0oHpfQolB1pCN5cHSFWV/xWH8cmthtxD1t6jPwWQd0b6+zIT9/sl/nxi+Ulz9oBRiqYgJ5B1PvpkabWRsj76dtzU9x9nylpCHJPdRGCYvuG2HQSSmbFXVNJfwWhMtW3FzAm1X4ejKuLUIRtxUM4wBsjOSE+jrt2b5Am8n/+WJbw0xMEhV6JbBYdcRUO5KLawvjiuHv3BET8bUmsuUrX/NmZn54g97t6ge63HfHuzrHugYUNAYmmUneWDM8ifjqCPLhkTWOIbuIk+lvL5k02ZTd8QsGeDoEuYhL9ZTeBrOKnHYlAs+8uaY0oNERfY9mqBefHp/enGRtqO0Kiiq96oQGf/flxRoRgnSuixKMohTzNFa+ufuBrp1Ec6N8Xff2KGa+V1rh9dBEJ7HsCh3Os729uKwEdQg4sawyTHgHtuS2Jgt/bVFtRVlael59XvGPHgbpqd9APX9OiniR6D9zPGbwvW/gZfFDuTcC0eq/MhDoXhCjpVm1K6AN6VJTCbUU301TMLOTHGZ1Q/vvHotqAssqLcNIv3FQ+FdwHCkDU1vpZhY/T39USENNer/MIouJqRkHPE0P+9p0rx8XAl238jPMCGMfgES/srHYHQqIkGiVz9XmbKjZffWoselnIjzMgVNqz8ybMW/Xq/pomb4ffBycNI4Lf73W11JeVPDvu7GFKDjqf9fig9E6kzc/n77r1oQXzcmbl5MyaPX/hLbfz2hOSmP+yvUCUYkJS145E3zD3tgm9rWiEOl58InYOPqRYXBBGQDvouPM0vX3pfUXx+Jioty+7T8mh12M5+NIgB14a5MBLhxx2aZIDzpEjR44cOXLkyJEjR44cOXLkyJGjdOr/ODCzC5DKTiMAAAAASUVORK5CYII=) center center/140px 80px no-repeat;position:absolute;z-index:6;display:block;height:100%;width:100%;top:0;left:0}.ng-image-slider .ng-image-slider-container .main .main-inner .img-div .caption{position:absolute;bottom:0;padding:5px;color:#fff;background-image:linear-gradient(to right,rgba(0,0,0,.1),rgba(0,0,0,.25),rgba(0,0,0,.5),rgba(0,0,0,.25),rgba(0,0,0,.1));width:100%;text-align:center;box-sizing:border-box;border-radius:0 0 5px 5px}.ng-image-slider .ng-image-slider-container .main .main-inner:hover .full-screen{transition:.5s ease-in-out;opacity:1}.ng-image-slider .ng-image-slider-container .main .next,.ng-image-slider .ng-image-slider-container .main .prev{position:absolute;right:10px;top:50%;background-color:#fff;border-radius:50%;cursor:pointer;margin-top:-16px;outline:0;width:35px;height:35px;font-size:35px;line-height:30px;z-index:8;transition:.5s ease-in-out;text-align:center}.ng-image-slider .ng-image-slider-container .main .next:hover,.ng-image-slider .ng-image-slider-container .main .prev:hover{background-color:#d4cdcd;background-position:-192px -415px}.ng-image-slider .ng-image-slider-container .main .next.disable,.ng-image-slider .ng-image-slider-container .main .prev.disable{color:#bbb;background-color:#fff;opacity:.5;cursor:default}.ng-image-slider .ng-image-slider-container .main .prev{left:10px}.ng-image-slider .ng-image-slider-container .main .prev:hover{background-position:-194px -450px}.ng-image-slider .ng-image-slider-container .ng-main-pagination{background-color:inherit;color:inherit;position:absolute;height:30px;width:calc(100% - 6px);text-align:center;bottom:0;font-size:16px;line-height:30px;border-radius:0 0 5px 5px;margin:0 3px}.ng-image-slider .ng-image-slider-error{height:100%;position:relative;display:flex;justify-content:center;align-items:center}.ng-image-slider .ng-image-slider-error .ng-image-slider-loader{background-image:url(data:image/gif;base64,R0lGODlhQABAAKUAAAQCBISChMTCxDQ2NOzq7KyqrExOTBweHJSSlNTW1PT29FxaXLS2tCwqLAwKDIyKjMzKzERCRPTy9FRWVCQmJJyanNze3Pz+/GRiZLy+vExKTAQGBISGhMTGxOzu7KyurFRSVCQiJJSWlNza3Pz6/FxeXLy6vCwuLAwODIyOjMzOzERGRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAsACwAAAAAQABAAAAG/kCWcEgsGo/IpHLJbDqf0CgRtXg8FiipdjshXL4XwmRLdk7A6Mu4zD6ivOkvIduuCzFxNMbOHCwWA0opeWApfEkgI2gWIEgPhF8Ph0cBhAFHJZAXe0gHHBkmHAdaZ5BrUx6EHnRGGhJoChpRABaaFgBGpXELna9pEqNPA5pfgUYLcHKnRg8keZJPeMScRiglViWsRwKEAlDSmtRkGd1Qw8TGZY/PULS2uGwHvmjAUbp5vHUaCrCyUpV5LvE58EBAhgfBSNUCY2HZpDoDSpRI97CixYsYM2pkgoICBW0bo0Rg4OwCCQYRQkLZIIJQBXgql1TQhCDmkhXELqwIeaCA/gcJBRIOIUcsw8YGyS54CEHEQUlNJBxo/BDnA5ETOb+c0DgPjAQiDbJe2Jqx65evQ5zmjDq1ahGimoxqRIrGA4UiEXKm3NhTAlChQ2ZCqmlTyQbBcSpsKMwkgomSJEzsZdzEAYUGUilr3sw5yYkUCSR4SJCCbGciLJ+CISFi8WkWG+DmyeC6c0tiIk43UE2IRAM+FJhKuZ0zd5sQEL5AEP4kgdgEdZKDgRCFNyQSx+PcfWK9dxsK2qE4zwq9jXTlUYjjrhNCxRcVzJ2c6J7GN/DfWhBDqpBkgwEDmWXkADeQCFBbEQ64d4EKAWLEEiGtIYJGIyE1gEBoEoyAAH4SG4JB4WtGbCAdBAeCSAQABoAAk4kstujii00EAQAh+QQJCQApACwAAAAAQABAAIUEAgSEgoTEwsREQkSsrqwcGhzk5uRsamyUkpT09vQMDgxcWlwkJiR0dnTMysxMSky8urycmpwMCgyMiowkIiTs7ux0cnT8/vwEBgTExsRERkS0trQcHhzs6uxsbmyUlpT8+vwUFhQsLix8fnzMzsxMTky8vrycnpyMjowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCUcEgsGo/IpHLJbDqf0Kh0Sl0uMheQY1HtOj+XsPjjLSMX4vSFa24LHWqxw90GgOJhEICeFE02GxMiSQAJeFl7fEUAE3dpE4lGcHhzikUThxNnh2xIEiMZGSMSUyKHYYNHCHERSgokaSQKUpinmmeTW0sBcQFSEKcXEG1YapVQwKfDZpNpx08owShtvGq+UaanqWWvsbNS0XjTbhIBGQ4BpFMA4WkokZZdIigQGyjb8fn6+/z9/v8AAxLB8MCDhwcYBD7x0CFNhQMKmZw4dCJikgPBPASkwMBThWAV1PHjkIuCkRLBwmjw1+zCMyEWUl5o0I9CnI5EYqakyY/B/s0iKFM+YOnMiISPp0L64wDrAgmTRjwEgwiQAU4kE/FUtJjEAtIwFSxwXSKhoIUHIseqXcu2bRIFVr+5JTJggyMQGwbMTYEBDJ4I8NRGCIagrQaZK9eakGnCTYgGFkJIkeAoGIi0AylQSMikgIEwBgpgk4nKyAMIdyGUWDIizYjRpPFJIHCIgFwjrcW8hkJZ5uUhGAQEE8DZSIGGFzqIjrI4ZeMhtYLdOvK4wfIoA2TqFRKi8qkEki0NPlV4CEbSVBVhGM+qeAr2KbfGG4A6D4TtRGiTJsBPQlwk8AUjn0XnyZSeRQV4dwgI4Y0V3SnjqCVBMYc4gBlXCugXh217CZVgwl0mrOZGEAAh+QQJCQAyACwAAAAAQABAAIUEAgSEgoREQkTEwsQkIiSkoqRsamzk4uT08vQUFhRUVlQ0MjS0srSUlpR0dnQMCgxMSkzU0tSsqqzs6uz8+vw8OjzMyswsLix0cnQcHhxcXly8vrycnpwEBgSEhoRERkTExsQkJiSkpqRsbmzk5uT09vQcGhxcWlw0NjS0trScmpx8fnwMDgxMTkysrqzs7uz8/vw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCZcEgsGo/IpHLJbDqf0Kh0Sq1ar8lLilJKXbBg5AUBK8MQ37BamDKbU2s1gOIuUwBxZYdA6CwBJXUwd3lHDwETZS8BD0ptdXCFRR0bght+SAtkZmhNHXhVAYJlAUpaFBQpC0wsHAglHCxTHYmjE5hgIm4iUyGjZiFhD3RmFLhPvr8wwWAdxHbHTrS/t2oSbhJUHr8eaywFrwWyswOCA9FgAKBVDx4vZQiMkmEAIX3z+Pn6+/z9/v8AA06p0AAECBUVBDLpwEEQB3QKhzQcxSHikRjKYMTwl8ABhgRIJv6qyM8EiTIkTByxkNFCvxVuVqxs+TLmEZEU+5moNUGl/hGMyjb26+jA55ECvwpYPNIBaZ0CEJfKiKHCoAqhUrNq3cq1q8IKATgUCJCwSgcII0ZAiEoFBcs6FlBMGVFLkYEwCp7VKXEiCk43JK2g0CuIglwnBjKOsAIgQsYyEdYpefBO2YtGVAQ8NiOgSYvNH6ps2wyjGxMMmx0gAYDixAkUkodcI53tdGojAAwccEPCQGxdtD1vhjDJxS8Xx0ZvNr2EcsbLRVRkbEDkA2kYnZuMyHiXyALCglYJabw58pO/ZgIPkf5YBZEK4N1QKPsEQ2V4i404fhyhSN5fFPQlxQNoYbAWErs9doARbgkSFz77ZdQfbjF4UEABHsQQWx4NKWzmnlQobHaYVOi58WFWHTDwCwNsCZTbSWZM4JtXMgBQgQYaVLDhFUEAACH5BAkJACoALAAAAABAAEAAhQQCBISChDw6PMTGxOTm5CQiJFRWVKSipNTW1CwuLAwODJSWlERGRGxqbMzOzPT29LS2tNze3AwKDERCRCwqLGRiZDQ2NJyenPz+/AQGBISGhDw+PMzKzCQmJFxaXKyqrNza3DQyNBQWFJyanExKTGxubNTS1Pz6/Ly6vOTi5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJVwSCwaj8ikcslsOp/QqHRKrVqvS0oHy10WHBiMqdAtF03hsMPM7qTTFHaZ8g7H5UqRyIlOm/BJJH0IJEwFfWOARwx1GAxNFHdNEgYeElYIjQhsEpkYCJdTIo1he2UVbxVUo6SmXahpqlQgjSBsCp4gClWMdYWcHpZXJLQYIL+KXHrJzM3Oz9DR0tPUzgIBFwcBAtVMFhyNHBZJEiEhGdEGJ6QYDx5GGRoPYQ8a6M0C8+wYJ+NDCn3eONiVDEDAfSYADFnAbgGzCfvqTBCiQF+jBwQBaYj4RoOQEBH9AfrAMc0HIRZCJiNZEsNJFQrWkToRSmNLDB6FMCTlMFn+r5ITKR4MYyIjIIMlExKJJ/OEPWsy2Z3gZkSChRA1namT+q7bkW/hRHo1AmCDhgMHNGxQOLat27djJVSAAAIBhAb3pghYMGDACKpdLKRolEKskwwXGl3IayUfuweAnSQmdQGLhMH7UjBesiHihisNSjZ4MpldZSsoSqJ4Am4fhysRSkZgHfE1kgQBPqRNgCQ2x9mSI54uImHnmxGbVaTmuNpJ532fiwBY3ggF2yElSpaAcoDdgSOh940mIoFAxBRGmWToXudAchW+2QEnMsFinalTNozoOyK6kQIlkVGEAJi9kUJkcoDEkWFCSNAAXSCgUEFWeADIkYBuxUdKCnAgqRAeO+O9lQF1dVjXoQqINYLciUOEoMEHH2gQAovQBAEAIfkECQkAMAAsAAAAAEAAQACFBAIEhIKEREJExMbEJCIk5ObkbGpsrKqsFBIUNDI09Pb03NrcVFJUdHZ0tLa0DAoMlJKULCos7O7sHBocPDo8zM7MtLK0/P785OLkXFpcfH58BAYEhIaETEpMzMrMJCYk7OrsbG5srK6sFBYUNDY0/Pr83N7cVFZUfHp8vLq8DA4MlJaULC4s9PL0HB4cPD48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5AmHBILBqPyKRyyWw6n9CodEqtWq/YbHaiCUy0YCNBcrlICEwAi8FgAcJMTbkcUG5QhfmlgNrAkwF6GkkjA3p6AyN/R2NlZ0gbHoeHA35SGwIvD04TAV5JDSWTh4NRCSZlJglZAHmjeiBvTw+ocwWbVwmvkyRQL5MvWBm7hxm+wMLEesazrmW3WLrKZb1Qp6mrWBsg0yCWUA8CArhZDdOli1GRxB7f6VCFr4nvVHfccyB99FYACWwJsvYJHEiwoMEwDww4WLDAgQF3B5WQqKUHQ7UjAD58CDjwhahRCigcOYGhDIYTBGkRwwDxxCSUAg1MM0Ck1SQMHNOlmJaCyP6HVx8EUtxlwidQgSWVFR1i81CBnIt2KutJxGWxgTKVhTCSIenJlM5GYVCBMUIEqPQ8viohMqISCkkrtnVrRyHDFA/p6t3Lt69fOA/MkqvyIEECiFk+HFBQpsSBoFM2cGB8QQEHxFU6tJjUooMUFRUmVSCLJcJmkBGirHi1IssBYgegqPg4SQFpwrRHlRi8RNqri1RYTGPxhAQx4Ece8C4iXBlxJ7PXLhfyoMGCMgv0GXmQe9JuKKtHtT6CwNAhDwiOvN4VW3boQxXSHxHxysKRD6c5p47ygMPHEhxMB4NvoyAnhGaceUbFAyQkIKAQcuyCThERiPCfCPvRAwExEC8o8QALLDwIBwrEoPCXEMbtYiBfFtR34hAIvKdHfC8O8QAKtZiAgoh+qcBjjYsEAQAh+QQJCQAuACwAAAAAQABAAIUEAgSMioxEQkTMysxkYmTk5uQkIiSsqqxUUlT09vSUlpTc2tx0cnQcGhwsLiwMCgxMSkzU0tRsamzs7uxcWlyUkpQsKiy0trT8/vycnpwEBgSMjoxERkTMzsxkZmTs6uwkJiSsrqxUVlT8+vycmpzk4uR8enw0MjQMDgxMTkzU1tRsbmz08vRcXlwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCXcEgsGo8ayCYU2kAAx6h0Sp1yVJisdiGoer9fz0hLxowk4LR6yBmXy921nKrBvssqzXx/TN3vCHyCQxV/bxWDgxeGZRdHBisKFSsGiVOLjFqORA8kblkjGQ+WR4WZWYhDDwN/A6OkRAinWYFDCowZcycBGydRAHaMC1BCBp93I5VqDglZCQ5RbZlxQgynDGu3WgpSYn9nRSSnuWqmWdxSAgtvXEYZ42sObiPQUwBKTBVPR9aZ2GsnNvQiZYzRCBCwBL0zRC7hngcd/nR45XAPioVkMqComMgAAwUkGCjjSLKkyZMoU6o0+cCCBYorwYA40MzMAYQxvUBg8YYF/gQpKCBA2KjSAs87CSwcETAhywRqJw8wOmAERVMtE4iyrPkNpgs/ZVKgdHCq3hCwZMSePFG2iFUyWVE+OPZmhFcXAo6ygGpSqiGqR4IOXWn0DwulOafs7PkzMRULIeaFQOy4ygMHDu5W3sy5s+fPoCuioBAgAAWtcwCAAEEMlogPZD6I2COiRJYSs0mJ+JNbze4yvQWhgH3nA2ovAAq8KdGaDwFGBNSA+INT0AZGG6RTTxSAUQA1yd8UaG4EAAcTJjiQJ/LcUHTfbyhMARGBTATKbq++ibuGgm0MuE3RgHJlFNBAFL/FtwcALq1XhDZvoHMEBcRlIRtKBIo3BQoELpTWwnEcacCIHqFVWMYHoQkBYRkSgjbgGx8cmKILFgSDgQr4pWgeevvM6CNnQQAAIfkECQkAJgAsAAAAAEAAQACFBAIEhIaEREJExMbEJCIkZGJktLK07OrsnJqcVFZUDA4MNDI0/Pr8jI6M5OLkdHZ0TEpMzM7MLCosvL689PL0XF5cFBYUBAYEjIqMzMrMJCYkZGZk7O7snJ6cXFpcFBIUNDY0/P78lJKUfHp8TE5MxMLEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Ak3BILBqPyKRyyWyaPo/BwTF4KJzYrBJyCHm/B4h2PIYwvugQQ0xuLxWcdJrzcduPI7l8dGcSAhkOBwMBBEcDemkDfUkAAWdpDBgARXGJXxSMRxcGlyEGlEMUnl6ZRgAFE1MTBRdaAaQhGESIpItFFrVoAxZYGpCeDBpDeaR8RAC6iq5NDbFeDUMflol0RQWeG04RzyERRGaXbEQlnhNOo8+mQwLUXxzjRO5yHE7zl+vSI1IHGSNXR9JV29btm5tyl841EdEtmpsN2Zz8isVAgh0AGRJlCNUEQ6xZdyxkTJOhFxZOngwwuwNgQ4kDB0ps4IgFAAZgXyTR1NRHQ/6ACDAjYDDEs6jRo0iTKl3KtKlTIQo8YMDgAeBTLQm6gElwNUuCRFyRgOiAAERXBVrlHLBKZEG6ilexXSpwBAGaDledXXJYpMPdqx4vgSyyABKDBVcreKJ7REKHDoivwqnGtmuSr3o8WHbiIW2IA2E3N1FQYGqFOqJTq17NurXr17Bj90kwgAGFAaHbKIAAoTIjhmlEuGnnhYOAopjl5MYy+Z1vNyPl3NJCQg4JTQBwomGws0n1NNcZARAYqTuT5sWft4muqI2AdBSOM1kwYoRZJcnTLM+yuzcTAH590YF5QwCHhnBOPSDHA0t4UBsDA2j2lANyOCCbEAAkQiBrFBqmYeGFJiiYBoMgAnjXhq6BUN99ILboYmxBAAAh+QQJCQAnACwAAAAAQABAAIUEAgSMiozExsRUUlQkIiSkpqTk5uQUEhQ0MjS0srT09vScmpx8enwMCgw8Ojzk4uRcWlwsKiysrqz08vQcHhy8urz8/vykoqQEBgSUkpTMzsxUVlQkJiSsqqzs6uwUFhQ0NjS0trT8+vycnpx8fnwMDgw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCTcEgsGo/IpHLJbA4PINDBSa02ESGRxSIKIazg8Gmj3ZpFG7GaiVCY39zIen4MweEhuhNDoWCSB2V3WyJTekkOEm4WChIORw6DcI+HRgABkgEARSCSb5RHBAMDHGKYngFFB55mhkUEFW8VBFYmrFsmRXaeFUcUBnceFFUJtxZ5RAiCcCJyRrGDvXuLrAp/RBDLhGlGHKylTd7GFuDJFWUiFV9HG6zcTOLG5aogDq5HA+572oMi12IEvlEpdisBHWh3pDmxdSvXHAIegtGqcirToQ8SZE2scinTpkqiSK1JhC4BqEooMRDwg7Kly5cnMHyEqcfBCGAWDIw4SdNK/oMCkgo06GmlhAZWGu4RXdLBWIelQjYIEKFAwDshkcbxfFnRTAYiQMcVIApB0jucxgwQFSBJwJBxZobCBMCP0Ee4W+S+BECN2ceI4zysbTskrLGxPcsOepfV2FaXGe58BesU6gkIU0UIgGDEKFK9lpWUaDqoA+jQSxxceLDlwYXHqJlg+Be7tu3buHPr3s3bSYQsCkI4UwNixAIQLiNMeDNhOJg2hJzr2fUGWZgFb0agpHtHxEwrI7Jv72tXjDJC6ypRN2M9TIQLI9JXUs5cOtEBBToMaPJbRBf7PTHwBgO9HVHCMiKUUGARCNwh34IHvpHggkUIaAYJFBoxQAf6CWXo4YcghmhEEAA7YnVPZzU3UnNDZXVsS2VVYlhjelFTNkFCd2NQbHA4Umg0WUJramlqdElnNVhRWVphVGtSTmNwSno1Zm5mZ0ZOWA==);background-repeat:no-repeat;background-position:center center;background-size:25px 25px;width:25px;height:25px}@media (max-width:1199px){.ng-image-slider .ng-image-slider-container .main .main-inner .img-div{width:170px;max-width:100%}}@media (max-width:991px){.ng-image-slider .ng-image-slider-container .main .main-inner .img-div{width:297px;max-width:100%}}@media (max-width:768px){.ng-image-slider .ng-image-slider-container .main .main-inner .img-div{width:247px;max-width:100%}}@media (max-width:576px){.ng-image-slider .ng-image-slider-container .main .main-inner .img-div{width:350px;max-width:100%}}.ng-image-fullscreen-view{position:fixed;z-index:1031;background-color:rgba(0,0,0,.6);width:100%;height:100%;top:0;overflow:hidden;transition:.5s ease-in-out;left:0;text-align:center}.ng-image-fullscreen-view.image-fullview-hide{display:none!important}.ng-image-fullscreen-view .lightbox-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#1f1f1f;transition:.5s;display:flex;justify-content:center;align-items:center}.ng-image-fullscreen-view .lightbox-wrapper.ng-ligthbox-pagination{height:calc(100% - 30px)}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div{width:100%;height:100%;border:1px solid rgba(0,0,0,.35);position:relative;overflow:hidden}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .pre-loader{background-color:inherit;width:100%;height:100%}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .pre-loader .mnml-spinner{background-image:url(data:image/gif;base64,R0lGODlhQABAAKUAAAQCBISChMTCxDQ2NOzq7KyqrExOTBweHJSSlNTW1PT29FxaXLS2tCwqLAwKDIyKjMzKzERCRPTy9FRWVCQmJJyanNze3Pz+/GRiZLy+vExKTAQGBISGhMTGxOzu7KyurFRSVCQiJJSWlNza3Pz6/FxeXLy6vCwuLAwODIyOjMzOzERGRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAsACwAAAAAQABAAAAG/kCWcEgsGo/IpHLJbDqf0CgRtXg8FiipdjshXL4XwmRLdk7A6Mu4zD6ivOkvIduuCzFxNMbOHCwWA0opeWApfEkgI2gWIEgPhF8Ph0cBhAFHJZAXe0gHHBkmHAdaZ5BrUx6EHnRGGhJoChpRABaaFgBGpXELna9pEqNPA5pfgUYLcHKnRg8keZJPeMScRiglViWsRwKEAlDSmtRkGd1Qw8TGZY/PULS2uGwHvmjAUbp5vHUaCrCyUpV5LvE58EBAhgfBSNUCY2HZpDoDSpRI97CixYsYM2pkgoICBW0bo0Rg4OwCCQYRQkLZIIJQBXgql1TQhCDmkhXELqwIeaCA/gcJBRIOIUcsw8YGyS54CEHEQUlNJBxo/BDnA5ETOb+c0DgPjAQiDbJe2Jqx65evQ5zmjDq1ahGimoxqRIrGA4UiEXKm3NhTAlChQ2ZCqmlTyQbBcSpsKMwkgomSJEzsZdzEAYUGUilr3sw5yYkUCSR4SJCCbGciLJ+CISFi8WkWG+DmyeC6c0tiIk43UE2IRAM+FJhKuZ0zd5sQEL5AEP4kgdgEdZKDgRCFNyQSx+PcfWK9dxsK2qE4zwq9jXTlUYjjrhNCxRcVzJ2c6J7GN/DfWhBDqpBkgwEDmWXkADeQCFBbEQ64d4EKAWLEEiGtIYJGIyE1gEBoEoyAAH4SG4JB4WtGbCAdBAeCSAQABoAAk4kstujii00EAQAh+QQJCQApACwAAAAAQABAAIUEAgSEgoTEwsREQkSsrqwcGhzk5uRsamyUkpT09vQMDgxcWlwkJiR0dnTMysxMSky8urycmpwMCgyMiowkIiTs7ux0cnT8/vwEBgTExsRERkS0trQcHhzs6uxsbmyUlpT8+vwUFhQsLix8fnzMzsxMTky8vrycnpyMjowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCUcEgsGo/IpHLJbDqf0Kh0Sl0uMheQY1HtOj+XsPjjLSMX4vSFa24LHWqxw90GgOJhEICeFE02GxMiSQAJeFl7fEUAE3dpE4lGcHhzikUThxNnh2xIEiMZGSMSUyKHYYNHCHERSgokaSQKUpinmmeTW0sBcQFSEKcXEG1YapVQwKfDZpNpx08owShtvGq+UaanqWWvsbNS0XjTbhIBGQ4BpFMA4WkokZZdIigQGyjb8fn6+/z9/v8AAxLB8MCDhwcYBD7x0CFNhQMKmZw4dCJikgPBPASkwMBThWAV1PHjkIuCkRLBwmjw1+zCMyEWUl5o0I9CnI5EYqakyY/B/s0iKFM+YOnMiISPp0L64wDrAgmTRjwEgwiQAU4kE/FUtJjEAtIwFSxwXSKhoIUHIseqXcu2bRIFVr+5JTJggyMQGwbMTYEBDJ4I8NRGCIagrQaZK9eakGnCTYgGFkJIkeAoGIi0AylQSMikgIEwBgpgk4nKyAMIdyGUWDIizYjRpPFJIHCIgFwjrcW8hkJZ5uUhGAQEE8DZSIGGFzqIjrI4ZeMhtYLdOvK4wfIoA2TqFRKi8qkEki0NPlV4CEbSVBVhGM+qeAr2KbfGG4A6D4TtRGiTJsBPQlwk8AUjn0XnyZSeRQV4dwgI4Y0V3SnjqCVBMYc4gBlXCugXh217CZVgwl0mrOZGEAAh+QQJCQAyACwAAAAAQABAAIUEAgSEgoREQkTEwsQkIiSkoqRsamzk4uT08vQUFhRUVlQ0MjS0srSUlpR0dnQMCgxMSkzU0tSsqqzs6uz8+vw8OjzMyswsLix0cnQcHhxcXly8vrycnpwEBgSEhoRERkTExsQkJiSkpqRsbmzk5uT09vQcGhxcWlw0NjS0trScmpx8fnwMDgxMTkysrqzs7uz8/vw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCZcEgsGo/IpHLJbDqf0Kh0Sq1ar8lLilJKXbBg5AUBK8MQ37BamDKbU2s1gOIuUwBxZYdA6CwBJXUwd3lHDwETZS8BD0ptdXCFRR0bght+SAtkZmhNHXhVAYJlAUpaFBQpC0wsHAglHCxTHYmjE5hgIm4iUyGjZiFhD3RmFLhPvr8wwWAdxHbHTrS/t2oSbhJUHr8eaywFrwWyswOCA9FgAKBVDx4vZQiMkmEAIX3z+Pn6+/z9/v8AA06p0AAECBUVBDLpwEEQB3QKhzQcxSHikRjKYMTwl8ABhgRIJv6qyM8EiTIkTByxkNFCvxVuVqxs+TLmEZEU+5moNUGl/hGMyjb26+jA55ECvwpYPNIBaZ0CEJfKiKHCoAqhUrNq3cq1q8IKATgUCJCwSgcII0ZAiEoFBcs6FlBMGVFLkYEwCp7VKXEiCk43JK2g0CuIglwnBjKOsAIgQsYyEdYpefBO2YtGVAQ8NiOgSYvNH6ps2wyjGxMMmx0gAYDixAkUkodcI53tdGojAAwccEPCQGxdtD1vhjDJxS8Xx0ZvNr2EcsbLRVRkbEDkA2kYnZuMyHiXyALCglYJabw58pO/ZgIPkf5YBZEK4N1QKPsEQ2V4i404fhyhSN5fFPQlxQNoYbAWErs9doARbgkSFz77ZdQfbjF4UEABHsQQWx4NKWzmnlQobHaYVOi58WFWHTDwCwNsCZTbSWZM4JtXMgBQgQYaVLDhFUEAACH5BAkJACoALAAAAABAAEAAhQQCBISChDw6PMTGxOTm5CQiJFRWVKSipNTW1CwuLAwODJSWlERGRGxqbMzOzPT29LS2tNze3AwKDERCRCwqLGRiZDQ2NJyenPz+/AQGBISGhDw+PMzKzCQmJFxaXKyqrNza3DQyNBQWFJyanExKTGxubNTS1Pz6/Ly6vOTi5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJVwSCwaj8ikcslsOp/QqHRKrVqvS0oHy10WHBiMqdAtF03hsMPM7qTTFHaZ8g7H5UqRyIlOm/BJJH0IJEwFfWOARwx1GAxNFHdNEgYeElYIjQhsEpkYCJdTIo1he2UVbxVUo6SmXahpqlQgjSBsCp4gClWMdYWcHpZXJLQYIL+KXHrJzM3Oz9DR0tPUzgIBFwcBAtVMFhyNHBZJEiEhGdEGJ6QYDx5GGRoPYQ8a6M0C8+wYJ+NDCn3eONiVDEDAfSYADFnAbgGzCfvqTBCiQF+jBwQBaYj4RoOQEBH9AfrAMc0HIRZCJiNZEsNJFQrWkToRSmNLDB6FMCTlMFn+r5ITKR4MYyIjIIMlExKJJ/OEPWsy2Z3gZkSChRA1namT+q7bkW/hRHo1AmCDhgMHNGxQOLat27djJVSAAAIBhAb3pghYMGDACKpdLKRolEKskwwXGl3IayUfuweAnSQmdQGLhMH7UjBesiHihisNSjZ4MpldZSsoSqJ4Am4fhysRSkZgHfE1kgQBPqRNgCQ2x9mSI54uImHnmxGbVaTmuNpJ532fiwBY3ggF2yElSpaAcoDdgSOh940mIoFAxBRGmWToXudAchW+2QEnMsFinalTNozoOyK6kQIlkVGEAJi9kUJkcoDEkWFCSNAAXSCgUEFWeADIkYBuxUdKCnAgqRAeO+O9lQF1dVjXoQqINYLciUOEoMEHH2gQAovQBAEAIfkECQkAMAAsAAAAAEAAQACFBAIEhIKEREJExMbEJCIk5ObkbGpsrKqsFBIUNDI09Pb03NrcVFJUdHZ0tLa0DAoMlJKULCos7O7sHBocPDo8zM7MtLK0/P785OLkXFpcfH58BAYEhIaETEpMzMrMJCYk7OrsbG5srK6sFBYUNDY0/Pr83N7cVFZUfHp8vLq8DA4MlJaULC4s9PL0HB4cPD48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5AmHBILBqPyKRyyWw6n9CodEqtWq/YbHaiCUy0YCNBcrlICEwAi8FgAcJMTbkcUG5QhfmlgNrAkwF6GkkjA3p6AyN/R2NlZ0gbHoeHA35SGwIvD04TAV5JDSWTh4NRCSZlJglZAHmjeiBvTw+ocwWbVwmvkyRQL5MvWBm7hxm+wMLEesazrmW3WLrKZb1Qp6mrWBsg0yCWUA8CArhZDdOli1GRxB7f6VCFr4nvVHfccyB99FYACWwJsvYJHEiwoMEwDww4WLDAgQF3B5WQqKUHQ7UjAD58CDjwhahRCigcOYGhDIYTBGkRwwDxxCSUAg1MM0Ck1SQMHNOlmJaCyP6HVx8EUtxlwidQgSWVFR1i81CBnIt2KutJxGWxgTKVhTCSIenJlM5GYVCBMUIEqPQ8viohMqISCkkrtnVrRyHDFA/p6t3Lt69fOA/MkqvyIEECiFk+HFBQpsSBoFM2cGB8QQEHxFU6tJjUooMUFRUmVSCLJcJmkBGirHi1IssBYgegqPg4SQFpwrRHlRi8RNqri1RYTGPxhAQx4Ece8C4iXBlxJ7PXLhfyoMGCMgv0GXmQe9JuKKtHtT6CwNAhDwiOvN4VW3boQxXSHxHxysKRD6c5p47ygMPHEhxMB4NvoyAnhGaceUbFAyQkIKAQcuyCThERiPCfCPvRAwExEC8o8QALLDwIBwrEoPCXEMbtYiBfFtR34hAIvKdHfC8O8QAKtZiAgoh+qcBjjYsEAQAh+QQJCQAuACwAAAAAQABAAIUEAgSMioxEQkTMysxkYmTk5uQkIiSsqqxUUlT09vSUlpTc2tx0cnQcGhwsLiwMCgxMSkzU0tRsamzs7uxcWlyUkpQsKiy0trT8/vycnpwEBgSMjoxERkTMzsxkZmTs6uwkJiSsrqxUVlT8+vycmpzk4uR8enw0MjQMDgxMTkzU1tRsbmz08vRcXlwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCXcEgsGo8ayCYU2kAAx6h0Sp1yVJisdiGoer9fz0hLxowk4LR6yBmXy921nKrBvssqzXx/TN3vCHyCQxV/bxWDgxeGZRdHBisKFSsGiVOLjFqORA8kblkjGQ+WR4WZWYhDDwN/A6OkRAinWYFDCowZcycBGydRAHaMC1BCBp93I5VqDglZCQ5RbZlxQgynDGu3WgpSYn9nRSSnuWqmWdxSAgtvXEYZ42sObiPQUwBKTBVPR9aZ2GsnNvQiZYzRCBCwBL0zRC7hngcd/nR45XAPioVkMqComMgAAwUkGCjjSLKkyZMoU6o0+cCCBYorwYA40MzMAYQxvUBg8YYF/gQpKCBA2KjSAs87CSwcETAhywRqJw8wOmAERVMtE4iyrPkNpgs/ZVKgdHCq3hCwZMSePFG2iFUyWVE+OPZmhFcXAo6ygGpSqiGqR4IOXWn0DwulOafs7PkzMRULIeaFQOy4ygMHDu5W3sy5s+fPoCuioBAgAAWtcwCAAEEMlogPZD6I2COiRJYSs0mJ+JNbze4yvQWhgH3nA2ovAAq8KdGaDwFGBNSA+INT0AZGG6RTTxSAUQA1yd8UaG4EAAcTJjiQJ/LcUHTfbyhMARGBTATKbq++ibuGgm0MuE3RgHJlFNBAFL/FtwcALq1XhDZvoHMEBcRlIRtKBIo3BQoELpTWwnEcacCIHqFVWMYHoQkBYRkSgjbgGx8cmKILFgSDgQr4pWgeevvM6CNnQQAAIfkECQkAJgAsAAAAAEAAQACFBAIEhIaEREJExMbEJCIkZGJktLK07OrsnJqcVFZUDA4MNDI0/Pr8jI6M5OLkdHZ0TEpMzM7MLCosvL689PL0XF5cFBYUBAYEjIqMzMrMJCYkZGZk7O7snJ6cXFpcFBIUNDY0/P78lJKUfHp8TE5MxMLEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Ak3BILBqPyKRyyWyaPo/BwTF4KJzYrBJyCHm/B4h2PIYwvugQQ0xuLxWcdJrzcduPI7l8dGcSAhkOBwMBBEcDemkDfUkAAWdpDBgARXGJXxSMRxcGlyEGlEMUnl6ZRgAFE1MTBRdaAaQhGESIpItFFrVoAxZYGpCeDBpDeaR8RAC6iq5NDbFeDUMflol0RQWeG04RzyERRGaXbEQlnhNOo8+mQwLUXxzjRO5yHE7zl+vSI1IHGSNXR9JV29btm5tyl841EdEtmpsN2Zz8isVAgh0AGRJlCNUEQ6xZdyxkTJOhFxZOngwwuwNgQ4kDB0ps4IgFAAZgXyTR1NRHQ/6ACDAjYDDEs6jRo0iTKl3KtKlTIQo8YMDgAeBTLQm6gElwNUuCRFyRgOiAAERXBVrlHLBKZEG6ilexXSpwBAGaDledXXJYpMPdqx4vgSyyABKDBVcreKJ7REKHDoivwqnGtmuSr3o8WHbiIW2IA2E3N1FQYGqFOqJTq17NurXr17Bj90kwgAGFAaHbKIAAoTIjhmlEuGnnhYOAopjl5MYy+Z1vNyPl3NJCQg4JTQBwomGws0n1NNcZARAYqTuT5sWft4muqI2AdBSOM1kwYoRZJcnTLM+yuzcTAH590YF5QwCHhnBOPSDHA0t4UBsDA2j2lANyOCCbEAAkQiBrFBqmYeGFJiiYBoMgAnjXhq6BUN99ILboYmxBAAAh+QQJCQAnACwAAAAAQABAAIUEAgSMiozExsRUUlQkIiSkpqTk5uQUEhQ0MjS0srT09vScmpx8enwMCgw8Ojzk4uRcWlwsKiysrqz08vQcHhy8urz8/vykoqQEBgSUkpTMzsxUVlQkJiSsqqzs6uwUFhQ0NjS0trT8+vycnpx8fnwMDgw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCTcEgsGo/IpHLJbA4PINDBSa02ESGRxSIKIazg8Gmj3ZpFG7GaiVCY39zIen4MweEhuhNDoWCSB2V3WyJTekkOEm4WChIORw6DcI+HRgABkgEARSCSb5RHBAMDHGKYngFFB55mhkUEFW8VBFYmrFsmRXaeFUcUBnceFFUJtxZ5RAiCcCJyRrGDvXuLrAp/RBDLhGlGHKylTd7GFuDJFWUiFV9HG6zcTOLG5aogDq5HA+572oMi12IEvlEpdisBHWh3pDmxdSvXHAIegtGqcirToQ8SZE2scinTpkqiSK1JhC4BqEooMRDwg7Kly5cnMHyEqcfBCGAWDIw4SdNK/oMCkgo06GmlhAZWGu4RXdLBWIelQjYIEKFAwDshkcbxfFnRTAYiQMcVIApB0jucxgwQFSBJwJBxZobCBMCP0Ee4W+S+BECN2ceI4zysbTskrLGxPcsOepfV2FaXGe58BesU6gkIU0UIgGDEKFK9lpWUaDqoA+jQSxxceLDlwYXHqJlg+Be7tu3buHPr3s3bSYQsCkI4UwNixAIQLiNMeDNhOJg2hJzr2fUGWZgFb0agpHtHxEwrI7Jv72tXjDJC6ypRN2M9TIQLI9JXUs5cOtEBBToMaPJbRBf7PTHwBgO9HVHCMiKUUGARCNwh34IHvpHggkUIaAYJFBoxQAf6CWXo4YcghmhEEAA7YnVPZzU3UnNDZXVsS2VVYlhjelFTNkFCd2NQbHA4Umg0WUJramlqdElnNVhRWVphVGtSTmNwSno1Zm5mZ0ZOWA==);background-repeat:no-repeat;background-position:center center;width:100%;height:100%}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:100%;grid-column-gap:0;height:100%}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image{width:1299px;height:100%;position:relative}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main{background-image:url(data:image/gif;base64,R0lGODlhQABAAKUAAAQCBISChMTCxDQ2NOzq7KyqrExOTBweHJSSlNTW1PT29FxaXLS2tCwqLAwKDIyKjMzKzERCRPTy9FRWVCQmJJyanNze3Pz+/GRiZLy+vExKTAQGBISGhMTGxOzu7KyurFRSVCQiJJSWlNza3Pz6/FxeXLy6vCwuLAwODIyOjMzOzERGRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJCQAsACwAAAAAQABAAAAG/kCWcEgsGo/IpHLJbDqf0CgRtXg8FiipdjshXL4XwmRLdk7A6Mu4zD6ivOkvIduuCzFxNMbOHCwWA0opeWApfEkgI2gWIEgPhF8Ph0cBhAFHJZAXe0gHHBkmHAdaZ5BrUx6EHnRGGhJoChpRABaaFgBGpXELna9pEqNPA5pfgUYLcHKnRg8keZJPeMScRiglViWsRwKEAlDSmtRkGd1Qw8TGZY/PULS2uGwHvmjAUbp5vHUaCrCyUpV5LvE58EBAhgfBSNUCY2HZpDoDSpRI97CixYsYM2pkgoICBW0bo0Rg4OwCCQYRQkLZIIJQBXgql1TQhCDmkhXELqwIeaCA/gcJBRIOIUcsw8YGyS54CEHEQUlNJBxo/BDnA5ETOb+c0DgPjAQiDbJe2Jqx65evQ5zmjDq1ahGimoxqRIrGA4UiEXKm3NhTAlChQ2ZCqmlTyQbBcSpsKMwkgomSJEzsZdzEAYUGUilr3sw5yYkUCSR4SJCCbGciLJ+CISFi8WkWG+DmyeC6c0tiIk43UE2IRAM+FJhKuZ0zd5sQEL5AEP4kgdgEdZKDgRCFNyQSx+PcfWK9dxsK2qE4zwq9jXTlUYjjrhNCxRcVzJ2c6J7GN/DfWhBDqpBkgwEDmWXkADeQCFBbEQ64d4EKAWLEEiGtIYJGIyE1gEBoEoyAAH4SG4JB4WtGbCAdBAeCSAQABoAAk4kstujii00EAQAh+QQJCQApACwAAAAAQABAAIUEAgSEgoTEwsREQkSsrqwcGhzk5uRsamyUkpT09vQMDgxcWlwkJiR0dnTMysxMSky8urycmpwMCgyMiowkIiTs7ux0cnT8/vwEBgTExsRERkS0trQcHhzs6uxsbmyUlpT8+vwUFhQsLix8fnzMzsxMTky8vrycnpyMjowAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCUcEgsGo/IpHLJbDqf0Kh0Sl0uMheQY1HtOj+XsPjjLSMX4vSFa24LHWqxw90GgOJhEICeFE02GxMiSQAJeFl7fEUAE3dpE4lGcHhzikUThxNnh2xIEiMZGSMSUyKHYYNHCHERSgokaSQKUpinmmeTW0sBcQFSEKcXEG1YapVQwKfDZpNpx08owShtvGq+UaanqWWvsbNS0XjTbhIBGQ4BpFMA4WkokZZdIigQGyjb8fn6+/z9/v8AAxLB8MCDhwcYBD7x0CFNhQMKmZw4dCJikgPBPASkwMBThWAV1PHjkIuCkRLBwmjw1+zCMyEWUl5o0I9CnI5EYqakyY/B/s0iKFM+YOnMiISPp0L64wDrAgmTRjwEgwiQAU4kE/FUtJjEAtIwFSxwXSKhoIUHIseqXcu2bRIFVr+5JTJggyMQGwbMTYEBDJ4I8NRGCIagrQaZK9eakGnCTYgGFkJIkeAoGIi0AylQSMikgIEwBgpgk4nKyAMIdyGUWDIizYjRpPFJIHCIgFwjrcW8hkJZ5uUhGAQEE8DZSIGGFzqIjrI4ZeMhtYLdOvK4wfIoA2TqFRKi8qkEki0NPlV4CEbSVBVhGM+qeAr2KbfGG4A6D4TtRGiTJsBPQlwk8AUjn0XnyZSeRQV4dwgI4Y0V3SnjqCVBMYc4gBlXCugXh217CZVgwl0mrOZGEAAh+QQJCQAyACwAAAAAQABAAIUEAgSEgoREQkTEwsQkIiSkoqRsamzk4uT08vQUFhRUVlQ0MjS0srSUlpR0dnQMCgxMSkzU0tSsqqzs6uz8+vw8OjzMyswsLix0cnQcHhxcXly8vrycnpwEBgSEhoRERkTExsQkJiSkpqRsbmzk5uT09vQcGhxcWlw0NjS0trScmpx8fnwMDgxMTkysrqzs7uz8/vw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCZcEgsGo/IpHLJbDqf0Kh0Sq1ar8lLilJKXbBg5AUBK8MQ37BamDKbU2s1gOIuUwBxZYdA6CwBJXUwd3lHDwETZS8BD0ptdXCFRR0bght+SAtkZmhNHXhVAYJlAUpaFBQpC0wsHAglHCxTHYmjE5hgIm4iUyGjZiFhD3RmFLhPvr8wwWAdxHbHTrS/t2oSbhJUHr8eaywFrwWyswOCA9FgAKBVDx4vZQiMkmEAIX3z+Pn6+/z9/v8AA06p0AAECBUVBDLpwEEQB3QKhzQcxSHikRjKYMTwl8ABhgRIJv6qyM8EiTIkTByxkNFCvxVuVqxs+TLmEZEU+5moNUGl/hGMyjb26+jA55ECvwpYPNIBaZ0CEJfKiKHCoAqhUrNq3cq1q8IKATgUCJCwSgcII0ZAiEoFBcs6FlBMGVFLkYEwCp7VKXEiCk43JK2g0CuIglwnBjKOsAIgQsYyEdYpefBO2YtGVAQ8NiOgSYvNH6ps2wyjGxMMmx0gAYDixAkUkodcI53tdGojAAwccEPCQGxdtD1vhjDJxS8Xx0ZvNr2EcsbLRVRkbEDkA2kYnZuMyHiXyALCglYJabw58pO/ZgIPkf5YBZEK4N1QKPsEQ2V4i404fhyhSN5fFPQlxQNoYbAWErs9doARbgkSFz77ZdQfbjF4UEABHsQQWx4NKWzmnlQobHaYVOi58WFWHTDwCwNsCZTbSWZM4JtXMgBQgQYaVLDhFUEAACH5BAkJACoALAAAAABAAEAAhQQCBISChDw6PMTGxOTm5CQiJFRWVKSipNTW1CwuLAwODJSWlERGRGxqbMzOzPT29LS2tNze3AwKDERCRCwqLGRiZDQ2NJyenPz+/AQGBISGhDw+PMzKzCQmJFxaXKyqrNza3DQyNBQWFJyanExKTGxubNTS1Pz6/Ly6vOTi5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAb+QJVwSCwaj8ikcslsOp/QqHRKrVqvS0oHy10WHBiMqdAtF03hsMPM7qTTFHaZ8g7H5UqRyIlOm/BJJH0IJEwFfWOARwx1GAxNFHdNEgYeElYIjQhsEpkYCJdTIo1he2UVbxVUo6SmXahpqlQgjSBsCp4gClWMdYWcHpZXJLQYIL+KXHrJzM3Oz9DR0tPUzgIBFwcBAtVMFhyNHBZJEiEhGdEGJ6QYDx5GGRoPYQ8a6M0C8+wYJ+NDCn3eONiVDEDAfSYADFnAbgGzCfvqTBCiQF+jBwQBaYj4RoOQEBH9AfrAMc0HIRZCJiNZEsNJFQrWkToRSmNLDB6FMCTlMFn+r5ITKR4MYyIjIIMlExKJJ/OEPWsy2Z3gZkSChRA1namT+q7bkW/hRHo1AmCDhgMHNGxQOLat27djJVSAAAIBhAb3pghYMGDACKpdLKRolEKskwwXGl3IayUfuweAnSQmdQGLhMH7UjBesiHihisNSjZ4MpldZSsoSqJ4Am4fhysRSkZgHfE1kgQBPqRNgCQ2x9mSI54uImHnmxGbVaTmuNpJ532fiwBY3ggF2yElSpaAcoDdgSOh940mIoFAxBRGmWToXudAchW+2QEnMsFinalTNozoOyK6kQIlkVGEAJi9kUJkcoDEkWFCSNAAXSCgUEFWeADIkYBuxUdKCnAgqRAeO+O9lQF1dVjXoQqINYLciUOEoMEHH2gQAovQBAEAIfkECQkAMAAsAAAAAEAAQACFBAIEhIKEREJExMbEJCIk5ObkbGpsrKqsFBIUNDI09Pb03NrcVFJUdHZ0tLa0DAoMlJKULCos7O7sHBocPDo8zM7MtLK0/P785OLkXFpcfH58BAYEhIaETEpMzMrMJCYk7OrsbG5srK6sFBYUNDY0/Pr83N7cVFZUfHp8vLq8DA4MlJaULC4s9PL0HB4cPD48AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5AmHBILBqPyKRyyWw6n9CodEqtWq/YbHaiCUy0YCNBcrlICEwAi8FgAcJMTbkcUG5QhfmlgNrAkwF6GkkjA3p6AyN/R2NlZ0gbHoeHA35SGwIvD04TAV5JDSWTh4NRCSZlJglZAHmjeiBvTw+ocwWbVwmvkyRQL5MvWBm7hxm+wMLEesazrmW3WLrKZb1Qp6mrWBsg0yCWUA8CArhZDdOli1GRxB7f6VCFr4nvVHfccyB99FYACWwJsvYJHEiwoMEwDww4WLDAgQF3B5WQqKUHQ7UjAD58CDjwhahRCigcOYGhDIYTBGkRwwDxxCSUAg1MM0Ck1SQMHNOlmJaCyP6HVx8EUtxlwidQgSWVFR1i81CBnIt2KutJxGWxgTKVhTCSIenJlM5GYVCBMUIEqPQ8viohMqISCkkrtnVrRyHDFA/p6t3Lt69fOA/MkqvyIEECiFk+HFBQpsSBoFM2cGB8QQEHxFU6tJjUooMUFRUmVSCLJcJmkBGirHi1IssBYgegqPg4SQFpwrRHlRi8RNqri1RYTGPxhAQx4Ece8C4iXBlxJ7PXLhfyoMGCMgv0GXmQe9JuKKtHtT6CwNAhDwiOvN4VW3boQxXSHxHxysKRD6c5p47ygMPHEhxMB4NvoyAnhGaceUbFAyQkIKAQcuyCThERiPCfCPvRAwExEC8o8QALLDwIBwrEoPCXEMbtYiBfFtR34hAIvKdHfC8O8QAKtZiAgoh+qcBjjYsEAQAh+QQJCQAuACwAAAAAQABAAIUEAgSMioxEQkTMysxkYmTk5uQkIiSsqqxUUlT09vSUlpTc2tx0cnQcGhwsLiwMCgxMSkzU0tRsamzs7uxcWlyUkpQsKiy0trT8/vycnpwEBgSMjoxERkTMzsxkZmTs6uwkJiSsrqxUVlT8+vycmpzk4uR8enw0MjQMDgxMTkzU1tRsbmz08vRcXlwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/kCXcEgsGo8ayCYU2kAAx6h0Sp1yVJisdiGoer9fz0hLxowk4LR6yBmXy921nKrBvssqzXx/TN3vCHyCQxV/bxWDgxeGZRdHBisKFSsGiVOLjFqORA8kblkjGQ+WR4WZWYhDDwN/A6OkRAinWYFDCowZcycBGydRAHaMC1BCBp93I5VqDglZCQ5RbZlxQgynDGu3WgpSYn9nRSSnuWqmWdxSAgtvXEYZ42sObiPQUwBKTBVPR9aZ2GsnNvQiZYzRCBCwBL0zRC7hngcd/nR45XAPioVkMqComMgAAwUkGCjjSLKkyZMoU6o0+cCCBYorwYA40MzMAYQxvUBg8YYF/gQpKCBA2KjSAs87CSwcETAhywRqJw8wOmAERVMtE4iyrPkNpgs/ZVKgdHCq3hCwZMSePFG2iFUyWVE+OPZmhFcXAo6ygGpSqiGqR4IOXWn0DwulOafs7PkzMRULIeaFQOy4ygMHDu5W3sy5s+fPoCuioBAgAAWtcwCAAEEMlogPZD6I2COiRJYSs0mJ+JNbze4yvQWhgH3nA2ovAAq8KdGaDwFGBNSA+INT0AZGG6RTTxSAUQA1yd8UaG4EAAcTJjiQJ/LcUHTfbyhMARGBTATKbq++ibuGgm0MuE3RgHJlFNBAFL/FtwcALq1XhDZvoHMEBcRlIRtKBIo3BQoELpTWwnEcacCIHqFVWMYHoQkBYRkSgjbgGx8cmKILFgSDgQr4pWgeevvM6CNnQQAAIfkECQkAJgAsAAAAAEAAQACFBAIEhIaEREJExMbEJCIkZGJktLK07OrsnJqcVFZUDA4MNDI0/Pr8jI6M5OLkdHZ0TEpMzM7MLCosvL689PL0XF5cFBYUBAYEjIqMzMrMJCYkZGZk7O7snJ6cXFpcFBIUNDY0/P78lJKUfHp8TE5MxMLEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABv5Ak3BILBqPyKRyyWyaPo/BwTF4KJzYrBJyCHm/B4h2PIYwvugQQ0xuLxWcdJrzcduPI7l8dGcSAhkOBwMBBEcDemkDfUkAAWdpDBgARXGJXxSMRxcGlyEGlEMUnl6ZRgAFE1MTBRdaAaQhGESIpItFFrVoAxZYGpCeDBpDeaR8RAC6iq5NDbFeDUMflol0RQWeG04RzyERRGaXbEQlnhNOo8+mQwLUXxzjRO5yHE7zl+vSI1IHGSNXR9JV29btm5tyl841EdEtmpsN2Zz8isVAgh0AGRJlCNUEQ6xZdyxkTJOhFxZOngwwuwNgQ4kDB0ps4IgFAAZgXyTR1NRHQ/6ACDAjYDDEs6jRo0iTKl3KtKlTIQo8YMDgAeBTLQm6gElwNUuCRFyRgOiAAERXBVrlHLBKZEG6ilexXSpwBAGaDledXXJYpMPdqx4vgSyyABKDBVcreKJ7REKHDoivwqnGtmuSr3o8WHbiIW2IA2E3N1FQYGqFOqJTq17NurXr17Bj90kwgAGFAaHbKIAAoTIjhmlEuGnnhYOAopjl5MYy+Z1vNyPl3NJCQg4JTQBwomGws0n1NNcZARAYqTuT5sWft4muqI2AdBSOM1kwYoRZJcnTLM+yuzcTAH590YF5QwCHhnBOPSDHA0t4UBsDA2j2lANyOCCbEAAkQiBrFBqmYeGFJiiYBoMgAnjXhq6BUN99ILboYmxBAAAh+QQJCQAnACwAAAAAQABAAIUEAgSMiozExsRUUlQkIiSkpqTk5uQUEhQ0MjS0srT09vScmpx8enwMCgw8Ojzk4uRcWlwsKiysrqz08vQcHhy8urz8/vykoqQEBgSUkpTMzsxUVlQkJiSsqqzs6uwUFhQ0NjS0trT8+vycnpx8fnwMDgw8PjwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG/sCTcEgsGo/IpHLJbA4PINDBSa02ESGRxSIKIazg8Gmj3ZpFG7GaiVCY39zIen4MweEhuhNDoWCSB2V3WyJTekkOEm4WChIORw6DcI+HRgABkgEARSCSb5RHBAMDHGKYngFFB55mhkUEFW8VBFYmrFsmRXaeFUcUBnceFFUJtxZ5RAiCcCJyRrGDvXuLrAp/RBDLhGlGHKylTd7GFuDJFWUiFV9HG6zcTOLG5aogDq5HA+572oMi12IEvlEpdisBHWh3pDmxdSvXHAIegtGqcirToQ8SZE2scinTpkqiSK1JhC4BqEooMRDwg7Kly5cnMHyEqcfBCGAWDIw4SdNK/oMCkgo06GmlhAZWGu4RXdLBWIelQjYIEKFAwDshkcbxfFnRTAYiQMcVIApB0jucxgwQFSBJwJBxZobCBMCP0Ee4W+S+BECN2ceI4zysbTskrLGxPcsOepfV2FaXGe58BesU6gkIU0UIgGDEKFK9lpWUaDqoA+jQSxxceLDlwYXHqJlg+Be7tu3buHPr3s3bSYQsCkI4UwNixAIQLiNMeDNhOJg2hJzr2fUGWZgFb0agpHtHxEwrI7Jv72tXjDJC6ypRN2M9TIQLI9JXUs5cOtEBBToMaPJbRBf7PTHwBgO9HVHCMiKUUGARCNwh34IHvpHggkUIaAYJFBoxQAf6CWXo4YcghmhEEAA7YnVPZzU3UnNDZXVsS2VVYlhjelFTNkFCd2NQbHA4Umg0WUJramlqdElnNVhRWVphVGtSTmNwSno1Zm5mZ0ZOWA==);background-repeat:no-repeat;background-position:center center;width:100%;height:100%}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image.ng-image-slider-show{opacity:1;display:block}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image.ng-image-slider-hide{opacity:0;display:none}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main img{transition:.5s ease-in-out;width:auto;height:auto;max-height:100%;max-width:100%;position:absolute;z-index:11;top:0;bottom:0;margin:auto;left:0;right:0}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main iframe,.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .lightbox-image-main .lightbox-image .custom-image-main video{top:0;left:0;right:0;bottom:0;margin:auto;width:100%;height:100%;border:0}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .caption{position:absolute;z-index:11;top:0;margin:auto;padding:5px;color:#fff;background-color:rgba(0,0,0,.35);max-width:100%;left:0;right:0}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .caption.show{display:block}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .caption.hide{display:none}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .next,.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .prev{position:absolute;right:10px;top:50%;background-color:#fff;border-radius:50%;cursor:pointer;margin-top:-16px;width:38px;height:38px;font-size:35px;z-index:12;line-height:30px;outline:0;color:#000;transition:.3s ease-in-out}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .next:hover,.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .prev:hover{background-color:#d4cdcd}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .next.disable,.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .prev.disable{color:#bbb;background-color:#fff}.ng-image-fullscreen-view .lightbox-wrapper .lightbox-div .prev{left:10px}.ng-image-fullscreen-view .lightbox-wrapper .close{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAQK0lEQVRYCQEgEN/vAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMjLuvr60L8/Pwz/Pz8HAQEBBYAAAAA/Pz86gQEBOQEBATPFRUVvt3d3dAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPT09DNPT02T4+Php/v7+FgQEBLwBAQHHCAgI4AQEBO4AAAAA/Pz8Evn5+SD+/v43/Pz8RAICAu4ICAiZKysrmsXFxfIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVFRVcBQUF5wkJCcEYGBhOZGRkBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAY2NjBBgYGEwJCQm9BgYG6xQUFGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMTExDgwMDK0FBQXhGBgYSgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGRkZRgYGBt8LCwuvLCwsDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAuLi4WBwcH0QsLC7EzMzMQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADU1NQ4LCwutBwcH0ygoKBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAwMA4ICAjRDQ0NnWxsbAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABycnICDQ0NlwcHB9UqKioQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAsLC7ELCwuvcHBwBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAd3d3AgwMDKkLCwu3d3d3AgAAAAAAAAAAAAAAAAAAAAAAFBQUYgYGBt01NTUOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADk5OQwGBgbZFBQUagAAAAAAAAAAAAAAAAA3NzcQBgYG6xoaGkQAAAAAAAAAAAAAAAAAAAAACAgIkQMDA/sHBweZPz8/BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/BAcHB5kDAwP7CAgIkwAAAAAAAAAAAAAAAAAAAAAaGho8BgYG7zIyMhQAAAAAAAAAAAAODg56CgoKuQAAAAAAAAAAAAAAAAAAAAAAAAAAAwMD+wAAAP8AAAD/BwcHoz8/PwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz8EBwcHowAAAP8AAAD/AgIC/QAAAAAAAAAAAAAAAAAAAAAAAAAACQkJsQ4ODoEAAAAAAHNzcwIHBwfjHBwcRAAAAAAAAAAAAAAAAAAAAAAAAAAABwcHmwAAAP8AAAD/AAAA/wcHB6M/Pz8EAAAAAAAAAAAAAAAAAAAAAD8/PwQHBwejAAAA/wAAAP8AAAD/BwcHmwAAAAAAAAAAAAAAAAAAAAAAAAAAHh4ePgYGBudqamoEACAgIDwGBgblbW1tAgAAAAAAAAAAAAAAAAAAAAAAAAAAOjo6BAcHB6UAAAD/AAAA/wAAAP8HBwejPz8/BAAAAAAAAAAAPz8/BAcHB6MAAAD/AAAA/wAAAP8HBwelOjo6BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcHB98cHBxCAA4ODn4LCwudAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADo6OgQHBwelAAAA/wAAAP8AAAD/BwcHoz8/PwQ/Pz8EBwcHowAAAP8AAAD/AAAA/wcHB6U6OjoEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwMDJcNDQ2FAAoKCrESEhJoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6OjoEBwcHpQAAAP8AAAD/AAAA/wcHB6MHBwejAAAA/wAAAP8AAAD/BwcHpTo6OgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABISEmIICAi1AAkJCdUZGRlEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOjo6BAcHB6UAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8HBwelOjo6BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB0dHT4JCQnbAAUFBeElJSUyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADo6OgQHBwelAAAA/wAAAP8AAAD/AAAA/wcHB6U6OjoEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ODiQCAgLjAv///wD+/v7+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUFBQAAAAD+AAAAAAAAAAAAAAAAAAAAAAAAAP4FBQUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/v4AAAACAAoKCtkcHBxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/BAcHB6MAAAD/AAAA/wAAAP8AAAD/AAAA/wAAAP8HBwejPz8/BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACMjIzwJCQnfAAgICLcTExNgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz8EBwcHowAAAP8AAAD/AAAA/wcHB6UHBwelAAAA/wAAAP8AAAD/BwcHoz8/PwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAQEFgHBwe7AA0NDYkMDAyTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8/PwQHBwejAAAA/wAAAP8AAAD/BwcHpTo6OgQ6OjoEBwcHpQAAAP8AAAD/AAAA/wcHB6M/Pz8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwMDI0NDQ2PABcXF0YICAjZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPz8/BAcHB6MAAAD/AAAA/wAAAP8HBwelOjo6BAAAAAAAAAAAOjo6BAcHB6UAAAD/AAAA/wAAAP8HBwejPz8/BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgICNMVFRVOAFtbWwYFBQXtIiIiMgAAAAAAAAAAAAAAAAAAAAAAAAAABwcHmQAAAP8AAAD/AAAA/wcHB6U6OjoEAAAAAAAAAAAAAAAAAAAAADo6OgQHBwelAAAA/wAAAP8AAAD/BwcHmwAAAAAAAAAAAAAAAAAAAAAAAAAAJSUlLAYGBvFLS0sIAAAAAAAMDAyPCwsLowAAAAAAAAAAAAAAAAAAAAAAAAAAAwMD+wAAAP8AAAD/BwcHpTo6OgQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA6OjoEBwcHpQAAAP8AAAD/AgIC/QAAAAAAAAAAAAAAAAAAAAAAAAAADAwMnQwMDJUAAAAAAAAAAAAnJyccBQUF8x8fHy4AAAAAAAAAAAAAAAAAAAAACAgIkwICAv0HBwebOjo6BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOjo6BAcHB5sCAgL9CAgIlQAAAAAAAAAAAAAAAAAAAAAhISEoBQUF9SgoKCAAAAAAAAAAAAAAAAAAEBAQfggICMlaWloEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGpqagQJCQnDDw8PhQAAAAAAAAAAAAAAAAAAAAAASkpKBggICMsPDw+PAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8PD4cICAjPPz8/CAAAAAAAAAAAAAAAAAAAAAAAAAAAACIiIh4GBgbnEBAQcgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAExMTbgYGBukhISEgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAaGhooBgYG5xAQEItoaGgEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHBwcAQPDw+FBQUF6RkZGSwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMjIAgICM8JCQnDICAgJgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIyMjJAkJCb8HBwfRISEhIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEFBQQgODg6HBQUF9QwMDJcmJiYmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACYmJiIMDAyTBQUF9Q4ODo1BQUEKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIiIiJOnp6Xf7+/taAgIC1AUFBbgLCwvLDg4O3DExMfYAAAD+0NDQDPLy8iT09PQy+/v7R/7+/jAFBQWoGBgYid3d3doAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA3NzcM3t7eTvX19UH///8y/f39HgICAhQAAAAA/v7+7gMDA+ABAQHQCgoKvScnJ7TFxcXyAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAx6aIH59j4jkAAAAASUVORK5CYII=);background-repeat:no-repeat;background-position:center center;background-size:32px;position:absolute;top:10px;right:10px;color:#000;background-color:#fff;padding:0;opacity:1;border-radius:50%;height:36px;width:36px;z-index:12;cursor:pointer;transition:.2s}.ng-image-fullscreen-view .lightbox-wrapper.error-msg{background-image:none}.ng-image-fullscreen-view .invalid-msg{color:#fff;font-size:18px;position:absolute;top:45%;left:45%}.ng-image-fullscreen-view .popup-pagination{background-color:#1f1f1f;color:#fff;position:absolute;height:30px;width:100%;text-align:center;bottom:0;font-size:16px;line-height:30px}@media (max-width:768px){.ng-image-fullscreen-view .lightbox-wrapper{width:100%;height:100%}.ng-image-fullscreen-view .lightbox-wrapper.error-msg{background-image:none}}"],encapsulation:2}),i})();const gCe=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,JJ=["jpeg","jpg","gif","png"],QJ=["mp4"];let WJ=(()=>{class i{constructor(t,r,s){this.imageSliderService=t,this.sanitizer=r,this.YOUTUBE="youtube",this.IMAGE="image",this.VIDEO="video",this.fileUrl="",this.fileExtension="",this.type=this.IMAGE,this.showVideo=!1,this.videoAutoPlay=!1,this.showVideoControls=1,this.speed=1,this.isVideo=!1,this.alt="",this.title="",this.direction="ltr",this.ratio=!1}ngOnChanges(t){this.imageUrl&&this.imageUrl&&this.imageUrl&&"string"==typeof this.imageUrl&&(t.imageUrl&&t.imageUrl.firstChange||this.videoAutoPlay)&&this.setUrl()}setUrl(){const t=this.imageUrl;this.fileUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t),this.fileExtension=t.split(".").pop().split(/\#|\?/)[0],this.imageSliderService.base64FileExtension(t)&&(JJ.indexOf(this.imageSliderService.base64FileExtension(t).toLowerCase())>-1||QJ.indexOf(this.imageSliderService.base64FileExtension(t).toLowerCase())>-1)&&(this.fileExtension=this.imageSliderService.base64FileExtension(t));const r=t.match(gCe);if(r&&11===r[2].length)this.showVideo?(this.type=this.YOUTUBE,this.fileUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`https://www.youtube.com/embed/${r[2]}${this.videoAutoPlay?"?autoplay=1&enablejsapi=1":"?autoplay=0&enablejsapi=1"}&controls=${this.showVideoControls}`)):(this.type=this.IMAGE,this.fileUrl=this.sanitizer.bypassSecurityTrustResourceUrl(`https://img.youtube.com/vi/${r[2]}/0.jpg`));else if(this.fileExtension&&JJ.indexOf(this.fileExtension.toLowerCase())>-1)this.type=this.IMAGE;else if(this.fileExtension&&QJ.indexOf(this.fileExtension.toLowerCase())>-1&&(this.type=this.VIDEO,this.videoAutoPlay&&document.getElementById(`video_${this.imageIndex}`))){const s=document.getElementById(`video_${this.imageIndex}`);setTimeout(()=>{s.play()},1e3*this.speed)}}videoClickHandler(t){t&&t.srcElement&&!this.showVideoControls&&(t.srcElement.paused?t.srcElement.play():t.srcElement.pause())}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(MR),n.Y36(rd),n.Y36(ie))},i.\u0275cmp=n.Xpm({type:i,selectors:[["custom-img"]],inputs:{showVideo:"showVideo",videoAutoPlay:"videoAutoPlay",showVideoControls:"showVideoControls",speed:"speed",isVideo:"isVideo",alt:"alt",title:"title",direction:"direction",ratio:"ratio",currentImageIndex:"currentImageIndex",imageIndex:"imageIndex",imageUrl:"imageUrl"},features:[n.TTD],decls:1,vars:1,consts:[["class","custom-image-main",4,"ngIf"],[1,"custom-image-main"],["class","image",3,"ngClass","src","alt","title",4,"ngIf"],["class","youtube","frameborder","0","allow","autoplay","allowfullscreen","",3,"src",4,"ngIf"],["class","video","type","video/mp4","controlsList","nodownload",3,"id","ngClass","autoplay","click",4,"ngIf"],["class","invalid-msg",3,"dir",4,"ngIf"],["class","youtube-icon",4,"ngIf"],[1,"image",3,"ngClass","src","alt","title"],["frameborder","0","allow","autoplay","allowfullscreen","",1,"youtube",3,"src"],["type","video/mp4","controlsList","nodownload",1,"video",3,"id","ngClass","autoplay","click"],["type","video/mp4",3,"src"],[1,"invalid-msg",3,"dir"],[1,"youtube-icon"]],template:function(t,r){1&t&&n.YNc(0,eCe,6,5,"div",0),2&t&&n.Q6J("ngIf",r.fileUrl)},dependencies:[gt,Ge],encapsulation:2}),i})(),_Ce=(()=>{class i{constructor(t,r,s,l){this.cdRef=t,this.sanitizer=r,this.elRef=s,this.document=l,this.totalImages=0,this.nextImageIndex=-1,this.popupWidth=1200,this.marginLeft=0,this.imageFullscreenView=!1,this.lightboxPrevDisable=!1,this.lightboxNextDisable=!1,this.showLoading=!0,this.effectStyle="none",this.speed=1,this.title="",this.currentImageIndex=0,this.images=[],this.videoAutoPlay=!1,this.direction="ltr",this.paginationShow=!1,this.infinite=!1,this.arrowKeyMove=!0,this.showVideoControls=!0,this.close=new n.vpe,this.prevImage=new n.vpe,this.nextImage=new n.vpe}set imageIndex(t){void 0!==t&&t>-1&&t<this.images.length&&(this.currentImageIndex=t),this.nextPrevDisable()}set show(t){this.imageFullscreenView=t,this.elRef.nativeElement.ownerDocument.body.style.overflow="",!0===t&&(this.elRef.nativeElement.ownerDocument.body.style.overflow="hidden",this.setPopupSliderWidth())}set animationSpeed(t){t&&"number"==typeof t&&t>=.1&&t<=5&&(this.speed=t)}onResize(t){this.effectStyle="none",this.setPopupSliderWidth()}handleKeyboardEvent(t){t&&t.key&&this.arrowKeyMove&&("arrowright"===t.key.toLowerCase()&&this.nextImageLightbox(),"arrowleft"===t.key.toLowerCase()&&this.prevImageLightbox(),"escape"===t.key.toLowerCase()&&this.closeLightbox())}ngOnInit(){}ngAfterViewInit(){}ngOnDestroy(){this.resetState()}setPopupSliderWidth(){window&&window.innerWidth&&(this.popupWidth=window.innerWidth,this.totalImages=this.images.length,"number"==typeof this.currentImageIndex&&void 0!==this.currentImageIndex&&(this.marginLeft=-1*this.popupWidth*this.currentImageIndex,this.getImageData(),this.nextPrevDisable(),setTimeout(()=>{this.showLoading=!1},500)))}closeLightbox(){this.close.emit()}prevImageLightbox(){this.effectStyle=`all ${this.speed}s ease-in-out`,this.currentImageIndex>0&&!this.lightboxPrevDisable&&(this.currentImageIndex--,this.prevImage.emit("lightbox previous"),this.marginLeft=-1*this.popupWidth*this.currentImageIndex,this.getImageData(),this.nextPrevDisable())}nextImageLightbox(){this.effectStyle=`all ${this.speed}s ease-in-out`,this.currentImageIndex<this.images.length-1&&!this.lightboxNextDisable&&(this.currentImageIndex++,this.nextImage.emit("lightbox next"),this.marginLeft=-1*this.popupWidth*this.currentImageIndex,this.getImageData(),this.nextPrevDisable())}nextPrevDisable(){this.lightboxNextDisable=!0,this.lightboxPrevDisable=!0,setTimeout(()=>{this.applyButtonDisableCondition()},1e3*this.speed)}applyButtonDisableCondition(){this.lightboxNextDisable=!1,this.lightboxPrevDisable=!1,!this.infinite&&this.currentImageIndex>=this.images.length-1&&(this.lightboxNextDisable=!0),!this.infinite&&this.currentImageIndex<=0&&(this.lightboxPrevDisable=!0)}getImageData(){if(this.images&&this.images.length&&"number"==typeof this.currentImageIndex&&void 0!==this.currentImageIndex&&this.images[this.currentImageIndex]&&(this.images[this.currentImageIndex].image||this.images[this.currentImageIndex].video)){this.title=this.images[this.currentImageIndex].title||"",this.totalImages=this.images.length;for(const t in this.document.getElementsByTagName("iframe"))this.document.getElementsByTagName("iframe")[t]&&this.document.getElementsByTagName("iframe")[t].contentWindow&&this.document.getElementsByTagName("iframe")[t].contentWindow.postMessage&&this.document.getElementsByTagName("iframe")[t].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");for(const t in this.document.getElementsByTagName("video"))this.document.getElementsByTagName("video")[t]&&this.document.getElementsByTagName("video")[t].pause&&this.document.getElementsByTagName("video")[t].pause()}}resetState(){this.images=[]}swipeLightboxImg(t,r){const s=[t.changedTouches[0].pageX,t.changedTouches[0].pageY],l=(new Date).getTime();if("start"===r)this.swipeLightboxImgCoord=s,this.swipeLightboxImgTime=l;else if("end"===r){const u=[s[0]-this.swipeLightboxImgCoord[0],s[1]-this.swipeLightboxImgCoord[1]];l-this.swipeLightboxImgTime<1e3&&Math.abs(u[0])>30&&Math.abs(u[0])>Math.abs(3*u[1])&&(u[0]<0?this.nextImageLightbox():this.prevImageLightbox())}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO),n.Y36(rd),n.Y36(n.SBq),n.Y36(ie))},i.\u0275cmp=n.Xpm({type:i,selectors:[["slider-lightbox"]],viewQuery:function(t,r){if(1&t&&(n.Gf(tCe,5),n.Gf(nCe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.lightboxDiv=s.first),n.iGM(s=n.CRH())&&(r.lightboxImageDiv=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("resize",function(l){return r.onResize(l)},!1,n.Jf7)("keyup",function(l){return r.handleKeyboardEvent(l)},!1,n.evT)},inputs:{images:"images",videoAutoPlay:"videoAutoPlay",direction:"direction",paginationShow:"paginationShow",infinite:"infinite",arrowKeyMove:"arrowKeyMove",showVideoControls:"showVideoControls",imageIndex:"imageIndex",show:"show",animationSpeed:"animationSpeed"},outputs:{close:"close",prevImage:"prevImage",nextImage:"nextImage"},decls:1,vars:1,consts:[["class","ng-image-fullscreen-view",4,"ngIf"],[1,"ng-image-fullscreen-view"],[1,"lightbox-wrapper"],[1,"close",3,"click"],[1,"lightbox-div"],["lightboxDiv",""],["class","pre-loader",4,"ngIf"],[1,"lightbox-image-main",3,"ngStyle"],["class","lightbox-image",3,"ngStyle","touchstart","touchend",4,"ngFor","ngForOf"],[1,"caption",3,"dir","ngClass"],["class","prev icons prev-icon",3,"ngClass","click",4,"ngIf"],["class","next icons next-icon",3,"ngClass","click",4,"ngIf"],["class","popup-pagination",4,"ngIf"],[1,"pre-loader"],[1,"mnml-spinner"],[1,"lightbox-image",3,"ngStyle","touchstart","touchend"],["lightboxImageDiv",""],[3,"imageUrl","isVideo","currentImageIndex","imageIndex","speed","videoAutoPlay","showVideoControls","alt","title","showVideo","direction"],[1,"prev","icons","prev-icon",3,"ngClass","click"],[1,"next","icons","next-icon",3,"ngClass","click"],[1,"popup-pagination"]],template:function(t,r){1&t&&n.YNc(0,uCe,13,16,"div",0),2&t&&n.Q6J("ngIf",r.imageFullscreenView)},dependencies:[gt,Bt,Ge,uo,WJ],encapsulation:2}),i})(),bCe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[MR],imports:[Lt]}),i})();function pr(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Fo(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const eQ=["*"];function ACe(i,o){if(1&i&&(n.TgZ(0,"span",3),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij("(",t.textFor("optional"),")")}}let io=(()=>{let i=class{constructor(t,r,s){this.label=t,this.renderer=r,this.zone=s,this.labelClass=!0,this.handleClick=()=>{const l=this.getFocusableComponent();!l||((i=>i.wrapper&&("KENDO-UPLOAD"===i.wrapper.tagName||"KENDO-FILESELECT"===i.wrapper.tagName))(l)&&l.fileSelect.nativeElement.click(),l.focus&&l.focus())}}get labelFor(){if("string"==typeof this.for)return this.for;if(!Dt())return null;const t=this.getFocusableComponent()||{};return(i=>i instanceof HTMLElement)(t)&&!((i,o)=>i.hasAttribute("id"))(t)&&this.renderer.setAttribute(t,"id",`k-${to()}`),t.focusableId||t.id||null}ngAfterViewInit(){this.setAriaLabelledby(),this.zone.runOutsideAngular(()=>this.clickListener=this.renderer.listen(this.label.nativeElement,"click",this.handleClick))}ngOnDestroy(){this.clickListener&&this.clickListener()}setAriaLabelledby(){if(!Dt())return;const t=this.getFocusableComponent();if(t&&t.focusableId){const s=(i=>{if(!i)return null;let o=i;for(;o.parentElement;)o=o.parentElement;return o})(this.label.nativeElement).querySelector(`#${t.focusableId}`);if(!s)return;const l=this.label.nativeElement,u=l.id||`k-${to()}`;l.getAttribute("id")||this.renderer.setAttribute(l,"id",u),this.renderer.setAttribute(s,"aria-labelledby",u)}}getFocusableComponent(){const t=this.for;return t&&void 0!==t.focus?t:null}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["label","for",""]],hostVars:3,hostBindings:function(t,r){2&t&&(n.uIk("for",r.labelFor),n.ekj("k-label",r.labelClass))},inputs:{for:"for"}}),pr([(0,n.IIB)(),Fo("design:type",Object)],i.prototype,"for",void 0),pr([(0,n.pfw)("attr.for"),Fo("design:type",String),Fo("design:paramtypes",[])],i.prototype,"labelFor",null),pr([(0,n.pfw)("class.k-label"),Fo("design:type",Boolean)],i.prototype,"labelClass",void 0),i=pr([Fo("design:paramtypes",[n.SBq,n.Qsj,n.R0b])],i),i})(),LE=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{optional:"optional"},features:[n.qOj]}),pr([(0,n.IIB)(),Fo("design:type",String)],i.prototype,"optional",void 0),i})();var kR;let Ig=kR=class extends LE{constructor(o){super(),this.service=o}};var IR;Ig.\u0275fac=function(o){return new(o||Ig)(n.Y36(Te))},Ig.\u0275dir=n.lG2({type:Ig,selectors:[["","kendoLabelLocalizedMessages",""],["","kendoFloatingLabelLocalizedMessages",""]],features:[n._Bn([{provide:LE,useExisting:(0,n.Gpc)(()=>kR)}]),n.qOj]}),Ig=kR=pr([Fo("design:paramtypes",[Te])],Ig);let d0=IR=class extends LE{constructor(o){super(),this.service=o}get override(){return!0}};d0.\u0275fac=function(o){return new(o||d0)(n.Y36(Te))},d0.\u0275cmp=n.Xpm({type:d0,selectors:[["kendo-label-messages"],["kendo-floatinglabel-messages"]],features:[n._Bn([{provide:LE,useExisting:(0,n.Gpc)(()=>IR)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),d0=IR=pr([Fo("design:paramtypes",[Te])],d0);let RE=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();const tQ={name:"@progress/kendo-angular-label",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219058,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let kCe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,RE,RE]}),i})(),iQ=(()=>{let i=class{constructor(t,r,s){this.elementRef=t,this.renderer=r,this.localization=s,this.subscriptions=new bn.w,(0,mi.s)(tQ),this.direction=s.rtl?"rtl":"ltr",this.renderer.removeAttribute(this.elementRef.nativeElement,"id")}ngAfterContentInit(){if(this.for)return void(this.control=this.for);const t=(i=>this.elementRef.nativeElement.querySelector("kendo-label > input, kendo-label > textarea, kendo-label > select"))();if(t)return t.hasAttribute("id")||this.renderer.setAttribute(t,"id",`k-${to()}`),void(this.control=t);this.control=this.kendoInput}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr"}))}ngAfterViewInit(){this.labelDirective.setAriaLabelledby()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}textFor(t){return this.localization.get(t)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Te))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-label"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,Mo,7),2&t){let l;n.iGM(l=n.CRH())&&(r.kendoInput=l.first)}},viewQuery:function(t,r){if(1&t&&n.Gf(io,7),2&t){let s;n.iGM(s=n.CRH())&&(r.labelDirective=s.first)}},hostVars:1,hostBindings:function(t,r){2&t&&n.uIk("dir",r.direction)},inputs:{text:"text",for:"for",optional:"optional"},exportAs:["kendoLabel"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.label"}])],ngContentSelectors:eQ,decls:5,vars:5,consts:function(){let o;return o="",[["kendoLabelLocalizedMessages","","optional",o],[3,"for"],["class","k-label-optional",4,"ngIf"],[1,"k-label-optional"]]},template:function(t,r){1&t&&(n.F$t(),n.GkF(0,0),n.TgZ(1,"label",1),n._uU(2),n.YNc(3,ACe,2,1,"span",2),n.qZA(),n.Hsn(4)),2&t&&(n.xp6(1),n.ekj("k-label-empty",!r.text),n.Q6J("for",r.control),n.xp6(1),n.hij(" ",r.text,""),n.xp6(1),n.Q6J("ngIf",r.optional))},dependencies:[Ge,Ig,io],encapsulation:2}),pr([(0,n.pfw)("attr.dir"),Fo("design:type",String)],i.prototype,"direction",void 0),pr([(0,n.IIB)(),Fo("design:type",String)],i.prototype,"text",void 0),pr([(0,n.IIB)(),Fo("design:type",Object)],i.prototype,"for",void 0),pr([(0,n.IIB)(),Fo("design:type",Boolean)],i.prototype,"optional",void 0),pr([(0,n.i9L)(io,{static:!0}),Fo("design:type",io)],i.prototype,"labelDirective",void 0),pr([(0,n.aQ5)(Mo,{static:!0}),Fo("design:type",Object)],i.prototype,"kendoInput",void 0),i=pr([Fo("design:paramtypes",[n.SBq,n.Qsj,Te])],i),i})(),ICe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,RE,kCe,RE]}),i})();function ECe(i,o){if(1&i&&(n.TgZ(0,"label"),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Oqu(t.tag.nome)}}let PCe=(()=>{class i{constructor(){this.tag={},this.exibirLabel=!1}getIconTag(t){return t?t.toLowerCase().replace(" ","").normalize("NFD").replace(/[\u0300-\u036f]/g,""):""}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-produto-icone-alimentar"]],inputs:{tag:"tag",exibirLabel:"exibirLabel"},decls:4,vars:5,consts:[[1,"produto-tag"],[1,"icone"],["kendoTooltip","",3,"title"],[4,"ngIf"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div",1),n._UZ(2,"i",2),n.qZA(),n.YNc(3,ECe,2,1,"label",3),n.qZA()),2&t&&(n.xp6(2),n.Gre("icon-restricao-alimentar ",r.getIconTag(r.tag.nome)," "),n.s9C("title",r.tag.nome),n.xp6(1),n.Q6J("ngIf",r.exibirLabel))},dependencies:[Ge],styles:[".produto-tag[_ngcontent-%COMP%]{margin:6px 12px 6px 0;display:grid;grid-template-columns:22px 1fr;grid-column-gap:4px;-moz-column-gap:4px;column-gap:4px;align-items:center;font-size:.75rem;line-height:.875rem;color:#717171}.produto-tag[_ngcontent-%COMP%]   .icone[_ngcontent-%COMP%]{background-color:#f7f7f7;border-radius:50%;height:28px;width:28px;display:flex;align-items:center;justify-content:center}.produto-tag[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{position:relative;top:3px;margin-left:5px}.icon-restricao-alimentar[_ngcontent-%COMP%]{width:16px;height:16px;background-size:16px;position:relative;background-color:#f7f7f7;border-radius:50%;display:flex;align-items:center;justify-content:center}.icon-restricao-alimentar.organico[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-organico.png)}.icon-restricao-alimentar.vegetariano[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-vegetariano.png)}.icon-restricao-alimentar.vegano[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-vegano.png)}.icon-restricao-alimentar.semacucar[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-semacucar.png)}.icon-restricao-alimentar.semgluten[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-semgluten.png)}.icon-restricao-alimentar.zerolactose[_ngcontent-%COMP%]{background-image:url(/assets/icons/icon-produto-semlactose.png)}"]}),i})();function OCe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-produto-icone-alimentar",3),n.BQk()),2&i){const t=o.$implicit,r=n.oxw();n.xp6(1),n.Q6J("tag",t)("exibirLabel",r.exibirLabel)}}let oQ=(()=>{class i{constructor(){this.tags=[],this.exibirLabel=!1}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tags-alimentar"]],inputs:{tags:"tags",exibirLabel:"exibirLabel"},decls:3,vars:1,consts:[[1,"tags-produto"],[1,"tags-container"],[4,"ngFor","ngForOf"],[3,"tag","exibirLabel"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div",1),n.YNc(2,OCe,2,2,"ng-container",2),n.qZA()()),2&t&&(n.xp6(2),n.Q6J("ngForOf",r.tags))},dependencies:[Bt,PCe],styles:[".tags-produto[_ngcontent-%COMP%]{border:0;padding:0;display:block}.tags-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}\n/*# sourceMappingURL=tags-produto.component.ts-angular-inline--2.css.map*/"]}),i})();function NCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.voltar())}),n._UZ(1,"i",8),n.qZA()}}function LCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",7),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fechar())}),n._UZ(1,"i",9),n.qZA()}}let Cs=(()=>{class i{constructor(t,r){this._location=t,this.dominiosService=r,this.exibirFechar=!1,this.fechou=new n.vpe,this.clicouVoltar=new n.vpe}ngOnInit(){window.tema&&(this.tema=window.tema)}voltar(){this.clicouVoltar.observers.length>0?this.clicouVoltar.emit(!0):this.retorno?this.dominiosService.navegueParaUrl(this.retorno):this._location.back()}fechar(){this.fechou.emit(!0)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(_n),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-header-tela"]],inputs:{titulo:"titulo",tema:"tema",exibirFechar:"exibirFechar",retorno:"retorno"},outputs:{fechou:"fechou",clicouVoltar:"clicouVoltar"},decls:9,vars:6,consts:[[1,"remova_padding","topo"],[1,"navbar","navbar-expand-lg","navbar-light","bg-light","shadow"],[1,"row"],[1,"pl-2","span3","text-left",2,"margin-top","3px"],["class","btn btn-outline-blue btn-rounded","style","margin-right: 5px;",3,"click",4,"ngIf"],[1,"pl-1","span6","text-center"],[1,"titulo"],[1,"btn","btn-outline-blue","btn-rounded",2,"margin-right","5px",3,"click"],[1,"fa","fa-arrow-left","ct-point"],[1,"fas","fa-times"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"nav",1)(2,"div",2)(3,"div",3),n.YNc(4,NCe,2,0,"button",4),n.YNc(5,LCe,2,0,"button",4),n.qZA(),n.TgZ(6,"div",5)(7,"h4",6),n._uU(8),n.qZA()()()()()),2&t&&(n.Tol(r.tema),n.xp6(4),n.Q6J("ngIf",!r.exibirFechar),n.xp6(1),n.Q6J("ngIf",r.exibirFechar),n.xp6(3),n.Oqu(r.titulo))},dependencies:[Ge],styles:[".remova_padding[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.bg-light[_ngcontent-%COMP%]{background-color:#f7f8f8}@media (min-width: 1025px){.remova_padding[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}}  .tema-personalizado.topo{background-color:#f7f8f8!important;background-color:var(--cor-fundo, #f7f8f8)!important}  .tema-personalizado.topo .bg-light{background-color:#f7f8f8!important;background-color:var(--cor-fundo, #f7f8f8)!important}  .tema-personalizado.topo h4.titulo{color:inherit;color:var(--cor-texto-primaria, inherit)}  .tema-personalizado.topo .btn-outline-blue{border-color:#007bff;border-color:var(--cor-botao, #007bff);color:#007bff;color:var(--cor-texto-botao, #007bff)}  .tema-personalizado.topo .btn-outline-blue:hover{background-color:#007bff;background-color:var(--cor-botao, #007bff);color:#fff;color:var(--cor-texto-botao, #fff)}  .black_friday_2022 .topo .bg-light{background:#0e0e0e!important;border-bottom:solid 1px #676767;box-shadow:none!important;color:#cfcfcf}  .black_friday_2022 .topo h4.titulo{color:#cfcfcf}  .black_friday_2022 .topo .btn-outline-blue{border-color:#cfcfcf;color:#cfcfcf}.chinainbox[_ngcontent-%COMP%]   .bg-light[_ngcontent-%COMP%]{background-color:#e52f26!important}.chinainbox[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .fa-times[_ngcontent-%COMP%]{color:#fff!important;border-color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover{background-color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:red!important}.carnaval[_ngcontent-%COMP%]   .bg-light[_ngcontent-%COMP%]{background-color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .fa-times[_ngcontent-%COMP%]{color:#fff!important;border-color:#fff!important}.carnaval[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover{background-color:#fff!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fce101!important}"]}),i})(),FE=(()=>{class i{constructor(t,r){this.el=t,this.model=r}obtenhaValor(){return parseFloat(this.el.nativeElement.value.replace("R$","").replace(",",".").trim())}selecioneTudo(){this.obtenhaValor()>0&&(this.el.nativeElement.select(),this.selecionou=!0)}limpeSeTiverFoco(){!this.selecionou||(this.selecionou=!1,this.model.valueAccessor.writeValue(0))}ngAfterContentInit(){this.el.nativeElement.addEventListener("focusin",t=>{this.selecioneTudo()}),this.el.nativeElement.addEventListener("keydown",t=>{this.limpeSeTiverFoco()})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(ni))},i.\u0275dir=n.lG2({type:i,selectors:[["","appSelecionarNoFoco",""]]}),i})();const RCe=["nav"];function FCe(i,o){if(1&i&&(n.TgZ(0,"span",8),n._uU(1,">(Parte de "),n.TgZ(2,"b"),n._uU(3),n.qZA(),n._uU(4,")"),n.qZA()),2&i){const t=n.oxw();n.xp6(3),n.Oqu(t.campoAdicional.sabor)}}function BCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"input",11),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.filtroOpcao=s)})("input",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onFilter())}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("ngModel",t.filtroOpcao)}}function HCe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"i",9),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.habilitarBusca())}),n.qZA(),n.YNc(2,BCe,1,1,"input",10),n.BQk()}if(2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf",t.clicouBusca)}}function $Ce(i,o){if(1&i&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.ekj("badge-danger",t.totalSelecionado(t.posicao)<1&&t.campoAdicional.obrigatorio||t.totalSelecionado(t.posicao)>0&&t.totalSelecionado(t.posicao)<t.campoAdicional.qtdMinima)("badge-info",(t.totalSelecionado(t.posicao)>=t.campoAdicional.qtdMinima||!t.campoAdicional.obrigatorio)&&t.totalSelecionado(t.posicao)<t.campoAdicional.qtdMaxima)("badge-success",t.totalSelecionado(t.posicao)==t.campoAdicional.qtdMaxima),n.xp6(1),n.AsE(" ",t.totalSelecionado(t.posicao),"/",t.campoAdicional.qtdMaxima,"")}}function UCe(i,o){if(1&i&&(n.TgZ(0,"span",13),n._uU(1,"OBRIGAT\xd3RIO"),n.qZA()),2&i){const t=n.oxw();n.ekj("badge-danger",t.totalSelecionado(t.posicao)<t.campoAdicional.qtdMinima)("badge-success",t.totalSelecionado(t.posicao)>=t.campoAdicional.qtdMinima)}}function YCe(i,o){if(1&i&&(n.TgZ(0,"span",13),n._uU(1,"OBRIGAT\xd3RIO"),n.qZA()),2&i){const t=n.oxw();n.ekj("badge-danger",!t.itemPedido.adicionais["campo"+t.posicao])("badge-success",t.itemPedido.adicionais["campo"+t.posicao])}}function jCe(i,o){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij("Escolha ",t.campoAdicional.obrigatorio?"":"at\xe9"," 1 op\xe7\xe3o")}}function ZCe(i,o){if(1&i&&(n.TgZ(0,"span",14),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.AsE("Escolha entre ",t.campoAdicional.qtdMinima," e ",t.campoAdicional.qtdMaxima," op\xe7\xf5es")}}function VCe(i,o){if(1&i&&(n.TgZ(0,"p",15),n._UZ(1,"i",16),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErro,"\n")}}function zCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"img",27),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2),l=s.index,u=s.$implicit,p=n.oxw(2);return n.KtG(p.exibaFullScreen(l,u))}),n.qZA()}if(2&i){const t=n.oxw(2).$implicit;n.Q6J("src","/images/empresa/"+t.linkImagem,n.LSH)}}const ER=function(i,o){return{image:i,thumbImage:o}},PR=function(i){return[i]};function GCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",28)(1,"ng-image-slider",29,30),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.abriuImagem(s))}),n.qZA()()}if(2&i){const t=n.oxw(2),r=t.index,s=t.$implicit;n.xp6(1),n.Q6J("id","nav"+r)("images",n.VKq(6,PR,n.WLB(3,ER,"/images/empresa/"+s.linkImagem,"/images/empresa/"+s.linkImagem)))("autoSlide",1)}}function qCe(i,o){if(1&i&&(n.TgZ(0,"span",31),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij("+",n.xi3(2,1,t.valor,"BRL"),"")}}function JCe(i,o){if(1&i&&(n.TgZ(0,"span",33),n._uU(1),n.qZA()),2&i){const t=n.oxw(3).$implicit;n.xp6(1),n.Oqu(t.descricao)}}function QCe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"br"),n.YNc(2,JCe,2,1,"span",32),n.BQk()),2&i){const t=n.oxw(2).$implicit;n.xp6(2),n.Q6J("ngIf",t.descricao)}}function WCe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div"),n.YNc(1,zCe,1,1,"img",21),n.YNc(2,GCe,3,8,"div",22),n.TgZ(3,"label",23)(4,"input",24),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw().$implicit,u=n.oxw(2);return n.KtG(u.itemPedido.adicionais["lista"+u.posicao]["opcao_"+l.id].selecionada=s)})("click",function(s){n.CHM(t);const l=n.oxw().$implicit,u=n.oxw(2);return n.KtG(u.vaiMudarSelecao(s,l))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw().$implicit,u=n.oxw(2);return n.KtG(u.mudouSelecao(s,l))}),n.qZA(),n.TgZ(5,"span",25),n._uU(6),n.qZA(),n.YNc(7,qCe,3,4,"span",26),n.qZA(),n.YNc(8,QCe,3,1,"ng-container",2),n.qZA()}if(2&i){const t=n.oxw(),r=t.last,s=t.$implicit,l=n.oxw(2);n.ekj("mb-2",!r)("mt-2",!r)("desabilitada",!l.itemPedido.adicionais["lista"+l.posicao]["opcao_"+s.id].selecionada&&l.totalSelecionado(l.posicao)==l.campoAdicional.qtdMaxima),n.xp6(1),n.Q6J("ngIf",s.linkImagem),n.xp6(1),n.Q6J("ngIf",s.linkImagem),n.xp6(1),n.Q6J("for","campo"+l.posicao+"_"+s.id),n.xp6(1),n.hYB("id","campo",l.posicao,"_",s.id,"")("name","campo",l.posicao,"_",s.id,""),n.Q6J("ngModel",l.itemPedido.adicionais["lista"+l.posicao]["opcao_"+s.id].selecionada)("value",s)("disabled",!l.itemPedido.adicionais["lista"+l.posicao]["opcao_"+s.id].selecionada&&l.totalSelecionado(l.posicao)==l.campoAdicional.qtdMaxima),n.xp6(2),n.Oqu(s.nome),n.xp6(1),n.Q6J("ngIf",s.valor),n.xp6(1),n.Q6J("ngIf",s.descricao)}}function KCe(i,o){if(1&i&&(n.TgZ(0,"div",19),n.YNc(1,WCe,9,19,"div",20),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(2);n.Q6J("hidden",!t.disponivel||t.esconder),n.xp6(1),n.Q6J("ngIf",r.itemPedido.adicionais["lista"+r.posicao])}}function XCe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",17),n.YNc(2,KCe,2,2,"div",18),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngForOf",t.opcoesFiltradas)}}function eAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"img",27),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(),l=s.index,u=s.$implicit,p=n.oxw(2);return n.KtG(p.exibaFullScreen(l,u))}),n.qZA()}if(2&i){const t=n.oxw().$implicit;n.Q6J("src","/images/empresa/"+t.linkImagem,n.LSH)}}function tAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",28)(1,"ng-image-slider",29,30),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abriuImagem(s))}),n.qZA()()}if(2&i){const t=n.oxw(),r=t.index,s=t.$implicit;n.xp6(1),n.Q6J("id","nav"+r)("images",n.VKq(6,PR,n.WLB(3,ER,"/images/empresa/"+s.linkImagem,"/images/empresa/"+s.linkImagem)))("autoSlide",1)}}function nAe(i,o){if(1&i&&(n.TgZ(0,"span",31),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("\xa0 +",n.xi3(2,1,t.valor,"BRL"),"")}}function iAe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"br"),n.TgZ(2,"span",33),n._uU(3),n.qZA(),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.Oqu(t.descricao)}}function oAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",19),n.YNc(1,eAe,1,1,"img",21),n.YNc(2,tAe,3,8,"div",22),n.TgZ(3,"label",23)(4,"input",36),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.itemPedido.adicionais["escolhido_campo"+l.posicao]=s)})("click",function(s){const u=n.CHM(t).$implicit,p=n.oxw(2);return n.KtG(p.deselecione(p.posicao,u,s))})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.selecionouAdicionalSimples(u.posicao,l))}),n.qZA(),n.TgZ(5,"span",25),n._uU(6),n.qZA(),n.YNc(7,nAe,3,4,"span",26),n.qZA(),n.YNc(8,iAe,4,1,"ng-container",2),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=o.last,l=n.oxw(2);n.ekj("mb-2",!s)("mt-2",!s),n.Q6J("hidden",!t.disponivel||t.esconder),n.xp6(1),n.Q6J("ngIf",t.linkImagem),n.xp6(1),n.Q6J("ngIf",t.linkImagem),n.xp6(1),n.cQ8("for","campo",l.campoAdicional.id,"_",l.posicao,"_",r,""),n.xp6(1),n.cQ8("id","campo",l.campoAdicional.id,"_",l.posicao,"_",r,""),n.MGl("name","campo",l.posicao,""),n.Q6J("ngModel",l.itemPedido.adicionais["escolhido_campo"+l.posicao])("value",t.id)("required",!0),n.xp6(2),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngIf",t.valor),n.xp6(1),n.Q6J("ngIf",t.descricao)}}function rAe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",34),n.YNc(2,oAe,9,20,"div",35),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngForOf",t.opcoesFiltradas)}}function aAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",50)(1,"img",27),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(),l=s.index,u=s.$implicit,p=n.oxw(2);return n.KtG(p.exibaFullScreen(l,u))}),n.qZA(),n.TgZ(2,"div",28)(3,"ng-image-slider",29,30),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abriuImagem(s))}),n.qZA()()()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index;n.xp6(1),n.Q6J("src","/images/empresa/"+r.linkImagem,n.LSH),n.xp6(2),n.Q6J("id","nav"+s)("images",n.VKq(7,PR,n.WLB(4,ER,"/images/empresa/"+r.linkImagem,"/images/empresa/"+r.linkImagem)))("autoSlide",1)}}function sAe(i,o){if(1&i&&(n.TgZ(0,"span",51),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("+",n.xi3(2,1,t.valor,"BRL"),"")}}function lAe(i,o){if(1&i&&(n.TgZ(0,"div",52)(1,"span",53),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.Oqu(t.descricao)}}function cAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",38),n.YNc(1,aAe,5,9,"div",39),n.TgZ(2,"div",40)(3,"div",41)(4,"label",42)(5,"div")(6,"span",25),n._uU(7),n.qZA()(),n.YNc(8,sAe,3,4,"span",43),n.qZA(),n.TgZ(9,"div")(10,"div",44)(11,"button",45),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.diminuirQtde(l))}),n._UZ(12,"i",46),n.qZA(),n.TgZ(13,"input",47),n.NdJ("ngModelChange",function(s){const u=n.CHM(t).$implicit,p=n.oxw(2);return n.KtG(p.itemPedido.adicionais["lista"+p.posicao]["opcao_"+u.id].qtde=s)}),n.qZA(),n.TgZ(14,"button",45),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.aumentarQtde(l))}),n._UZ(15,"i",48),n.qZA()()()(),n.YNc(16,lAe,3,1,"div",49),n.qZA()()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(2);n.Q6J("hidden",!t.disponivel||t.esconder),n.xp6(1),n.Q6J("ngIf",t.linkImagem),n.xp6(2),n.ekj("mb-1",!t.descricao)("desabilitada",!s.qtdeDaOpcao(s.posicao,t)&&s.totalSelecionado(s.posicao)==s.campoAdicional.qtdMaxima||t.qtdeMaxima===s.qtdeDaOpcao(s.posicao,t)),n.xp6(4),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngIf",t.valor),n.xp6(3),n.Q6J("disabled",0==s.itemPedido.adicionais["lista"+s.posicao]["opcao_"+t.id].qtde),n.xp6(2),n.hYB("name","campo",s.campoAdicional.id,"",r,"_qtd"),n.Q6J("ngModel",s.itemPedido.adicionais["lista"+s.posicao]["opcao_"+t.id].qtde)("value",s.itemPedido.adicionais["lista"+s.posicao]["opcao_"+t.id].qtde),n.xp6(1),n.Q6J("disabled",s.totalSelecionado(s.posicao)==s.campoAdicional.qtdMaxima||t.qtdeMaxima===s.qtdeDaOpcao(s.posicao,t)),n.xp6(2),n.Q6J("ngIf",t.descricao)}}function dAe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",17),n.YNc(2,cAe,17,15,"div",37),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngForOf",t.opcoesFiltradas)}}let BE=(()=>{class i{constructor(t){this.elementRef=t,this.exibirSabor=!1,this.onMarcouOpcao=new n.vpe,this.onDesmarcouOpcao=new n.vpe,this.msgErro=""}ngOnInit(){"escolha-simples"===this.campoAdicional.tipo&&1===this.campoAdicional.opcoesDisponiveis.length&&this.campoAdicional.obrigatorio&&(this.itemPedido.adicionais[`escolhido_campo${this.posicao}`]=this.campoAdicional.opcoesDisponiveis[0].id,this.selecionouAdicionalSimples(this.posicao,this.campoAdicional.opcoesDisponiveis[0],!0)),this.opcoesFiltradas=[...this.campoAdicional.opcoesDisponiveis],this.notifiqueOsQueEstaoSelecionados(),this.exibirSabor&&this.alterouTamanho(this.tamanhoSabor)}totalSelecionado(t){let r=this.itemPedido.adicionais["lista"+t];return r?r.totalSelecionado:0}qtdeDaOpcao(t,r){let s=this.itemPedido.adicionais["lista"+t];return s&&s["opcao_"+r.id].qtde||0}diminuirQtde(t){let r=this.itemPedido.adicionais["lista"+this.posicao],s=r["opcao_"+t.id];if(0===s.qtde)return;1===s.qtde&&(s.selecionada=!1);let l=1;t.qtdeMinima===s.qtde&&(l=t.qtdeMinima),s.qtde-=l,s.valorTotal=s.qtde*t.valor,r.totalSelecionado-=l,this.itemPedido.atualizeTotal()}zereQtdeDaOpcao(t){let s=this.itemPedido.adicionais["lista"+this.posicao],l=s["opcao_"+t.id];0!==l.qtde&&(l.valorTotal-=l.qtde*t.valor,l.qtde=0,s.totalSelecionado=0,l.selecionada=!1,this.itemPedido.atualizeTotal())}aumentarQtde(t){let r=this.itemPedido.adicionais["lista"+this.posicao];if(r.totalSelecionado===this.campoAdicional.qtdMaxima)return;let s=r["opcao_"+t.id],l=1;0===s.qtde&&(s.selecionada=!0,t.qtdeMinima&&(l=t.qtdeMinima)),s.qtde+=l,s.valorTotal=s.qtde*t.valor,r.totalSelecionado+=l,this.itemPedido.atualizeTotal()}vaiMudarSelecao(t,r){!this.itemPedido.adicionais["lista"+this.posicao]["opcao_"+r.id].selecionada&&this.itemPedido.adicionais["lista"+this.posicao].totalSelecionado===this.campoAdicional.qtdMaxima&&t.preventDefault()}mudouSelecao(t,r){this.msgErro="";let s=this.itemPedido.adicionais["lista"+this.posicao]["opcao_"+r.id],l=this.itemPedido.adicionais["lista"+this.posicao];t?(l.totalSelecionado++,s.valorTotal=r.valor,s.qtde=1):(s.valorTotal=0,s.qtde=0,l.totalSelecionado--),l.valorTotal=r.valor*l.totalSelecionado,this.itemPedido.atualizeTotal()}notifiqueOsQueEstaoSelecionados(){this.campoAdicional.opcoesDisponiveis.length&&this.campoAdicional.opcoesDisponiveis.forEach(t=>{t.dependencias&&t.dependencias.length&&(t.esconder=!0)}),this.campoAdicional.esconder=!this.campoAdicional.opcoesDisponiveis.find(t=>!t.esconder),setTimeout(()=>{this.campoAdicional.opcoesDisponiveis.length&&this.campoAdicional.opcoesDisponiveis.forEach(t=>{"escolha-simples"===this.campoAdicional.tipo&&this.itemPedido.adicionais["escolhido_campo"+this.posicao]===t.id&&this.notifiqueOpcaoMarcada(t,!0)})},250)}selecionouAdicionalSimples(t,r,s=!1){this.msgErro="",this.itemPedido.adicionais["campo"+t]=r,this.itemPedido.atualizeTotal(),this.notifiqueOpcaoMarcada(r,s)}notifiqueOpcaoMarcada(t,r){let s={opcaoId:t.id,adicionalId:this.campoAdicional.id};r||(s.elementoHTML=this.elementRef.nativeElement),this.onMarcouOpcao.emit(s)}deselecione(t,r,s=null){null!=this.itemPedido.adicionais["campo"+t]&&this.itemPedido.adicionais["campo"+t].id===r.id&&(delete this.itemPedido.adicionais["campo"+t],delete this.itemPedido.adicionais["escolhido_campo"+t],this.itemPedido.atualizeTotal(),s&&(s.target.checked=!1)),this.onDesmarcouOpcao.emit({opcaoId:r.id,adicionalId:this.campoAdicional.id})}alterouTamanho(t){this.campoAdicional.opcoesDisponiveis.forEach(r=>{r.template&&r.template.tamanho&&(r.disponivel=r.template.tamanho.id===t.template.id,r.disponivel||this.deselecione(this.posicao,r))}),this.campoAdicional.semOpcaoDisponivel=!this.campoAdicional.opcoesDisponiveis.find(r=>r.disponivel)}exibaErro(t){this.msgErro=t}exibaFullScreen(t,r){let s="nav"+t;this.navs.find((l,u,p)=>l.elRef.nativeElement.id===s&&(l.imageOnClick(r),!0))}abriuImagem(t){}habilitarBusca(){this.clicouBusca=!this.clicouBusca}desmarcouOpcaoQueDepende(t){this.campoAdicional.opcoesDisponiveis.length&&this.campoAdicional.opcoesDisponiveis.forEach(r=>{r.dependencias&&r.dependencias.length&&r.dependencias.filter(l=>l.adicionalId===t.adicionalId).length&&(r.esconder=!0,"escolha-simples"===this.campoAdicional.tipo?this.deselecione(this.posicao,r):this.zereQtdeDaOpcao(r))}),this.campoAdicional.esconder=!this.campoAdicional.opcoesDisponiveis.find(r=>!r.esconder)}exibaOuEscondaOpcaoQueDepende(t){this.campoAdicional.opcoesDisponiveis.length&&this.campoAdicional.opcoesDisponiveis.forEach(r=>{if(r.dependencias&&r.dependencias.length){let s=r.dependencias.filter(l=>l.adicionalId===t.adicionalId);s.length&&(r.esconder=!s.find(l=>l.opcaoDependente.id===t.opcaoId),r.esconder&&("escolha-simples"===this.campoAdicional.tipo?this.deselecione(this.posicao,r):this.zereQtdeDaOpcao(r)))}}),this.campoAdicional.esconder=!this.campoAdicional.opcoesDisponiveis.find(r=>!r.esconder)}onFilter(){this.timerBusca&&clearTimeout(this.timerBusca),this.timerBusca=setTimeout(()=>{if(!this.filtroOpcao)return void(this.opcoesFiltradas=[...this.campoAdicional.opcoesDisponiveis]);let t;for(t of(this.opcoesFiltradas=[],console.log(this.filtroOpcao),this.campoAdicional.opcoesDisponiveis))(t.nome.toLowerCase().includes(this.filtroOpcao.toLowerCase())||t.descricao&&t.descricao.toLowerCase().includes(this.filtroOpcao.toLowerCase()))&&this.opcoesFiltradas.push(t)},1e3)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-campo-adicional"]],viewQuery:function(t,r){if(1&t&&n.Gf(RCe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.navs=s)}},inputs:{produto:"produto",campoAdicional:"campoAdicional",exibirSabor:"exibirSabor",tamanhoSabor:"tamanhoSabor",itemPedido:"itemPedido",posicao:"posicao"},outputs:{onMarcouOpcao:"onMarcouOpcao",onDesmarcouOpcao:"onDesmarcouOpcao"},decls:15,vars:13,consts:[[1,"bg-light","p-1","pl-2","headerCampo","mt-2",3,"hidden"],["class","text-muted font-14",4,"ngIf"],[4,"ngIf"],[1,"float-right"],["class","badge badge-info mr-1",3,"badge-danger","badge-info","badge-success",4,"ngIf"],["class","badge",3,"badge-danger","badge-success",4,"ngIf"],["class","text-muted",4,"ngIf"],["class","alert alert-danger mt-1","role","alert",4,"ngIf"],[1,"text-muted","font-14"],[1,"fas","fa-search",3,"click"],["style","margin-bottom: 5px","kendoTextBox","","placeholder","Busque pelo nome","class","form-control busca","name","txtFiltro",3,"ngModel","ngModelChange","input",4,"ngIf"],["kendoTextBox","","placeholder","Busque pelo nome","name","txtFiltro",1,"form-control","busca",2,"margin-bottom","5px",3,"ngModel","ngModelChange","input"],[1,"badge","badge-info","mr-1"],[1,"badge"],[1,"text-muted"],["role","alert",1,"alert","alert-danger","mt-1"],[1,"fa","fa-times","mr-2"],[1,"mt-2","ml-0"],[3,"hidden",4,"ngFor","ngForOf"],[3,"hidden"],[3,"mb-2","mt-2","desabilitada",4,"ngIf"],["style","max-width: 60px; max-height: 60px","class","img img-pequena",3,"src","click",4,"ngIf"],["style","position: absolute;left: -1500px;z-index: 100000",4,"ngIf"],[1,"mb-1",3,"for"],["type","checkbox","kendoCheckBox","",3,"id","ngModel","value","name","disabled","ngModelChange","click"],[1,"nome_opcao"],["class","badge badge-primary ml-1 preco-extra",4,"ngIf"],[1,"img","img-pequena",2,"max-width","60px","max-height","60px",3,"src","click"],[2,"position","absolute","left","-1500px","z-index","100000"],["slideImage","1",1,"navImagem",3,"id","images","autoSlide","imageClick"],["nav",""],[1,"badge","badge-primary","ml-1","preco-extra"],["class","text-muted descricao","style","margin-left: 33px;display:block",4,"ngIf"],[1,"text-muted","descricao",2,"margin-left","33px","display","block"],[1,"mt-2","ml-0","radio","radio-blue"],["style","",3,"mb-2","mt-2","hidden",4,"ngFor","ngForOf"],["type","radio","kendoRadioButton","",3,"id","ngModel","name","value","required","ngModelChange","click"],["class","row",3,"hidden",4,"ngFor","ngForOf"],[1,"row",3,"hidden"],["class","col-auto","style","padding: 0 0 0 12px;",4,"ngIf"],[1,"col",2,"padding","3px 0","margin","auto"],[2,"display","flex","align-items","center","justify-content","space-between"],[1,"k-checkbox-label","mb-1"],["class","badge badge-primary ml-1","style","margin-top: 3px;float: right",4,"ngIf"],[1,"col","flex-fixed-width-item","pl-0","pr-0","botoes_mais_menos"],["type","button",1,"btn","btn-outline-light",2,"color","#787878","padding-top","2px","padding-bottom","2px",3,"disabled","click"],[1,"fas","fa-minus"],["disabled","",2,"width","20px","border","none","text-align","center","font-size","16px","background","#fff",3,"name","ngModel","value","ngModelChange"],[1,"fas","fa-plus"],["class","mb-2",4,"ngIf"],[1,"col-auto",2,"padding","0 0 0 12px"],[1,"badge","badge-primary","ml-1",2,"margin-top","3px","float","right"],[1,"mb-2"],[1,"text-muted","descricao",2,"margin-left","11px","display","block"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"h4"),n._uU(2),n.YNc(3,FCe,5,1,"span",1),n.YNc(4,HCe,3,1,"ng-container",2),n.TgZ(5,"div",3),n.YNc(6,$Ce,2,8,"span",4),n.YNc(7,UCe,2,4,"span",5),n.YNc(8,YCe,2,4,"span",5),n.qZA()(),n.YNc(9,jCe,2,1,"span",6),n.YNc(10,ZCe,2,2,"span",6),n.qZA(),n.YNc(11,VCe,3,1,"p",7),n.YNc(12,XCe,3,1,"div",2),n.YNc(13,rAe,3,1,"div",2),n.YNc(14,dAe,3,1,"div",2)),2&t&&(n.Q6J("hidden",r.campoAdicional.esconder||r.campoAdicional.semOpcaoDisponivel),n.xp6(2),n.hij("",r.campoAdicional.nome," "),n.xp6(1),n.Q6J("ngIf",r.exibirSabor),n.xp6(1),n.Q6J("ngIf",r.campoAdicional.opcoesDisponiveis.length>=10),n.xp6(2),n.Q6J("ngIf","multipla-escolha"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf",r.campoAdicional.obrigatorio&&"multipla-escolha"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf",r.campoAdicional.obrigatorio&&"escolha-simples"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf","escolha-simples"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf","multipla-escolha"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf","multipla-escolha"==r.campoAdicional.tipo&&!r.campoAdicional.podeRepetirItem),n.xp6(1),n.Q6J("ngIf","escolha-simples"==r.campoAdicional.tipo),n.xp6(1),n.Q6J("ngIf","multipla-escolha"==r.campoAdicional.tipo&&r.campoAdicional.podeRepetirItem&&r.itemPedido.adicionais["lista"+r.posicao]))},dependencies:[Bt,Ge,wi,wp,tc,ti,Lo,ni,Fu,Er,eT,OE,io,Jo],styles:[".headerCampo[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:500}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{margin-left:0}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{margin-left:-2px}.btn-outline-light[_ngcontent-%COMP%]{border-color:transparent}img.img-pequena[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:60px;height:60px;margin-right:5px;cursor:pointer}.headerCampo[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{font-size:11px}label[_ngcontent-%COMP%]{font-size:14px;color:#333}.k-checkbox[_ngcontent-%COMP%]{width:22px;height:22px}.k-radio[_ngcontent-%COMP%]:checked, .k-checkbox[_ngcontent-%COMP%]:checked{border-color:#7e57c2;color:#fff;background-color:#7e57c2}  .tema-personalizado .k-radio:checked,   .tema-personalizado .k-checkbox:checked{border-color:color-mix(in srgb,var(--cor-fundo) 85%,black)!important;color:#fff;background-color:color-mix(in srgb,var(--cor-fundo) 85%,black)!important}.k-radio[_ngcontent-%COMP%]:checked:focus, .k-checkbox[_ngcontent-%COMP%]:checked:focus{box-shadow:0 0 0 2px #7e57c24d}.k-radio[_ngcontent-%COMP%]{width:22px;height:22px}.nome_opcao[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.desabilitada[_ngcontent-%COMP%]   .nome_opcao[_ngcontent-%COMP%]{color:#ccc}.preco-extra[_ngcontent-%COMP%]{margin-top:4px;float:right}.k-checkbox[_ngcontent-%COMP%]:before{width:18px;height:18px;font-size:18px}.alert[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px;border-radius:1px}"]}),i})();class OR{static ordene(o,t,r=!1){let s=this.ordenePorCampo(o,t);return r&&(s=_.sortBy(s,l=>l.categoriaPosicao)),s}static ordenePorCampo(o,t){return t&&"valor"!==t?_.sortBy(o,r=>r.nome):_.sortBy(o,r=>r.preco)}}const uAe=["alerta"],pAe=["nav"];function hAe(i,o){1&i&&(n.TgZ(0,"p",10),n._UZ(1,"i",11),n._uU(2," Escolha o tamanho "),n.qZA())}function gAe(i,o){if(1&i&&(n.TgZ(0,"span",19),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.precoAntigo,"BRL"),"")}}function fAe(i,o){if(1&i&&(n.TgZ(0,"span",20),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("\xa0 +",n.xi3(2,1,t.preco,"BRL"),"")}}function mAe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.AsE("",t.qtdePedacos," ",t.qtdePedacos>1?"peda\xe7os":"peda\xe7o","")}}function _Ae(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"label",12)(2,"input",13,14),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.itemPedido.produtoTamanho=s)})("ngModelChange",function(){n.CHM(t),n.oxw();const s=n.MAs(1),l=n.oxw();return n.KtG(l.alterouTamanhoProduto(s))}),n.qZA(),n.TgZ(4,"span",15),n._uU(5),n.qZA(),n.YNc(6,gAe,3,4,"span",16),n.YNc(7,fAe,3,4,"span",17),n.qZA(),n._UZ(8,"br"),n.TgZ(9,"span",18),n._uU(10),n.YNc(11,mAe,2,2,"ng-container",0),n.qZA()()}if(2&i){const t=o.$implicit,r=o.index,s=o.last,l=n.oxw(2);n.ekj("mb-2",!s)("mt-2",!s),n.xp6(1),n.MGl("for","campo_tamanho_",r,""),n.xp6(1),n.MGl("id","campo_tamanho_",r,"")("name","campo_tamanho_",r,""),n.Q6J("ngModel",l.itemPedido.produtoTamanho)("value",t)("required",!0),n.xp6(3),n.Oqu(t.descricao),n.xp6(1),n.Q6J("ngIf",t.precoAntigo),n.xp6(1),n.Q6J("ngIf",t.preco),n.xp6(3),n.AsE(" ",l.itemPedido.produto.template.identificador," ",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.qtdePedacos>0)}}function bAe(i,o){if(1&i&&(n.TgZ(0,"span",null,7)(2,"div",1)(3,"h4"),n._uU(4,"Tamanho "),n.TgZ(5,"div",2)(6,"span",3),n._uU(7,"OBRIGAT\xd3RIO"),n.qZA()()(),n.TgZ(8,"span",8),n._uU(9,"Escolha 1 op\xe7\xe3o"),n.qZA()(),n.YNc(10,hAe,3,0,"p",9),n.TgZ(11,"div",4),n.YNc(12,_Ae,12,16,"div",6),n.qZA()()),2&i){const t=n.oxw();n.xp6(6),n.ekj("badge-danger",!t.itemPedido.produtoTamanho)("badge-success",t.itemPedido.produtoTamanho),n.xp6(4),n.Q6J("ngIf",t.exibirErros&&!t.itemPedido.produtoTamanho),n.xp6(2),n.Q6J("ngForOf",t.produto.tamanhos)}}function vAe(i,o){1&i&&(n.TgZ(0,"span",15),n._uU(1," Inteira 1 Sabor "),n.qZA())}function yAe(i,o){if(1&i&&(n.TgZ(0,"span",15),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t," Sabores ")}}function CAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"label")(2,"input",13),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.qtdeSabores=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(),l=n.MAs(8);return n.KtG(s.alterouQtdeSabores(l))}),n.qZA(),n.YNc(3,vAe,2,0,"span",21),n.YNc(4,yAe,2,1,"span",21),n.qZA()()}if(2&i){const t=o.$implicit,r=o.index,s=o.last,l=n.oxw();n.ekj("mb-2",!s)("mt-2",!s),n.xp6(2),n.MGl("id","qtde_sabor_",r,"")("name","qtde_sabor_",r,""),n.Q6J("ngModel",l.qtdeSabores)("value",t)("required",!0),n.xp6(1),n.Q6J("ngIf",1===t),n.xp6(1),n.Q6J("ngIf",t>1)}}function AAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"input",29),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.filtroSabor=s)})("input",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onFilter())}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("ngModel",t.filtroSabor)}}function xAe(i,o){if(1&i&&(n.TgZ(0,"p",10,30),n._UZ(2,"i",11),n._uU(3),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(" Escolha ",t.qtdeSabores," sabores ")}}function TAe(i,o){1&i&&(n.ynx(0),n._uU(1,"O valor total da pizza ser\xe1 calculado pelo sabor de maior pre\xe7o"),n.BQk())}function SAe(i,o){1&i&&(n.ynx(0),n._uU(1,"O valor total da pizza ser\xe1 calculado m\xe9dia dos pre\xe7os "),n.BQk())}function wAe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"currency"),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" + ",n.xi3(2,1,t.itemPedido.produto.template.taxaExtra,"R$")," ")}}function MAe(i,o){if(1&i&&(n.TgZ(0,"h5"),n.YNc(1,TAe,2,0,"ng-container",0),n.YNc(2,SAe,2,0,"ng-container",0),n.YNc(3,wAe,3,4,"ng-container",0),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.cobrarMaiorPedacao),n.xp6(1),n.Q6J("ngIf",!t.cobrarMaiorPedacao),n.xp6(1),n.Q6J("ngIf",t.itemPedido.produto.template.taxaExtra&&!1)}}function DAe(i,o){1&i&&n._UZ(0,"div",31)}function kAe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",45),n._uU(2),n.qZA(),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij(" ",t.categoriaNome," ")}}const IAe=function(i,o){return{image:i,thumbImage:o}},EAe=function(i){return[i]};function PAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",46)(1,"img",47),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(),l=s.index,u=s.$implicit,p=n.oxw(2);return n.KtG(p.exibaFullScreen(l,u))}),n.qZA(),n.TgZ(2,"div",48)(3,"ng-image-slider",49,50),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abriuImagem(s))}),n.qZA()()()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index;n.xp6(1),n.Q6J("src","/images/empresa/"+r.linkImagem,n.LSH),n.xp6(2),n.Q6J("id","nav"+s)("images",n.VKq(7,EAe,n.WLB(4,IAe,"/images/empresa/"+r.linkImagem,"/images/empresa/"+ +r.linkImagem)))("autoSlide",1)}}function OAe(i,o){if(1&i&&(n.TgZ(0,"span",20),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.preco,"BRL"),"")}}function NAe(i,o){if(1&i&&(n.TgZ(0,"div",51)(1,"span",52),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.Oqu(t.descricao)}}function LAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",32,33),n.YNc(2,kAe,3,1,"ng-container",0),n.TgZ(3,"div",34),n.YNc(4,PAe,5,9,"div",35),n.TgZ(5,"div",36)(6,"div",37)(7,"label",38)(8,"div")(9,"span",15),n._uU(10),n.qZA()(),n.YNc(11,OAe,3,4,"span",17),n.qZA(),n.TgZ(12,"div")(13,"div",39)(14,"button",40),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.diminuirQtdeSabor(l))}),n._UZ(15,"i",41),n.qZA(),n.TgZ(16,"input",42),n.NdJ("ngModelChange",function(s){const u=n.CHM(t).$implicit;return n.KtG(u.qtde=s)}),n.qZA(),n.TgZ(17,"button",40),n.NdJ("click",function(){const l=n.CHM(t).$implicit;n.oxw();const u=n.MAs(1),p=n.oxw();return n.KtG(p.aumentarQtdeSabor(l,u))}),n._UZ(18,"i",43),n.qZA()()()(),n.YNc(19,NAe,3,1,"div",44),n.qZA()()()}if(2&i){const t=o.$implicit,r=o.index,s=o.fisrt,l=o.last,u=n.oxw(2);n.MGl("id","sabor",r,""),n.xp6(2),n.Q6J("ngIf",u.empresa.agruparCategoriasPizza&&(t.nome===u.saboresPizzaFiltrados[0].nome||t.categoriaNome!=u.saboresPizzaFiltrados[r-1].categoriaNome)),n.xp6(1),n.ekj("mb-2",!l)("mt-2",!s),n.xp6(1),n.Q6J("ngIf",t.linkImagem),n.xp6(1),n.ekj("pl-0",t.linkImagem),n.xp6(1),n.ekj("mb-1",!t.descricao)("desabilitada",!t.qtde&&u.totalSaboresSelecionados()==u.qtdeSabores),n.xp6(4),n.hij("",t.nome," "),n.xp6(1),n.Q6J("ngIf",t.preco),n.xp6(3),n.Q6J("disabled",0==t.qtde),n.xp6(2),n.MGl("name","sabor_",r,"_qtd"),n.Q6J("ngModel",t.qtde)("value",t.qtde),n.xp6(1),n.Q6J("disabled",u.totalSaboresSelecionados()==u.qtdeSabores),n.xp6(2),n.Q6J("ngIf",t.descricao)}}function RAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",null,22)(2,"div",23)(3,"h4"),n._uU(4,"Sabores "),n.TgZ(5,"i",24),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.habilitarBusca())}),n.qZA(),n.YNc(6,AAe,1,1,"input",25),n.TgZ(7,"div",2)(8,"span",3),n._uU(9,"OBRIGAT\xd3RIO"),n.qZA()()(),n.TgZ(10,"span",8),n._uU(11),n.qZA()(),n.YNc(12,xAe,4,1,"p",9),n.YNc(13,MAe,4,3,"h5",0),n.YNc(14,DAe,1,0,"div",26),n.TgZ(15,"div",27),n.YNc(16,LAe,20,21,"div",28),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(6),n.Q6J("ngIf",t.clicouBusca),n.xp6(2),n.ekj("badge-danger",t.totalSaboresSelecionados()!==t.qtdeSabores)("badge-success",t.itemPedido.produtoTamanho),n.xp6(3),n.hij("Escolha ",t.qtdeSabores," sabores "),n.xp6(1),n.Q6J("ngIf",t.exibirErros&&t.totalSaboresSelecionados()!==t.qtdeSabores),n.xp6(1),n.Q6J("ngIf",t.qtdeSabores>1),n.xp6(1),n.Q6J("ngIf",t.recalculandoSabores),n.xp6(1),n.Q6J("hidden",t.recalculandoSabores),n.xp6(1),n.Q6J("ngForOf",t.saboresPizzaFiltrados)}}let rQ=(()=>{class i{constructor(t){this.constantsService=t,this.montarPizza=!1,this.saboresSelecionados=new n.vpe,this.alterouTamanho=new n.vpe,this.pizzas=[],this.saboresPizza=[],this.saboresPizzaFiltrados=[],this.qtdeSabores=1,this.listaQtde=[]}ngOnInit(){this.pizzas=this.constantsService.produtosLoja.filter(t=>"pizza"===t.tipo),this.produto=this.itemPedido.produto,this.constantsService.empresa$.subscribe(t=>this.empresa=t||{}),this.itemPedido.sabores.length&&(this.qtdeSabores=this.itemPedido.sabores.length),1===this.produto.tamanhos.length?(this.itemPedido.produtoTamanho=this.produto.tamanhos[0],this.alterouTamanhoProduto()):this.setSaboresDoTamanho()}desselecioneSabores(){this.saboresPizza.forEach(t=>t.qtde=t.obrigatorio?1:0)}alterouTamanhoProduto(t=null){this.qtdeSabores>this.totalSaboresSelecionados()&&this.desselecioneSabores(),setTimeout(()=>{this.recalculandoSabores=!0,this.setSaboresDoTamanho(),this.obtenhaSaboresEscolhidos(),this.itemPedido.atualizeTotal(),this.alterouTamanho.emit(this.itemPedido.produtoTamanho),this.recalculandoSabores=!1,t&&this.focoProximoAdicional(t)},0)}alterouQtdeSabores(t=null){this.saboresPizza.length||this.setSaboresDoTamanho(),this.qtdeSabores<this.totalSaboresSelecionados()&&this.desselecioneSabores(),this.obtenhaSaboresEscolhidos(),this.itemPedido.atualizeTotal(),this.focoProximoAdicional(t)}focoProximoAdicional(t){setTimeout(()=>{(t.nextElementSibling||(t=t.parentNode)&&t.nextElementSibling)&&(console.log(t.nextElementSibling),t.nextElementSibling.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"}))},50)}setSaboresDoTamanho(){if(this.setQtdeSabores(),this.saboresPizza=[],this.itemPedido.produtoTamanho){let t=this.itemPedido.produtoTamanho.qtdeSabores>=this.qtdeSabores;t||(this.qtdeSabores=1),this.pizzas.forEach(r=>{let s=r.tamanhos.find(l=>l.template.id===this.itemPedido.produtoTamanho.template.id);if(s){let l=new U5(r,s);l.obrigatorio=r.id===this.itemPedido.produto.id,this.itemPedido.sabores.length&&t?this.itemPedido.sabores.filter(p=>p.produto===r.id).forEach(p=>{l.qtde+=p.qtde}):l.obrigatorio&&(l.qtde=1),this.saboresPizza.push(l)}})}this.saboresPizzaFiltrados=[...this.saboresPizza],this.saboresPizzaFiltrados=OR.ordene(this.saboresPizzaFiltrados,this.itemPedido.produto.template.campoOrdenar,!!this.empresa&&this.empresa.agruparCategoriasPizza),this.cobrarMaiorPedacao="maior"===this.produto.template.tipoDeCobranca}diminuirQtdeSabor(t){t.obrigatorio&&1===t.qtde||t.qtde>0&&(t.qtde--,this.obtenhaSaboresEscolhidos(),this.itemPedido.atualizeTotal(),this.saboresSelecionados.emit(this.itemPedido.sabores))}aumentarQtdeSabor(t,r){this.qtdeSabores>this.totalSaboresSelecionados()&&(t.qtde++,this.obtenhaSaboresEscolhidos(),this.itemPedido.atualizeTotal(),this.saboresSelecionados.emit(this.itemPedido.sabores)),this.totalSaboresSelecionados()===this.qtdeSabores&&this.focoProximoAdicional(r)}obtenhaSaboresEscolhidos(){let t=[];this.saboresPizza.filter(s=>s.qtde>0).forEach(s=>{for(let l=1;l<=s.qtde;l++){let u=Object.assign({},s);u.qtde=1,u.camposAdicionais=u.camposAdicionais.filter(p=>p.obrigatorio&&!this.produto.camposAdicionais.find(y=>y.nome===p.nome)),t.push(u)}}),this.itemPedido.sabores=t,this.itemPedido.qtdeSabores=this.qtdeSabores,al.prepareAdicionaisSabores(this.itemPedido,this.produto)}totalSaboresSelecionados(){return this.saboresPizza.filter(t=>t.qtde>0).reduce((t,r)=>r.qtde+t,0)}setQtdeSabores(){this.listaQtde=[];let t=this.itemPedido.produtoTamanho?this.itemPedido.produtoTamanho.qtdeSabores:1;for(let r=1;r<=t;r++)this.listaQtde.push(r)}setExibirErros(){this.exibirErros=!0,setTimeout(()=>{this.alerta.nativeElement.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})},50)}valideCampos(){return this.itemPedido.produtoTamanho?this.qtdeSabores>1&&this.totalSaboresSelecionados()!==this.qtdeSabores?(this.setExibirErros(),!1):!this.montarPizza||this.totalSaboresSelecionados()===this.qtdeSabores||(this.setExibirErros(),!1):(this.setExibirErros(),!1)}onFilter(){this.timerBusca&&clearTimeout(this.timerBusca),this.timerBusca=setTimeout(()=>{if(!this.filtroSabor)return void(this.saboresPizzaFiltrados=OR.ordene(this.saboresPizzaFiltrados,this.itemPedido.produto.template.campoOrdenar,!!this.empresa&&this.empresa.agruparCategoriasPizza));let t;for(t of(this.saboresPizzaFiltrados=[],this.saboresPizza))(t.obrigatorio||t.nome.toLowerCase().includes(this.filtroSabor.toLowerCase())||t.descricao&&t.descricao.toLowerCase().includes(this.filtroSabor.toLowerCase()))&&this.saboresPizzaFiltrados.push(t);this.saboresPizzaFiltrados=OR.ordene(this.saboresPizzaFiltrados,this.itemPedido.produto.template.campoOrdenar,!!this.empresa&&this.empresa.agruparCategoriasPizza)},1e3)}habilitarBusca(){this.clicouBusca=!this.clicouBusca}exibaFullScreen(t,r){let s="nav"+t;this.navs.find((l,u,p)=>l.elRef.nativeElement.id===s&&(l.imageOnClick(r),!0))}abriuImagem(t){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-adicionais-customizados"]],viewQuery:function(t,r){if(1&t&&(n.Gf(uAe,5),n.Gf(pAe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.alerta=s.first),n.iGM(s=n.CRH())&&(r.navs=s)}},inputs:{itemPedido:"itemPedido",montarPizza:"montarPizza"},outputs:{saboresSelecionados:"saboresSelecionados",alterouTamanho:"alterouTamanho"},decls:11,vars:7,consts:[[4,"ngIf"],[1,"bg-light","p-1","pl-2","headerCampo","mt-2"],[1,"float-right"],[1,"badge"],[1,"mt-2","ml-0","radio","radio-blue"],["qtdeSabor",""],[3,"mb-2","mt-2",4,"ngFor","ngForOf"],["tamanhos",""],[1,"text-muted"],["class","alert alert-danger mt-1","role","alert",4,"ngIf"],["role","alert",1,"alert","alert-danger","mt-1"],[1,"fa","fa-times","mr-2"],[1,"mb-1",3,"for"],["type","radio","kendoRadioButton","",3,"id","ngModel","name","value","required","ngModelChange"],["inputTamanho",""],[1,"nome_opcao"],["class","badge badge-light   ml-1   preco-extra","style","    text-decoration: line-through;",4,"ngIf"],["class","badge badge-primary ml-1 preco-extra",4,"ngIf"],[1,"text-muted","descricao",2,"margin-left","33px","display","block"],[1,"badge","badge-light","ml-1","preco-extra",2,"text-decoration","line-through"],[1,"badge","badge-primary","ml-1","preco-extra"],["class","nome_opcao",4,"ngIf"],["sabores",""],[1,"bg-light","p-1","pl-2","headerCampo","sabores","mt-2"],[1,"fas","fa-search",3,"click"],["style","margin-bottom: 5px","kendoTextBox","","placeholder","Busque pelo nome","class","form-control busca","name","txtFiltro",3,"ngModel","ngModelChange","input",4,"ngIf"],["class","k-i-loading k-icon text-center mt-2 ",4,"ngIf"],[1,"mt-2","ml-0",3,"hidden"],[3,"id",4,"ngFor","ngForOf"],["kendoTextBox","","placeholder","Busque pelo nome","name","txtFiltro",1,"form-control","busca",2,"margin-bottom","5px",3,"ngModel","ngModelChange","input"],["alerta",""],[1,"k-i-loading","k-icon","text-center","mt-2"],[3,"id"],["sabor",""],[1,"row"],["class","col-auto","style","padding-right: 5px; margin: auto",4,"ngIf"],[1,"col"],[2,"display","flex","align-items","center","justify-content","space-between"],[1,"k-checkbox-label","mb-1"],[1,"col","flex-fixed-width-item","pl-0","pr-0",2,"background","#fff","min-width","115px","margin-left","10px"],["type","button",1,"btn","btn-outline-light",2,"color","#787878","padding-top","2px","padding-bottom","2px",3,"disabled","click"],[1,"fas","fa-minus"],["disabled","",2,"width","30px","border","none","text-align","center","font-size","16px","background","#fff",3,"name","ngModel","value","ngModelChange"],[1,"fas","fa-plus"],["class","mb-2",4,"ngIf"],[1,"font-weight-bold",2,"background-color","#e8e7e3","padding","4px"],[1,"col-auto",2,"padding-right","5px","margin","auto"],[1,"img","img-pequena",2,"max-width","60px","max-height","60px",3,"src","click"],[2,"position","absolute","left","-1500px","z-index","100000"],["slideImage","1",1,"navImagem",3,"id","images","autoSlide","imageClick"],["nav",""],[1,"mb-2"],[1,"text-muted","descricao",2,"margin-left","11px","display","block"]],template:function(t,r){1&t&&(n.YNc(0,bAe,13,6,"span",0),n.TgZ(1,"div",1)(2,"h4"),n._uU(3," Quantidade de sabores "),n.TgZ(4,"div",2)(5,"span",3),n._uU(6,"OBRIGAT\xd3RIO"),n.qZA()()()(),n.TgZ(7,"div",4,5),n.YNc(9,CAe,5,11,"div",6),n.qZA(),n.YNc(10,RAe,17,11,"span",0)),2&t&&(n.Q6J("ngIf",!r.montarPizza),n.xp6(5),n.ekj("badge-danger",!r.itemPedido.produtoTamanho)("badge-success",r.itemPedido.produtoTamanho),n.xp6(4),n.Q6J("ngForOf",r.listaQtde),n.xp6(1),n.Q6J("ngIf",r.qtdeSabores>1||r.montarPizza))},dependencies:[Bt,Ge,wi,tc,ti,Lo,ni,Fu,Er,OE,io,Jo],styles:["img.img-pequena[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:60px!important;height:60px!important;margin-right:5px;cursor:pointer}.desabilitada[_ngcontent-%COMP%]   .nome_opcao[_ngcontent-%COMP%]{color:#ccc}",".headerCampo[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{font-weight:500}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:before{margin-left:0}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:after{margin-left:-2px}.btn-outline-light[_ngcontent-%COMP%]{border-color:transparent}img.img-pequena[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;width:60px;height:60px;margin-right:5px;cursor:pointer}.headerCampo[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{font-size:11px}label[_ngcontent-%COMP%]{font-size:14px;color:#333}.k-checkbox[_ngcontent-%COMP%]{width:22px;height:22px}.k-radio[_ngcontent-%COMP%]:checked, .k-checkbox[_ngcontent-%COMP%]:checked{border-color:#7e57c2;color:#fff;background-color:#7e57c2}  .tema-personalizado .k-radio:checked,   .tema-personalizado .k-checkbox:checked{border-color:color-mix(in srgb,var(--cor-fundo) 85%,black)!important;color:#fff;background-color:color-mix(in srgb,var(--cor-fundo) 85%,black)!important}.k-radio[_ngcontent-%COMP%]:checked:focus, .k-checkbox[_ngcontent-%COMP%]:checked:focus{box-shadow:0 0 0 2px #7e57c24d}.k-radio[_ngcontent-%COMP%]{width:22px;height:22px}.nome_opcao[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.desabilitada[_ngcontent-%COMP%]   .nome_opcao[_ngcontent-%COMP%]{color:#ccc}.preco-extra[_ngcontent-%COMP%]{margin-top:4px;float:right}.k-checkbox[_ngcontent-%COMP%]:before{width:18px;height:18px;font-size:18px}.alert[_ngcontent-%COMP%]{margin-left:-10px;margin-right:-10px;border-radius:1px}"]}),i})();function FAe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,t.getNumeroZap(),"(99) 9-9999-9999")," ")}}function BAe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,t.getNumeroZap(),"(99) 9999-9999")," ")}}let NR=(()=>{class i{constructor(){}ngOnInit(){}getNumeroZap(){return this.empresa?this.empresa.numeroWhatsapp?this.empresa.numeroWhatsapp.whatsapp:this.empresa.whatsapp:""}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-exibir-whatsapp"]],inputs:{empresa:"empresa",light:"light"},decls:4,vars:7,consts:[[1,"whatsapp",3,"href"],[1,"fab","fa-whatsapp","mr-1"],[4,"ngIf"]],template:function(t,r){1&t&&(n.TgZ(0,"a",0),n._UZ(1,"i",1),n.YNc(2,FAe,3,4,"ng-container",2),n.YNc(3,BAe,3,4,"ng-container",2),n.qZA()),2&t&&(n.ekj("light",r.light),n.Q6J("href","http://wa.me/55"+r.getNumeroZap(),n.LSH),n.xp6(1),n.ekj("fa-2x",!r.light),n.xp6(1),n.Q6J("ngIf",11===r.getNumeroZap().length),n.xp6(1),n.Q6J("ngIf",10===r.getNumeroZap().length))},dependencies:[Ge,xk],styles:[".light[_ngcontent-%COMP%]{color:#fff}"]}),i})();function HAe(i,o){if(1&i&&(n.TgZ(0,"p",23)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Oqu(t.erro)}}function $Ae(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.itemPedido.produto.unidadeMedida.sigla,"")}}function UAe(i,o){if(1&i&&(n.TgZ(0,"button",24),n._UZ(1,"app-exibir-whatsapp",25),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("empresa",t.empresa)("light",!0)}}const YAe=function(i){return{"com-unidade":i}};let aQ=(()=>{class i{constructor(t,r,s){this.constantsService=t,this.carrinhoService=r,this.autorizacaoLojaService=s,this.onInformarPeso=new n.vpe,this.produto={},this.carregando=!0}ngOnInit(){this.produto=this.itemPedido.produto,this.carregando=!1,this.constantsService.empresa$.subscribe(t=>{!t||!t.id||(this.empresa=t,this.estaRecebendoPedidos=t.estaRecebendoPedidos,this.permiteAgendamento=t.permiteAgendamento,this.mensagemAbrirPedidos=t.mensagemAbrirPedidos,this.modoVisualizacao=t.cardapio&&t.cardapio.modoVisualizacao,this.modoVisualizacaoQRcode=t.cardapio&&t.cardapio.modoVisualizacaoQRcode||this.pedido&&this.pedido.mesa&&this.pedido.mesa.somenteLeitura)})}adicionarProduto(){if(delete this.erro,this.empresa.fechadoTemporariamente||!this.estaRecebendoPedidos&&!this.permiteAgendamento)return $("#alertaFechado").modal();if(this.modoVisualizacaoQRcode&&this.pedido.mesa)return this.mensagemAbrirPedidos="Card\xe1pio De Mesa apenas para visualiza\xe7\xe3o. Chame o gar\xe7om para fazer seu pedido!",$("#alertaFechado").modal();if(this.modoVisualizacao)return this.mensagemAbrirPedidos="Fa\xe7a seu pedido pelo nosso Whatsapp!",$("#alertaFechado").modal();if(this.adicionaisCustomizados&&!this.adicionaisCustomizados.valideCampos())return;if(this.itemPedido.produto.empresa={id:this.empresa.id,nome:this.empresa.nome,logo:this.empresa.logo,dominio:this.empresa.dominio},this.produto.camposAdicionais){let r=this.produto.camposAdicionais.length;for(let l=0;l<r;l++){const u=this.produto.camposAdicionais[l];if(!this.itemPedido.valideCampoAdicional(u))return this.ctrlAdicionais.toArray()[l].exibaErro("Complemento \xe9 obrigat\xf3rio"),this.posicioneNoComplemento(u),void(this.adicionandoProduto=!1)}let s=this.produto.camposAdicionais.length-1;for(let l=0;l<this.itemPedido.sabores.length;l++){const u=this.itemPedido.sabores[l];if(u.produto!==this.produto.id)for(let p=0;p<u.camposAdicionais.length;p++){s++;const y=u.camposAdicionais[p];if(!this.itemPedido.valideCampoAdicional(y))return this.ctrlAdicionais.toArray()[s].exibaErro("Complemento \xe9 obrigat\xf3rio"),this.posicioneNoComplemento(y),void(this.adicionandoProduto=!1)}}}this.pedido.codigo&&(this.erro=String(`O pedido #${this.pedido.codigo} est\xe1 aguardando pagamento`));let t=this.empresa.cardapio?this.empresa.cardapio.limiteProdutos:null;if(t&&this.pedido.obtenhaQtdeItens(this.itemPedido)+this.itemPedido.qtde>t&&(this.erro=`M\xe1ximo de itens permitido no carrinho s\xe3o ${t}`),this.erro)this.adicionandoProduto=!1;else{if(this.autorizacaoLojaService.sessao$.subscribe(s=>{if(typeof fbq<"u"){let l=s+"-"+this.itemPedido.produto.id;fbq("track","AddToCart",{content_ids:[this.itemPedido.produto.id],content_type:"product",content_name:this.itemPedido.produto.nome,value:this.itemPedido.total/this.itemPedido.qtde,contents:[{id:this.itemPedido.produto.id,quantity:this.itemPedido.qtde}],currency:"BRL"},{eventID:l}),this.pedido.disparouEventoAddedToCart||(this.pedido.disparouEventoAddedToCart=!0,l=s+"--"+this.itemPedido.produto.id,fbq("trackCustom","AddedToCart",{content_ids:[this.itemPedido.produto.id],content_type:"product",content_name:this.itemPedido.produto.nome,value:this.itemPedido.total/this.itemPedido.qtde,contents:[{id:this.itemPedido.produto.id,quantity:this.itemPedido.qtde}],currency:"BRL"},{eventID:l}))}}),typeof gtag<"u")try{gtag("event","add_to_cart",{currency:"BRL",value:this.itemPedido.total,items:[{id:this.itemPedido.produto.id,name:this.itemPedido.produto.nome,price:this.itemPedido.total/this.itemPedido.qtde,quantity:this.itemPedido.qtde}]})}catch(s){console.log(s)}let r=null;this.indiceItem?r=this.pedido.edite(this.indiceItem,this.itemPedido.produto,this.itemPedido.qtde,this.itemPedido.observacao,this.itemPedido.adicionais,this.itemPedido.produtoTamanho,this.itemPedido.sabores):(r=this.pedido.adicione(this.itemPedido.produto,this.itemPedido.qtde,this.itemPedido.observacao,this.itemPedido.adicionais,this.itemPedido.produtoTamanho,this.itemPedido.sabores),this.carrinhoService.notifiqueAdicionouCarrinho(r)),this.adicionandoProduto=!0,this.carrinhoService.atualizeDescontosETaxas(this.pedido,this.empresa).then(()=>{this.adicionandoProduto=!1,this.window.close()})}}aumentarQtde(){this.itemPedido.qtde=Number((this.itemPedido.qtde+(this.itemPedido.produto.incremento||1)).toFixed(3)),null!=this.produto.pesoMaximo&&this.itemPedido.qtde>this.produto.pesoMaximo&&(this.itemPedido.qtde=this.produto.pesoMaximo),this.itemPedido.atualizeTotal()}diminuirQtde(){this.itemPedido.qtde=Number((this.itemPedido.qtde-(this.itemPedido.produto.incremento||1)).toFixed(3)),null!=this.produto.pesoMinimo&&this.itemPedido.qtde<this.produto.pesoMinimo?this.itemPedido.qtde=this.produto.pesoMinimo||this.itemPedido.produto.valorInicial:this.itemPedido.qtde<this.produto.qtdeMinima&&(this.itemPedido.qtde=this.produto.qtdeMinima||this.itemPedido.produto.valorInicial),this.itemPedido.atualizeTotal()}exibirUnidade(){return this.itemPedido.produto.tipoDeVenda&&"Peso"===this.itemPedido.produto.tipoDeVenda}posicioneNoComplemento(t){const r=document.getElementById("adicional_"+t.id);if(r){const s=r.offsetTop-10;document.querySelector(".k-content").scrollTo(0,s)}else setTimeout(()=>{let s=document.getElementsByClassName("alert-danger");if((!s||!s.length)&&(s=document.getElementsByClassName("badge-danger")),s&&s.length){const l=s[0].offsetTop-40;document.querySelector(".k-content").scrollTo(0,l)}},0)}informarPeso(){this.onInformarPeso.emit({})}setControlesAdicionais(t,r){this.ctrlAdicionais=t,this.adicionaisCustomizados=r}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(gi),n.Y36(Oi),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-adicionar-produto"]],inputs:{itemPedido:"itemPedido",pedido:"pedido",indiceItem:"indiceItem",window:"window"},outputs:{onInformarPeso:"onInformarPeso"},decls:30,vars:14,consts:[[1,"footer"],["class","text-danger",4,"ngIf"],[1,"row"],[2,"display","inline-flex"],[1,"col","flex-fixed-width-item","pl-0","pr-0",3,"ngClass"],[1,"btn","btn-outline-light","decre",3,"click"],[1,"fas","fa-minus"],[1,"input",3,"click"],[4,"ngIf"],[1,"btn","btn-outline-light","incre",3,"disabled","click"],[1,"fas","fa-plus"],[1,"col"],[1,"btn","btn-primary","btn-block",3,"disabled","click"],["id","alertaFechado","tabindex","-1","role","dialog","aria-modal","true",1,"modal","fade"],[1,"modal-dialog",2,"border","solid 1px #f9f9f9","border-radius","5px"],[1,"modal-content"],[1,"modal-body","p-4"],[1,"text-center"],[1,"dripicons-information","h1","text-info"],[1,"mt-2"],[1,"mt-3"],["type","button","data-dismiss","modal",1,"btn","btn-info","my-2"],["class","btn btn-primary ml-2",4,"ngIf"],[1,"text-danger"],[1,"btn","btn-primary","ml-2"],[3,"empresa","light"]],template:function(t,r){1&t&&(n.TgZ(0,"footer",0)(1,"div"),n.YNc(2,HAe,3,1,"p",1),n.TgZ(3,"div",2)(4,"div",3)(5,"div",4)(6,"button",5),n.NdJ("click",function(){return r.diminuirQtde()}),n._UZ(7,"i",6),n.qZA(),n.TgZ(8,"div",7),n.NdJ("click",function(){return r.informarPeso()}),n._uU(9),n.YNc(10,$Ae,2,1,"span",8),n.qZA(),n.TgZ(11,"button",9),n.NdJ("click",function(){return r.aumentarQtde()}),n._UZ(12,"i",10),n.qZA()()(),n.TgZ(13,"div",11)(14,"button",12),n.NdJ("click",function(){return r.adicionarProduto()}),n._uU(15),n.ALo(16,"currency"),n.qZA()()()()(),n.TgZ(17,"div",13)(18,"div",14)(19,"div",15)(20,"div",16)(21,"div",17),n._UZ(22,"i",18),n.TgZ(23,"h4",19),n._uU(24),n.qZA(),n.TgZ(25,"p",20),n._uU(26,"Continue olhando nosso card\xe1pio \xe0 vontade."),n.qZA(),n.TgZ(27,"button",21),n._uU(28,"Continuar"),n.qZA(),n.YNc(29,UAe,2,2,"button",22),n.qZA()()()()()),2&t&&(n.xp6(2),n.Q6J("ngIf",r.erro),n.xp6(3),n.Q6J("ngClass",n.VKq(12,YAe,r.exibirUnidade())),n.xp6(4),n.hij(" ",r.itemPedido.qtde," "),n.xp6(1),n.Q6J("ngIf",r.exibirUnidade()),n.xp6(1),n.Q6J("disabled",r.itemPedido.qtde===r.produto.qtdMaxima),n.xp6(3),n.Q6J("disabled",r.produto.indisponivel||r.adicionandoProduto),n.xp6(1),n.hij(" Adicionar (",n.xi3(16,9,r.itemPedido.total,"BRL"),") "),n.xp6(9),n.Oqu(r.mensagemAbrirPedidos),n.xp6(5),n.Q6J("ngIf",r.modoVisualizacao))},dependencies:[gt,Ge,NR,Jo],styles:[".footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed;z-index:9999;position:absolute!important;bottom:0;width:100%;left:0%!important;background-color:#f7f8f8}.footer[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding:12px 10px}.footer[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{display:inline-block;text-align:center;font-size:16px;min-width:35px;background:#fff;color:#000;margin-right:5px}.footer[_ngcontent-%COMP%]   .flex-fixed-width-item[_ngcontent-%COMP%]{margin-left:10px;border:solid 1px #efefef;border-radius:3px;background:#fff}.footer[_ngcontent-%COMP%]   .flex-fixed-width-item[_ngcontent-%COMP%]   .btn-outline-light[_ngcontent-%COMP%]:not(:disabled):not(.disabled):active, .footer[_ngcontent-%COMP%]   .flex-fixed-width-item[_ngcontent-%COMP%]   .btn-outline-light[_ngcontent-%COMP%]:hover{background-color:#fff!important;border-color:#fff!important}.footer[_ngcontent-%COMP%]   .flex-fixed-width-item[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{color:#787878;position:relative}.footer[_ngcontent-%COMP%]   .flex-fixed-width-item[_ngcontent-%COMP%]   .decre[_ngcontent-%COMP%]{left:-2px}.footer[_ngcontent-%COMP%]   .flex-fixed-width-item.com-unidade[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{min-width:60px}.btn-outline-light[_ngcontent-%COMP%]{border-color:transparent}.decre[_ngcontent-%COMP%]:focus, .incre[_ngcontent-%COMP%]:focus{box-shadow:none!important}@media (max-width: 900px){.footer[_ngcontent-%COMP%]   .flex-fixed-width-item.com-unidade[_ngcontent-%COMP%]   .input[_ngcontent-%COMP%]{min-width:60px}}.btn-primary.disabled[_ngcontent-%COMP%], .btn-primary[_ngcontent-%COMP%]:disabled{background:#6DB31B!important;border:solid 1px #6DB31B!important}"]}),i})();const jAe=["siteAdicionarProduto"],ZAe=["adicionaisCustomizados"],VAe=["inputNovoPeso"],zAe=["inputNovaQtde"],GAe=["nav"],qAe=["adicionalComponent"];function JAe(i,o){1&i&&n._UZ(0,"div",3)}function QAe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"img",37),n.NdJ("mouseover",function(){const l=n.CHM(t).index,u=n.oxw(4);return n.KtG(u.selecionou(l))})("touchend",function(){const l=n.CHM(t).index,u=n.oxw(4);return n.KtG(u.selecionou(l))}),n.qZA(),n._UZ(2,"br"),n.BQk()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(4);n.xp6(1),n.ekj("selecionada",r==s.selecionada),n.Q6J("src","/images/"+t.root+"/"+s.imagens[r].linkImagem,n.LSH)}}function WAe(i,o){if(1&i&&(n.TgZ(0,"div",36)(1,"div",31),n.YNc(2,QAe,3,3,"ng-container",16),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",t.imagens)}}function KAe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",28)(1,"div",5),n.YNc(2,WAe,3,1,"div",29),n.TgZ(3,"div",30)(4,"div",31)(5,"img",32),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.exibaFullScreen())}),n.qZA()(),n.TgZ(6,"div",33)(7,"ng-image-slider",34,35),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.abriuImagem(s))}),n.qZA()()()()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngIf",t.imagens.length>1),n.xp6(3),n.Q6J("src","/images/"+t.imagens[t.selecionada].root+"/"+t.imagens[t.selecionada].linkImagem,n.LSH),n.xp6(2),n.Q6J("images",t.imagensSlider)("autoSlide",1)}}function XAe(i,o){if(1&i&&n._UZ(0,"app-tags-alimentar",38),2&i){const t=n.oxw(2);n.Q6J("tags",t.produto.tags)("exibirLabel",!0)}}function e2e(i,o){1&i&&(n.TgZ(0,"span",39),n._uU(1,"A partir de"),n.qZA())}function t2e(i,o){1&i&&(n.TgZ(0,"span",40),n._uU(1," / kg "),n.qZA())}function n2e(i,o){if(1&i&&(n.TgZ(0,"h4",41),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,t.produto.precoAntigo,"BRL")," ")}}function i2e(i,o){if(1&i&&(n.TgZ(0,"i")(1,"label",42),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij("*At\xe9 ",t.produto.qtdMaxima," por pedido\xa0\xa0")}}function o2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",45),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.informarPeso())}),n._uU(1),n.ALo(2,"number"),n.qZA()}if(2&i){const t=n.oxw(3);n.xp6(1),n.AsE(" (",n.xi3(2,2,t.itemPedido.qtde,"1.0-2"),"",t.itemPedido.produto.unidadeMedida.sigla,") Alterar o peso")}}function r2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",46),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.informarNovaQtde())}),n._uU(1," Alterar Quantidade"),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("hidden",t.exibirComboSelecao)}}function a2e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,o2e,3,5,"button",43),n.YNc(2,r2e,2,1,"button",44),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.exibirUnidade()),n.xp6(1),n.Q6J("ngIf",!t.exibirUnidade())}}function s2e(i,o){1&i&&(n.TgZ(0,"h5",47),n._uU(1,"Esgotado!"),n.qZA())}function l2e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-adicionais-customizados",48,49),n.NdJ("alterouTamanho",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.onAlterouTamanho(s))}),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("itemPedido",t.itemPedido)}}function c2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",50)(1,"app-site-campo-adicional",51,52),n.NdJ("onDesmarcouOpcao",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.desmarcouNovaOpcao(s))})("onMarcouOpcao",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.escolheuNovaOpcao(s))}),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(2);n.MGl("id","adicional",t.posicao,""),n.xp6(1),n.Q6J("id","adicional_"+t.id)("campoAdicional",t)("produto",r.produto)("itemPedido",r.itemPedido)("posicao",t.posicao)}}function d2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"app-site-campo-adicional",53,52),n.NdJ("onDesmarcouOpcao",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.desmarcouNovaOpcao(s))})("onMarcouOpcao",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.escolheuNovaOpcao(s))}),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(2).$implicit,s=n.oxw(2);n.xp6(1),n.Q6J("campoAdicional",t)("produto",r)("itemPedido",s.itemPedido)("posicao",t.posicao)("exibirSabor",!0)("tamanhoSabor",r.produtoTamanho)}}function u2e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,d2e,3,6,"div",16),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.camposAdicionais)}}function p2e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,u2e,2,1,"ng-container",2),n.BQk()),2&i){const t=o.$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.produto!==r.produto.id)}}function h2e(i,o){if(1&i&&(n.TgZ(0,"p",62),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.msgErroAlterarPeso," ")}}const g2e=function(i,o){return{prefix:"",suffix:i,precision:o,thousands:"",decimal:",",align:"left",allowNegative:!1}};function f2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-window",54,55),n.NdJ("close",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheModal(!1))}),n.YNc(2,h2e,2,1,"p",56),n.TgZ(3,"input",57,58),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.novoPeso=s)}),n.qZA(),n._UZ(5,"div",59),n.TgZ(6,"button",60),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.salveNovoPeso())}),n._uU(7,"Salvar"),n.qZA(),n.TgZ(8,"button",61),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheModal(!1))}),n._uU(9,"Cancelar"),n.qZA()()}if(2&i){const t=n.oxw(2);n.Q6J("width",300)("left",t.leftWindow)("top",t.topWindow),n.xp6(2),n.Q6J("ngIf",t.msgErroAlterarPeso),n.xp6(1),n.s9C("step",t.obtenhaIncremento()),n.Q6J("options",n.WLB(7,g2e," "+t.produto.unidadeMedida.sigla,"g"===t.produto.unidadeMedida.sigla?0:3))("ngModel",t.novoPeso)}}function m2e(i,o){if(1&i&&(n.TgZ(0,"p",62),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.msgErroAlterarQtde," ")}}const _2e=function(){return{prefix:"",suffix:" UN",precision:0,thousands:"",decimal:",",align:"left",allowNegative:!1}};function b2e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"input",64,65),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.novaQtde=s)}),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("options",n.DdM(2,_2e))("ngModel",t.novaQtde)}}function v2e(i,o){1&i&&n.GkF(0)}function y2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-window",63,55),n.NdJ("close",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheModal(!1))}),n.YNc(2,m2e,2,1,"p",56),n.YNc(3,b2e,3,3,"ng-container",2),n.YNc(4,v2e,1,0,"ng-container",2),n._UZ(5,"div",59),n.TgZ(6,"button",60),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.salveAltereQtde())}),n._uU(7,"Salvar"),n.qZA(),n.TgZ(8,"button",61),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheModalQtde())}),n._uU(9,"Cancelar"),n.qZA()()}if(2&i){const t=n.oxw(2);n.Q6J("width",300)("left",t.leftWindow)("top",t.topWindow),n.xp6(2),n.Q6J("ngIf",t.msgErroAlterarQtde),n.xp6(1),n.Q6J("ngIf",!t.exibirComboSelecao),n.xp6(1),n.Q6J("ngIf",!t.exibirComboSelecao)}}const C2e=function(i){return{esgotado:i}};function A2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div")(2,"div")(3,"div",4)(4,"div",5),n.YNc(5,KAe,9,4,"div",6),n.TgZ(6,"div",7)(7,"h4"),n._uU(8),n.qZA(),n._UZ(9,"p",8),n.YNc(10,XAe,1,2,"app-tags-alimentar",9),n.TgZ(11,"h4",10),n.YNc(12,e2e,2,0,"span",11),n._uU(13),n.ALo(14,"currency"),n.YNc(15,t2e,2,0,"span",12),n.qZA(),n.YNc(16,n2e,3,4,"h4",13),n.YNc(17,i2e,3,1,"i",2),n.YNc(18,a2e,3,2,"ng-container",2),n.YNc(19,s2e,2,0,"h5",14),n.qZA()()(),n.YNc(20,l2e,3,1,"ng-container",2),n.YNc(21,c2e,3,6,"div",15),n.YNc(22,p2e,2,1,"ng-container",16),n.TgZ(23,"div",4),n._UZ(24,"div",17),n.TgZ(25,"div",18)(26,"label",19),n._UZ(27,"i",20),n._uU(28," Alguma Observa\xe7\xe3o?"),n.qZA(),n.TgZ(29,"textarea",21,22),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.itemPedido.observacao=s)}),n._uU(31,"        "),n.qZA(),n._UZ(32,"div",23),n.qZA()()()(),n.TgZ(33,"app-site-adicionar-produto",24,25),n.NdJ("onInformarPeso",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.informarPeso())}),n.qZA(),n.YNc(35,f2e,10,10,"kendo-window",26),n.YNc(36,y2e,10,6,"kendo-window",27),n.qZA()}if(2&i){const t=n.oxw();n.xp6(5),n.Q6J("ngIf",t.imagens&&t.imagens.length>0),n.xp6(1),n.Q6J("ngClass",n.VKq(25,C2e,t.produto.indisponivel)),n.xp6(2),n.Oqu(t.produto.nome),n.xp6(1),n.Q6J("innerHTML",t.produto.descricao,n.oJD),n.xp6(1),n.Q6J("ngIf",null==t.produto.tags?null:t.produto.tags.length),n.xp6(2),n.Q6J("ngIf",t.produto.valorMinimo),n.xp6(1),n.hij(" ",n.xi3(14,22,t.produto.valorMinimo?t.produto.valorMinimo:t.produto.preco,"BRL")," "),n.xp6(2),n.Q6J("ngIf",t.exibirUnidade()),n.xp6(1),n.Q6J("ngIf",t.produto.precoAntigo),n.xp6(1),n.Q6J("ngIf",t.produto.qtdMaxima),n.xp6(1),n.Q6J("ngIf",!t.produto.indisponivel),n.xp6(1),n.Q6J("ngIf",t.produto.indisponivel),n.xp6(1),n.Q6J("ngIf",t.produto.tamanhos),n.xp6(1),n.Q6J("ngForOf",t.produto.camposAdicionais),n.xp6(1),n.Q6J("ngForOf",t.itemPedido.sabores),n.xp6(7),n.Q6J("ngModel",t.itemPedido.observacao),n.xp6(4),n.Q6J("itemPedido",t.itemPedido)("pedido",t.pedido)("indiceItem",t.indiceItem)("window",t.window),n.xp6(2),n.Q6J("ngIf",t.alterarPeso),n.xp6(1),n.Q6J("ngIf",t.alterarQtde)}}let u0=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I){this.router=t,this.produtoService=r,this.deviceService=s,this.el=l,this.activatedRoute=u,this._location=p,this.clienteService=y,this.carrinhoService=A,this.dominiosService=w,this.constantsService=I,this.itemPedido=null,this.carregando=!0,this.selecionada=0,this.imagensSlider=[],this.alterarQtde=!1,this.exibirComboSelecao=!1,this.produto=window.history.state.produto,this.idProduto=+this.activatedRoute.snapshot.params.id,this.indiceItem=this.activatedRoute.snapshot.params.posicao,this.nomePagina=w.obtenhaRaizCardapio()}static abraComoPopup(t,r,s,l,u,p,y=null,A=null){let w=La.calculeAlturaLargura(u);const I=l.open({title:null,content:i,minWidth:250,width:w.largura,height:w.altura});let P=I.content.instance;P.produto=p;let F={c:p.id};return y&&(P.indiceItem=y,F.e=y),A&&(P.itemPedido=A),P.window=I,La.abraJanela(t,r,s,I,F),I}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.target=this.activatedRoute.snapshot.queryParams.target,!this.produto&&this.idProduto&&(this.produto=this.constantsService.produtosLoja.find(t=>t.id===this.idProduto)),this.produto.descricao&&(this.produto.descricao=this.produto.descricao.replace(/(?:\r\n|\r|\n)/g,"<br>")),"Unidade"===this.produto.tipoDeVenda&&(this.exibirComboSelecao=this.produto.incremento>1),this.indiceItem?this.editarItemPedido(this.indiceItem):this.itemPedido?this.prepareItemPedido(this.itemPedido):this.crieItemPedido(),this.imagens=this.produto.imagens?this.produto.imagens.map(t=>({linkImagem:t.linkImagem,root:"empresa"})):null,this.produto.imagemCodigoDeBarras&&this.produto.imagemCodigoDeBarras.linkImagem&&(this.imagens||(this.imagens=[]),this.imagens.push({linkImagem:this.produto.imagemCodigoDeBarras.linkImagem,root:"produtos"})),this.imagens&&this.imagens.forEach(t=>{this.imagensSlider.push({image:"/images/"+t.root+"/"+t.linkImagem,thumbImage:"/images/"+t.root+"/"+t.linkImagem})}),this.carregou()}carregou(){this.carregando=!1,setTimeout(()=>{this.siteAdicionarProduto.setControlesAdicionais(this.ctrlAdicionais,this.adicionaisCustomizados)},0)}voltar(){this._location.back()}editarItemPedido(t){this.prepareItemPedido(this.pedido.itens[t])}prepareItemPedido(t){this.itemPedido=new el(this.produto,t?t.qtde:this.produto.valorInicial||1,t.observacao),this.itemPedido.guid=t.guid,t&&t.adicionais&&(this.itemPedido.adicionais=t.adicionais),t&&t.produtoTamanho&&(this.itemPedido.produtoTamanho=this.produto.tamanhos.find(s=>s.id===t.produtoTamanho.id)),this.itemPedido.sabores=t.sabores,al.prepareItemdoPedido(this.itemPedido)}crieItemPedido(){this.itemPedido=new el(this.produto,this.produto.valorInicial||this.produto.qtdeMinima,null),al.prepareItemdoPedido(this.itemPedido)}deveExibirTopo(){return!1}deveExibirMenu(){return!1}fecheTela(){this.window.close()}informarPeso(){this.exibirUnidade()?(this.alterarPeso=!0,this.msgErroAlterarPeso=null,this.novoPeso=this.itemPedido.qtde,this.deviceService.isMobile()?this.topWindow=150:(this.topWindow=250,this.leftWindow=150),setTimeout(()=>{this.inputNovoPeso.nativeElement.focus()},200)):this.informarNovaQtde()}obtenhaFormato(){return this.produto.unidadeMedida?String(`##### ${this.produto.unidadeMedida.sigla}`):"#####"}onAlterouTamanho(t){this.ctrlAdicionais.forEach(r=>{r.alterouTamanho(t)})}escolheuNovaOpcao(t){this.ctrlAdicionais&&this.ctrlAdicionais.forEach(r=>{r.exibaOuEscondaOpcaoQueDepende(t)}),t&&this.scrollToNext(t.elementoHTML)}desmarcouNovaOpcao(t){this.ctrlAdicionais.forEach(r=>{r.desmarcouOpcaoQueDepende(t)})}scrollToNext(t){if(t&&t.parentNode&&t.parentNode.nextElementSibling){const r=t.parentNode.nextElementSibling.childNodes[0];r&&r.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}}salveNovoPeso(){this.msgErroAlterarPeso=null,null!=this.produto.pesoMinimo&&this.novoPeso<this.produto.pesoMinimo?this.msgErroAlterarPeso="Peso m\xednimo para esse produto \xe9 "+this.produto.pesoMinimo+" "+this.produto.unidadeMedida.sigla:null!=this.produto.pesoMaximo&&this.novoPeso>this.produto.pesoMaximo?this.msgErroAlterarPeso="Peso m\xe1ximo para esse produto \xe9 "+this.produto.pesoMaximo+" "+this.produto.unidadeMedida.sigla:(this.novoPeso>0&&(this.itemPedido.qtde=this.novoPeso,this.itemPedido.atualizeTotal()),this.fecheModal(!0))}fecheModal(t){this.alterarPeso=!1}obtenhaIncremento(){return this.produto.incremento||1}exibirUnidade(){return this.itemPedido.produto.tipoDeVenda&&"Peso"===this.itemPedido.produto.tipoDeVenda}selecionou(t){this.selecionada=t}exibaFullScreen(){this.nav.imageOnClick(this.selecionada)}abriuImagem(t){}onEsc(t){t.stopPropagation(),t.preventDefault()}salveAltereQtde(){this.msgErroAlterarQtde=null,null!=this.produto.qtdeMinima&&this.novaQtde<this.produto.qtdeMinima?this.msgErroAlterarQtde=`Voc\xea deve escolher pelo menos ${this.produto.qtdeMinima} UN. desse produto.`:null!=this.produto.qtdMaxima&&this.novaQtde>this.produto.qtdMaxima?this.msgErroAlterarQtde=`Voc\xea deve escolher at\xe9 ${this.produto.qtdMaxima} UN. desse produto.`:(this.novaQtde>0&&(this.itemPedido.qtde=this.novaQtde,this.itemPedido.atualizeTotal()),this.alterarQtde=!1)}informarNovaQtde(){this.exibirComboSelecao||(this.alterarQtde=!0,this.msgErroAlterarQtde=null,this.novaQtde=this.itemPedido.qtde,this.deviceService.isMobile()?this.topWindow=150:(this.topWindow=250,this.leftWindow=150),setTimeout(()=>{this.inputNovaQtde.nativeElement.focus()},200))}fecheModalQtde(){this.alterarQtde=!1}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}ngAfterViewInit(){if(typeof gtag<"u")try{gtag("event","view_item",{currency:"BRL",value:this.produto.valorMinimo,items:[{id:this.produto.id,name:this.produto.nome,price:this.produto.valorMinimo,item_category:this.produto.categoria.nome,quantity:1}]})}catch(t){console.log(t)}}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Cl),n.Y36(zo),n.Y36(n.SBq),n.Y36(ci),n.Y36(_n),n.Y36(ka),n.Y36(Oi),n.Y36(Eo),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-produto"]],viewQuery:function(t,r){if(1&t&&(n.Gf(jAe,5),n.Gf(ZAe,5),n.Gf(VAe,5),n.Gf(zAe,5),n.Gf(GAe,5),n.Gf(qAe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.siteAdicionarProduto=s.first),n.iGM(s=n.CRH())&&(r.adicionaisCustomizados=s.first),n.iGM(s=n.CRH())&&(r.inputNovoPeso=s.first),n.iGM(s=n.CRH())&&(r.inputNovaQtde=s.first),n.iGM(s=n.CRH())&&(r.nav=s.first),n.iGM(s=n.CRH())&&(r.ctrlAdicionais=s)}},decls:3,vars:3,consts:[["exibirFechar","true",3,"titulo","fechou"],["class","k-i-loading ml-1 mr-1 centralizado",4,"ngIf"],[4,"ngIf"],[1,"k-i-loading","ml-1","mr-1","centralizado"],[1,"mt-2"],[1,"row"],["class","col-12",4,"ngIf"],[1,"col-12",3,"ngClass"],[3,"innerHTML"],[3,"tags","exibirLabel",4,"ngIf"],[1,"preco"],["class","text-black-50 font-14  ",4,"ngIf"],["class"," text-muted font-13",4,"ngIf"],["class","preco antigo",4,"ngIf"],["class","text-danger",4,"ngIf"],[3,"id",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"mt-3"],[1,"form-group","mb-3"],["for","observacao"],[1,"fas","fa-comment-dots"],["type","text","autocomplete","off","maxlength","255","id","observacao","name","observacao","placeholder","Inclua uma observa\xe7\xe3o sobre o pedido.","value","","required","",1,"form-control",3,"ngModel","ngModelChange"],["observacao","ngModel"],[1,"invalid-feedback"],[3,"itemPedido","pedido","indiceItem","window","onInformarPeso"],["siteAdicionarProduto",""],["title","Alterar peso",3,"width","left","top","close",4,"ngIf"],["title","Alterar Quantidade",3,"width","left","top","close",4,"ngIf"],[1,"col-12"],["class","col-auto","style","padding-left: 2px; padding-right: 2px",4,"ngIf"],[1,"col"],[2,"text-align","center"],[1,"img","img-fluid","rounded",3,"src","click"],[2,"position","absolute","left","-1500px"],["slideImage","1",3,"images","autoSlide","imageClick"],["nav",""],[1,"col-auto",2,"padding-left","2px","padding-right","2px"],[1,"img-pequena","img-fluid","rounded",3,"src","mouseover","touchend"],[3,"tags","exibirLabel"],[1,"text-black-50","font-14"],[1,"text-muted","font-13"],[1,"preco","antigo"],[1,"text-muted",2,"font-size","10px"],["class","btn btn-blue mt-2",3,"click",4,"ngIf"],["class","btn btn-blue mt-0 btn-sm",3,"hidden","click",4,"ngIf"],[1,"btn","btn-blue","mt-2",3,"click"],[1,"btn","btn-blue","mt-0","btn-sm",3,"hidden","click"],[1,"text-danger"],[3,"itemPedido","alterouTamanho"],["adicionaisCustomizados",""],[3,"id"],[3,"id","campoAdicional","produto","itemPedido","posicao","onDesmarcouOpcao","onMarcouOpcao"],["adicionalComponent",""],[1,"campo-adicional",3,"campoAdicional","produto","itemPedido","posicao","exibirSabor","tamanhoSabor","onDesmarcouOpcao","onMarcouOpcao"],["title","Alterar peso",3,"width","left","top","close"],["alterarPesoModal",""],["class","alert alert-danger mt-1 mb-2",4,"ngIf"],["name","novoPeso","type","text","type","text","inputmode","decimal","appSelecionarNoFoco","","currencyMask","",1,"form-control","troco",3,"step","options","ngModel","ngModelChange"],["inputNovoPeso",""],[1,"clearfix","mt-2"],["type","button",1,"btn","btn-success","mr-2",3,"click"],["type","button","data-dismiss","modal",1,"btn","btn-light",3,"click"],[1,"alert","alert-danger","mt-1","mb-2"],["title","Alterar Quantidade",3,"width","left","top","close"],["name","novoPeso","type","text","step","1","type","text","inputmode","decimal","appSelecionarNoFoco","","currencyMask","",1,"form-control","troco",3,"options","ngModel","ngModelChange"],["inputNovaQtde",""]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.YNc(1,JAe,1,0,"div",1),n.YNc(2,A2e,37,27,"div",2)),2&t&&(n.Q6J("titulo","Detalhes Do Produto"),n.xp6(1),n.Q6J("ngIf",r.carregando),n.xp6(1),n.Q6J("ngIf",r.itemPedido&&r.produto))},dependencies:[gt,Bt,Ge,wi,ti,Lo,yk,ni,aa,TT,OE,io,oQ,Cs,FE,BE,rQ,aQ,Gd,Jo],styles:[".centralizado[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;margin-top:-20px!important;margin-left:-20px!important}.k-i-loading[_ngcontent-%COMP%]{font-size:40px;height:90px}.preco[_ngcontent-%COMP%]{color:#6db31b;display:inline-block;margin-right:10px}.preco.antigo[_ngcontent-%COMP%]{color:#ccc;text-decoration:line-through}.esgotado[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{color:#ccc!important}.container[_ngcontent-%COMP%]{max-width:600px!important}img.img[_ngcontent-%COMP%]{max-height:300px}img.img-pequena[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;margin-bottom:5px;margin-left:5px;margin-rithg:5px;width:40px;height:40px;border:solid 1px lightgrey;cursor:pointer}img.img-pequena.selecionada[_ngcontent-%COMP%]{border:solid 1px #2b7dc3;box-shadow:0 1px 5px #1167b1}@media (max-width: 900px){#alertaFechado[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}}@media (max-width: 767px){img.img-pequena[_ngcontent-%COMP%]{width:50px;height:50px}}"]}),i})();const x2e=["siteAdicionarProduto"],T2e=["adicionaisCustomizados"],S2e=["adicionalComponent"];function w2e(i,o){1&i&&n._UZ(0,"div",25)}function M2e(i,o){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"app-site-campo-adicional",26,27),n.qZA()),2&i){const t=o.$implicit,r=n.oxw();n.xp6(1),n.Q6J("id","adicional_"+t.id)("campoAdicional",t)("itemPedido",r.itemPedido)("posicao",t.posicao)}}function D2e(i,o){if(1&i&&(n.TgZ(0,"button",28),n._UZ(1,"app-exibir-whatsapp",29),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("empresa",t.empresa)("light",!0)}}let HE=(()=>{class i{constructor(t,r,s){this.carrinhoService=t,this.activatedRoute=r,this.constantsService=s}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.target=this.activatedRoute.snapshot.queryParams.target,this.constantsService.empresa$.subscribe(t=>{!t||!t.id||(this.empresa=t,this.estaRecebendoPedidos=t.estaRecebendoPedidos,this.permiteAgendamento=t.permiteAgendamento,this.mensagemAbrirPedidos=t.mensagemAbrirPedidos,this.modoVisualizacao=t.cardapio&&t.cardapio.modoVisualizacao,this.indiceItem?this.editarItemPedido(this.indiceItem):this.crieItemPedido(),this.carregou())})}carregou(){this.carregando=!1,setTimeout(()=>{this.siteAdicionarProduto.setControlesAdicionais(this.ctrlAdicionais,this.adicionaisCustomizados),this.onAlterouTamanho(this.itemPedido.produtoTamanho)},0)}crieItemPedido(){this.itemPedido=new el(this.produtoCategoria,1,null),this.itemPedido.produtoTamanho=this.produtoCategoria.tamanho,al.prepareItemdoPedido(this.itemPedido)}editarItemPedido(t){let r=this.pedido.itens[t];this.itemPedido=new el(this.produtoCategoria,r?r.qtde:this.produtoCategoria.valorInicial||1,r.observacao),r&&r.adicionais&&(this.itemPedido.adicionais=r.adicionais),r&&r.produtoTamanho&&(this.itemPedido.produtoTamanho=this.produtoCategoria.tamanhos.find(l=>l.id===r.produtoTamanho.id)),this.itemPedido.sabores=r.sabores,al.prepareItemdoPedido(this.itemPedido)}fecheTela(){this.window.close()}static abraComoPopup(t,r,s,l,u,p,y=null){let A=La.calculeAlturaLargura(u);const w=l.open({title:null,content:i,minWidth:250,width:A.largura,height:A.altura});let I=w.content.instance;I.produtoCategoria=p;let P={t:p.id};return y&&(I.indiceItem=y,P.e=y),I.window=w,La.abraJanela(t,r,s,w,P),w}onEscoheuSabor(t){let r={};if(t.length&&(t.forEach(s=>{(!r.preco||s.preco>r.preco)&&(r=s)}),r.produto!==this.itemPedido.produto.id)){let s=this.constantsService.produtosLoja.find(l=>l.id===r.produto);this.itemPedido.produto=s,this.siteAdicionarProduto.produto=s,this.itemPedido.produtoTamanho=r.produtoTamanho,al.prepareItemdoPedido(this.itemPedido),al.prepareAdicionaisSabores(this.itemPedido,s),setTimeout(()=>{this.onAlterouTamanho(this.itemPedido.produtoTamanho)},0)}}onAlterouTamanho(t){this.ctrlAdicionais.forEach(r=>{r.alterouTamanho(t)})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Oi),n.Y36(ci),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-montarpizza"]],viewQuery:function(t,r){if(1&t&&(n.Gf(x2e,5),n.Gf(T2e,5),n.Gf(S2e,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.siteAdicionarProduto=s.first),n.iGM(s=n.CRH())&&(r.adicionaisCustomizados=s.first),n.iGM(s=n.CRH())&&(r.ctrlAdicionais=s)}},decls:39,vars:18,consts:[["exibirFechar","true",3,"titulo","fechou"],["class","k-i-loading ml-1 mr-1 centralizado",4,"ngIf"],[1,"preco"],[1,"text-black-50","font-14"],[3,"itemPedido","montarPizza","alterouTamanho","saboresSelecionados"],["adicionaisCustomizados",""],[4,"ngFor","ngForOf"],[1,"mt-2"],[1,"mt-3"],[1,"form-group","mb-3"],["for","observacao"],[1,"fas","fa-comment-dots"],["type","text","autocomplete","off","maxlength","255","id","observacao","name","observacao","placeholder","Inclua uma observa\xe7\xe3o sobre o pedido.","value","","required","",1,"form-control",3,"ngModel","ngModelChange"],["observacao","ngModel"],[1,"invalid-feedback"],[3,"itemPedido","pedido","indiceItem","window"],["siteAdicionarProduto",""],["id","alertaFechado","tabindex","-1","role","dialog","aria-modal","true",1,"modal","fade"],[1,"modal-dialog",2,"border","solid 1px #f9f9f9","border-radius","5px"],[1,"modal-content"],[1,"modal-body","p-4"],[1,"text-center"],[1,"dripicons-information","h1","text-info"],["type","button","data-dismiss","modal",1,"btn","btn-info","my-2"],["class","btn btn-primary ml-2",4,"ngIf"],[1,"k-i-loading","ml-1","mr-1","centralizado"],[3,"id","campoAdicional","itemPedido","posicao"],["adicionalComponent",""],[1,"btn","btn-primary","ml-2"],[3,"empresa","light"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.YNc(1,w2e,1,0,"div",1),n.TgZ(2,"h4"),n._uU(3),n.qZA(),n.TgZ(4,"p"),n._uU(5),n.qZA(),n.TgZ(6,"h4",2)(7,"span",3),n._uU(8,"A partir de"),n.qZA(),n._uU(9),n.ALo(10,"currency"),n.qZA(),n.TgZ(11,"app-adicionais-customizados",4,5),n.NdJ("alterouTamanho",function(l){return r.onAlterouTamanho(l)})("saboresSelecionados",function(l){return r.onEscoheuSabor(l)}),n.qZA(),n.YNc(13,M2e,3,4,"div",6),n.TgZ(14,"div",7),n._UZ(15,"div",8),n.TgZ(16,"div",9)(17,"label",10),n._UZ(18,"i",11),n._uU(19," Alguma Observa\xe7\xe3o?"),n.qZA(),n.TgZ(20,"textarea",12,13),n.NdJ("ngModelChange",function(l){return r.itemPedido.observacao=l}),n._uU(22,"        "),n.qZA(),n._UZ(23,"div",14),n.qZA()(),n._UZ(24,"app-site-adicionar-produto",15,16),n.TgZ(26,"div",17)(27,"div",18)(28,"div",19)(29,"div",20)(30,"div",21),n._UZ(31,"i",22),n.TgZ(32,"h4",7),n._uU(33),n.qZA(),n.TgZ(34,"p",8),n._uU(35,"Continue olhando nosso card\xe1pio \xe0 vontade."),n.qZA(),n.TgZ(36,"button",23),n._uU(37,"Continuar"),n.qZA(),n.YNc(38,D2e,2,2,"button",24),n.qZA()()()()()),2&t&&(n.Q6J("titulo","Monte sua pizza"),n.xp6(1),n.Q6J("ngIf",r.carregando),n.xp6(2),n.Oqu(r.produtoCategoria.nome),n.xp6(2),n.Oqu(r.produtoCategoria.descricao),n.xp6(4),n.hij(" ",n.xi3(10,15,r.produtoCategoria.valorMinimo,"BRL")," "),n.xp6(2),n.Q6J("itemPedido",r.itemPedido)("montarPizza",!0),n.xp6(2),n.Q6J("ngForOf",r.itemPedido.produto.camposAdicionais),n.xp6(7),n.Q6J("ngModel",r.itemPedido.observacao),n.xp6(4),n.Q6J("itemPedido",r.itemPedido)("pedido",r.pedido)("indiceItem",r.indiceItem)("window",r.window),n.xp6(9),n.Oqu(r.mensagemAbrirPedidos),n.xp6(5),n.Q6J("ngIf",r.modoVisualizacao))},dependencies:[Bt,Ge,wi,ti,Lo,yk,ni,io,Cs,BE,NR,rQ,aQ,Jo],styles:[".k-i-loading[_ngcontent-%COMP%]{font-size:40px;height:90px}",".centralizado[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;margin-top:-20px!important;margin-left:-20px!important}.k-i-loading[_ngcontent-%COMP%]{font-size:40px;height:90px}.preco[_ngcontent-%COMP%]{color:#6db31b;display:inline-block;margin-right:10px}.preco.antigo[_ngcontent-%COMP%]{color:#ccc;text-decoration:line-through}.esgotado[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{color:#ccc!important}.container[_ngcontent-%COMP%]{max-width:600px!important}img.img[_ngcontent-%COMP%]{max-height:300px}img.img-pequena[_ngcontent-%COMP%]{-o-object-fit:cover;object-fit:cover;margin-bottom:5px;margin-left:5px;margin-rithg:5px;width:40px;height:40px;border:solid 1px lightgrey;cursor:pointer}img.img-pequena.selecionada[_ngcontent-%COMP%]{border:solid 1px #2b7dc3;box-shadow:0 1px 5px #1167b1}@media (max-width: 900px){#alertaFechado[_ngcontent-%COMP%]   .modal-dialog[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}}@media (max-width: 767px){img.img-pequena[_ngcontent-%COMP%]{width:50px;height:50px}}"]}),i})(),k2e=(()=>{class i extends fs{constructor(t){super(t),this.http=t}localizeLoja(t,r){return this.facaPost("/api/encontreLoja/"+t.id,{endereco:r})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function I2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",10)(1,"div",11)(2,"div",12),n._uU(3," Nenhuma loja encontrada "),n.TgZ(4,"b"),n._uU(5),n.qZA(),n.TgZ(6,"button",13),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.limpeBusca())}),n._uU(7," ver todas lojas"),n.qZA()()()()}if(2&i){const t=n.oxw();n.xp6(5),n.hij('"',t.filtro.texto,'"')}}function E2e(i,o){1&i&&(n.TgZ(0,"div",23),n._UZ(1,"img",24),n.qZA())}function P2e(i,o){if(1&i&&(n.TgZ(0,"div",25)(1,"span"),n._UZ(2,"i",26),n._uU(3),n.ALo(4,"mask"),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.hij(" ",n.xi3(4,1,t.numeroWhatsapp.whatsapp,"(99) 9-9999-9999")," ")}}function O2e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"span",27),n._UZ(2,"span",28),n._uU(3," ABERTO AGORA "),n.qZA(),n.TgZ(4,"span",29),n._UZ(5,"i",30),n._uU(6),n.qZA(),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(6),n.hij(" ",t.descricaoTempoEntrega?t.descricaoTempoEntrega:"Verificar com a loja"," ")}}function N2e(i,o){1&i&&(n.ynx(0),n.TgZ(1,"span",31),n._UZ(2,"span",32),n._uU(3," FECHADA "),n.qZA(),n.BQk())}function L2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",14)(1,"div",15),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw();return n.KtG(u.abraLink(l))}),n.TgZ(2,"div",7)(3,"div",16),n._UZ(4,"img",17),n.YNc(5,E2e,2,0,"div",18),n.qZA(),n.TgZ(6,"div",19)(7,"h4"),n._uU(8),n.qZA(),n.TgZ(9,"p",20),n._uU(10),n.qZA(),n.YNc(11,P2e,5,4,"div",21),n.YNc(12,O2e,7,1,"ng-container",22),n.YNc(13,N2e,4,0,"ng-container",22),n.qZA()()()()}if(2&i){const t=o.$implicit,r=n.oxw();n.ekj("col-sm-6",!r.popoup),n.xp6(4),n.Q6J("src",t.logo,n.LSH),n.xp6(1),n.Q6J("ngIf","whatsapp"===r.grupoDeLojas.paginaDirecionarPara),n.xp6(3),n.Oqu(t.nome),n.xp6(2),n.Oqu(t.endereco),n.xp6(1),n.Q6J("ngIf","whatsapp"===r.grupoDeLojas.paginaDirecionarPara),n.xp6(1),n.Q6J("ngIf",t.estaAberta),n.xp6(1),n.Q6J("ngIf",!t.estaAberta)}}function R2e(i,o){1&i&&(n.TgZ(0,"div",10),n._UZ(1,"div",33),n.qZA())}let LR=(()=>{class i{constructor(t,r,s){this.clienteService=t,this.activatedRoute=r,this.autorizacao=s,this.lojas=[],this.popoup=!1,this.filtro={},this.inicio=0,this.buscando=!1,this.buscouTodas=!1,this.urlInteligente=""}ngOnInit(){this.autorizacao.estaLogado().then(t=>{this.usuario=this.autorizacao.getUsuario(),this.activatedRoute.queryParams.subscribe(r=>{this.usuario&&r.u&&(this.urlInteligente=r.u)})})}onScroll(t){this.estaFazendoScroll||this.buscando||this.buscouTodas||this.carregueLojas(this.filtro.texto)}limpeBusca(){this.inicio=0,this.filtro={},this.carregueLojas()}onFiltreLojas(t){this.timerBusca&&clearTimeout(this.timerBusca),this.timerBusca=setTimeout(()=>{this.inicio=0,this.lojas=[],this.carregueLojas(t.target.value)},1e3)}carregueLojas(t=null){this.buscando=!0,this.inicio=this.lojas.length,this.clienteService.obtenhaLojasFranquia(this.grupoDeLojas,t,this.inicio).then(r=>{r.forEach(s=>this.lojas.push(s)),this.buscando=!1,this.buscouTodas=0===r.length})}ngAfterViewInit(){this.carregueLojas()}obtenhaLink(t){if("whatsapp"===this.grupoDeLojas.paginaDirecionarPara)return"https://api.whatsapp.com/send/?phone=55"+t.numeroWhatsapp.whatsapp+"&app_absent=0&text="+encodeURIComponent(this.grupoDeLojas.msgConversaWhatsapp);let r="";r=t.urlDaEmpresa?"https://"+t.urlDaEmpresa.hostname+this.urlInteligente:"https://"+t.dominio+".meucardapio.ai"+this.urlInteligente,this.mesa&&(r+="/mesa/n/"+this.mesa);const s=window.location.href,l=new URLSearchParams(new URL(s).search);return r.includes("?")?r+="&"+l.toString():r+="?"+l.toString(),r}abraLink(t){let r="";window.ga?window.ga("send","event",{eventCategory:"ClicouNaLoja",eventAction:"click",eventLabel:t.nome,transport:"beacon",hitCallback:()=>{r=this.obtenhaLink(t),window.location.href=r},hitCallbackFail:()=>{r=this.obtenhaLink(t),window.location.href=r}}):(r=this.obtenhaLink(t),window.location.href=r)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(ci),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-lista-lojas"]],hostBindings:function(t,r){1&t&&n.NdJ("scroll",function(l){return r.onScroll(l)},!1,n.Jf7)},inputs:{grupoDeLojas:"grupoDeLojas",popoup:"popoup",mesa:"mesa"},decls:11,vars:5,consts:[[1,"lojas"],[1,"container-fluid"],[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-search","fa-lg","text-muted"],["type","text","placeholder","Busque uma loja","aria-label","buscar por cidades","appAutoFocus","",1,"form-control",3,"ngModel","autoFocus","ngModelChange","input"],[1,"row"],["class","col",4,"ngIf"],["class","col-12",3,"col-sm-6",4,"ngFor","ngForOf"],[1,"col"],[1,"card-box",2,"padding","0.5rem"],[1,"alert","alert-info"],[1,"btn","btn-secondary","btn-sm","ml-2",3,"click"],[1,"col-12"],[1,"card-box","cpointer",2,"padding","0.5rem","margin-bottom","18px",3,"click"],[1,"col-3"],[1,"logo","ml-2","mr-1",2,"max-width","100px","border-radius","5px",3,"src"],["class","position-absolute","style","bottom: 30px;right: 10px;",4,"ngIf"],[1,"col-9"],[1,"text-muted","endereco"],["class","whatsapp","style","margin-left: 1px;",4,"ngIf"],[4,"ngIf"],[1,"position-absolute",2,"bottom","30px","right","10px"],["src","/assets/icons/whatsapp_logo_oficial.png","alt","whatsapp",1,"card-img",2,"width","32px"],[1,"whatsapp",2,"margin-left","1px"],[1,"fab","fa-whatsapp","font-14"],[1,"text-success","font-13"],[1,"bolinha","aberto"],["title","Tempo de entrega estimado",1,"text-black-50","font-13"],[1,"fe-clock","fa"],[1,"text-danger","font-14"],[1,"bolinha","fechada"],[1,"k-i-loading","ml-1","mr-1",2,"font-size","40px","height","200px"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),n._UZ(5,"i",5),n.qZA()(),n.TgZ(6,"input",6),n.NdJ("ngModelChange",function(l){return r.filtro.texto=l})("input",function(l){return r.onFiltreLojas(l)}),n.qZA()(),n.TgZ(7,"div",7),n.YNc(8,I2e,8,1,"div",8),n.YNc(9,L2e,14,9,"div",9),n.YNc(10,R2e,2,0,"div",8),n.qZA()()()),2&t&&(n.xp6(6),n.Q6J("ngModel",r.filtro.texto)("autoFocus",!0),n.xp6(2),n.Q6J("ngIf",!r.buscando&&!r.lojas.length),n.xp6(1),n.Q6J("ngForOf",r.lojas),n.xp6(1),n.Q6J("ngIf",r.buscando))},dependencies:[Bt,Ge,wi,ti,ni,Za,xk],styles:["header[_ngcontent-%COMP%]{display:table}.form-control[_ngcontent-%COMP%], .input-group-prepend[_ngcontent-%COMP%]{border:none}.input-group-prepend[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{background:#fff;border:none}input[_ngcontent-%COMP%]{height:60px;line-height:30px;font-size:24px}.container-fluid[_ngcontent-%COMP%]{max-width:1100px}.navbar-custom[_ngcontent-%COMP%]{position:absolute;background-color:#fff;height:80px}.navbar-custom[_ngcontent-%COMP%]   .fe-menu[_ngcontent-%COMP%]{font-size:40px}.navbar-custom[_ngcontent-%COMP%]   .logo-topo[_ngcontent-%COMP%]{display:inline-block}.navbar-custom[_ngcontent-%COMP%]   .button-menu-mobile[_ngcontent-%COMP%]{color:#000}.content[_ngcontent-%COMP%]{margin-top:80px}.capa[_ngcontent-%COMP%]{background-color:#333;height:600px;background:url(/images/franquia/cib/bg1.jpg) center;position:relative}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]{top:25px;position:relative;height:250px}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;margin:0 auto;display:block}.capa[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{max-width:575px;margin:0 auto;padding-top:50px}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]{background:rgba(0,0,0,.6392156863);color:#fff}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{color:#fff;font-size:25px;line-height:30px;text-align:center}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:20px;padding:10px 30px}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]{background-color:#75716feb;color:#fff}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff;font-size:1.5em;padding:.2em}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]   .icone-store[_ngcontent-%COMP%]{height:25px;width:30px;position:absolute;left:20px;top:12px;background-color:#fff;-webkit-mask:url(/images/franquia/cib/store_1.svg) no-repeat center;mask:url(/images/franquia/cib/store_1.svg) no-repeat center}.lojas[_ngcontent-%COMP%]{background-color:#e8e8e8;min-height:600px;padding-top:30px;padding-bottom:40px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]{display:table;width:100%}.lojas[_ngcontent-%COMP%]   .bolinha[_ngcontent-%COMP%]{margin:5px 5px 0 2px;width:8px;height:8px;border-radius:100px;float:left}.lojas[_ngcontent-%COMP%]   .bolinha.aberto[_ngcontent-%COMP%]{background:#6db31b}.lojas[_ngcontent-%COMP%]   .bolinha.fechada[_ngcontent-%COMP%]{background:#f1556c}.lojas[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;height:40px;overflow:hidden}.btn-secondary[_ngcontent-%COMP%]{background-color:#313131!important}@media (max-width: 900px){h3[_ngcontent-%COMP%], .h3[_ngcontent-%COMP%]{font-size:1.2rem}.container-fluid[_ngcontent-%COMP%]{max-width:inherit;width:100%}input[_ngcontent-%COMP%]{height:45px;line-height:25px;font-size:18px}.capa[_ngcontent-%COMP%]{height:465px;width:100%;background-position:-87px 28px;background-size:139%;background-repeat:no-repeat;background-color:#29292b}.capa[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{max-width:88%}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%], .capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;width:100%}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{font-size:18px}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:18px;padding:0 20px}.whatsapp[_ngcontent-%COMP%]{margin-top:10px}.lojas[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]{padding:10px 5px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]   img.logo[_ngcontent-%COMP%]{height:70px;margin-top:20px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}  .mobile .lojas{margin-left:-12px;margin-right:-12px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}"]}),i})();const F2e=["frm"],B2e=["txtNumero"],H2e=["cboZonaDeEntrega"],$2e=["txtLogradouro"],U2e=["txtCEP"],Y2e=["complementoInput"];function j2e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome do Local \xe9 obrigat\xf3rio"),n.qZA())}function Z2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",10)(1,"label"),n._uU(2,"Nome Local"),n.qZA(),n.TgZ(3,"input",11,12),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco.descricao=s)}),n.qZA(),n.TgZ(5,"small",13),n._uU(6,"Exemplos: Casa, Trabalho"),n.qZA(),n.TgZ(7,"div",14),n.YNc(8,j2e,2,0,"p",7),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("autoFocus",!0)("ngModel",r.endereco.descricao),n.xp6(5),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function V2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",15),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n._UZ(1,"i",16),n.qZA()}}function z2e(i,o){1&i&&(n.TgZ(0,"div",17),n._UZ(1,"i",18),n.TgZ(2,"div"),n._uU(3," Carregando "),n.qZA()())}function G2e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h4")(2,"button",19),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.voltarOpcaoEntregar())}),n._UZ(3,"i",20),n.qZA(),n._uU(4," Escolha uma de nossas lojas "),n.qZA(),n.TgZ(5,"div",21),n._UZ(6,"app-tela-lista-lojas",22),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(6),n.Q6J("grupoDeLojas",t.grupoDeLojas)("popoup",!0)}}function q2e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,G2e,7,2,"ng-container",7),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.grupoDeLojas)}}function J2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",23)(1,"h4",24),n._uU(2,"O que voc\xea deseja?"),n.qZA(),n.TgZ(3,"button",25),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.receberEmCasa())}),n._uU(4," Receber em Casa "),n.qZA(),n.TgZ(5,"span"),n._uU(6,"\xa0\xa0ou\xa0\xa0"),n.qZA(),n.TgZ(7,"button",26),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.retirarNaLoja())}),n._uU(8," Retirar na Loja "),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(3),n.ekj("btn-lg",t.ehDesktop),n.xp6(4),n.ekj("btn-lg",t.ehDesktop)}}function Q2e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h3",29),n._uU(2," Ainda n\xe3o entregamos na sua regi\xe3o, por\xe9m voc\xea pode fazer seu pedido agora e retirar em uma loja pr\xf3xima. "),n.qZA(),n.TgZ(3,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.retirarNaLoja())}),n._uU(4," Retirar na Loja "),n.qZA(),n.TgZ(5,"span"),n._uU(6,"\xa0\xa0ou\xa0\xa0"),n.qZA(),n.TgZ(7,"button",26),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.escolherOutroCEP())}),n._uU(8," Mudar Endere\xe7o "),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(3);n.xp6(3),n.ekj("btn-lg",t.ehDesktop),n.xp6(4),n.ekj("btn-lg",t.ehDesktop)}}function W2e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"p",31)(2,"button",19),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.mudarOpcaoEntrega())}),n._UZ(3,"i",20),n.qZA(),n._uU(4),n.qZA(),n.TgZ(5,"button",32),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.mudarLoja())}),n._UZ(6,"img",33),n._uU(7),n.qZA(),n.TgZ(8,"span"),n._uU(9,"\xa0\xa0ou\xa0\xa0"),n.qZA(),n.TgZ(10,"button",34),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.retirarNaLoja())}),n._uU(11," Retirar Nesta Loja "),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(3);n.xp6(4),n.hij(" N\xe3o fazemos delivery na sua regi\xe3o, por\xe9m encontramos a loja ",t.lojaEncontrada.nome," que faz. O que deseja? "),n.xp6(1),n.ekj("btn-lg",t.ehDesktop),n.xp6(2),n.hij(" Acessar Loja ",t.lojaEncontrada.nome," "),n.xp6(3),n.ekj("btn-lg",t.ehDesktop)}}function K2e(i,o){if(1&i&&(n.TgZ(0,"div",28),n.YNc(1,Q2e,9,4,"ng-container",7),n.YNc(2,W2e,12,6,"ng-container",7),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!t.lojaEncontrada),n.xp6(1),n.Q6J("ngIf",t.lojaEncontrada)}}function X2e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",51),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.voltarEscolhaPreencherCEP())}),n.TgZ(1,"span",52),n._UZ(2,"i",20),n.qZA()()}}function exe(i,o){1&i&&n._UZ(0,"i",53)}function txe(i,o){1&i&&n._UZ(0,"div",54)}function nxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Cep \xe9 obrigat\xf3rio"),n.qZA())}function ixe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",41)(1,"div",42),n.YNc(2,X2e,3,0,"div",43),n.TgZ(3,"input",44,45),n.NdJ("change",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.alterou(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.cep=s)})("focusin",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.focoCampoCEP())}),n.qZA(),n.TgZ(6,"span",46)(7,"button",47),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.alterou(null))}),n.YNc(8,exe,1,0,"i",48),n.YNc(9,txe,1,0,"div",49),n.qZA()()(),n.TgZ(10,"small",50),n._uU(11,"Informe o CEP para buscar os dados da rua, bairro, cidade."),n.qZA(),n.TgZ(12,"div",14),n.YNc(13,nxe,2,0,"p",7),n.qZA()()}if(2&i){const t=n.MAs(5),r=n.oxw(3);n.xp6(2),n.Q6J("ngIf",r.escolheuPreencherCep),n.xp6(1),n.Q6J("ngModel",r.endereco.cep)("mask","00.000-000")("readonly",r.escolheuUmEnderecoServer)("required",!0),n.xp6(5),n.Q6J("ngIf",!r.buscandoCEP),n.xp6(1),n.Q6J("ngIf",r.buscandoCEP),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function oxe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",59),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.voltarEscolhaUsarLocalizacao())}),n._UZ(1,"i",20),n.qZA()}}function rxe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",10)(1,"div",42),n.YNc(2,oxe,2,0,"button",55),n.TgZ(3,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.usarLocalizacao())}),n._UZ(4,"i",57),n._uU(5," Usar Minha Localiza\xe7\xe3o "),n.qZA()(),n.TgZ(6,"small",58),n._uU(7,"Clique no bot\xe3o acima para o sistema pegar automaticamente sua localiza\xe7\xe3o."),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngIf",t.escolherUsarLocalizacao),n.xp6(1),n.ekj("usandoLocalizacao",t.escolherUsarLocalizacao)}}function axe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Endere\xe7o \xe9 obrigat\xf3rio"),n.qZA())}function sxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero \xe9 obrigat\xf3rio"),n.qZA())}function lxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Bairro \xe9 obrigat\xf3rio"),n.qZA())}function cxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Estado \xe9 obrigat\xf3rio"),n.qZA())}function dxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe o Estado"),n.qZA())}function uxe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Cidade \xe9 obrigat\xf3ria"),n.qZA())}function pxe(i,o){if(1&i&&(n.TgZ(0,"div",83),n._UZ(1,"i",84),n._uU(2),n.qZA()),2&i){const t=n.oxw(4);n.xp6(2),n.hij(" ",t.msgErro," ")}}function hxe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",10)(2,"label",60),n._uU(3,"Logradouro"),n.qZA(),n.TgZ(4,"input",61,62),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.logradouro=s)}),n.qZA(),n.TgZ(7,"div",14),n.YNc(8,axe,2,0,"p",7),n.qZA()(),n.TgZ(9,"div",63)(10,"div",64)(11,"label",65),n._uU(12,"N\xfamero"),n.qZA(),n.TgZ(13,"input",66,67),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.numero=s)}),n.qZA(),n.TgZ(16,"div",14),n.YNc(17,sxe,2,0,"p",7),n.qZA()(),n.TgZ(18,"div",68)(19,"label",69),n._uU(20,"Bairro"),n.qZA(),n.TgZ(21,"input",70,71),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.bairro=s)}),n.qZA(),n.TgZ(23,"div",14),n.YNc(24,lxe,2,0,"p",7),n.qZA()()(),n.TgZ(25,"div",10)(26,"label",72),n._uU(27,"Complemento"),n.qZA(),n.TgZ(28,"input",73,74),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.complemento=s)}),n.qZA()(),n.TgZ(30,"div",10)(31,"label",75),n._uU(32,"Estado:"),n.qZA(),n.TgZ(33,"kendo-combobox",76,77),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.estado=s)})("valueChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.mudouEstado(s))}),n.qZA(),n.TgZ(36,"div",14),n.YNc(37,cxe,2,0,"p",7),n.YNc(38,dxe,2,0,"p",7),n.qZA()(),n.TgZ(39,"div",10)(40,"label",78),n._uU(41,"Cidade: "),n.qZA(),n.TgZ(42,"kendo-combobox",79,80),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.endereco.cidade=s)}),n.qZA(),n.TgZ(45,"div",14),n.YNc(46,uxe,2,0,"p",7),n.qZA()(),n.YNc(47,pxe,3,1,"div",81),n._UZ(48,"div",82),n.BQk()}if(2&i){const t=n.MAs(5),r=n.MAs(15),s=n.MAs(22),l=n.MAs(34),u=n.MAs(44),p=n.oxw(3);n.xp6(4),n.Q6J("ngModel",p.endereco.logradouro)("readOnly",p.cepValidado&&""!==p.respostaCep.logradouro),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(5),n.Q6J("ngModel",p.endereco.numero),n.xp6(4),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(4),n.Q6J("ngModel",p.endereco.bairro)("required",!0),n.xp6(3),n.Q6J("ngIf",null==s.errors?null:s.errors.required),n.xp6(4),n.Q6J("ngModel",p.endereco.complemento),n.xp6(5),n.Q6J("ngModel",p.endereco.estado)("data",p.estados)("filterable",!1)("textField","nome")("valueField","id")("readonly",p.cepValidado),n.xp6(4),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.nomeCompleto),n.xp6(4),n.Q6J("ngModel",p.endereco.cidade)("data",p.cidades)("filterable",!1)("textField","nome")("valueField","id")("readonly",p.cepValidado),n.xp6(4),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(1),n.Q6J("ngIf",p.msgErro)}}function gxe(i,o){1&i&&n._UZ(0,"i",90)}function fxe(i,o){if(1&i&&(n.TgZ(0,"footer",85)(1,"div")(2,"div",86)(3,"div",87)(4,"button",88),n.YNc(5,gxe,1,0,"i",89),n._uU(6," Continuar"),n.qZA()()()()()),2&i){const t=n.oxw(3);n.xp6(4),n.Q6J("disabled",t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa)}}function mxe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",35)(2,"h4",36),n._uU(3,"Onde voc\xea est\xe1 agora?"),n.qZA()(),n.TgZ(4,"div",37),n._uU(5," Voc\xea escolher: "),n.TgZ(6,"b"),n._uU(7,"Receber em Casa"),n.qZA(),n._uU(8," \xa0 "),n.TgZ(9,"button",38),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.mudarOpcaoEntrega())}),n._uU(10,"Mudar"),n.qZA()(),n.YNc(11,ixe,14,8,"div",39),n.YNc(12,rxe,8,3,"div",2),n.YNc(13,hxe,49,25,"ng-container",7),n.YNc(14,fxe,7,2,"footer",40),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(11),n.Q6J("ngIf",!t.escolherUsarLocalizacao),n.xp6(1),n.Q6J("ngIf",!t.escolheuPreencherCep),n.xp6(1),n.Q6J("ngIf",t.cepValidado),n.xp6(1),n.Q6J("ngIf",t.exibirBotao&&t.cepValidado)}}function _xe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,K2e,3,2,"div",27),n.YNc(2,mxe,15,4,"ng-container",7),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!1===t.lojaCerta),n.xp6(1),n.Q6J("ngIf",null===t.lojaCerta)}}const bxe=function(i,o){return{"needs-validation":i,"was-validated":o}};let vxe=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.ngZone=t,this.applicationRef=r,this.enderecoService=s,this.chinaInBoxService=l,this.carrinhoService=u,this.detectorDevice=p,this.constantsService=y,this.clienteService=A,this.endereco=Xr.novo(),this.estados=[],this.cidades=[],this.exibirBotao=!0,this.lojaCerta=null,this.opcaoEntrega="",this.processando=!1,this.lojaEncontrada=null,this.escolherUsarLocalizacao=!1,this.ehDesktop=!1,this.link="",this.empresa={},this.grupoDeLojas=null,this.escolhaLojaRetirar=!1,this.mask=[/\d/,/\d/,".",/\d/,/\d/,/\d/,"-",/\d/,/\d/,/\d/],this.clienteService.obtenhaGrupoDaEmpresa().then(w=>{this.grupoDeLojas=w}),this.constantsService.empresa$.subscribe(w=>{!w||(this.empresa=w)})}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.ehDesktop=this.detectorDevice.isDesktop(),this.enderecoService.obtenhaEstados().then(t=>{this.estados=t,this.endereco.estado&&(this.endereco.estado=this.estados.find(r=>r.sigla===this.endereco.estado.sigla),this.endereco.cidade&&(this.cidades=[this.endereco.cidade]))})}alterou(t){this.endereco.cep.length<8||(this.buscandoCEP=!0,this.enderecoService.busquePorCEP(this.unmask(this.endereco.cep)).then(r=>{this.buscandoCEP=!1,this.respostaCep=r,this.cepValidado=null!=r.localidade,this.endereco.logradouro=r.logradouro,this.endereco.bairro=r.bairro,setTimeout(()=>{$("#numero").focus();const s=r.localidade,l=s.split("/")[0],u=s.split("/")[1];this.carregueEstadoECidade(l,u)},200)}).catch(()=>{this.cepValidado=!1,this.buscandoCEP=!1}))}unmask(t){return t&&t.replace(/\D+/g,"")}carregueEstadoECidade(t,r){for(const s of this.estados)if(r===s.nome||r===s.sigla){this.enderecoService.obtenhaCidades(s).then(l=>{this.cidades=l,this.applicationRef.tick();for(const u of this.cidades)if(t.toUpperCase()===u.nome.toUpperCase()){this.endereco.estado=s,this.endereco.cidade=u,setTimeout(()=>{this.applicationRef.tick()},0);break}});break}}mudouEstado(t){null!=t&&this.enderecoService.obtenhaCidades(t).then(r=>{r&&r.length&&(this.cidades=r)})}onSubmit(t){!this.frm.valid||(this.processando=!0,this.lojaEncontrada=null,this.chinaInBoxService.localizeLoja(this.empresa,this.endereco).then(r=>{if(!1===r.encontrou)return this.processando=!1,void(this.lojaCerta=!1);this.endereco.localizacao=r.localizacao,location.origin===r.link?(this.pedido.entrega.formaDeEntrega=wo.RECEBER_EM_CASA,this.lojaCerta=r.lojaCerta,this.link=r.link,this.enderecoService.calculeTaxaDeEntrega(this.pedido.entrega.formaDeEntrega,this.endereco,this.pedido.obtenhaSubTotal()).then(s=>{this.processando=!1,this.pedido.entrega.setTaxaEntrega(this.endereco,s),this.pedido.novosEnderecos.push(this.endereco),this.carrinhoService.salvePedido(this.pedido),this.pedido.calculeTotal(),this.window.close({back:!0})}).catch(s=>{this.processando=!1})):window.location.href=r.link+"?end="+encodeURIComponent(JSON.stringify(this.endereco))}).catch(r=>{this.msgErro=r,this.processando=!1}))}usarLocalizacao(){this.escolherUsarLocalizacao=!0,navigator.geolocation.getCurrentPosition(t=>{const r={lat:t.coords.latitude,lng:t.coords.longitude};(new google.maps.Geocoder).geocode({location:r},(l,u)=>{"OK"===u?l[0]?(this.cepValidado=!0,this.respostaCep={logradouro:"",bairro:""},this.convertaEmEndereco(l[0]),this.applicationRef.tick()):window.alert("No results found"):window.alert("Geocoder failed due to: "+u)})},t=>{alert("User not allowed")},{timeout:1e4})}convertaEmEndereco(t){const r={street_number:"short_name",route:"long_name",locality:"long_name",administrative_area_level_1:"short_name",administrative_area_level_2:"long_name",sublocality_level_1:"long_name",postal_code:"short_name"},s={street_number:"numero",route:"logradouro",sublocality_level_1:"bairro",administrative_area_level_1:"estado",administrative_area_level_2:"cidade",postal_code:"cep"},l={};for(let u=0;u<t.address_components.length;u++){let p=t.address_components[u];for(let y=0;y<p.types.length;y++){const A=p.types[y];if(r[A]){const I=t.address_components[u][r[A]],P=s[A];"estado"!==P&&"cidade"!==P?this.endereco[P]=I:l[P]=I}}}setTimeout(()=>{this.ngZone.run(()=>{this.carregueEstadoECidade(l.cidade,l.estado),$("#numero").focus()})},0)}focoCampoCEP(){this.escolheuPreencherCep=!0}fecheTela(){this.window.close({back:!1})}voltarEscolhaPreencherCEP(){this.escolheuPreencherCep=!1,this.cepValidado=!1,this.endereco=Xr.novo(),this.frm.reset()}voltarEscolhaUsarLocalizacao(){this.escolheuPreencherCep=!1,this.escolherUsarLocalizacao=!1,this.cepValidado=!1,this.endereco=Xr.novo(),this.frm.reset()}receberEmCasa(){this.opcaoEntrega="retirada"}mudarOpcaoEntrega(){this.opcaoEntrega="",this.cepValidado=!1,this.lojaCerta=null,this.endereco=Xr.novo(),this.frm.reset()}escolherOutroCEP(){this.lojaCerta=null,this.escolheuPreencherCep=!1,this.opcaoEntrega="retirada",this.cepValidado=!1,this.endereco=Xr.novo(),this.frm.reset()}retirarNaLoja(){this.escolhaLojaRetirar=!0}mudarLoja(){window.location.href=this.lojaEncontrada.link}ngAfterViewInit(){}apliqueMascara(){}voltarOpcaoEntregar(){this.escolhaLojaRetirar=!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.R0b),n.Y36(n.z2F),n.Y36(wc),n.Y36(k2e),n.Y36(Oi),n.Y36(zo),n.Y36(gi),n.Y36(ka))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-popup-endereco-china-inbox"]],viewQuery:function(t,r){if(1&t&&(n.Gf(F2e,7),n.Gf(B2e,5),n.Gf(H2e,5),n.Gf($2e,5),n.Gf(U2e,5),n.Gf(Y2e,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.txtNumero=s.first),n.iGM(s=n.CRH())&&(r.cboZonaDeEntrega=s.first),n.iGM(s=n.CRH())&&(r.txtLogradouro=s.first),n.iGM(s=n.CRH())&&(r.txtCEP=s.first),n.iGM(s=n.CRH())&&(r.complementoInput=s.first)}},decls:12,vars:12,consts:[["id","frmEndereco","novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],["class","form-group mb-2",4,"ngIf"],["class","btn btn-outline-blue btn-rounded","style","position: absolute;top: 10px; right: 10px;z-index: 9999;background: #fff;","type","button",3,"click",4,"ngIf"],[1,"mb-2","mt-2",2,"text-align","center"],["width","100px;",2,"text-align","center",3,"src"],["style","text-align: center;","class","mb-2",4,"ngIf"],[4,"ngIf"],[3,"hidden"],["class","text-center mt-4 mb-3",4,"ngIf"],[1,"form-group","mb-2"],["kendoTextBox","","name","descricao","appAutoFocus","","required","",1,"form-control",3,"autoFocus","ngModel","ngModelChange"],["descricao","ngModel"],["id","emailHelp",1,"form-text","text-muted"],[1,"invalid-feedback"],["type","button",1,"btn","btn-outline-blue","btn-rounded",2,"position","absolute","top","10px","right","10px","z-index","9999","background","#fff",3,"click"],["_ngcontent-men-c218","",1,"fas","fa-times"],[1,"mb-2",2,"text-align","center"],[1,"k-i-loading","k-icon",2,"font-size","50px"],["type","button",1,"btn","btn-link",2,"margin-right","5px",3,"click"],[1,"fas","fa-chevron-left",2,"font-size","24px"],[2,"margin-left","-24px","margin-right","-24px"],[3,"grupoDeLojas","popoup"],[1,"text-center","mt-4","mb-3"],[1,"mb-2"],[1,"btn","btn-primary",3,"click"],["type","button",1,"btn","btn-blue",3,"click"],["class","text-center mb-3",4,"ngIf"],[1,"text-center","mb-3"],[1,"mt-2","mb-3","font-18"],["type","button",1,"btn","btn-primary",3,"click"],[1,"mt-0",2,"position","relative","top","-20px"],["type","button",1,"btn","btn-primary",2,"font-size","1.0rem",3,"click"],["src","https://www.chinainbox.com.br/ccstore/v1/images/?source=/file/general/cib_mob_icon-store.png&height=20&width=20"],["type","button",1,"ml-2","btn","btn-secondary",2,"font-size","1.0rem",3,"click"],[1,"text-center"],[1,"mt-0"],[1,"mb-3"],["type","button",1,"btn","btn-primary","btn-xs",3,"click"],["class","form-group mb-3",4,"ngIf"],["class","footer",4,"ngIf"],[1,"form-group","mb-3"],[1,"input-group"],["class","input-group-prepend",3,"click",4,"ngIf"],["kendoTextBox","","type","text","autocomplete","off","id","cep","name","cep","tabindex","0","placeholder","Informe o CEP.","value","",1,"form-control",2,"width","calc(100% - 120px)",3,"ngModel","mask","readonly","required","change","ngModelChange","focusin"],["txtCEP","","cep","ngModel"],[1,"input-group-prepend"],["type","button",1,"btn","btn-secondary",2,"border-top-right-radius","3px","border-bottom-right-radius","0px",3,"click"],["class","fa fa-search",4,"ngIf"],["class","k-i-loading ml-1 mr-1","style","font-size: 20px;",4,"ngIf"],["id","cepHelp",1,"form-text","text-muted"],[1,"input-group-prepend",3,"click"],["id","span-icone",1,"input-group-text",2,"background","none","border","none"],[1,"fa","fa-search"],[1,"k-i-loading","ml-1","mr-1",2,"font-size","20px"],["type","button","id","btnEscolherUsarLocalizacao","style","background: none;border: none;",3,"click",4,"ngIf"],["type","button",1,"btnUsarLocalizacao","btn","btn-outline-secondary",3,"click"],[1,"fas","fa-location-arrow"],["id","localizacaoHelp",1,"form-text","text-muted"],["type","button","id","btnEscolherUsarLocalizacao",2,"background","none","border","none",3,"click"],["for","logradouro"],["type","text","autocomplete","off","id","logradouro","name","logradouro","placeholder","Logradouro: Rua, av. etc","value","","required","",1,"form-control",3,"ngModel","readOnly","ngModelChange"],["logradouro","ngModel","txtLogradouro",""],[1,"row"],[1,"form-group","mb-2","col-4"],["for","numero"],["type","number","autocomplete","off","id","numero","name","numero","placeholder","N\xfamero","required","",1,"form-control",3,"ngModel","ngModelChange"],["txtNumero","","numero","ngModel"],[1,"form-group","mb-2","col",2,"padding-left","0px"],["for","bairro"],["type","text","autocomplete","off","id","bairro","name","bairro","placeholder","Nome do bairro",1,"form-control",3,"ngModel","required","ngModelChange"],["bairro","ngModel"],["for","complemento"],["type","text","autocomplete","off","id","complemento","name","complemento","placeholder","ponto de refer\xeancia, lote, quadra, etc.","value","",1,"form-control",3,"ngModel","ngModelChange"],["complementoInput",""],["for","estado"],["id","estado","name","estado","placeholder","Selecione um Estado","required","","autocomplete","disabled",1,"form-control",3,"ngModel","data","filterable","textField","valueField","readonly","ngModelChange","valueChange"],["estado","ngModel","cboEstado",""],["for","cidade"],["id","cidade","name","cidade","placeholder","Selecione uma Cidade","required","",1,"form-control",3,"ngModel","data","filterable","textField","valueField","readonly","ngModelChange"],["cboCidade","","cidade","ngModel"],["class","alert alert-danger mt-2 mb-2","role","alert",4,"ngIf"],[2,"height","60px","width","100%"],["role","alert",1,"alert","alert-danger","mt-2","mb-2"],[1,"fas","fa-exclamation-triangle"],[1,"footer"],[1,"row",2,"padding","15px"],[1,"col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading",4,"ngIf"],[1,"k-icon","k-i-loading"]],template:function(t,r){if(1&t&&(n.TgZ(0,"div")(1,"form",0,1),n.NdJ("ngSubmit",function(l){return r.onSubmit(l)}),n.YNc(3,Z2e,9,3,"div",2),n.YNc(4,V2e,2,0,"button",3),n.TgZ(5,"div",4),n._UZ(6,"img",5),n.qZA(),n.YNc(7,z2e,4,0,"div",6),n.YNc(8,q2e,2,1,"ng-container",7),n.TgZ(9,"div",8),n.YNc(10,J2e,9,4,"div",9),n.YNc(11,_xe,3,2,"ng-container",7),n.qZA()()()),2&t){const s=n.MAs(2);n.xp6(1),n.Q6J("ngClass",n.WLB(9,bxe,!s.submitted,s.submitted)),n.xp6(2),n.Q6J("ngIf",!1),n.xp6(1),n.Q6J("ngIf",r.pedido.entrega.formaDeEntrega),n.xp6(2),n.MGl("src","/images/empresa/",r.empresa.logo,"",n.LSH),n.xp6(1),n.Q6J("ngIf",r.processando),n.xp6(1),n.Q6J("ngIf",r.escolhaLojaRetirar),n.xp6(1),n.Q6J("hidden",r.processando||r.escolhaLojaRetirar),n.xp6(1),n.Q6J("ngIf",""===r.opcaoEntrega),n.xp6(1),n.Q6J("ngIf","retirada"===r.opcaoEntrega)}},dependencies:[gt,Ge,Ia,wi,vk,ti,ma,Lo,ni,Zo,ja,nn,Er,io,Za,LR],styles:[".desktop .k-dialog-wrapper{justify-content:start;top:50px}  .desktop .k-window-content{padding:24px}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important}}.btnUsarLocalizacao[_ngcontent-%COMP%]{width:100%}.btnUsarLocalizacao.usandoLocalizacao[_ngcontent-%COMP%]{margin-left:10px;width:calc(100% - 50px)}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed;z-index:9999;position:absolute!important;bottom:0;width:100%;left:0%!important;background-color:#f7f8f8}  .dialog-produto{overflow-x:hidden;position:static;position:initial}  .mobile .dialog-produto{padding:12px}  .k-dialog-wrapper{z-index:100001}"]}),i})();const yxe=["divProduto"];function Cxe(i,o){if(1&i&&n._UZ(0,"img",10),2&i){const t=n.oxw(3);n.Q6J("src","https://fibo.promokit.com.br/images/empresa/"+t.produto.imagens[0].linkImagem,n.LSH)}}function Axe(i,o){if(1&i&&n._UZ(0,"img",10),2&i){const t=n.oxw(3);n.Q6J("src","https://fibo.promokit.com.br/images/produtos/"+(t.produto.imagemCodigoDeBarras.linkImagem?t.produto.imagemCodigoDeBarras.linkImagem:"carrinho-produtos.svg"),n.LSH)}}function xxe(i,o){if(1&i&&(n.TgZ(0,"div",8),n.YNc(1,Cxe,1,1,"img",9),n.YNc(2,Axe,1,1,"img",9),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!t.produto.imagemCodigoDeBarras),n.xp6(1),n.Q6J("ngIf",t.produto.imagemCodigoDeBarras)}}function Txe(i,o){if(1&i&&n._UZ(0,"app-tags-alimentar",14),2&i){const t=n.oxw(3);n.Q6J("tags",t.produto.tags)}}const Sxe=function(i){return{descricao_menor:i}};function wxe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h5",11),n._uU(2),n.qZA(),n.TgZ(3,"span",12),n._uU(4),n.qZA(),n.YNc(5,Txe,1,1,"app-tags-alimentar",13),n.BQk()),2&i){const t=n.oxw(2);n.xp6(2),n.hij("",t.produto.nome," "),n.xp6(1),n.Q6J("hidden",null==t.itemPedido||null==t.itemPedido.adicionais?null:t.itemPedido.adicionais.length)("ngClass",n.VKq(5,Sxe,t.botaoEscolher)),n.xp6(1),n.hij(" ",t.produto.descricao,""),n.xp6(1),n.Q6J("ngIf",null==t.produto.tags?null:t.produto.tags.length)}}function Mxe(i,o){if(1&i&&(n.TgZ(0,"span",18),n._uU(1),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.AsE(" ",t.qtde,"x ",t.nome," ")}}function Dxe(i,o){if(1&i&&(n.TgZ(0,"h5",19),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,t.itemPedido.total,"BRL")," ")}}function kxe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h5",11),n._uU(2),n.qZA(),n.TgZ(3,"div",15),n.YNc(4,Mxe,2,2,"span",16),n.qZA(),n.YNc(5,Dxe,3,4,"h5",17),n.BQk()),2&i){const t=n.oxw(2);n.xp6(2),n.lnq(" ",t.itemPedido.qtde,"",t.itemPedido.obtenhaUnidade()," ",t.itemPedido.obtenhaDescricao()," "),n.xp6(2),n.Q6J("ngForOf",t.adicionaisImprirmir),n.xp6(1),n.Q6J("ngIf",!t.produto.indisponivel)}}function Ixe(i,o){1&i&&(n.TgZ(0,"span",22)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function Exe(i,o){1&i&&(n.TgZ(0,"span",24),n._uU(1," / Kg "),n.qZA())}function Pxe(i,o){if(1&i&&(n.TgZ(0,"h5",19),n._uU(1),n.ALo(2,"currency"),n.YNc(3,Exe,2,0,"span",23),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,2,t.produto.valorMinimo?t.produto.valorMinimo:t.produto.preco,"BRL")," "),n.xp6(2),n.Q6J("ngIf",t.exibirUnidade(t.produto))}}function Oxe(i,o){if(1&i&&(n.TgZ(0,"h5",25),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.hij(" ",n.xi3(2,1,t.produto.precoAntigo,"BRL")," ")}}function Nxe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Ixe,3,0,"span",20),n.YNc(2,Pxe,4,5,"h5",17),n.YNc(3,Oxe,3,4,"h5",21),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.produto.valorMinimo),n.xp6(1),n.Q6J("ngIf",t.exibirPrecos),n.xp6(1),n.Q6J("ngIf",t.produto.precoAntigo&&t.exibirPrecos)}}function Lxe(i,o){1&i&&(n.TgZ(0,"span",22)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function Rxe(i,o){if(1&i&&(n.TgZ(0,"h5",29),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.novoPreco?t.novoPreco:t.preco,"BRL")," ")}}function Fxe(i,o){if(1&i&&(n.TgZ(0,"h5",25),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.precoAntigo,"BRL")," ")}}function Bxe(i,o){if(1&i&&(n.TgZ(0,"div",27),n._uU(1),n.YNc(2,Lxe,3,0,"span",20),n.YNc(3,Rxe,3,4,"h5",28),n.YNc(4,Fxe,3,4,"h5",21),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.hij(" ",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.Q6J("ngIf",r.exibirPrecos),n.xp6(1),n.Q6J("ngIf",t.precoAntigo&&r.exibirPrecos)}}function Hxe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Bxe,5,4,"div",26),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",t.produto.tamanhos)}}function $xe(i,o){if(1&i&&(n.TgZ(0,"i")(1,"label",30),n._uU(2),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("*At\xe9 ",t.produto.qtdMaxima," por pedido")}}function Uxe(i,o){1&i&&(n.TgZ(0,"div")(1,"button",31),n._uU(2,"Escolher"),n.qZA()())}function Yxe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div"),n.YNc(2,Nxe,4,3,"ng-container",6),n.YNc(3,Hxe,2,1,"ng-container",6),n.YNc(4,$xe,3,1,"i",6),n.YNc(5,Uxe,3,0,"div",6),n.qZA(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngIf",!(null!=t.produto.template&&t.produto.template.exibirPrecosTamanhos||t.itemPedido)),n.xp6(1),n.Q6J("ngIf",(null==t.produto.template?null:t.produto.template.exibirPrecosTamanhos)&&!t.itemPedido),n.xp6(1),n.Q6J("ngIf",t.produto.qtdMaxima),n.xp6(1),n.Q6J("ngIf",t.botaoEscolher)}}function jxe(i,o){1&i&&(n.TgZ(0,"h5",32),n._uU(1,"Esgotado!"),n.qZA())}function Zxe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",1,2),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.abrirDetalhes(s.produto))}),n.YNc(2,xxe,3,2,"div",3),n.TgZ(3,"div",4)(4,"div",5),n.YNc(5,wxe,6,7,"ng-container",6),n.YNc(6,kxe,6,5,"ng-container",6),n.YNc(7,Yxe,6,4,"ng-container",6),n.YNc(8,jxe,2,0,"h5",7),n.qZA()()()}if(2&i){const t=n.oxw();n.Udp("width",t.larguraProdutos,"px"),n.ekj("destacado",t.produto.destacado&&!t.semdestaque)("destaque2",t.destaque2),n.xp6(2),n.Q6J("ngIf",t.produto.imagemCodigoDeBarras||t.produto.imagens&&t.produto.imagens.length>0),n.xp6(3),n.Q6J("ngIf",!t.itemPedido),n.xp6(1),n.Q6J("ngIf",t.itemPedido),n.xp6(1),n.Q6J("ngIf",!t.produto.indisponivel&&t.produto.exibirPrecoNoCardapio),n.xp6(1),n.Q6J("ngIf",t.produto.indisponivel)}}let RR=(()=>{class i{constructor(t,r){this.detectorDevice=t,this.carrinhoService=r,this.botaoEscolher=!1,this.semdestaque=!1,this.exibirProdutoValorZerado=!1,this.onAbrirDetalhes=new n.vpe,this.onAbrirDetalhesPrato=new n.vpe,this.tagsAlimentares=[],this.isMobile=this.detectorDevice.isMobile()}ngOnInit(){this.itemPedido&&(this.adicionaisImprirmir=this.itemPedido.adicionaisImprirmir,this.itemPedido=this.carrinhoService.otenhaPedidoPrato(this.itemPedido),this.produto=this.itemPedido.produto)}ngAfterViewInit(){if(this.layoutHorizontal&&this.divProduto)try{let t=this.divProduto.nativeElement.closest(".produtos_categoria").clientWidth;this.larguraProdutos=this.isMobile?(t-20)/2:(t-40)/4}catch{}}exibirUnidade(t){return t.tipoDeVenda&&"Peso"===t.tipoDeVenda}abrirDetalhes(t){this.itemPedido?this.onAbrirDetalhesPrato.emit(this.itemPedido):this.onAbrirDetalhes.emit(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(zo),n.Y36(Oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-produto-container"]],viewQuery:function(t,r){if(1&t&&n.Gf(yxe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.divProduto=s.first)}},inputs:{produto:"produto",itemPedido:"itemPedido",exibirPrecos:"exibirPrecos",layoutHorizontal:"layoutHorizontal",botaoEscolher:"botaoEscolher",semdestaque:"semdestaque",exibirProdutoValorZerado:"exibirProdutoValorZerado",destaque2:"destaque2",tagsAlimentares:"tagsAlimentares"},outputs:{onAbrirDetalhes:"onAbrirDetalhes",onAbrirDetalhesPrato:"onAbrirDetalhesPrato"},decls:1,vars:1,consts:[["class","produto pt-2",3,"width","destacado","destaque2","click",4,"ngIf"],[1,"produto","pt-2",3,"click"],["divProduto",""],["class","container_foto justify-content-center align-items-center wrapper-img",4,"ngIf"],[1,"media"],[1,"media-body","pt-0"],[4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"container_foto","justify-content-center","align-items-center","wrapper-img"],["class","img img-fluid mb-1","alt","Imagem",3,"src",4,"ngIf"],["alt","Imagem",1,"img","img-fluid","mb-1",3,"src"],[1,"mt-0","mb-1","font-14","nome-produto"],[1,"text-muted","descricao",3,"hidden","ngClass"],[3,"tags",4,"ngIf"],[3,"tags"],[1,"text-muted","descricao"],["class","d-block",4,"ngFor","ngForOf"],["class","preco font-14",4,"ngIf"],[1,"d-block"],[1,"preco","font-14"],["class"," text-muted font-12 mr-1",4,"ngIf"],["class","preco font-14 antigo ",4,"ngIf"],[1,"text-muted","font-12","mr-1"],["class"," text-muted font-11",4,"ngIf"],[1,"text-muted","font-11"],[1,"preco","font-14","antigo"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],["class","preco font-14 mt-0 mb-0",4,"ngIf"],[1,"preco","font-14","mt-0","mb-0"],[1,"text-muted",2,"font-size","10px"],[1,"btn","btn-sm","btn-primary"],[1,"text-danger"]],template:function(t,r){1&t&&n.YNc(0,Zxe,9,11,"div",0),2&t&&n.Q6J("ngIf",r.exibirProdutoValorZerado||r.produto.preco>0||r.produto.valorMinimo>0)},dependencies:[gt,Bt,Ge,oQ,Jo],styles:[".preco[_ngcontent-%COMP%]{color:#6db31b;display:inline-block;margin-right:10px}.preco.antigo[_ngcontent-%COMP%]{color:#ccc;text-decoration:line-through}@media (min-width: 1100px){.produto[_ngcontent-%COMP%]{width:calc(50% - 20px);display:inline-block;border:1px solid #f2f2f2;box-shadow:0 1px 4px #0000000d;border-radius:4px;padding:8px}.produto[_ngcontent-%COMP%]:hover{border:1px solid #e3e3e3}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:128px;max-height:128px}.produto[_ngcontent-%COMP%]   .nome-produto[_ngcontent-%COMP%]{font-size:16px}.produto[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{font-size:18px!important}.produto[_ngcontent-%COMP%]   .preco.antigo[_ngcontent-%COMP%]{font-size:16px!important}.produto[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;min-height:35px}.produto[_ngcontent-%COMP%]   .descricao_menor[_ngcontent-%COMP%]{min-height:25px!important}}@media only screen and (min-width: 992px){.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:140px!important}.produto[_ngcontent-%COMP%]   .container_foto[_ngcontent-%COMP%]{width:140px}.produto[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{width:calc(100% - 155px)}}.produto[_ngcontent-%COMP%]{width:calc(100% - 20px)!important;align-items:flex-start;height:100%;display:flex!important;flex-direction:row-reverse!important}.produto[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{flex-grow:1;width:calc(100% - 165px)}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:160px;height:auto;max-width:inherit!important;max-height:200px}.produto[_ngcontent-%COMP%]   .container_foto[_ngcontent-%COMP%]{width:165px;display:flex;padding-top:0rem!important}@media only screen and (max-width: 768px){.produto[_ngcontent-%COMP%]{width:100%!important}.produto[_ngcontent-%COMP%]   .scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}.produto[_ngcontent-%COMP%]   .container_foto[_ngcontent-%COMP%]{width:140px;display:flex}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:140px}}  .quiosque .scroll_categoria{grid-template-columns:repeat(3,1fr)!important}  .quiosque .produto{width:calc(100% + -0px)!important;align-items:flex-start;height:100%;display:flex!important;flex-direction:column!important}  .quiosque .produto img{width:100%!important;height:250px!important;max-height:inherit!important;-o-object-fit:cover!important;object-fit:cover!important}  .quiosque .produto .nome-produto{font-size:18px!important}  .quiosque .produto .descricao{display:none!important}  .quiosque .produto .media{width:100%!important}@media only screen and (max-width: 768px){  .quiosque .produto{width:100%!important}}  .quiosque .container_foto{width:100%!important}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8;background:#fff;cursor:pointer}.produto[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:3}.produto[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]{padding-top:15px;min-width:0px}.produto.destacado[_ngcontent-%COMP%]{height:98%;display:block!important}.produto.destacado[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%!important}.produto.destacado[_ngcontent-%COMP%]   .container_foto[_ngcontent-%COMP%]{width:100%!important;margin-left:0!important;overflow:hidden!important;margin-bottom:15px}.produto.destacado[_ngcontent-%COMP%]   .media[_ngcontent-%COMP%]{width:100%}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain;display:block;margin:0 auto}.produto.destaque2[_ngcontent-%COMP%]{box-shadow:2px 2px 3px #0000003b;border:1px solid rgba(238,238,238,.9333333333);margin-bottom:20px!important;width:310px;min-height:145px!important}.produto.destaque2[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{margin-top:10px}.produto.destaque2[_ngcontent-%COMP%]   .wrapper-img[_ngcontent-%COMP%]{width:100px}.produto.destaque2[_ngcontent-%COMP%]   .wrapper-img[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100px;height:100px}  .tema-personalizado .text-muted{color:#999!important;color:var(--cor-texto-secundaria, #999)!important}"]}),i})();const Vxe=function(i){return{deslocado:i}};function zxe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",1),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.abraTelaCarrinho())}),n.TgZ(2,"div",2)(3,"span",3),n._uU(4),n.qZA(),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"div",5)(7,"span"),n._uU(8," Ver Carrinho "),n.qZA()(),n.TgZ(9,"div",6)(10,"span",7),n._uU(11),n.ALo(12,"currency"),n.qZA()()()()}if(2&i){const t=n.oxw();n.xp6(1),n.Gre("row carrinho ",t.tema,""),n.Q6J("ngClass",n.VKq(9,Vxe,t.exibindoMenu)),n.xp6(3),n.Oqu(t.pedido.qtde),n.xp6(7),n.hij(" ",n.xi3(12,6,t.pedido.total,"BRL")," ")}}let sQ=(()=>{class i{constructor(t,r,s){this.router=t,this.carrinhoService=r,this.dominiosService=s,this.exibir=!1,this.linksExibiCarrinho=["/","/loja","/loja/index","/index","/loja/busca","/busca","/desconto","/categoria"],this.clicouAbrirCarrinho=new n.vpe}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.carrinhoService.alterouPedido.subscribe(t=>{!t||(this.pedido=t,this.verifiqueDeveExibir())}),setTimeout(()=>{this.exibir=!0},500)}abraTelaCarrinho(){this.clicouAbrirCarrinho.observers.length>0?this.clicouAbrirCarrinho.emit(!0):this.dominiosService.navegueParaUrl("carrinho")}verifiqueDeveExibir(){let t=this.linksExibiCarrinho.indexOf(location.pathname)>=0||null!=location.pathname.match(/local\/\w+$/);-1!==location.pathname.indexOf("/categoria")&&(t=!0),(location.pathname.startsWith("/desconto")||location.pathname.startsWith("/busca/ecommerce"))&&(t=!0),t&&(this.pedido=this.carrinhoService.obtenhaPedido(),t=this.pedido.qtde>0),this.exibirCarrinho=t,window.tema&&(this.tema=window.tema)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Oi),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-carrinho"]],inputs:{exibindoMenu:"exibindoMenu",tema:"tema"},outputs:{clicouAbrirCarrinho:"clicouAbrirCarrinho"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngClass","click"],[1,"col","flex-fixed-width-item","pr-0"],[1,"qtde_itens"],[1,"fe-shopping-cart","font-15"],[1,"col","ml-0","mr-0","text-center"],[1,"col-auto","text-right","mr-2"],[1,"font-13"]],template:function(t,r){1&t&&n.YNc(0,zxe,13,11,"div",0),2&t&&n.Q6J("ngIf",r.exibirCarrinho)},dependencies:[gt,Ge,Jo],styles:[".carrinho[_ngcontent-%COMP%]{padding:15px;background:#3E9920!important;color:#fff;position:relative;line-height:20px;font-size:12px}  .quiosque .carrinho{padding:20px;font-size:16px}  .quiosque .carrinho .font-13{font-size:16px!important}.deslocado[_ngcontent-%COMP%]{top:-60px!important}.flex-fixed-width-item[_ngcontent-%COMP%]{flex:0 0 55px}.qtde_itens[_ngcontent-%COMP%]{top:0;left:5px;border:solid 1px #fff;border-radius:3px;padding:0 2px;font-size:11px!important}.fe-shopping-cart[_ngcontent-%COMP%]{position:relative;margin-left:3px;top:2px}"],data:{animation:[Tp("inivisivelVisivel",[Ad("invisivel",Kt({opacity:0,top:"40px"})),Ad("visivel",Kt({opacity:1,top:"0px"})),Dc("invisivel => visivel",[Wi("0.3s",Kt({top:"0px",opacity:"1"})),Wi("0.5s",Kt({top:"0px",opacity:"1"})),Wi("0.5s",Kt({top:"0px",opacity:".8"}))])])]}}),i})(),gm=(()=>{class i extends fs{constructor(t){super(t)}salvePedido(t){var r=this;return sn(function*(){if(t.origem||(t.origem=Ap.Loja),t.pagamentos.length)for(let s=0;s<t.pagamentos.length;s++){let l=t.pagamentos[s];if(l.dadosCartao){let u=l.dadosCartao.tokenize;if(u){if(u.dataExpiracao&&new Date>u.dataExpiracao){let p=yield r.tokenizeCartao(u.card,u.publicKey);p&&(l.dadosCartao.token=p)}delete l.dadosCartao.tokenize}}}return r.salve(t.guid?"/pedidos/"+t.guid:"/pedidos",t)})()}tokenizeCartao(t,r){let s={type:"card",card:t};return new Promise((l,u)=>{this.http.post("https://api.pagar.me/core/v5/tokens?appId="+r,s).toPromise().then(p=>{l(p.id)}).catch(p=>{let y="Cart\xe3o inv\xe1lido";p.error&&p.error.errors&&p.error.errors["request.card"]&&(y+=":"+p.error.errors["request.card"][0]),u(y)})})}cancelePedido(t){return this.http.put("/pedidos/"+t.guid+"/cancele/loja",t).toPromise().then(this.retorno).catch(this.handleError)}gereLinkPagamento(t){return this.http.post(String(`/pedidos/${t.codigo}/pagamento/online`),{}).toPromise().then(this.retorno).catch(this.handleError)}tentePagamentoCartao(t){return this.salve(`/pedidos/${t.codigo}/cartao/novoPagamento`,t)}tentePagamentoPix(t){return this.salve("/pedidos/cartao/novoPix",t)}listePedidos(t,r){return this.obtenha("/pedidos/me",{i:t,t:r})}obtenhaAdicionaisPedido(t){return this.obtenha("/pedidos/adicionais-pedido?eid="+t.id,{})}monitorePagamentoOnline(t){return this.obtenha("/pedidos/monitoramento/"+t,{})}obtenhaPorGuid(t,r=null){return this.obtenha("/pedidos/chave/"+t,{})}validePedirNovamente(t){return this.obtenha(String(`/pedidos/${t}/valide/pedirnovamente`),{})}obtenhaPorCodigo(t,r=null){return this.obtenha("/pedidos/chave/"+t,{})}configureAdicionaisDoPedido(t){for(let r of t.itens){if(r.adicionais=[],r.adicionaisEscolhaSimples&&r.adicionaisEscolhaSimples.id)for(let s in r.adicionaisEscolhaSimples)s.startsWith("campo")&&r.adicionais.push({opcao:r.adicionaisEscolhaSimples[s],qtde:1});if(r.adicionaisMultiplaEscolha&&r.adicionaisMultiplaEscolha.id)for(let s in r.adicionaisMultiplaEscolha)if(s.startsWith("lista"))for(let l of r.adicionaisMultiplaEscolha[s].opcoes)r.adicionais.push(l)}}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const Gxe=["adicionalComponent"];function qxe(i,o){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"app-site-campo-adicional",7,8),n.qZA()),2&i){const t=o.$implicit,r=n.oxw();n.xp6(1),n.Q6J("id","adicional_"+t.id)("campoAdicional",t)("itemPedido",r.pedido)("posicao",t.posicao)}}function Jxe(i,o){if(1&i&&(n.TgZ(0,"p",9)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Oqu(t.erro)}}let Qxe=(()=>{class i{constructor(t,r){this.pedidosService=t,this.constantsService=r,this.camposAdicionais=[]}ngOnInit(){}inicialize(t,r){this.window=t,this.pedido=r,this.constantsService.empresa$.subscribe(s=>{!s||this.pedidosService.obtenhaAdicionaisPedido(s).then(l=>{this.camposAdicionais=l,this.pedido.adicionais={},this.pedido.camposAdicionais=l,al.prepareAdicionais(this.pedido,l)})})}fecheTela(){this.window.close()}finalizar(){if(this.pedido.camposAdicionais)for(let t=0;t<this.pedido.camposAdicionais.length;t++){const r=this.pedido.camposAdicionais[t];if(!this.pedido.valideCampoAdicional(r))return this.ctrlAdicionais.toArray()[t].exibaErro("Complemento \xe9 obrigat\xf3rio"),void this.posicioneNoComplemento(r)}this.window.close(!0)}posicioneNoComplemento(t){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(gm),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-adicional-pedido"]],viewQuery:function(t,r){if(1&t&&n.Gf(Gxe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.ctrlAdicionais=s)}},decls:9,vars:4,consts:[["exibirFechar","true",3,"titulo","fechou"],[4,"ngFor","ngForOf"],[1,"footer"],["class","text-danger",4,"ngIf"],[1,"row"],[1,"col"],[1,"btn","btn-primary","btn-block",3,"click"],[3,"id","campoAdicional","itemPedido","posicao"],["adicionalComponent",""],[1,"text-danger"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.YNc(1,qxe,3,4,"div",1),n.TgZ(2,"footer",2)(3,"div"),n.YNc(4,Jxe,3,1,"p",3),n.TgZ(5,"div",4)(6,"div",5)(7,"button",6),n.NdJ("click",function(){return r.finalizar()}),n._uU(8),n.qZA()()()()()),2&t&&(n.Q6J("titulo","Extras do Pedido"),n.xp6(1),n.Q6J("ngForOf",r.camposAdicionais),n.xp6(3),n.Q6J("ngIf",r.erro),n.xp6(4),n.hij(" ",r.pedido.informouFormaDePagamento()?"Salvar":"Ir para Pagamento"," "))},dependencies:[Bt,Ge,Cs,BE],styles:[".dialog-produto{overflow-x:hidden;padding-bottom:110px!important;padding-top:0!important;position:static;position:initial}  .mobile .dialog-produto{padding:12px}  .k-dialog-wrapper{z-index:100001}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background-color:#f7f8f8;position:fixed;z-index:10}"]}),i})();function Nt(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function cQ(i,o){return function(t,r){o(t,r,i)}}function pt(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const Kxe=["kendoBreadCrumbItem",""];function Xxe(i,o){1&i&&n.Hsn(0)}function eTe(i,o){1&i&&n.GkF(0)}function tTe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,eTe,1,0,"ng-container",2),n.BQk()),2&i){n.oxw();const t=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",t)}}function nTe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"img",7),n.NdJ("load",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.onImageLoad())}),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("src",t.item.data.imageUrl,n.LSH)}}function iTe(i,o){if(1&i&&n._UZ(0,"span"),2&i){const t=n.oxw(3);n.Gre("k-icon k-i-",t.item.data.icon,"")}}function oTe(i,o){if(1&i&&n._UZ(0,"span"),2&i){const t=n.oxw(3);n.Tol(t.item.data.iconClass)}}const rTe=function(i,o,t,r,s){return{"k-breadcrumb-root-link":i,"k-breadcrumb-link":o,"k-breadcrumb-icontext-link":t,"k-breadcrumb-icon-link":r,"k-state-disabled":s}};function aTe(i,o){if(1&i&&(n.TgZ(0,"span",4),n.YNc(1,nTe,1,1,"img",5),n.YNc(2,iTe,1,3,"span",6),n.YNc(3,oTe,1,3,"span",6),n._uU(4),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.qbA(8,rTe,t.item.context.isFirst,0!==t.index,!!t.item.data.icon&&!!t.item.data.text,!!t.item.data.icon&&!t.item.data.text,t.disabled))("title",t.item.data.title||"")("tabindex",t.disabled?-1:0),n.uIk("aria-current",!!t.item.context.isLast||null),n.xp6(1),n.Q6J("ngIf",t.item.data.imageUrl),n.xp6(1),n.Q6J("ngIf",t.item.data.icon&&!t.item.data.iconClass),n.xp6(1),n.Q6J("ngIf",t.item.data.iconClass),n.xp6(1),n.hij(" ",t.item.data.text," ")}}function sTe(i,o){}const lTe=function(i,o){return{$implicit:i,index:o}};function cTe(i,o){if(1&i&&n.YNc(0,sTe,0,0,"ng-template",8),2&i){const t=n.oxw(2);n.Q6J("ngTemplateOutlet",t.itemTemplate)("ngTemplateOutletContext",n.WLB(2,lTe,t.item.data,t.index))}}function dTe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,aTe,5,14,"span",3),n.YNc(2,cTe,1,5,null,1),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.itemTemplate),n.xp6(1),n.Q6J("ngIf",t.itemTemplate)}}function uTe(i,o){1&i&&n.GkF(0)}function pTe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,uTe,1,0,"ng-container",2),n.BQk()),2&i){n.oxw();const t=n.MAs(1);n.xp6(1),n.Q6J("ngTemplateOutlet",t)}}const hTe=[[["","kendoBreadCrumbSeparator",""]]],gTe=["[kendoBreadCrumbSeparator]"],fTe=["kendoBreadCrumbList",""];function mTe(i,o){if(1&i&&n._UZ(0,"span",5),2&i){const t=n.oxw(3);n.Q6J("icon",t.separatorIcon)}}function _Te(i,o){if(1&i&&n._UZ(0,"span",5),2&i){const t=n.oxw(3);n.Q6J("icon",t.separatorIcon)}}function bTe(i,o){if(1&i&&(n.TgZ(0,"li",2,3),n.YNc(2,mTe,1,1,"span",4),n.YNc(3,_Te,1,1,"span",4),n.qZA()),2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=t.first,u=t.last,p=n.oxw();n.Q6J("item",r)("index",s)("collapseMode",p.collapseMode)("itemTemplate",p.itemTemplate),n.uIk("data-kendo-breadcrumb-index",s),n.xp6(2),n.Q6J("ngIf","wrap"===p.collapseMode&&!l),n.xp6(1),n.Q6J("ngIf",!("wrap"===p.collapseMode||u||null!=r&&r.context.collapsed&&null!=p.items[s+1]&&p.items[s+1].context.collapsed))}}function vTe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,bTe,4,7,"li",1),n.BQk()),2&i){const t=o.first,r=n.oxw();n.xp6(1),n.Q6J("ngIf",!("wrap"===r.collapseMode&&t)||r.isRootItemContainer)}}const yTe=["resizeSensor"],CTe=["itemsContainer"];function ATe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"ol",5,2),n.NdJ("itemClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.itemClick.emit(s))}),n.ALo(2,"async"),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("items",n.lcZ(2,4,t.firstItem$))("itemTemplate",null==t.itemTemplate?null:t.itemTemplate.templateRef)("collapseMode",t.collapseMode)("separatorIcon",t.separatorIcon)}}const xTe=function(i,o){return{"k-flex-wrap":i,"k-flex-none":o}};const BR={name:"@progress/kendo-angular-navigation",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1647344375,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},ST=i=>null!=i,UE=i=>{let o=i.offsetWidth;const t=getComputedStyle(i);return o+=(parseFloat(t.marginLeft)||0)+(parseFloat(t.marginRight)||0),o};let LTe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),wT=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoBreadCrumbItemTemplate",""]]}),i=Nt([cQ(0,(0,n.FiY)()),pt("design:paramtypes",[n.Rgc])],i),i})();const pQ="data-kendo-breadcrumb-index";let YE=(()=>{let i=class{constructor(t){this.el=t,this.index=-1,this.hostClasses=!0,this.disabled=!1}get isRootItem(){return this.item.context.isFirst}get isDisabled(){return this.disabled||null}get isLastItem(){return this.item.context.isLast}ngOnInit(){this.disabled=this.item.data&&(this.item.data.disabled||this.item.context.isLast)}ngAfterViewInit(){Dt()&&(this.width=UE(this.el.nativeElement))}onImageLoad(){Dt()&&(this.width=UE(this.el.nativeElement))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoBreadCrumbItem",""]],hostVars:9,hostBindings:function(t,r){2&t&&(n.uIk("aria-disabled",r.isDisabled),n.ekj("k-flex-none",r.hostClasses)("k-breadcrumb-item",r.hostClasses)("k-breadcrumb-root-item",r.isRootItem)("k-breadcrumb-last-item",r.isLastItem))},inputs:{index:"index",item:"item",collapseMode:"collapseMode",itemTemplate:"itemTemplate"},attrs:Kxe,ngContentSelectors:gTe,decls:5,vars:3,consts:[["separator",""],[4,"ngIf"],[4,"ngTemplateOutlet"],["role","link","class","k-cursor-pointer k-flex-none",3,"ngClass","title","tabindex",4,"ngIf"],["role","link",1,"k-cursor-pointer","k-flex-none",3,"ngClass","title","tabindex"],["class","k-image","role","presentation",3,"src","load",4,"ngIf"],[3,"class",4,"ngIf"],["role","presentation",1,"k-image",3,"src","load"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.F$t(hTe),n.YNc(0,Xxe,1,0,"ng-template",null,0,n.W1O),n.YNc(2,tTe,2,1,"ng-container",1),n.YNc(3,dTe,3,2,"ng-container",1),n.YNc(4,pTe,2,1,"ng-container",1)),2&t&&(n.xp6(2),n.Q6J("ngIf","wrap"===r.collapseMode),n.xp6(1),n.Q6J("ngIf",!r.item.context.collapsed),n.xp6(1),n.Q6J("ngIf","wrap"!==r.collapseMode))},dependencies:[gt,Ge,Pi],encapsulation:2}),Nt([(0,n.IIB)(),pt("design:type",Object)],i.prototype,"item",void 0),Nt([(0,n.IIB)(),pt("design:type",String)],i.prototype,"collapseMode",void 0),Nt([(0,n.IIB)(),pt("design:type",Number)],i.prototype,"index",void 0),Nt([(0,n.IIB)(),pt("design:type",n.Rgc)],i.prototype,"itemTemplate",void 0),Nt([(0,n.pfw)("class.k-flex-none"),(0,n.pfw)("class.k-breadcrumb-item"),pt("design:type",Boolean)],i.prototype,"hostClasses",void 0),Nt([(0,n.pfw)("class.k-breadcrumb-root-item"),pt("design:type",Boolean),pt("design:paramtypes",[])],i.prototype,"isRootItem",null),Nt([(0,n.pfw)("attr.aria-disabled"),pt("design:type",Boolean),pt("design:paramtypes",[])],i.prototype,"isDisabled",null),Nt([(0,n.pfw)("class.k-breadcrumb-last-item"),pt("design:type",Boolean),pt("design:paramtypes",[])],i.prototype,"isLastItem",null),i=Nt([pt("design:paramtypes",[n.SBq])],i),i})();const FTe=(i,o)=>ST(i.getAttribute(o)),hQ=(i,o)=>+i.getAttribute(o),gQ=(i,o,t)=>((i,o,t,r)=>{for(;i&&i!==r&&!t(i,o);)i=i.parentNode;if(i!==r)return i})(i,o,FTe,t);let MT=(()=>{let i=class{constructor(t,r){this.el=t,this.zone=r,this.items=[],this.collapseMode="auto",this.itemClick=new n.vpe;const s=this.el.nativeElement;this.isRootItemContainer=s.classList.contains("k-breadcrumb-root-item-container"),this.zone.runOutsideAngular(()=>{const l=jn(s,"click"),u=jn(s,"keydown").pipe(Wt(p=>p.keyCode===Ie.Enter));this.domEventsSubscription=(0,Ko.T)(l,u).pipe((0,ft.U)(p=>p.target),Wt(p=>!p.classList.contains("k-breadcrumb-delimiter-icon")),(0,ft.U)(p=>this.getItemIndex(p)),Wt(ST),(0,ft.U)(p=>parseInt(p,10)),(0,ft.U)(p=>this.items[p]),Wt(p=>!p.data.disabled&&!p.context.isLast),(0,ft.U)(p=>p.data)).subscribe(p=>{this.zone.run(()=>this.itemClick.emit(p))})})}ngOnDestroy(){this.domEventsSubscription.unsubscribe()}getItemIndex(t){const r=gQ(t,pQ,this.el.nativeElement);if(r)return hQ(r,pQ)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoBreadCrumbList",""]],viewQuery:function(t,r){if(1&t&&n.Gf(YE,5),2&t){let s;n.iGM(s=n.CRH())&&(r.renderedItems=s)}},inputs:{items:"items",collapseMode:"collapseMode",itemTemplate:"itemTemplate",separatorIcon:"separatorIcon"},outputs:{itemClick:"itemClick"},attrs:fTe,decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate",4,"ngIf"],["kendoBreadCrumbItem","",3,"item","index","collapseMode","itemTemplate"],["renderedItem",""],["kendoBreadCrumbSeparator","",3,"icon",4,"ngIf"],["kendoBreadCrumbSeparator","",3,"icon"]],template:function(t,r){1&t&&n.YNc(0,vTe,2,1,"ng-container",0),2&t&&n.Q6J("ngForOf",r.items)},dependencies:function(){return[Bt,Ge,YE,_Q]},encapsulation:2}),Nt([(0,n.IIB)(),pt("design:type",Array)],i.prototype,"items",void 0),Nt([(0,n.IIB)(),pt("design:type",n.Rgc)],i.prototype,"itemTemplate",void 0),Nt([(0,n.IIB)(),pt("design:type",String)],i.prototype,"collapseMode",void 0),Nt([(0,n.IIB)(),pt("design:type",String)],i.prototype,"separatorIcon",void 0),Nt([(0,n.r_U)(),pt("design:type",n.vpe)],i.prototype,"itemClick",void 0),Nt([(0,n.vR)(YE),pt("design:type",n.n_E)],i.prototype,"renderedItems",void 0),i=Nt([pt("design:paramtypes",[n.SBq,n.R0b])],i),i})();const HR=i=>i.item.context.collapsed,fQ=i=>!0===HR(i),BTe=i=>!1===HR(i),mQ=i=>o=>o.find(t=>HR(t)===i).item.context.collapsed=!i,HTe=mQ(!1),$Te=mQ(!0);let $R=(()=>{let i=class{constructor(t,r,s,l){this.el=t,this.cdr=r,this.zone=s,this.localization=l,this.itemClick=new n.vpe,this.hostClasses=!0,this._items=[],this._collapseMode="auto",this.updateItems=new mv,this.afterViewInit=new Ht.xQ,this.subscriptions=new bn.w,this.direction="ltr",(0,mi.s)(BR);const u=this.updateItems.asObservable().pipe(vl([]));this.direction=l.rtl?"rtl":"ltr",this.itemsData$=u.pipe((0,ft.U)(p=>p.filter(Boolean)),(0,ft.U)(p=>p.map((y,A,w)=>({context:{collapsed:!1,isLast:A===w.length-1,isFirst:0===A},data:y}))),(0,Jf.B)()),this.firstItem$=u.pipe((0,ft.U)(p=>p.length>0?[{context:{collapsed:!1,isLast:1===p.length,isFirst:!0},data:p[0]}]:[]),(0,Jf.B)())}set items(t){this._items=t||[],this.updateItems.next(this._items)}get items(){return this._items}set collapseMode(t){if((0,n.X6Q)()&&["auto","wrap","none"].indexOf(t)<0)throw new Error('Invalid collapse mode. Allowed values are "auto", "wrap" or "none". \nFor more details see https://www.telerik.com/kendo-angular-ui/components/navigation/api/BreadCrumbCollapseMode/');this._collapseMode=t||"auto",this.updateItems.next(this.items)}get collapseMode(){return this._collapseMode}get wrapMode(){return"wrap"===this.collapseMode}get getDir(){return this.direction}ngOnInit(){this.subscriptions.add(this.localization.changes.subscribe(({rtl:t})=>this.direction=t?"rtl":"ltr"))}ngAfterViewInit(){this.attachResizeHandler(),this.afterViewInit.next()}ngOnDestroy(){this.subscriptions.unsubscribe()}handleResize(){const t=[...this.listComponent.renderedItems.toArray().filter(u=>!u.item.context.isFirst&&!u.item.context.isLast)],r=UE(this.el.nativeElement),s=Math.floor(this.itemsContainers.toArray().map(u=>UE(u.nativeElement)).reduce((u,p)=>u+p,0)),l=([...t].reverse().find(fQ)||{width:0}).width;return r<=s&&t.find(BTe)?(HTe(t),this.cdr.detectChanges(),this.handleResize()):r>s+l&&t.find(fQ)?($Te([...t].reverse()),this.cdr.detectChanges(),this.handleResize()):void 0}shouldResize(){return Dt()&&"auto"===this.collapseMode}attachResizeHandler(){this.subscriptions.add((0,Ko.T)(this.resizeSensor.resize,this.itemsData$,this.afterViewInit.asObservable()).pipe(Wt(()=>this.shouldResize())).subscribe(()=>{this.zone.runOutsideAngular(()=>setTimeout(()=>{this.zone.run(()=>{this.listComponent&&(this.handleResize(),this.resizeSensor.acceptSize())})}))}))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(Te))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-breadcrumb"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,wT,5),2&t){let l;n.iGM(l=n.CRH())&&(r.itemTemplate=l.first)}},viewQuery:function(t,r){if(1&t&&(n.Gf(yTe,7),n.Gf(MT,7),n.Gf(CTe,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.resizeSensor=s.first),n.iGM(s=n.CRH())&&(r.listComponent=s.first),n.iGM(s=n.CRH())&&(r.itemsContainers=s)}},hostVars:7,hostBindings:function(t,r){2&t&&(n.uIk("dir",r.getDir),n.ekj("k-widget",r.hostClasses)("k-breadcrumb",r.hostClasses)("k-breadcrumb-wrap",r.wrapMode))},inputs:{items:"items",collapseMode:"collapseMode",separatorIcon:"separatorIcon"},outputs:{itemClick:"itemClick"},exportAs:["kendoBreadCrumb"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.breadcrumb"}])],decls:6,vars:12,consts:[["kendoBreadCrumbList","","class","k-breadcrumb-root-item-container",3,"items","itemTemplate","collapseMode","separatorIcon","itemClick",4,"ngIf"],["kendoBreadCrumbList","",1,"k-breadcrumb-container",3,"items","itemTemplate","collapseMode","separatorIcon","ngClass","itemClick"],["itemsContainer",""],[3,"rateLimit"],["resizeSensor",""],["kendoBreadCrumbList","",1,"k-breadcrumb-root-item-container",3,"items","itemTemplate","collapseMode","separatorIcon","itemClick"]],template:function(t,r){1&t&&(n.YNc(0,ATe,3,6,"ol",0),n.TgZ(1,"ol",1,2),n.NdJ("itemClick",function(l){return r.itemClick.emit(l)}),n.ALo(3,"async"),n.qZA(),n._UZ(4,"kendo-resize-sensor",3,4)),2&t&&(n.Q6J("ngIf","wrap"===r.collapseMode),n.xp6(1),n.Q6J("items",n.lcZ(3,7,r.itemsData$))("itemTemplate",null==r.itemTemplate?null:r.itemTemplate.templateRef)("collapseMode",r.collapseMode)("separatorIcon",r.separatorIcon)("ngClass",n.WLB(9,xTe,"wrap"===r.collapseMode,"none"===r.collapseMode)),n.xp6(3),n.Q6J("rateLimit",1e3))},dependencies:[gt,Ge,Bs,MT,Qg],encapsulation:2}),Nt([(0,n.IIB)(),pt("design:type",Array),pt("design:paramtypes",[Array])],i.prototype,"items",null),Nt([(0,n.IIB)(),pt("design:type",String)],i.prototype,"separatorIcon",void 0),Nt([(0,n.IIB)(),pt("design:type",String),pt("design:paramtypes",[String])],i.prototype,"collapseMode",null),Nt([(0,n.r_U)(),pt("design:type",n.vpe)],i.prototype,"itemClick",void 0),Nt([(0,n.i9L)("resizeSensor",{static:!0}),pt("design:type",Bs)],i.prototype,"resizeSensor",void 0),Nt([(0,n.vR)("itemsContainer",{read:n.SBq}),pt("design:type",n.n_E)],i.prototype,"itemsContainers",void 0),Nt([(0,n.i9L)(MT,{static:!0}),pt("design:type",MT)],i.prototype,"listComponent",void 0),Nt([(0,n.aQ5)(wT,{static:!1}),pt("design:type",wT)],i.prototype,"itemTemplate",void 0),Nt([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-breadcrumb"),pt("design:type",Boolean)],i.prototype,"hostClasses",void 0),Nt([(0,n.pfw)("class.k-breadcrumb-wrap"),pt("design:type",Boolean),pt("design:paramtypes",[])],i.prototype,"wrapMode",null),Nt([(0,n.pfw)("attr.dir"),pt("design:type",String),pt("design:paramtypes",[])],i.prototype,"getDir",null),i=Nt([pt("design:paramtypes",[n.SBq,n.sBO,n.R0b,Te])],i),i})(),_Q=(()=>{let i=class{constructor(t,r){this.el=t,this.localization=r,this.defaultClasses=!0,this.ariaHidden=!0,this.direction="ltr",this.direction=this.localization.rtl?"rtl":"ltr"}set icon(t){const r=this.el.nativeElement;r.classList.remove(`k-i-${this._icon}`),ST(t)?(this._icon=t,this.hasDefaultIcon=!1):(this._icon="ltr"===this.direction?"arrow-chevron-right":"arrow-chevron-left",this.hasDefaultIcon=!0),r.classList.add(`k-i-${this._icon}`)}get icon(){return this._icon}ngOnInit(){this.localizationChangesSubscription=this.localization.changes.subscribe(({rtl:t})=>{this.direction=t?"rtl":"ltr",this.hasDefaultIcon&&(this.icon=void 0)})}ngOnDestroy(){this.localizationChangesSubscription.unsubscribe()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(Te))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoBreadCrumbSeparator",""]],hostVars:5,hostBindings:function(t,r){2&t&&(n.uIk("aria-hidden",r.ariaHidden),n.ekj("k-breadcrumb-delimiter-icon",r.defaultClasses)("k-icon",r.defaultClasses))},inputs:{icon:"icon"}}),Nt([(0,n.IIB)(),pt("design:type",String),pt("design:paramtypes",[String])],i.prototype,"icon",null),Nt([(0,n.pfw)("class.k-breadcrumb-delimiter-icon"),(0,n.pfw)("class.k-icon"),pt("design:type",Boolean)],i.prototype,"defaultClasses",void 0),Nt([(0,n.pfw)("attr.aria-hidden"),pt("design:type",Boolean)],i.prototype,"ariaHidden",void 0),i=Nt([pt("design:paramtypes",[n.SBq,Te])],i),i})(),jTe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,cg]}),i})();let qTe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),JTe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[LTe,jTe,qTe]}),i})();var Ny=S(4535);let kT=(()=>{class i{transform(t,...r){if(!t)return t;let s="+55";r&&r.length>0&&(s=r[0]);const l=Ny.PhoneNumberUtil.getInstance(),u=l.parse(s+t,"ZZ");return l.format(u,"+55"===s?Ny.PhoneNumberFormat.NATIONAL:Ny.PhoneNumberFormat.INTERNATIONAL)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=n.Yjl({name:"telefone",type:i,pure:!0}),i})(),yQ=(()=>{class i{transform(t,...r){return t&&t.substr(0,3)+"."+t.substr(3,3)+"."+t.substr(6,3)+"-"+t.substr(9)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=n.Yjl({name:"cpf",type:i,pure:!0}),i})();const QTe=["frm"];function WTe(i,o){if(1&i&&n._UZ(0,"i"),2&i){const t=n.oxw().$implicit;n.Tol(t.iconClass)}}const KTe=function(i,o){return{incompleto:i,proximo:o}};function XTe(i,o){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,WTe,1,3,"i",17),n.TgZ(2,"span"),n._uU(3),n.qZA()()),2&i){const t=o.$implicit,r=o.index,s=n.oxw(2);n.Q6J("ngClass",n.WLB(3,KTe,r>0,t.proximo&&t.descricao!=s.PassoFeito.descricao)),n.xp6(1),n.Q6J("ngIf",t.iconClass),n.xp6(2),n.hij(" ",t.descricao," ")}}function eSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div"),n._UZ(1,"app-header-tela",12),n.TgZ(2,"div",13)(3,"kendo-breadcrumb",14),n.NdJ("itemClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.onItemClick(s))}),n.YNc(4,XTe,4,6,"ng-template",15),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("titulo",t.titulo)("retorno","/"),n.xp6(1),n.Q6J("hidden",t.passosExibir.length<=1),n.xp6(1),n.Q6J("items",t.passosExibir)}}function tSe(i,o){1&i&&(n.TgZ(0,"div",18)(1,"div",19),n._UZ(2,"img",20),n.qZA(),n.TgZ(3,"div",21)(4,"h3",22),n._uU(5,"Sua sacola est\xe1 vazia"),n.qZA()(),n.TgZ(6,"div",21)(7,"h5",22),n._uU(8,"Adicione Itens"),n.qZA()()())}function nSe(i,o){if(1&i&&(n.TgZ(0,"span")(1,"b"),n._uU(2),n.qZA(),n._uU(3," - "),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij("Mesa ",t.pedido.mesa.nome,"")}}function iSe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" #",t.pedido.codigo," ")}}function oSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",50),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.abraTelaLoja())}),n._uU(1,"Adicionar mais"),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("hidden",t.pedido.ehDeMultiloja()||!0)}}function rSe(i,o){1&i&&n._UZ(0,"span")}function aSe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=o.last,r=o.$implicit;n.xp6(1),n.lnq(" ",r.qtde,"x ",r.nome,"",t?"":", "," ")}}function sSe(i,o){if(1&i&&(n.TgZ(0,"span",62),n._UZ(1,"br"),n.YNc(2,aSe,2,3,"ng-container",31),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.Q6J("ngForOf",t.valoresAdicionais)}}function lSe(i,o){if(1&i&&(n.TgZ(0,"span",62),n._UZ(1,"br"),n._uU(2,"obs.:"),n.TgZ(3,"i"),n._uU(4),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(4),n.hij('"',t.observacao,'"')}}function cSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"h6",67),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2),l=s.index,u=s.$implicit,p=n.oxw(3);return n.KtG(p.editarItem(l,u))}),n._UZ(1,"i",68),n.TgZ(2,"b"),n._uU(3,"Editar"),n.qZA()()}}function dSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",33)(1,"div",63),n.YNc(2,cSe,4,0,"h6",64),n.TgZ(3,"h6",65),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(3);return n.KtG(l.removaItem(s))}),n._UZ(4,"i",66),n._uU(5,"Remover"),n.qZA()()()}if(2&i){const t=n.oxw().$implicit;n.xp6(2),n.Q6J("ngIf",!t.produto.ehBrinde)}}function uSe(i,o){if(1&i&&(n.TgZ(0,"div",58)(1,"div",33)(2,"div",34)(3,"h5",40),n._uU(4),n.YNc(5,sSe,3,1,"span",59),n.qZA(),n.TgZ(6,"span",60),n._uU(7),n.qZA(),n.YNc(8,lSe,5,1,"span",59),n.qZA(),n.TgZ(9,"h4",61),n._uU(10),n.ALo(11,"currency"),n.qZA()(),n.YNc(12,dSe,6,1,"div",38),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(4),n.lnq(" ",t.qtde,"",t.obtenhaUnidade()," ",t.obtenhaDescricao()," "),n.xp6(1),n.Q6J("ngIf",t.valoresAdicionais&&t.valoresAdicionais.length>0),n.xp6(2),n.Oqu(t.produto.descricao),n.xp6(1),n.Q6J("ngIf",t.observacao),n.xp6(2),n.hij("",n.xi3(11,8,t.total,"BRL")," "),n.xp6(2),n.Q6J("ngIf",!r.pedido.codigo)}}function pSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",51),n._UZ(2,"img",52),n.TgZ(3,"div")(4,"div",53)(5,"div",54),n._uU(6),n.qZA(),n.TgZ(7,"div"),n._uU(8),n.YNc(9,rSe,1,0,"span",0),n.qZA()(),n.TgZ(10,"div",55)(11,"button",56),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.abraEmpresa(l.empresa))}),n._uU(12,"Adicionar Mais"),n.qZA()()()(),n.YNc(13,uSe,13,11,"div",57),n.qZA()}if(2&i){const t=o.$implicit;n.xp6(2),n.MGl("src","/images/empresa/",t.empresa.logo,"",n.LSH),n.xp6(4),n.Oqu(t.empresa.nome),n.xp6(2),n.hij("",t.itens.length," produto"),n.xp6(1),n.Q6J("ngIf",t.itens.length>1),n.xp6(4),n.Q6J("ngForOf",t.itens)}}function hSe(i,o){if(1&i&&(n.TgZ(0,"div",70)(1,"div",34),n._UZ(2,"i",71),n.TgZ(3,"h5",72)(4,"span"),n._uU(5,"Promo\xe7\xe3o"),n.qZA(),n._UZ(6,"br"),n.TgZ(7,"span",73)(8,"b"),n._uU(9),n.qZA()(),n._UZ(10,"br"),n.qZA()(),n.TgZ(11,"h5",74),n._uU(12),n.ALo(13,"currency"),n.qZA()()),2&i){const t=n.oxw(),r=t.index,s=t.$implicit,l=n.oxw(2);n.ekj("mb-0",r+1<l.pedido.promocoesAplicadas.length),n.xp6(9),n.Oqu(s.descricao),n.xp6(3),n.hij("-",n.xi3(13,4,s.desconto,"BRL")," ")}}function gSe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,hSe,14,7,"div",69),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t.desconto>0)}}function fSe(i,o){if(1&i&&(n.TgZ(0,"p",80),n._UZ(1,"i",81),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij(" ",t.pedido.cupom.erro," ")}}function mSe(i,o){1&i&&(n.TgZ(0,"span"),n._uU(1,"-"),n.qZA())}function _Se(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",70)(1,"div",34),n._UZ(2,"i",75),n.TgZ(3,"h5",76)(4,"span"),n._uU(5,"Cupom Desconto"),n.qZA(),n._UZ(6,"br"),n.TgZ(7,"span",22)(8,"b"),n._uU(9),n.qZA()(),n._UZ(10,"br"),n.TgZ(11,"span",77),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.removaCupom())}),n._uU(12,"remover"),n.qZA(),n.YNc(13,fSe,3,1,"p",78),n.qZA()(),n.TgZ(14,"h5",79),n.YNc(15,mSe,2,0,"span",0),n._uU(16),n.ALo(17,"currency"),n.qZA()()}if(2&i){const t=n.oxw(2);n.xp6(9),n.Oqu(t.pedido.cupom.codigo),n.xp6(4),n.Q6J("ngIf",t.pedido.cupom.erro),n.xp6(1),n.Q6J("hidden",t.pedido.cupom.cashback),n.xp6(1),n.Q6J("ngIf",t.pedido.desconto>0),n.xp6(1),n.hij(" ",n.xi3(17,5,t.pedido.cupom.desconto,"BRL")," ")}}function bSe(i,o){if(1&i&&(n.TgZ(0,"div",33)(1,"div",34)(2,"h5",35)(3,"span"),n._uU(4),n.qZA()()(),n.TgZ(5,"h5",82),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(4),n.hij("Desconto ",t.pedido.pagamento.formaDePagamento.descricao,""),n.xp6(2),n.hij(" ",n.xi3(7,2,0-t.pedido.descontoFormaDePagamento,"BRL"),"")}}function vSe(i,o){if(1&i&&(n.TgZ(0,"h5",82),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,t.pedido.obtenhaValorTaxaEntrega(),"BRL"),"")}}function ySe(i,o){1&i&&(n.TgZ(0,"h5",82),n._uU(1,"A Informar"),n.qZA())}function CSe(i,o){1&i&&(n.TgZ(0,"h5",82),n._uU(1,"Recalculando "),n._UZ(2,"i",10),n.qZA())}function ASe(i,o){if(1&i&&(n.TgZ(0,"div",33)(1,"div",34)(2,"h5",35)(3,"span"),n._uU(4,"Taxa de entrega"),n.qZA()()(),n.YNc(5,vSe,3,4,"h5",83),n.YNc(6,ySe,2,0,"h5",84),n.YNc(7,CSe,3,0,"h5",83),n.qZA()),2&i){const t=n.oxw(2);n.xp6(5),n.Q6J("ngIf",!t.calculandoTaxa&&-1!==t.pedido.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.calculandoTaxa&&-1===t.pedido.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa)}}function xSe(i,o){if(1&i&&(n.TgZ(0,"div",33)(1,"div",34)(2,"h5",35)(3,"span"),n._uU(4,"Taxa forma de pagamento"),n.qZA()()(),n.TgZ(5,"h5",82),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.hij(" ",n.xi3(7,1,t.pedido.taxaFormaDePagamento,"BRL"),"")}}function TSe(i,o){1&i&&(n.TgZ(0,"smal",62),n._UZ(1,"br"),n._uU(2," Cupom de taxa de entrega ser\xe1 aplicado assim que voc\xea escolher o endere\xe7o de entrega "),n.qZA())}function SSe(i,o){1&i&&(n.TgZ(0,"span"),n._uU(1,"-"),n.qZA())}function wSe(i,o){if(1&i&&(n.TgZ(0,"p",80),n._UZ(1,"i",87),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij(" ",t.pedido.cupom.erro," ")}}function MSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",70)(1,"div",34),n._UZ(2,"i",75),n.TgZ(3,"h5",85)(4,"span"),n._uU(5,"Cupom Desconto"),n.qZA(),n.TgZ(6,"span",86),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.removaCupom())}),n._uU(7,"remover"),n.qZA(),n._UZ(8,"br"),n.TgZ(9,"span",22)(10,"b"),n._uU(11),n.qZA()(),n.YNc(12,TSe,3,0,"smal",59),n.qZA()(),n.TgZ(13,"h5",79),n.YNc(14,SSe,2,0,"span",0),n._uU(15),n.ALo(16,"currency"),n.qZA(),n.YNc(17,wSe,3,1,"p",78),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(11),n.Oqu(t.pedido.cupom.codigo),n.xp6(1),n.Q6J("ngIf",!t.pedido.entrega.endereco),n.xp6(1),n.Q6J("hidden",t.pedido.cupom.cashback),n.xp6(1),n.Q6J("ngIf",t.pedido.desconto>0),n.xp6(1),n.hij(" ",n.xi3(16,6,t.pedido.desconto,"BRL")," "),n.xp6(2),n.Q6J("ngIf",t.pedido.cupom.erro)}}function DSe(i,o){if(1&i&&(n.TgZ(0,"div",33)(1,"div",34)(2,"h5",35)(3,"span"),n._uU(4,"Troco"),n.qZA()()(),n.TgZ(5,"h5",88),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(6),n.Oqu(n.xi3(7,1,t.pedido.troco,"BRL"))}}function kSe(i,o){if(1&i&&(n.TgZ(0,"div",32)(1,"div",33)(2,"div",34)(3,"h5",35)(4,"span"),n._uU(5,"Dinheiro"),n.qZA()()(),n.TgZ(6,"h5",82),n._uU(7),n.ALo(8,"currency"),n.qZA()(),n.YNc(9,DSe,8,4,"div",38),n.qZA()),2&i){const t=n.oxw(2);n.xp6(7),n.Oqu(n.xi3(8,2,t.pedido.pagamento.trocoPara,"BRL")),n.xp6(2),n.Q6J("ngIf",t.pedido.pagamento&&t.pedido.troco)}}function ISe(i,o){1&i&&n._UZ(0,"div",94)}function ESe(i,o){if(1&i&&(n.TgZ(0,"div",98)(1,"div",34)(2,"h5",40)(3,"span"),n._uU(4,"Forma de Entrega"),n.qZA()()(),n.TgZ(5,"h5",82)(6,"strong"),n._uU(7),n.qZA()()()),2&i){const t=n.oxw(4);n.xp6(7),n.Oqu(t.pedido.entrega.formaDeEntrega)}}function PSe(i,o){if(1&i&&(n.TgZ(0,"div",98)(1,"div",34)(2,"h5",40)(3,"span"),n._uU(4,"Agendado para"),n.qZA()()(),n.TgZ(5,"h5",82)(6,"strong"),n._uU(7),n.ALo(8,"date"),n.qZA()()()),2&i){const t=n.oxw(4);n.xp6(7),n.AsE("",n.xi3(8,2,t.pedido.dataEntrega,"dd/MM/yyyy")," \xe0s ",t.pedido.horarioEntrega,"")}}function OSe(i,o){1&i&&(n.TgZ(0,"div",98)(1,"div",34)(2,"h5",40)(3,"span"),n._uU(4,"Agendar pedido"),n.qZA()()(),n.TgZ(5,"h5",82),n._uU(6,"Clique aqui"),n.qZA()())}function NSe(i,o){if(1&i&&(n.TgZ(0,"div",99)(1,"h5",22),n._UZ(2,"i",100),n._uU(3," Endere\xe7o Escolhido"),n.qZA(),n.TgZ(4,"h5"),n._uU(5),n.qZA()()),2&i){const t=n.oxw(4);n.xp6(5),n.hij(" ",t.pedido.entrega.endereco.obtenhaEnderecoCompleto()," ")}}function LSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",95),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraTelaFormaEntrega())}),n.YNc(1,ESe,8,1,"div",96),n.YNc(2,PSe,9,5,"div",96),n.YNc(3,OSe,7,0,"div",96),n.YNc(4,NSe,6,1,"div",97),n.qZA()}if(2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.entrega&&t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",t.pedido.dataEntrega),n.xp6(1),n.Q6J("ngIf",t.empresa&&!t.pedido.dataEntrega&&t.pedido.permiteAgendamento(t.pedido.entrega.formaDeEntrega,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",t.pedido.entrega&&t.pedido.entrega.ehDelivery()&&t.pedido.entrega.endereco)}}function RSe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",34)(2,"h5",40)(3,"span"),n._uU(4,"Forma De Pagamento"),n.qZA()()(),n.TgZ(5,"h5",82)(6,"strong"),n._uU(7),n.qZA()(),n.BQk()),2&i){const t=n.oxw(5);n.xp6(7),n.Oqu(t.pedido.obtenhaDescricaoPagamento())}}function FSe(i,o){if(1&i&&(n.TgZ(0,"h5",109)(1,"strong"),n._uU(2),n.TgZ(3,"span",107),n._uU(4),n.ALo(5,"currency"),n.qZA()()()),2&i){const t=n.oxw(6);n.xp6(2),n.hij("",t.pedido.pagamento.formaDePagamento.descricao,": "),n.xp6(2),n.hij(" ",n.xi3(5,2,t.pedido.obtenhaValorAhPagar(),"BRL"),"")}}function BSe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",34)(2,"h5",40)(3,"span"),n._uU(4,"Formas De Pagamento"),n.qZA()()(),n._UZ(5,"div",104),n.TgZ(6,"div",105)(7,"h5",106)(8,"strong"),n._uU(9,"Fidelidade Cashback: "),n.TgZ(10,"span",107),n._uU(11),n.qZA()()(),n.YNc(12,FSe,6,5,"h5",108),n.qZA(),n.BQk()),2&i){const t=n.oxw(5);n.xp6(11),n.hij(" ",t.obtenhaSaldo(t.pedido.cashback.valor)," "),n.xp6(1),n.Q6J("ngIf",null==t.pedido.pagamento?null:t.pedido.pagamento.formaDePagamento)}}const HSe=function(i){return{flexcolumn:i}};function $Se(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",103),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.abraTelaFormaDePagamento())}),n.YNc(1,RSe,8,1,"ng-container",0),n.YNc(2,BSe,13,2,"ng-container",0),n.qZA()}if(2&i){const t=n.oxw(4);n.Q6J("ngClass",n.VKq(3,HSe,t.pedido.maisDeUmaFormaPagamento())),n.xp6(1),n.Q6J("ngIf",!t.pedido.maisDeUmaFormaPagamento()),n.xp6(1),n.Q6J("ngIf",t.pedido.maisDeUmaFormaPagamento())}}function USe(i,o){if(1&i&&(n.TgZ(0,"div",101),n.YNc(1,$Se,3,5,"div",102),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento)}}function YSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"h5"),n._uU(2,"Forma de Pagamento"),n.qZA(),n.TgZ(3,"div",110)(4,"button",111),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraTelaFormaDePagamento())}),n._uU(5,"Escolha Forma de Pagamento"),n.qZA()()()}}function jSe(i,o){if(1&i&&(n.TgZ(0,"label",116),n._uU(1),n.ALo(2,"cpf"),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.hij("",n.lcZ(2,1,t.pedido.contato.cpf)," / ")}}function ZSe(i,o){if(1&i&&(n.TgZ(0,"label",116),n._uU(1),n.ALo(2,"telefone"),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Oqu(n.lcZ(2,1,t.pedido.contato.telefone))}}function VSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",112),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraTelaDadosCliente())}),n.TgZ(1,"div",34)(2,"h5",40)(3,"span",113),n._uU(4,"Meus dados"),n.qZA()()(),n.TgZ(5,"h5",114)(6,"strong"),n._uU(7),n.qZA(),n._UZ(8,"br"),n.YNc(9,jSe,3,3,"label",115),n.YNc(10,ZSe,3,3,"label",115),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(7),n.Oqu(t.pedido.contato.nome),n.xp6(2),n.Q6J("ngIf",t.pedido.contato.cpf),n.xp6(1),n.Q6J("ngIf",!t.pedido.contato.naoIdentificado)}}function zSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",111),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.abraTelaDadosCliente())}),n._uU(1," Entrar ou Cadastrar"),n.qZA()}}function GSe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",111),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.abraTelaDadosCliente())}),n._uU(1," Completar cadastro"),n.qZA()}}function qSe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"h5")(2,"span",113),n._uU(3,"Meus dados"),n.qZA()(),n.TgZ(4,"div",110),n.YNc(5,zSe,2,0,"button",117),n.YNc(6,GSe,2,0,"button",117),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(5),n.Q6J("ngIf",!t.pedido.contato.telefone),n.xp6(1),n.Q6J("ngIf",t.pedido.contato.telefone)}}function JSe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,ISe,1,0,"div",89),n.YNc(2,LSe,5,4,"div",90),n.YNc(3,USe,2,1,"div",91),n.YNc(4,YSe,6,0,"div",0),n.TgZ(5,"div",92),n.YNc(6,VSe,11,3,"div",93),n.YNc(7,qSe,7,2,"div",0),n.qZA(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.pedido.itens.length>3),n.xp6(1),n.Q6J("ngIf",t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",t.pedido.informouFormaDePagamento()),n.xp6(1),n.Q6J("ngIf",!t.pedido.informouFormaDePagamento()&&t.pedido.informouFormaDeEntrega()),n.xp6(2),n.Q6J("ngIf",(null==t.pedido.contato?null:t.pedido.contato.nome)&&(null==t.pedido.contato?null:t.pedido.contato.telefone)),n.xp6(1),n.Q6J("ngIf",(!t.pedido.contato.nome||!t.pedido.contato.telefone)&&t.empresa&&"quiosque"!==t.empresa.tema)}}function QSe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.BQk()),2&i){const t=o.last,r=o.$implicit;n.xp6(1),n.lnq(" ",r.qtde,"x ",r.nome,"",t?"":", "," ")}}function WSe(i,o){if(1&i&&(n.TgZ(0,"span")(1,"div",32)(2,"div",33)(3,"div",34)(4,"h5",35)(5,"span"),n._uU(6,"Extras do Pedido:"),n.qZA()()(),n.TgZ(7,"h5",82),n._uU(8),n.ALo(9,"currency"),n.qZA()(),n.YNc(10,QSe,2,3,"ng-container",31),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(8),n.hij(" ",n.xi3(9,2,t.pedido.obtenhaValorAdicionais(),"BRL"),""),n.xp6(2),n.Q6J("ngForOf",t.pedido.valoresAdicionais)}}function KSe(i,o){if(1&i&&(n.TgZ(0,"span",121)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(4);n.xp6(2),n.Oqu(t.pedido.pontosReceber)}}function XSe(i,o){if(1&i&&(n.ynx(0),n._uU(1," Compre e ganhe "),n.YNc(2,KSe,3,1,"span",120),n._uU(3," no programa "),n.TgZ(4,"span",121)(5,"b"),n._uU(6),n.qZA()(),n.BQk()),2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngIf",null==t.pedido?null:t.pedido.pontosReceber),n.xp6(4),n.Oqu(t.empresa.integracaoPedidoFidelidade.plano.nome)}}function ewe(i,o){if(1&i&&(n.ynx(0),n._uU(1," Ao optar por n\xe3o informar nome e telefone voc\xea esta deixando de acumular "),n.TgZ(2,"span",121)(3,"b"),n._uU(4),n.qZA()(),n._uU(5," nesse pedido "),n.BQk()),2&i){const t=n.oxw(4);n.xp6(4),n.Oqu(t.pedido.pontosReceber)}}function twe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const t=n.oxw(5);n.xp6(1),n.hij(" para usar at\xe9 ",n.xi3(2,1,t.empresa.integracaoPedidoFidelidade.plano.vencimento,"dd/MM")," ")}}function nwe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw(5);n.xp6(1),n.hij(" para usar nos pr\xf3ximos ",t.empresa.integracaoPedidoFidelidade.plano.validade," dias ")}}function iwe(i,o){if(1&i&&(n.ynx(0),n._uU(1," Compre acima de "),n.TgZ(2,"b"),n._uU(3),n.ALo(4,"currency"),n.qZA(),n._uU(5),n.YNc(6,twe,3,4,"span",0),n.YNc(7,nwe,2,1,"span",0),n.BQk()),2&i){const t=n.oxw(4);n.xp6(3),n.hij("",n.xi3(4,4,t.empresa.integracaoPedidoFidelidade.plano.valorMinimoPontuar,"BRL")," "),n.xp6(2),n.hij(" e ganhe ",t.valorPencentual(t.empresa.integracaoPedidoFidelidade.atividade.cashback),"% de cashback "),n.xp6(1),n.Q6J("ngIf",t.empresa.integracaoPedidoFidelidade.plano.vencimento),n.xp6(1),n.Q6J("ngIf",t.empresa.integracaoPedidoFidelidade.plano.validade)}}function owe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"date"),n.qZA()),2&i){const t=n.oxw(5);n.xp6(1),n.hij(" para usar at\xe9 ",n.xi3(2,1,t.empresa.integracaoPedidoFidelidade.plano.vencimento,"dd/MM")," ")}}function rwe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw(5);n.xp6(1),n.hij(" para usar nos pr\xf3ximos ",t.empresa.integracaoPedidoFidelidade.plano.validade," dias ")}}function awe(i,o){if(1&i&&(n.ynx(0),n._uU(1," Com este pedido, voc\xea ganhar\xe1 "),n.TgZ(2,"span",121)(3,"b"),n._uU(4),n.qZA()(),n._uU(5," de cashback "),n.YNc(6,owe,3,4,"span",0),n.YNc(7,rwe,2,1,"span",0),n.BQk()),2&i){const t=n.oxw(4);n.xp6(4),n.Oqu(t.pedido.pontosReceber),n.xp6(2),n.Q6J("ngIf",t.empresa.integracaoPedidoFidelidade.plano.vencimento),n.xp6(1),n.Q6J("ngIf",t.empresa.integracaoPedidoFidelidade.plano.validade)}}function swe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,ewe,6,1,"ng-container",0),n.YNc(2,iwe,8,7,"ng-container",0),n.YNc(3,awe,8,3,"ng-container",0),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",(!t.pedido.contato||t.pedido.contato.naoIdentificado)&&t.pedido.pontosReceber>0),n.xp6(1),n.Q6J("ngIf",!t.pedido.pontosReceber&&t.pedido.total&&t.empresa.integracaoPedidoFidelidade.plano.valorMinimoPontuar),n.xp6(1),n.Q6J("ngIf",t.pedido.contato&&!t.pedido.contato.naoIdentificado&&t.pedido.pontosReceber)}}function lwe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h6",118),n._UZ(2,"i",119),n.YNc(3,XSe,7,2,"ng-container",0),n.YNc(4,swe,4,3,"ng-container",0),n.qZA(),n._UZ(5,"div",104),n.BQk()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf","Reais"!==t.empresa.integracaoPedidoFidelidade.plano.tipoDeAcumulo),n.xp6(1),n.Q6J("ngIf","Reais"===t.empresa.integracaoPedidoFidelidade.plano.tipoDeAcumulo)}}function cwe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",125),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.toggleAplicarCupom())}),n._UZ(2,"i",75),n.TgZ(3,"label"),n._uU(4,"Adicione um c\xf3digo promocional"),n.qZA(),n._UZ(5,"i",126),n.qZA(),n.TgZ(6,"div",127)(7,"input",128),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.codigoCupom=s)}),n.qZA(),n.TgZ(8,"div",129)(9,"button",130),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.apliqueCupom())}),n._uU(10,"Aplicar"),n.qZA()()(),n.BQk()}if(2&i){const t=n.oxw(3);n.xp6(7),n.Q6J("ngModel",t.pedido.codigoCupom)("disabled",t.aplicandoCupom)}}function dwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",131),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.escolherCupons(s))}),n.TgZ(2,"div",53),n._UZ(3,"i",132),n.TgZ(4,"label",133),n._uU(5),n.qZA()(),n.TgZ(6,"div",134)(7,"button",135),n._uU(8,"Adicionar"),n.qZA()()()()}if(2&i){const t=n.oxw(3);n.xp6(5),n.AsE(" ",t.cuponsSelecionar.length-1," ",t.cuponsSelecionar.length-1==1?"cupom dispon\xedvel":"cupons dispon\xedveis"," "),n.xp6(2),n.Q6J("disabled",t.selecionandoCupom)}}function uwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",136),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.toggleAplicarCupom())}),n._UZ(1,"i",75),n.TgZ(2,"label"),n._uU(3,"Possui cupom?"),n.qZA(),n._UZ(4,"i",137),n.qZA()}}function pwe(i,o){if(1&i&&(n.TgZ(0,"p",138)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.Oqu(t.erroCupom)}}function hwe(i,o){if(1&i&&(n.TgZ(0,"div",122)(1,"div",33)(2,"div",34),n.YNc(3,cwe,11,2,"ng-container",0),n.YNc(4,dwe,9,3,"div",0),n.YNc(5,uwe,5,0,"div",123),n._UZ(6,"div",104),n.YNc(7,pwe,3,1,"p",124),n.qZA()()()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",t.aplicarCupom),n.xp6(1),n.Q6J("ngIf",t.cuponsSelecionar.length),n.xp6(1),n.Q6J("ngIf",!t.aplicarCupom&&!t.cuponsSelecionar.length),n.xp6(2),n.Q6J("ngIf",t.erroCupom)}}function gwe(i,o){if(1&i&&(n.TgZ(0,"p",139),n._UZ(1,"i",140),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msgErro," ")}}function fwe(i,o){if(1&i&&(n.TgZ(0,"p",141),n._UZ(1,"i",142),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msg," ")}}function mwe(i,o){if(1&i&&(n.TgZ(0,"div",145),n._UZ(1,"i",140),n._uU(2),n.ALo(3,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("hidden",t.msgErro),n.xp6(2),n.hij(" As entregas s\xe3o feitas somente para valores abaixo de ",n.xi3(3,2,t.pedido.obtenhaValorMaximoParaEntrega(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega),"BRL")," ")}}function _we(i,o){if(1&i&&(n.TgZ(0,"div",145),n._UZ(1,"i",140),n._uU(2),n.ALo(3,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("hidden",t.msgErro),n.xp6(2),n.hij(" As entregas s\xe3o feitas somente para valores acima de ",n.xi3(3,2,t.pedido.obtenhaValorMinimoParaEntrega(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega),"BRL")," ")}}function bwe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,mwe,4,5,"div",143),n.YNc(2,_we,4,5,"div",144),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.pedido.ultrapassouValorMaximo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",!t.pedido.temValorMinimo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega))}}function vwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",149),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.finalizarPedidoTotem())}),n._uU(1," Finalizar Pedido "),n._UZ(2,"i",150),n.qZA()}}function ywe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,vwe,3,0,"button",148),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",!t.estahCompleto)}}function Cwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",153),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.proximoPasso())}),n._uU(1," Proximo "),n._UZ(2,"i",150),n.qZA()}}function Awe(i,o){1&i&&n._UZ(0,"i",10)}function xwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",154),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.fazerPedido(!1))}),n.YNc(1,Awe,1,0,"i",155),n._uU(2," Fazer Pedido "),n.qZA()}if(2&i){const t=n.oxw(4);n.Q6J("disabled",t.eviandoPedido||t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.eviandoPedido)}}function Twe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Cwe,3,0,"button",151),n.YNc(2,xwe,3,2,"button",152),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",!t.estahCompleto),n.xp6(1),n.Q6J("ngIf",t.estahCompleto)}}function Swe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",156),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.vaParaTelaFinalizarDesktop())}),n._uU(1," Finalizar Pedido "),n.qZA()}}function wwe(i,o){if(1&i&&(n.TgZ(0,"div",146),n.YNc(1,ywe,2,1,"ng-container",0),n.YNc(2,Twe,3,2,"ng-container",0),n.YNc(3,Swe,2,0,"button",147),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.empresa&&"quiosque"===t.empresa.tema),n.xp6(1),n.Q6J("ngIf",!t.desktop&&t.empresa&&"quiosque"!==t.empresa.tema),n.xp6(1),n.Q6J("ngIf",t.desktop)}}function Mwe(i,o){if(1&i&&(n.TgZ(0,"a",159),n._uU(1," Ver detalhes "),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("href",t.dominiosService.obtenhaUrlAcompanharPedido(t.pedido),n.LSH)}}function Dwe(i,o){if(1&i&&(n.TgZ(0,"a",160),n._UZ(1,"i",161),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("href",t.urlWhatsapp,n.LSH),n.xp6(2),n.hij(" Enviar para Whatsapp ",null==t.empresa?null:t.empresa.nome," ")}}function kwe(i,o){if(1&i&&(n.TgZ(0,"div",146),n.YNc(1,Mwe,2,1,"a",157),n.YNc(2,Dwe,3,2,"a",158),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.pedido.gerarLinkPagamento),n.xp6(1),n.Q6J("ngIf",!t.pedido.gerarLinkPagamento)}}const Iwe=function(i,o){return{"needs-validation":i,"was-validated":o}},Ewe=function(i){return{"com-mesa":i}},Pwe=function(i){return{"com-desconto":i}};function Owe(i,o){if(1&i&&(n.TgZ(0,"form",23,24)(2,"div"),n._UZ(3,"div",25),n.TgZ(4,"div",26)(5,"h4",27),n.YNc(6,nSe,4,1,"span",0),n._uU(7," Seu Pedido "),n.YNc(8,iSe,2,1,"span",0),n.qZA(),n.YNc(9,oSe,2,1,"button",28),n.qZA(),n._UZ(10,"div",29),n.TgZ(11,"div",30),n.YNc(12,pSe,14,5,"div",31),n.qZA(),n.TgZ(13,"div",32)(14,"div",33)(15,"div",34)(16,"h5",35)(17,"span"),n._uU(18,"Subtotal"),n.qZA()()(),n.TgZ(19,"h5",36),n._uU(20),n.ALo(21,"currency"),n.qZA()(),n.YNc(22,gSe,2,1,"ng-container",31),n.YNc(23,_Se,18,8,"div",37),n.YNc(24,bSe,8,5,"div",38),n.YNc(25,ASe,8,3,"div",38),n.YNc(26,xSe,8,4,"div",38),n.YNc(27,MSe,18,9,"div",37),n.TgZ(28,"div",39)(29,"div",34)(30,"h5",40)(31,"span"),n._uU(32,"Total"),n.qZA()()(),n.TgZ(33,"h4",41)(34,"strong"),n._uU(35),n.ALo(36,"currency"),n.qZA()()()(),n.YNc(37,kSe,10,5,"div",42),n.YNc(38,JSe,8,6,"ng-container",0),n.YNc(39,WSe,11,5,"span",0),n.YNc(40,lwe,6,2,"ng-container",0),n.YNc(41,hwe,8,4,"div",43),n._UZ(42,"div",44),n.TgZ(43,"footer",45),n.YNc(44,gwe,3,1,"p",46),n.YNc(45,fwe,3,1,"p",47),n.YNc(46,bwe,3,2,"ng-container",0),n.TgZ(47,"div")(48,"div",48),n._UZ(49,"div"),n.YNc(50,wwe,4,3,"div",49),n.YNc(51,kwe,3,2,"div",49),n.qZA()()()()()),2&i){const t=n.MAs(1),r=n.oxw();n.Q6J("ngClass",n.WLB(32,Iwe,!t.submitted,t.submitted)),n.xp6(4),n.Q6J("ngClass",n.VKq(35,Ewe,r.pedido.mesa)),n.xp6(2),n.Q6J("ngIf",r.pedido.mesa),n.xp6(2),n.Q6J("ngIf",!r.pedido.mesa&&r.pedido.codigo),n.xp6(1),n.Q6J("ngIf",r.exibirTopo||r.exibirSomenteItens),n.xp6(3),n.Q6J("ngForOf",r.pedido.itensPorEmpresa),n.xp6(7),n.Q6J("ngClass",n.VKq(37,Pwe,r.pedido.desconto>0)),n.xp6(1),n.hij(" ",n.xi3(21,26,r.pedido.obtenhaSubTotal(),"BRL"),""),n.xp6(2),n.Q6J("ngForOf",r.pedido.promocoesAplicadas),n.xp6(1),n.Q6J("ngIf",r.pedido.cupom&&!r.pedido.cupom.aplicarNaTaxaDeEntrega),n.xp6(1),n.Q6J("ngIf",r.pedido.descontoFormaDePagamento),n.xp6(1),n.Q6J("ngIf",r.pedido.entrega&&r.pedido.entrega.taxaDeEntrega>=-1),n.xp6(1),n.Q6J("ngIf",r.pedido.taxaFormaDePagamento),n.xp6(1),n.Q6J("ngIf",r.pedido.cupom&&r.pedido.cupom.aplicarNaTaxaDeEntrega),n.xp6(8),n.Oqu(n.xi3(36,29,r.pedido.total,"BRL")),n.xp6(2),n.Q6J("ngIf",r.pedido.pagamento&&r.pedido.pagamento.trocoPara>0),n.xp6(1),n.Q6J("ngIf",!r.exibirSomenteItens),n.xp6(1),n.Q6J("ngIf",r.pedido.valoresAdicionais&&r.pedido.valoresAdicionais.length>0),n.xp6(1),n.Q6J("ngIf",r.estaPontuando()),n.xp6(1),n.Q6J("ngIf",!r.pedido.cupom&&(!r.pedido.mesa||r.empresa.permitirCupomMesas)),n.xp6(2),n.Q6J("hidden",r.exibirSomenteItens||!r.exibirBotoes),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",r.msg),n.xp6(1),n.Q6J("ngIf",r.empresa&&!r.pedido.entrega.foiPreenchida()&&!r.pedido.mesa),n.xp6(4),n.Q6J("ngIf",!r.pedido.codigo),n.xp6(1),n.Q6J("ngIf",r.pedido.codigo)}}function Nwe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"br"),n.TgZ(2,"span",176),n._uU(3),n.qZA(),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.Oqu(t.fraseDescritiva)}}function Lwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",179),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(2).$implicit,u=n.oxw(3);return n.KtG(u.verRegras(l,s))}),n._uU(1,"Ver regras"),n.qZA()}}function Rwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",179),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(2).$implicit,u=n.oxw(3);return n.KtG(u.verRegras(l,s))}),n._uU(1,"Esconder regras"),n.qZA()}}function Fwe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"span",180),n._uU(2),n.ALo(3,"date"),n.qZA(),n.BQk()),2&i){const t=n.oxw(2).$implicit;n.xp6(2),n.hij("Validade: ",n.xi3(3,1,t.validade,"dd/MM/yyyy"),"")}}function Bwe(i,o){if(1&i&&(n.TgZ(0,"div",177),n.YNc(1,Lwe,2,0,"a",178),n.YNc(2,Rwe,2,0,"a",178),n.YNc(3,Fwe,4,4,"ng-container",0),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",t.codigo&&!t.verRegras),n.xp6(1),n.Q6J("ngIf",t.codigo&&t.verRegras),n.xp6(1),n.Q6J("ngIf",t.validade)}}function Hwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1),n.ALo(2,"currency"),n._UZ(3,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij("- V\xe1lido para pedidos de no m\xednimo ",n.xi3(2,1,t.valorMinimo,"BRL"),"")}}function $we(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- V\xe1lido apenas para pedido delivery"),n._UZ(2,"br"),n.qZA())}function Uwe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- V\xe1lido apenas para pedido retirado pessoalmente"),n._UZ(2,"br"),n.qZA())}function Ywe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- V\xe1lido apenas para pedido consumido na loja"),n._UZ(2,"br"),n.qZA())}function jwe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- No m\xe1ximo um uso por cliente"),n._UZ(2,"br"),n.qZA())}function Zwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1),n._UZ(2,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij("- No m\xe1ximo ",t.qtdeMaxima," usos por cliente")}}function Vwe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- N\xe3o cumulativo com outras promo\xe7\xf5es"),n._UZ(2,"br"),n.qZA())}function zwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1),n.ALo(2,"date"),n._UZ(3,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij("- Valido at\xe9 ",n.xi3(2,1,t.validade,"dd/MM/yyyy")," ou at\xe9 atingir a quantidade de cupons dispon\xedveis")}}function Gwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1),n.ALo(2,"date"),n._UZ(3,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.hij("- Valido at\xe9 ",n.xi3(2,1,t.validade,"dd/MM/yyyy"),"")}}function qwe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- Valido at\xe9 atingir a quantidade de cupons dispon\xedveis"),n._UZ(2,"br"),n.qZA())}function Jwe(i,o){1&i&&(n.TgZ(0,"span",22),n._uU(1,"- V\xe1lido para pedido de qualquer valor"),n._UZ(2,"br"),n.qZA())}function Qwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1,"- \xc9 necess\xe1rio um produto da categoria "),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4," no carrinho"),n._UZ(5,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(3),n.Oqu(t.categoria.nome)}}function Wwe(i,o){if(1&i&&(n.TgZ(0,"span",22),n._uU(1,"- \xc9 necess\xe1rio que o produto "),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4," esteja no carrinho"),n._UZ(5,"br"),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(3),n.Oqu(t.produto.nome)}}function Kwe(i,o){if(1&i&&(n.TgZ(0,"div",181),n.YNc(1,Hwe,4,4,"span",182),n.YNc(2,$we,3,0,"span",182),n.YNc(3,Uwe,3,0,"span",182),n.YNc(4,Ywe,3,0,"span",182),n.YNc(5,jwe,3,0,"span",182),n.YNc(6,Zwe,3,1,"span",182),n.YNc(7,Vwe,3,0,"span",182),n.YNc(8,zwe,4,4,"span",182),n.YNc(9,Gwe,4,4,"span",182),n.YNc(10,qwe,3,0,"span",182),n.YNc(11,Jwe,3,0,"span",182),n.YNc(12,Qwe,6,1,"span",182),n.YNc(13,Wwe,6,1,"span",182),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.Q6J("ngIf",t.delivery),n.xp6(1),n.Q6J("ngIf",t.retirada),n.xp6(1),n.Q6J("ngIf",t.comerNoLocal),n.xp6(1),n.Q6J("ngIf",t.qtdeMaxima&&1==t.qtdeMaxima),n.xp6(1),n.Q6J("ngIf",t.qtdeMaxima&&t.qtdeMaxima>1),n.xp6(1),n.Q6J("ngIf",t.percentualMaximoDescontoProduto),n.xp6(1),n.Q6J("ngIf",t.quantidade&&t.validade),n.xp6(1),n.Q6J("ngIf",!t.quantidade&&t.validade),n.xp6(1),n.Q6J("ngIf",t.quantidade&&!t.validade),n.xp6(1),n.Q6J("ngIf",!t.valorMinimo),n.xp6(1),n.Q6J("ngIf",t.categoria),n.xp6(1),n.Q6J("ngIf",t.produto&&t.produto.id)}}function Xwe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",167)(1,"div",168)(2,"div",169)(3,"label",170),n._UZ(4,"i",171),n.TgZ(5,"span",172),n._uU(6),n.qZA(),n.TgZ(7,"input",173),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.cupomSelecionado=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.escolheuCupom(l))}),n.qZA()(),n.YNc(8,Nwe,4,1,"ng-container",0),n.YNc(9,Bwe,4,3,"div",174),n.YNc(10,Kwe,14,13,"div",175),n.qZA()()()}if(2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(6),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngModel",r.cupomSelecionado)("value",t),n.xp6(1),n.Q6J("ngIf",t.fraseDescritiva),n.xp6(1),n.Q6J("ngIf",t.codigo),n.xp6(1),n.Q6J("ngIf",t.verRegras)}}function eMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",164)(1,"div",8)(2,"div",127)(3,"input",128),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pedido.codigoCupom=s)}),n.qZA(),n.TgZ(4,"div",129)(5,"button",130),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.apliqueCupomTelaSelecionar())}),n._uU(6,"Aplicar"),n.qZA()()(),n.TgZ(7,"form",165),n.YNc(8,Xwe,11,6,"div",166),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngModel",t.pedido.codigoCupom)("disabled",t.aplicandoCupom),n.xp6(5),n.Q6J("ngForOf",t.cuponsSelecionar)}}function tMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-dialog",162),n.NdJ("close",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheModalCupom())}),n.YNc(1,eMe,9,3,"div",163),n.qZA()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.cuponsSelecionar.length)}}let jE=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I,P,F){this.clienteService=t,this.carrinhoService=r,this.dialogService=s,this.locale=l,this.router=u,this.pedidosService=p,this.activatedRoute=y,this.dominiosService=A,this.location=w,this.autorizacao=I,this.constantsService=P,this.deviceService=F,this.desktop=!1,this.exibirTopo=!0,this.titulo="Carrinho",this.exibirSomenteItens=!1,this.exibirBotoes=!0,this.msgErro="",this.msg="",this.eviandoPedido=!1,this.cuponsSelecionar=[],this.FormaDeEntrega=wo,this.isMobile=!1,this.aplicarCupom=!1,this.PassoMeuCarrinho=new Ly("","fe-shopping-cart mr-1  "),this.PassoEntrega=new Ly("Entrega"),this.PassoIdentificacao=new Ly("Identifica\xe7\xe3o"),this.PassoPagamento=new Ly("Pagamento"),this.PassoFinalizar=new Ly("Finalizar"),this.PassoFeito=new Ly("..."),this.passos=[this.PassoMeuCarrinho,this.PassoEntrega,this.PassoIdentificacao,this.PassoPagamento],this.passosExibir=this.passos,this.cupomSelecionado=null,this.nomePagina=A.obtenhaRaizCardapio(),document.body.classList.add("ativar_fundo_tema")}static abraComoPopup(t,r,s,l,u,p,y){let A=La.calculeAlturaLargura(p);const w=u.open({title:null,content:Qxe,minWidth:250,width:A.largura,height:A.altura});return w.content.instance.inicialize(w,y),w.result.subscribe(F=>{!0===F&&t.navegueParaPagamento(!0)}),La.abraJanela(r,s,l,w,{}),w}ngOnInit(){this.passosExibir[1].proximo=!0,this.pedido=this.carrinhoService.obtenhaPedido(),this.desktop&&(this.exibirTopo=!1,this.titulo="Seu pedido"),setTimeout(()=>{this.configureAdicionais()},0),this.constantsService.empresa$.subscribe(t=>{t&&(this.empresa=t,this.calculeStatusPedido(),this.clienteService.obtenhaCuponsSelecionaveis().then(r=>{r&&r.length>0&&(this.cuponsSelecionar=[{nome:"Sem cupom",codigo:null}].concat(r),console.log(this.cuponsSelecionar))}))}),this.inscricao=this.carrinhoService.alterouPedido.subscribe(t=>{this.msgErro=null,this.calculeStatusPedido()})}onItemClick(t){}criarEndereco(){this.desktop?this.vaParaTelaFinalizarDesktop():this.router.navigate(["/"+this.nomePagina+"/criar-endereco"],{queryParamsHandling:"merge"})}abraTelaDadosCliente(){this.desktop?this.vaParaTelaFinalizarDesktop():this.router.navigate(["/"+this.nomePagina+"/cliente"],{queryParamsHandling:"merge"})}abraTelaFormaDePagamento(){this.desktop?this.vaParaTelaFinalizarDesktop():this.camposAdicionais?this.navegueParaPagamento():this.pedidosService.obtenhaAdicionaisPedido(this.empresa).then(t=>{this.camposAdicionais=t,this.pedido.adicionais={},this.pedido.camposAdicionais=t,al.prepareAdicionais(this.pedido,t),this.navegueParaPagamento()})}navegueParaPagamento(t=!1,r=!1,s=null){if(this.pedido.camposAdicionais&&this.possuiOpcoesValidas(this.pedido.camposAdicionais)&&!t)i.abraComoPopup(this,this.router,this.location,this.activatedRoute,this.dialogService,this.deviceService.isMobile(),this.pedido);else{let l="/"+this.nomePagina+"/pagamento",u={};r&&(u.authct=1,s&&(u.msg=s)),this.router.navigate([l],{queryParams:u,queryParamsHandling:"merge"})}}reabraAutenticacaoCartao(t){this.navegueParaPagamento(!0,!0,t)}abraTelaFormaEntrega(){this.desktop?this.vaParaTelaFinalizarDesktop():this.router.navigate(["/"+this.nomePagina+"/forma-entrega"],{queryParamsHandling:"merge"})}abraTelaFinalizar(){this.desktop?this.vaParaTelaFinalizarDesktop():this.abraTelaFormaEntrega()}vaParaTelaFinalizarDesktop(){this.router.navigate("quiosque"!==this.empresa.tema?["/"+this.nomePagina+"/pedido"]:["/"+this.nomePagina+"/pedido-totem"],{queryParamsHandling:"merge"})}gereLinkPagamento(){$("#alertaGerandoPagamento").modal(),this.pedidosService.gereLinkPagamento(this.pedido).then(t=>{this.pedido.linkPagamento=t.link,this.carrinhoService.salvePedido(this.pedido),window.location.href=t.link}).catch(t=>{this.msgErro=t})}facaLoginGuest(t){return t.fezLoginGuest?this.autorizacao.atualizeUsuarioLogado().then(()=>{Promise.resolve()}):Promise.resolve()}fazerPedido(t){this.eviandoPedido||this.facaPedidoEfetivo(t)}possuiOpcoesValidas(t){for(let r of t)if(r.opcoesDisponiveis&&r.opcoesDisponiveis.length>0)return!0;return!1}facaPedidoEfetivo(t){if(this.pedido.validarValorPedido()&&this.pedido.obtenhaValorAhPagar()!==this.pedido.pagamento.dadosCartao.valorPagamento)return this.msgErro="Valor pedido foi alterado, ser\xe1 necess\xe1rio uma nova autentica\xe7\xe3o do cart\xe3o",void setTimeout(()=>{this.reabraAutenticacaoCartao(this.msgErro)});this.eviandoPedido=!0,this.msgErro=null,this.pedidosService.salvePedido(this.pedido.obtenhaDadosEnvio(this.empresa)).then(r=>{if(this.eviandoPedido=!1,this.pedido.codigo=r.codigo,this.pedido.guid=r.guid,this.pedido.usandoCashbackNoPagamento()&&(localStorage.recarregarSaldo=!0),this.autorizacao.sessao$.subscribe(s=>{typeof fbq<"u"&&fbq("track","Purchase",{value:this.pedido.total,currency:"BRL",order_id:r.id},{eventID:s+"-"+r.codigo})}),typeof gtag<"u"){const s=this.pedido.itens.map(l=>({id:l.produto.id,name:l.produto.nome,category:l.produto.categoria?l.produto.categoria.nome:"Sem Categoria",quantity:l.qtde,price:l.total/l.qtde}));gtag("event","purchase",{currency:"BRL",transaction_id:r.guid,value:this.pedido.total,items:s})}this.facaLoginGuest(r).then(()=>{if(r.gerarLinkPagamento)this.pedido.gerarLinkPagamento=!0,this.carrinhoService.salvePedido(this.pedido),this.gereLinkPagamento();else{r.abrirUrl&&window.open(this.urlWhatsapp);let s={empresa:this.empresa,urlAbrir:r.urlAbrir};r.aguardandoTokenizar&&(s.aguardandoTokenizar=r.aguardandoTokenizar),this.carrinhoService.salveUltimoPedido(s),this.dominiosService.vaParaTelaAcompanharPedido(this.pedido,s)}})}).catch(r=>{this.eviandoPedido=!1,this.msgErro=r})}abraTelaLoja(){let t="/"+this.nomePagina;location.pathname.endsWith("/pedido")&&(t=t+"?target="+location.pathname),this.router.navigateByUrl(t)}onSubmit(){}novoPedido(){this.abraTelaLoja(),this.pedido=this.carrinhoService.obtenhaPedido()}ngOnDestroy(){this.inscricao&&this.inscricao.unsubscribe(),document.body.classList.remove("ativar_fundo_tema")}identificacaoCompleta(){let t=this.pedido.contato.telefone&&this.pedido.contato.nome;if(this.empresa.camposExtras){let r=this.empresa.camposExtras.find(l=>"cpf"===l.nome);r&&!r.opcional&&(this.pedido.contato.cpf||(t=!1));let s=this.empresa.camposExtras.find(l=>"datanascimento"===l.nome);s&&!s.opcional&&(this.pedido.contato.dataNascimento||(t=!1))}return t}calculeStatusPedido(){if(this.empresa){if(this.PassoEntrega.preenchido=this.pedido.entrega.foiPreenchida(),this.PassoPagamento.preenchido=this.pedido.informouFormaDePagamento(),this.PassoIdentificacao.preenchido=this.identificacaoCompleta(),this.pedido.mesa)this.PassoEntrega.preenchido=!0,this.PassoPagamento.preenchido=!0,this.estahCompleto=this.PassoIdentificacao.preenchido=this.pedido.contato.nome&&this.pedido.contato.telefone;else{let t=this.pedido.temValorMinimoDaFormaEscolhida(this.empresa.formasDeEntrega),r=this.pedido.ultrapassouValorMaximoDaFormaEscolhida(this.empresa.formasDeEntrega);if(this.estahCompleto=this.PassoEntrega.preenchido&&this.PassoPagamento.preenchido&&this.PassoIdentificacao.preenchido&&t&&!r,t){if(r){let s=this.pedido.obtenhaValorMaximoDaFormaEscolhida(this.empresa.formasDeEntrega);this.msgErro="As entregas s\xe3o feitas somente para valores abaixo  de R$ "+s.toFixed(2)}}else{let s=this.pedido.obtenhaValorMinimoDaFormaEscolhida(this.empresa.formasDeEntrega);this.msgErro="As entregas s\xe3o feitas somente para valores acima  de R$ "+s.toFixed(2)}}this.passosExibir=this.passos.filter(t=>!t.preenchido),1===this.passosExibir.length?(this.passosExibir.push(this.PassoFinalizar),this.passosExibir[1].proximo=!0):this.passosExibir.length<4&&(this.passosExibir[1].proximo=!0,this.passosExibir.splice(1,0,this.PassoFeito)),this.empresa.integracaoPedidoFidelidade&&this.pedido.calculePontosAhReceber(this.empresa,this.empresa.integracaoPedidoFidelidade),setTimeout(()=>{this.configureAdicionais()},0)}}deveExibirTopo(){return!1}deveExibirMenu(){return!1}removaItem(t){this.pedido.removaItem(t),this.calculandoTaxa=!0,this.carrinhoService.atualizeDescontosETaxas(this.pedido,this.empresa).then(r=>{this.calculandoTaxa=!1,r?this.msgErro=r:this.carrinhoService.salvePedido(this.pedido)})}setModoPanel(){this.exibirTopo=!1,this.exibirSomenteItens=!0,this.exibirBotoes=!1}finalizouPedido(){this.exibirSomenteItens=!1}onPopState(t){this.window&&this.window.close({back:!0})}editarItem(t,r){this.window=u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,r.produto,t+"")}configureAdicionais(){this.pedido.configureAdicionais();for(let t of this.pedido.itens)t.adicionais&&t.configureAdicionais()}apliqueCupom(){!this.pedido.codigoCupom||this.aplicandoCupom||(delete this.erroCupom,this.aplicandoCupom=!0,this.clienteService.calculeDescontoCupom(this.pedido.codigoCupom,this.pedido.obtenhaDadosEnvio(this.empresa)).then(t=>{this.aplicandoCupom=!1,t.erro?this.erroCupom=t.erro:(this.pedido.apliqueCupom(t),this.carrinhoService.salvePedido(this.pedido))}).catch(t=>{this.aplicandoCupom=!1,this.erroCupom="Ops! nao foi poss\xedvel verificar o cupom"}))}removaCupom(){this.pedido.removaCupom(),this.carrinhoService.salvePedido(this.pedido)}toggleAplicarCupom(){this.aplicarCupom=!this.aplicarCupom}escolherCupons(t){this.cupomSelecionado=this.cuponsSelecionar[0],this.selecionandoCupom=!0,this.exibirModalEscolherCupons=!0}proximoPasso(){return this.dispareEventoInicioCheckout(),this.PassoEntrega.preenchido?this.PassoIdentificacao.preenchido?this.abraTelaFormaDePagamento():this.abraTelaDadosCliente():this.abraTelaFormaEntrega()}obtenhaPassos(){return this.passos.filter(t=>!t.preenchido)}valorPencentual(t){return Number.parseInt((100*t).toFixed(2))}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}abraEmpresa(t){window.telaMultiLoja?window.multipedido?this.router.navigateByUrl("/marca/"+t.dominio).then(r=>{this.constantsService.recarregueEmpresa()}):this.router.navigateByUrl("/loja/"+t.dominio):this.abraTelaLoja()}estaPontuando(){if(this.empresa&&this.empresa.integracaoPedidoFidelidade){let t=this.empresa.integracaoPedidoFidelidade;return this.pedido&&this.pedido.mesa?t.pontuarMesas:t.pontuando}return!1}escolheuCupom(t){t.codigo&&(this.pedido.codigoCupom=t.codigo,this.apliqueCupom()),this.cupomSelecionado=null,this.fecheModalCupom(),this.selecionandoCupom=!1}apliqueCupomTelaSelecionar(){this.apliqueCupom(),this.fecheModalCupom(),this.selecionandoCupom=!1}verRegras(t,r){t.verRegras=!t.verRegras,r.preventDefault()}fecheModalCupom(){this.exibirModalEscolherCupons=!1}obtenhaSaldo(t){if(!this.empresa)return t;let r=cs(t,this.locale,"R$");return this.empresa.integracaoFidelidade&&"gcom"===this.empresa.integracaoFidelidade.sistema&&(r=r.replace("R$",2===this.empresa.idRede?"R$G":"R$C")),r}dispareEventoInicioCheckout(){this.autorizacao.sessao$.subscribe(t=>{if(typeof fbq<"u"&&this.pedido&&!this.pedido.disparouEventoIniciarCheckout&&this.pedido.total>0){this.pedido.disparouEventoIniciarCheckout=!0;const r=t+"-"+(new Date).getTime();this.carrinhoService.notifiqueInicioCheckout(this.pedido,r),fbq("track","InitiateCheckout",{value:this.pedido.total,currency:"BRL"},{eventID:r})}})}finalizarPedidoTotem(){this.router.navigate(["/"+this.nomePagina+"/pedido-totem"],{queryParamsHandling:"merge"})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(Oi),n.Y36(Na),n.Y36(n.soG),n.Y36(Pn),n.Y36(gm),n.Y36(ci),n.Y36(Eo),n.Y36(_n),n.Y36(Qi),n.Y36(gi),n.Y36(zo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-carrinho"]],viewQuery:function(t,r){if(1&t&&n.Gf(QTe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("popstate",function(l){return r.onPopState(l)},!1,n.Jf7)},inputs:{desktop:"desktop",exibirTopo:"exibirTopo"},decls:13,vars:7,consts:[[4,"ngIf"],[1,"fundo","div_carrinho"],["class","d-flex justify-content-center align-items-center flex-column","style","height: 400px;",4,"ngIf"],["novalidate","",3,"ngClass",4,"ngIf"],["id","alertaGerandoPagamento","tabindex","-1","role","dialog","aria-modal","true","data-backdrop","static",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","p-4"],[1,"text-center"],[1,"mt-2"],[1,"k-icon","k-i-loading","mr-1"],["title","Selecionar Cupom",3,"close",4,"ngIf"],[3,"titulo","retorno"],[1,"row","breadcrumb-passos",3,"hidden"],[3,"items","itemClick"],["kendoBreadCrumbItemTemplate",""],["role","button",1,"item",3,"ngClass"],[3,"class",4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center","flex-column",2,"height","400px"],[1,"p-2"],["src","https://promokit.com.br/assets/loja/sem-pedidos.png","width","96px"],[1,"p-0"],[1,"text-muted"],["novalidate","",3,"ngClass"],["frm","ngForm"],[1,"mt-2","espaco_topo"],[1,"titulo",3,"ngClass"],[1,"d-inline"],["class","btn btn-outline-blue btn-xs  font-13",3,"hidden","click",4,"ngIf"],[1,"linha","nao_mobile"],[1,"desktop"],[4,"ngFor","ngForOf"],[1,"produto","item_produto","pt-2","pb-0"],[1,"media"],[1,"media-body"],[1,"mt-0","mb-1","text-muted"],[1,"mt-0",3,"ngClass"],["class","media mt-0 cupom",4,"ngIf"],["class","media",4,"ngIf"],[1,"media","mt-0"],[1,"mt-0","mb-1"],[1,"mt-0","preco","total"],["class","produto item_produto pt-2 pb-0",4,"ngIf"],["class","produto mt-3 item_produto",4,"ngIf"],[1,"mobile",2,"height","40px"],[1,"footer",3,"hidden"],["class","alert alert-danger  mt-2","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"row",2,"padding","15px"],["class","col",4,"ngIf"],[1,"btn","btn-outline-blue","btn-xs","font-13",3,"hidden","click"],[1,"mt-2",2,"overflow","auto"],[1,"float-left","mr-1",2,"width","36px",3,"src"],[1,"float-left"],[1,"label_empresa"],[1,"float-right"],[1,"btn","btn-sm","btn-secondary",3,"click"],["class","produto pt-2 pb-2 item_produto",4,"ngFor","ngForOf"],[1,"produto","pt-2","pb-2","item_produto"],["class","font-11",4,"ngIf"],[1,"descricao_produto"],[1,"preco","mt-0"],[1,"font-11"],[1,"media-body","mt-1"],["class","d-inline cpointer text-blue",3,"click",4,"ngIf"],[1,"d-inline","cpointer","ml-4","text-danger",3,"click"],[1,"fe-trash","mr-1"],[1,"d-inline","cpointer","text-blue",3,"click"],[1,"fe-edit","mr-1"],["class","media mt-0 cupom",3,"mb-0",4,"ngIf"],[1,"media","mt-0","cupom"],[1,"fas","fa-tags","mr-1","fa-lg"],[1,"mt-0","mb-0","float-left","ml-2",2,"max-width","80%"],[1,"text-muted",2,"font-size","12px"],[1,"mt-1","text-muted"],[1,"fas","fa-ticket-alt","mr-1","fa-lg"],[1,"mt-0","mb-0","float-left","ml-2"],[1,"td-inline","cpointer","text-danger",3,"click"],["class","text-danger  font-12 mt-1",4,"ngIf"],[1,"mt-1","text-muted",3,"hidden"],[1,"text-danger","font-12","mt-1"],[1,"fa-times-circle","fa"],[1,"mt-0"],["class","mt-0  ",4,"ngIf"],["class","mt-0 ",4,"ngIf"],[1,"mt-0","mb-1","float-left","ml-3"],[1,"td-inline","cpointer","ml-2","text-blue","ml-1",3,"click"],[1,"fe-alert-triangle","mr-1"],[1,"mt-0","preco"],["class","linha mt-0 mb-0",4,"ngIf"],["class","produto pt-2 pb-1",3,"click",4,"ngIf"],["class","produto pt-1 pb-1",4,"ngIf"],[1,"produto","pt-1","pb-0"],["class","media mt-2",3,"click",4,"ngIf"],[1,"linha","mt-0","mb-0"],[1,"produto","pt-2","pb-1",3,"click"],["class","media mt-1",4,"ngIf"],["class","pt-0 pb-0",4,"ngIf"],[1,"media","mt-1"],[1,"pt-0","pb-0"],[1,"fas","fa-map-marker-alt"],[1,"produto","pt-1","pb-1"],["class","media mt-2",3,"ngClass","click",4,"ngIf"],[1,"media","mt-2",3,"ngClass","click"],[1,"clearfix"],[1,"mt-2","d-flex","flex-column","w-100"],[1,"mt-0","flex-row","text-right"],[1,"preco"],["class","mt-0 text-right  flex-row ",4,"ngIf"],[1,"mt-0","text-right","flex-row"],[1,"form-group","mb-2"],["type","button",1,"btn","btn-xs","btn-outline-blue",3,"click"],[1,"media","mt-2",3,"click"],[1,"titulo_escuro"],[1,"mt-0","text-right"],["class","text-muted mt-1",4,"ngIf"],[1,"text-muted","mt-1"],["class","btn btn-xs btn-outline-blue","type","button",3,"click",4,"ngIf"],[1,"clearfix","float-right",2,"line-height","20px"],[1,"fe-star-on","text-blue"],["class","",4,"ngIf"],[1,""],[1,"produto","mt-3","item_produto"],["style","cursor: pointer","class","mb-2 div_cupom",3,"click",4,"ngIf"],["class","text-danger mt-0",4,"ngIf"],[1,"mb-1","div_cupom",2,"cursor","pointer",3,"click"],[1,"fa-caret-up","fa","float-right"],[1,"input-group","mb-2"],["type","text","name","codigoCupom","placeholder","C\xf3digo do cupom",1,"form-control",3,"ngModel","disabled","ngModelChange"],[1,"input-group-append"],["type","button",1,"btn","btn-outline-blue",3,"click"],[1,"cpointer",3,"click"],[1,"fas","fa-ticket-alt","mr-1","fa-lg",2,"padding-top","1px"],[2,"padding-top","2px"],[1,"float-right","mb-3"],[1,"btn","btn-sm","btn-outline-blue",3,"disabled"],[1,"mb-2","div_cupom",2,"cursor","pointer",3,"click"],[1,"fa-caret-down","fa","float-right"],[1,"text-danger","mt-0"],["role","alert",1,"alert","alert-danger","mt-2"],[1,"fa","fa-times","mr-2"],["role","alert",1,"alert","alert-success"],[1,"mdi","mdi-check-all","mr-2"],["class","alert alert-danger  mt-2",3,"hidden",4,"ngIf"],["class","alert alert-danger mt-2",3,"hidden",4,"ngIf"],[1,"alert","alert-danger","mt-2",3,"hidden"],[1,"col"],["class","btn-finalizar-pedido btn btn-blue btn-block waves-effect btn-lg-block","type","button",3,"click",4,"ngIf"],["class","btn btn-primary btn-block waves-effect width-lg btn-lg","type","button",3,"click",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-block","waves-effect","width-lg","btn-lg",3,"click"],[1,"fe-chevron-right"],["class","btn btn-blue btn-block waves-effect btn-lg-block","type","button",3,"click",4,"ngIf"],["class","btn btn-primary btn-block waves-effect width-lg","type","submit",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-blue","btn-block","waves-effect","btn-lg-block",3,"click"],["type","submit",1,"btn","btn-primary","btn-block","waves-effect","width-lg",3,"disabled","click"],["class","k-icon k-i-loading mr-1",4,"ngIf"],["type","button",1,"btn-finalizar-pedido","btn","btn-blue","btn-block","waves-effect","btn-lg-block",3,"click"],["class","btn btn-blue btn-block waves-effect width-lg mb-1",3,"href",4,"ngIf"],["class","btn btn-success btn-block waves-effect width-lg mb-1","target","_blank",3,"href",4,"ngIf"],[1,"btn","btn-blue","btn-block","waves-effect","width-lg","mb-1",3,"href"],["target","_blank",1,"btn","btn-success","btn-block","waves-effect","width-lg","mb-1",3,"href"],[1,"fab","fa-whatsapp","fa-lg","mr-1"],["title","Selecionar Cupom",3,"close"],["id","modalEscolherCupons","tabindex","-1",4,"ngIf"],["id","modalEscolherCupons","tabindex","-1"],[2,"padding-bottom","0px"],["class","card",4,"ngFor","ngForOf"],[1,"card"],[1,"ml-0","radio","radio-blue"],[1,"text-left"],[1,"w-100","p-2"],[1,"fas","fa-ticket-alt","fa-lg","ml-2"],[1,"nome_opcao"],["name","cupomSelecionado","type","radio","kendoRadioButton","",1,"float-right",3,"ngModel","value","ngModelChange"],["class","mr-2 mt-2 mb-2",4,"ngIf"],["style","margin-left: 33px","class","mr-2 mb-2",4,"ngIf"],[1,"mr-2",2,"margin-left","33px","display","block"],[1,"mr-2","mt-2","mb-2"],["href","#","style","margin-left: 33px;",3,"click",4,"ngIf"],["href","#",2,"margin-left","33px",3,"click"],[1,"float-right","text-muted","mr"],[1,"mr-2","mb-2",2,"margin-left","33px"],["class","text-muted",4,"ngIf"]],template:function(t,r){1&t&&(n.YNc(0,eSe,5,4,"div",0),n.TgZ(1,"div",1),n.YNc(2,tSe,9,0,"div",2),n.YNc(3,Owe,52,39,"form",3),n.qZA(),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"div",7)(8,"div",8)(9,"h5",9),n._UZ(10,"i",10),n._uU(11," Aguarde que voc\xea ser\xe1 redirecionado para tela de pagamento."),n.qZA()()()()()(),n.YNc(12,tMe,2,1,"kendo-dialog",11)),2&t&&(n.Q6J("ngIf",r.exibirTopo),n.xp6(1),n.Tol(null==r.empresa?null:r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.pedido&&0==r.pedido.itens.length),n.xp6(1),n.Q6J("ngIf",r.pedido&&r.pedido.itens.length>0),n.xp6(9),n.Q6J("ngIf",r.exibirModalEscolherCupons))},dependencies:[gt,Bt,Ge,Ia,wi,tc,ti,ma,ni,Zo,Fu,fR,$R,wT,Cs,Jo,_h,kT,yQ],styles:['.font-12[_ngcontent-%COMP%]{font-size:12px}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background-color:#f7f8f8;padding:0;position:fixed;left:0!important;z-index:10}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}.flexcolumn[_ngcontent-%COMP%]{flex-direction:column}.nome_opcao[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.container_total[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.label_empresa[_ngcontent-%COMP%]{font-weight:700}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.produto[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{position:relative;top:-1px;line-height:12px;padding-top:5px;font-weight:700}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.container_selo[_ngcontent-%COMP%]{position:relative}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.faltam_selos[_ngcontent-%COMP%]{color:#3e48bc;margin-bottom:10px}.container-scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;margin-right:-20px}.container-scroll[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.container-scroll[_ngcontent-%COMP%]   .caixa_brinde[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;margin-bottom:10px;height:250px!important;margin-left:-3px;margin-right:-3px;padding-top:5px;background:white}.container-scroll[_ngcontent-%COMP%]   .foto_brinde[_ngcontent-%COMP%]{width:initial;width:100%}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.container-scroll[_ngcontent-%COMP%]   .preco_troca[_ngcontent-%COMP%]{font-size:11px;font-weight:400;line-height:1em}.container-scroll[_ngcontent-%COMP%]   .preco_troca.nao_atingiu[_ngcontent-%COMP%]{color:#f67682}.container-scroll[_ngcontent-%COMP%]   .preco_troca.atingiu[_ngcontent-%COMP%]{color:#6db31b;margin-right:-20px}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;width:32px;height:32px;vertical-align:middle}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.container_imagem[_ngcontent-%COMP%]{overflow:hidden;display:flex;max-width:100%}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.container-fotos[_ngcontent-%COMP%]{background:black}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}.titulo[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{position:relative;top:5px}.titulo[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{float:right}.titulo.com-mesa[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.3rem}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:90%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.container-scroll[_ngcontent-%COMP%]{overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial;white-space:inherit;-webkit-overflow-scrolling:touch;margin-right:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:90%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:90%}@media (max-width: 992px){.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}.titulo[_ngcontent-%COMP%]   .btn[_ngcontent-%COMP%]{float:none;margin-top:10px;position:absolute;right:0;top:4px}.titulo.com-mesa[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1.2rem}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}}.font-11[_ngcontent-%COMP%]{font-size:11px}.nao_mobile[_ngcontent-%COMP%]{display:none}.fa-ticket-alt[_ngcontent-%COMP%]{transform:rotate(-45deg)}.item_produto[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]:not(.total){font-size:.95rem!important}.item_produto[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:#f1556cd1!important}.item_produto[_ngcontent-%COMP%]   .cupom[_ngcontent-%COMP%]{padding:15px 0;border:1px solid rgba(204,204,204,.5215686275);border-left:0;border-right:0;margin:20px 0}.item_produto[_ngcontent-%COMP%]   .cupom[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]{position:relative;padding-left:18px}.item_produto[_ngcontent-%COMP%]   .cupom[_ngcontent-%COMP%]   .fa-ticket-alt[_ngcontent-%COMP%]{display:block;position:absolute;top:5px;left:0}.item_produto[_ngcontent-%COMP%]   .cupom[_ngcontent-%COMP%]   .fa-tags[_ngcontent-%COMP%]{float:left;top:16px;display:block;position:relative}.item_produto[_ngcontent-%COMP%]   .cupom[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{line-height:25px}.preco[_ngcontent-%COMP%]{color:#6db31b}.preco.total[_ngcontent-%COMP%]{font-size:18px}.preco_troca[_ngcontent-%COMP%]{font-weight:600}@media (min-width: 992px){.nao_mobile[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%]{display:none}.espaco_topo[_ngcontent-%COMP%]{margin-top:10px!important}.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:0}.quiosque[_ngcontent-%COMP%]   .footer[_ngcontent-%COMP%]{position:fixed!important}.desktop[_ngcontent-%COMP%]{overflow:auto;max-height:calc(100vh - 400px);min-height:85px}}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff;margin-left:0;margin-right:15px}.footer[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{border-radius:0;margin-bottom:0}form[_ngcontent-%COMP%]{padding-bottom:50px}.descricao_produto[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2}  .k-breadcrumb .k-breadcrumb-link,   .k-breadcrumb .k-breadcrumb-root-link{padding:15px 1px}.breadcrumb-passos[_ngcontent-%COMP%]{background-color:#f7f8f8!important;border-bottom:1px solid #eee}.breadcrumb-passos[_ngcontent-%COMP%]   .fe-shopping-cart[_ngcontent-%COMP%]{font-size:19px}  .k-breadcrumb .k-breadcrumb-item{background-color:#f7f8f8!important}  .k-breadcrumb-container .item{padding:15px 1px 5px;margin-bottom:10px;border-bottom:2px solid transparent}  .k-breadcrumb-container .item span{font-weight:700;font-size:13px}  .k-breadcrumb-container .item.proximo{border-color:#aaa}  .k-breadcrumb-container .item.incompleto span{font-weight:400;color:#656565bf}.ng-image-slider[_ngcontent-%COMP%]   .ng-image-slider-container[_ngcontent-%COMP%]   .main[_ngcontent-%COMP%]   .main-inner[_ngcontent-%COMP%]{transition:none!important}  .black_friday_2022 .div_carrinho .titulo h4.d-inline{color:#676767}  .black_friday_2022 .div_carrinho .linha{border-bottom:1px solid transparent;border-top:1px solid transparent}  .black_friday_2022 .div_carrinho .produto{border-bottom:solid 1px #676767}  .black_friday_2022 .div_carrinho .item_produto{border-bottom:solid 1px #676767}  .black_friday_2022 .div_carrinho .item_produto h5{color:#cfcfcf}  .black_friday_2022 .div_carrinho .item_produto h6.text-blue{color:#b57e2b!important}  .black_friday_2022 .div_carrinho .footer{background:#0e0e0e;border-top:solid 1px #676767}  .black_friday_2022 .div_carrinho .btn-outline-blue{color:#b57e2b;border-color:#b57e2b}  .black_friday_2022 .div_carrinho .btn-outline-blue:hover{background:#b57e2b;color:#3a2400;border-color:#986716}  .black_friday_2022 .div_carrinho .btn-blue{background:#b57e2b;color:#0e0e0e;font-weight:700;border-color:#986716}  .black_friday_2022 .div_cupom{color:#cfcfcf}  .black_friday_2022 .titulo_claro{color:#cfcfcf}  .black_friday_2022 .titulo_escuro{color:#676767}  .black_friday_2022 .breadcrumb-passos{background-color:#0e0e0e!important;border-bottom:solid 1px #676767}  .black_friday_2022 .k-breadcrumb{background-color:#0e0e0e!important;color:#676767;border-color:#676767}  .black_friday_2022 .k-breadcrumb .k-breadcrumb-item{background-color:#0e0e0e!important}  .black_friday_2022 .k-breadcrumb .k-breadcrumb-item .item span{color:#cfcfcf!important}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#5b1da6!important;border-color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#4bb8b8!important}.carnaval[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#4bb8b8!important;border-color:#4bb8b8!important}  .quiosque .btn{padding:12px}  .quiosque .btn-rounded{padding:.45rem .9rem}  .tema-personalizado .div_carrinho .titulo h4.d-inline{color:#999;color:var(--cor-texto-secundaria, #999)}  .tema-personalizado .div_carrinho .linha{border-bottom:1px solid transparent;border-top:1px solid transparent}  .tema-personalizado .div_carrinho .produto{border-bottom:solid 1px #999;border-bottom:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .div_carrinho .item_produto{border-bottom:solid 1px #999;border-bottom:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .div_carrinho .item_produto h5{color:#333;color:var(--cor-texto, #333)}  .tema-personalizado .div_carrinho .item_produto h6.text-blue{color:#333!important;color:var(--cor-texto, #333)!important}  .tema-personalizado .div_carrinho .footer{background:#fff;background:var(--cor-fundo-site, #fff);border-top:solid 1px #999;border-top:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .div_carrinho .btn-outline-blue{color:#333;color:var(--cor-texto, #333);border-color:#333;border-color:var(--cor-texto, #333)}  .tema-personalizado .div_carrinho .btn-outline-blue:hover{background:#b57e2b;color:#3a2400;border-color:#333;border-color:var(--cor-texto, #333)}  .tema-personalizado .div_carrinho .btn-blue{background:#333;background:var(--cor-texto, #333);color:#fff;color:var(--cor-fundo-site, #fff);font-weight:700;border-color:#333;border-color:var(--cor-texto, #333)}  .tema-personalizado .div_cupom{color:#cfcfcf}  .tema-personalizado .titulo_claro{color:#333;color:var(--cor-texto, #333)}  .tema-personalizado .titulo_escuro{color:#999;color:var(--cor-texto-secundaria, #999)}  .tema-personalizado .breadcrumb-passos{background-color:#fff!important;background-color:var(--cor-fundo-site, #fff)!important;border-bottom:solid 1px #999;border-bottom:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .k-breadcrumb{background-color:#fff!important;background-color:var(--cor-fundo-site, #fff)!important;color:#999;color:var(--cor-texto-secundaria, #999);border-color:#999;border-color:var(--cor-texto-secundaria, #999)}  .tema-personalizado .k-breadcrumb .k-breadcrumb-item{background-color:#fff!important;background-color:var(--cor-fundo-site, #fff)!important}  .tema-personalizado .k-breadcrumb .k-breadcrumb-item .item span{color:#333!important;color:var(--cor-texto, #333)!important}']}),i})();class Ly{constructor(o,t=null){this.descricao=o,this.iconClass=t,this.preenchido=!1,this.proximo=!1}}const nMe=["wizard"],iMe=["carrinho"],oMe=["telaCarrinho"];function rMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",1)(2,"app-header-tela",2),n.NdJ("clicouVoltar",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.voltar())}),n.qZA(),n._UZ(3,"app-loja-carrinho",null,3),n.qZA(),n.BQk()}2&i&&(n.xp6(2),n.Q6J("titulo","Seu Carrinho"))}function aMe(i,o){1&i&&(n.ynx(0),n._UZ(1,"i",20),n.BQk())}const sMe=function(i){return{categoria_ia:i}};function lMe(i,o){if(1&i&&(n.TgZ(0,"div",16,17)(2,"h4",18),n.YNc(3,aMe,2,0,"ng-container",0),n.TgZ(4,"span",19),n._uU(5),n.qZA()()()),2&i){const t=n.oxw().$implicit;n.ekj("ecommerce",t.destaque),n.Q6J("ngClass",n.VKq(6,sMe,t.ia)),n.xp6(2),n.Q6J("id",t.nome),n.xp6(1),n.Q6J("ngIf",t.ia),n.xp6(2),n.hij(" ",t.nome," ")}}function cMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-produto-container",21),n.NdJ("onAbrirDetalhes",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abraDetalhesProduto(s))}),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit;n.xp6(1),n.Q6J("produto",t)("exibirPrecos",!0)("layoutHorizontal",!0)("botaoEscolher",!0)}}function dMe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,lMe,6,8,"div",15),n.YNc(2,cMe,2,4,"ng-container",8),n.ALo(3,"slice"),n.BQk()),2&i){const t=o.$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!t.ocultar&&r.produtosPorCategoria[t.nome]&&r.produtosPorCategoria[t.nome].length>0),n.xp6(1),n.Q6J("ngForOf",n.Dn7(3,2,r.produtosPorCategoria[t.nome],0,10))}}function uMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",4)(2,"app-header-tela",5),n.NdJ("fechou",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n.qZA()(),n.TgZ(3,"div",6)(4,"h5",7),n._uU(5,"Selecionamos os produtos de acordo com sua mensagem"),n.qZA(),n.YNc(6,dMe,4,6,"ng-container",8),n.qZA(),n._UZ(7,"hr"),n.TgZ(8,"footer",9)(9,"div",10)(10,"div",11)(11,"button",12),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n._uU(12,"Adicionar Mais Produtos"),n.qZA()()(),n.TgZ(13,"div",1)(14,"app-carrinho",13,14),n.NdJ("clicouAbrirCarrinho",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.abrirCarrinho())}),n.qZA()()(),n.BQk()}if(2&i){const t=n.oxw();n.xp6(2),n.Q6J("titulo","Produtos baseado na sua mensagem..."),n.xp6(1),n.Udp("height",t.alturaPopup),n.xp6(3),n.Q6J("ngForOf",t.novasCategorias),n.xp6(8),n.Q6J("exibindoMenu",!1)}}let pMe=(()=>{class i{constructor(t,r,s,l,u,p){this.router=t,this.location=r,this.detectorDevice=s,this.dialogService=l,this.activatedRoute=u,this.carrinhoService=p,this.categorias=[],this.novasCategorias=[],this.exibirCarrinho=!1,this.todos=[],this.posicao=0,this.temProdutosNoCarrinho=!1,this.alturaPopup="calc(100vh - 100px)",this.isMobile=this.detectorDevice.isMobile()}ngOnInit(){const t=this.carrinhoService.obtenhaPedido();this.temProdutosNoCarrinho=t.qtde>0,this.alturaPopup=this.temProdutosNoCarrinho?"calc(100vh - 265px)":"calc(100vh - 215px)",this.carrinhoService.alterouPedido.subscribe(r=>{const s=this.carrinhoService.obtenhaPedido();this.temProdutosNoCarrinho=s.qtde>0,this.alturaPopup=this.temProdutosNoCarrinho?"calc(100vh - 265px)":"calc(100vh - 215px)"})}processe(){const t=this.ids.split("|");this.novasCategorias=[];let r=[];t.forEach(s=>{const[l,u]=s.split(":"),p=u.split(","),y={id:p.join(":"),nome:l,destaque:!0,ia:!0};r=p.map(A=>this.produtos.find(w=>w.id.toString()===A)).filter(A=>null!=A),r.forEach(A=>{const w=this.produtos.indexOf(A);-1!==w&&this.produtos.splice(w,1)}),this.produtos.push(...r),this.novasCategorias.push(y),r.forEach(A=>{A.categoria=y}),this.todos.push(...r)}),this.produtosPorCategoria=_.groupBy(this.produtos,s=>s.categoria?s.categoria?.nome?.trim():"Outros")}abraDetalhesProduto(t,r=null){t.montar?HE.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t,r):u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t,r)}fecheTela(){this.window.close()}proximo(){this.posicao++,this.posicao>=this.novasCategorias.length&&(this.posicao=this.novasCategorias.length-1)}anterior(){if(this.posicao--,this.posicao<0)return this.posicao=0}deveExibirBannerTema(){return!1}deveExibirMenu(){return!1}deveExibirTopo(){return!1}deveTerBordas(){return!1}ngAfterViewInit(){this.carrinho.verifiqueDeveExibir()}abrirCarrinho(){this.exibirCarrinho=!0,setTimeout(()=>{this.telaCarrinho.setModoPanel()},0)}voltar(){this.exibirCarrinho=!1,setTimeout(()=>{this.carrinho.verifiqueDeveExibir()},0)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(_n),n.Y36(zo),n.Y36(Na),n.Y36(ci),n.Y36(Oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-wizard-produtos-ia"]],viewQuery:function(t,r){if(1&t&&(n.Gf(nMe,5),n.Gf(iMe,5),n.Gf(oMe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.wizard=s.first),n.iGM(s=n.CRH())&&(r.carrinho=s.first),n.iGM(s=n.CRH())&&(r.telaCarrinho=s.first)}},decls:2,vars:2,consts:[[4,"ngIf"],[1,"pl-2","pr-2"],[3,"titulo","clicouVoltar"],["telaCarrinho",""],[1,"pl-2"],["exibirFechar","true",3,"titulo","fechou"],[1,"pb-3",2,"overflow-y","scroll","width","100%"],[1,"mt-3","text-muted","pl-2"],[4,"ngFor","ngForOf"],[1,"footer","p-0","col",2,"left","0px","background","#333"],[1,"row"],[1,"col","p-2","d-flex","justify-content-center"],[1,"btn","btn-large","btn-blue",3,"click"],[3,"exibindoMenu","clicouAbrirCarrinho"],["carrinho",""],["class","mb-2 secaoCategoria","style","position: relative;",3,"ngClass","ecommerce",4,"ngIf"],[1,"mb-2","secaoCategoria",2,"position","relative",3,"ngClass"],["secaoCategoria",""],[1,"categoria","font-weight-bold","pl-2",3,"id"],[1,"font-italic"],[1,"fa","fa-magic"],[3,"produto","exibirPrecos","layoutHorizontal","botaoEscolher","onAbrirDetalhes"]],template:function(t,r){1&t&&(n.YNc(0,rMe,5,1,"ng-container",0),n.YNc(1,uMe,16,5,"ng-container",0)),2&t&&(n.Q6J("ngIf",r.exibirCarrinho),n.xp6(1),n.Q6J("ngIf",!r.exibirCarrinho))},dependencies:[gt,Bt,Ge,RR,sQ,jE,Cs,Qc]}),i})();class p0{constructor(){}static insiraCategoriaFixa(o,t,r){r.categorias.find(s=>s.id===o.id)||r.categorias.splice(0,0,o),r.produtosPorCategoria&&(r.produtosPorCategoria[o.nome]=t)}static definaCategoriasFixas(o){let t=o.produtos.filter(r=>null!=r.template&&r.template.montarPizza);if(t.length>0&&(o.categoriaMonteSuaPizza.nome=t[0].template.nomeCategoriaMontar,p0.insiraCategoriaFixa(o.categoriaMonteSuaPizza,[],o),t.forEach(r=>{r.tamanhos.forEach(s=>{if(s.qtdeSabores>=1){let l=String(`${r.template.nome} ${s.descricao} `),u=String(`Monte ${l}`),y=s.valorMinimo;s.qtdeSabores>1&&(l=String(`${l} com at\xe9  ${s.qtdeSabores} sabores`),u=String(`${u} com at\xe9  ${s.qtdeSabores} sabores`));let A=o.produtosPorCategoria[o.categoriaMonteSuaPizza.nome].find(w=>w.id===s.template.id);A||(A={id:s.template.id,nome:l,descricao:u,montar:!0,template:r.template,tamanho:s,valorMinimo:y,sabores:[],camposAdicionais:r.camposAdicionais,tamanhos:[]},o.produtosPorCategoria[o.categoriaMonteSuaPizza.nome].push(A)),A.sabores.push(r),y<A.valorMinimo&&(A.valorMinimo=y)}})})),o.destaques=[],o.produtos.forEach(r=>{r.destaque&&o.destaques.push(Object.assign({},r)),r.tamanhos&&r.tamanhos.length&&null!=r.tamanhos.find(s=>s.destaque)&&o.destaques.push(Object.assign({},r))}),o.destaques&&o.destaques.length&&(o.destaques.forEach(r=>r.destacado=!0),p0.insiraCategoriaFixa(o.categoriaDestaque,o.destaques,o)),o.vitrines)for(let r=o.vitrines.length-1;r>=0;r--){let s=o.vitrines[r],l={nome:s.nome,id:s.id,vitrine:!0},u=s.produtosNaVitrine.map(p=>p.produto);u.forEach(p=>p.destacado=!0),p0.insiraCategoriaFixa(l,u,o)}}}let ZE=(()=>{class i{constructor(){this.exibirMenuMobile=!1,this.subject=new Ht.xQ,this.exibirMenu$=new Qn(this.exibirMenuMobile),this.exibirMenu=this.exibirMenu$.asObservable()}notifiqueExibirMenu(){this.exibirMenuMobile=!this.exibirMenuMobile,this.exibirMenu$.next(this.exibirMenuMobile)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),CQ=(()=>{class i extends fs{constructor(t){super(t),this.httpCliente=t}obtenhaBanners(){return this.httpCliente.get("/api/banners").toPromise().then(this.retorno).catch(this.handleError)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function hMe(i,o){1&i&&n._UZ(0,"div",5)}function gMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",1),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw();return n.KtG(u.selecionou(l))}),n.YNc(1,hMe,1,0,"div",2),n._UZ(2,"img",3),n.TgZ(3,"div",4),n._uU(4),n.qZA()()}if(2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.imagem),n.xp6(1),n.s9C("alt",t.nome),n.Q6J("src","/images/empresa/"+(t.imagem||"categoria-padrao.png"),n.LSH),n.xp6(2),n.Oqu(t.nome)}}let fMe=(()=>{class i{constructor(t,r){this.router=t,this.dominiosService=r,this.categorias=[],this.produtosPorCategoria={},this.verCategoria=new n.vpe}ngOnInit(){this.tema=window.tema}selecionou(t){this.dominiosService.obtenhaUrlHome(),t.nome.toLowerCase().replace(/\s+/g,"-");let s=String(`busca?cid=${t.id}`),l=this.dominiosService.obtenhaUrlCompleta(s),u={categorias:[t]},p=this.produtosPorCategoria[t.nome];if(p&&p.length){let y={};y[t.nome]=p,u.produtos=p,u.produtosPorCategoria=y}else u.aguardarCarregar=!0;this.router.navigateByUrl(l,{state:u})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-site-categorias"]],inputs:{categorias:"categorias",isMobile:"isMobile",produtosPorCategoria:"produtosPorCategoria"},outputs:{verCategoria:"verCategoria"},decls:2,vars:4,consts:[["class","category cpointer ct-point",3,"click",4,"ngFor","ngForOf"],[1,"category","cpointer","ct-point",3,"click"],["class","overlay",4,"ngIf"],[3,"src","alt"],[1,"category-description"],[1,"overlay"]],template:function(t,r){1&t&&(n.TgZ(0,"div"),n.YNc(1,gMe,5,4,"div",0),n.qZA()),2&t&&(n.Gre("categories-container mt-1 ",r.tema,""),n.xp6(1),n.Q6J("ngForOf",r.categorias))},dependencies:[Bt,Ge],styles:['@charset "UTF-8";.categories-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:stretch;max-width:900px;margin:0 auto}.category[_ngcontent-%COMP%]{width:calc(50% - 5px);margin-right:5px;margin-bottom:5px;box-sizing:border-box;position:relative;min-height:150px;background-color:#27505524}.category[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;border-radius:8px}.category-description[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;width:100%;background-color:#1d1d1bbf;padding:5px 10px;border-bottom-left-radius:8px;border-bottom-right-radius:8px;text-align:center;color:#f5f5f5;font-weight:600;text-transform:uppercase;letter-spacing:.05em;overflow-wrap:break-word;max-width:100%;font-size:12px;white-space:pre-line;display:-webkit-box;overflow:hidden}.overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:#07070780;border-radius:8px;pointer-events:none}.black_friday_2022[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%], .black_friday[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%], .black[_ngcontent-%COMP%]   .overlay[_ngcontent-%COMP%]{background-color:#ffffff9c}.navigation-header[_ngcontent-%COMP%]{border-bottom:2px solid #ebebeb;padding:5px 0 5px 5px;background:#eaebeb;margin-left:-12px;margin-right:-12px}.navigation-header[_ngcontent-%COMP%]   .flex[_ngcontent-%COMP%]{display:flex}.navigation-header[_ngcontent-%COMP%]   .items-center[_ngcontent-%COMP%]{align-items:center}.navigation-header[_ngcontent-%COMP%]   .k-icon[_ngcontent-%COMP%]{font-size:24px}@media (min-width: 800px){.category[_ngcontent-%COMP%]{width:calc(25% - 10px);margin-right:10px;margin-bottom:10px}}']}),i})();const mMe=["divProdutos"],_Me=["siteCategorias"],bMe=["megamenu"],vMe=["wraper"];function yMe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-lista-empresas-multi-marca",8),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("empresas",t.empresasDoGrupo)}}function CMe(i,o){if(1&i&&(n.TgZ(0,"div",9),n._UZ(1,"i",10),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.mensagemErro,"\n")}}const AMe=function(i){return{width:"100%",height:i}};function xMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",11)(1,"ng-image-slider",12,13),n.NdJ("imageClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.clicouBanner(s))}),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("id","banners")("images",t.banners)("animationSpeed",.1)("imagePopup",!1)("imageSize",n.VKq(6,AMe,t.alturaBanner))("autoSlide",0)}}function TMe(i,o){1&i&&(n.TgZ(0,"div",14),n._UZ(1,"i",15)(2,"bR"),n.TgZ(3,"strong"),n._uU(4,"Este c\xf3digo de mesa j\xe1 expirou. Leia novamente o QR-CODE para continuar pedindo na mesa."),n.qZA()())}function SMe(i,o){1&i&&n._UZ(0,"div")}function wMe(i,o){1&i&&n._UZ(0,"div",19)}function MMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.YNc(1,wMe,1,0,"div",16),n.TgZ(2,"app-site-categorias",17,18),n.NdJ("verCategoria",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.exibaProdutosCategoria(s))}),n.qZA(),n.BQk()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.carregando),n.xp6(1),n.Q6J("categorias",t.categorias)("produtosPorCategoria",t.produtosPorCategoria)("isMobile",t.isMobile)}}function DMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-produto-container",34),n.NdJ("onAbrirDetalhesPrato",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abraDetalhesPrato(s))})("onAbrirDetalhes",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abraDetalhesProduto(s))}),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(1),n.Q6J("itemPedido",t)("exibirPrecos",r.exibirPrecos)("exibirProdutoValorZerado",r.exibirProdutosValorZerado)("layoutHorizontal",r.layoutHorizontal)("destaque2",!0)}}function kMe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",24,25)(3,"h4",26),n._uU(4," Pe\xe7a de novo "),n.qZA(),n.TgZ(5,"div",27),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(10),l=n.MAs(2),u=n.oxw(2);return n.KtG(u.moverScrollEsquerda(s,l))}),n._UZ(6,"i",28),n.qZA(),n.TgZ(7,"div",29),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(10),l=n.MAs(2),u=n.oxw(2);return n.KtG(u.moverScrollDireita(s,l))}),n._UZ(8,"i",30),n.qZA(),n.TgZ(9,"div",31,32)(11,"div",33),n.YNc(12,DMe,2,5,"ng-container",23),n.qZA()()(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(7),n.Q6J("hidden",t.ultimosPratos.length<4),n.xp6(5),n.Q6J("ngForOf",t.ultimosPratos)}}function IMe(i,o){1&i&&(n.TgZ(0,"span",45),n._UZ(1,"i",46)(2,"i",47),n.qZA())}function EMe(i,o){if(1&i&&(n.TgZ(0,"span",43),n.YNc(1,IMe,3,0,"span",44),n.TgZ(2,"strong"),n._uU(3),n.qZA(),n._uU(4," Produtos"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.mesa),n.xp6(2),n.Oqu(t.pedido.mesa?t.empresa.identificadorMesa+" "+t.pedido.mesa.nome+" - ":"")}}function PMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",48)(1,"button",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.solicitouGarcom())}),n._UZ(2,"i",50),n._uU(3),n.qZA(),n.TgZ(4,"button",51),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.solicitouFecharMesa())}),n._UZ(5,"i",52),n._uU(6),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("disabled",t.solicitandoGarcom),n.xp6(2),n.hij(" Chamar gar\xe7om ",t.timerSolicitarGarcomNovamente?"("+t.timerSolicitarGarcomNovamente+")":"",""),n.xp6(1),n.Q6J("disabled",t.solicitandoFechar),n.xp6(2),n.hij(" Pedir para fechar ",t.timerSolicitarFecharNovamente?"("+t.timerSolicitarFecharNovamente+")":"","")}}function OMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",53),n._UZ(1,"i",54),n._uU(2),n.TgZ(3,"button",55),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.fecheMensagemSucessoGarcom())}),n.TgZ(4,"span",56),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw(3);n.xp6(2),n.hij(" ",t.mensagemSucessoGarcom," ")}}function NMe(i,o){}const LMe=function(i){return{active:i}};function RMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",60),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(5);return n.KtG(l.selecionou(s))}),n.TgZ(1,"a",61),n._uU(2),n.qZA(),n.YNc(3,NMe,0,0,"ng-template",62),n.qZA()}if(2&i){const t=n.oxw().$implicit,r=n.oxw(5);n.Q6J("id","tab_"+t.nome),n.xp6(1),n.Q6J("href","/categoria/"+t.nome+"/"+t.id,n.LSH)("ngClass",n.VKq(4,LMe,t.nome===r.categoriaSelecionada)),n.xp6(1),n.Oqu(t.nome)}}function FMe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,RMe,4,6,"li",59),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.ocultar)}}function BMe(i,o){if(1&i&&(n.TgZ(0,"ul",58),n.YNc(1,FMe,2,1,"ng-container",23),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngForOf",t.categorias)}}function HMe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,BMe,2,1,"ul",57),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.categorias&&t.categorias.length>0)}}function $Me(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",80),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(6);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit;n.xp6(1),n.hij(" ",t.nome," ")}}const UR=function(i){return{esconder:i}};function UMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",77)(1,"h4",78),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(5);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(2),n.qZA(),n.YNc(3,$Me,2,1,"a",79),n.qZA()}if(2&i){const t=o.$implicit,r=n.oxw().$implicit,s=n.oxw(4);n.Q6J("ngClass",n.VKq(3,UR,s.getColunas(r).coluna1.total>=12)),n.xp6(2),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngForOf",t.subcategorias)}}function YMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",80),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(6);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit;n.xp6(1),n.hij(" ",t.nome," ")}}function jMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",77)(1,"h4",78),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(5);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(2),n.qZA(),n.YNc(3,YMe,2,1,"a",79),n.qZA()}if(2&i){const t=o.$implicit,r=n.oxw().$implicit,s=n.oxw(4);n.Q6J("ngClass",n.VKq(3,UR,s.getColunas(r).coluna2.total>=12)),n.xp6(2),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngForOf",t.subcategorias)}}function ZMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",80),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(6);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit;n.xp6(1),n.hij(" ",t.nome," ")}}function VMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",77)(1,"h4",78),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(5);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(2),n.qZA(),n.YNc(3,ZMe,2,1,"a",79),n.qZA()}if(2&i){const t=o.$implicit,r=n.oxw().$implicit,s=n.oxw(4);n.Q6J("ngClass",n.VKq(3,UR,s.getColunas(r).coluna3.total>=12)),n.xp6(2),n.Oqu(t.nome),n.xp6(1),n.Q6J("ngForOf",t.subcategorias)}}const zMe=function(i){return{"padding-left":i}};function GMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",71)(1,"button",72),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(2),n.qZA(),n.TgZ(3,"div",73)(4,"div",74)(5,"div",75),n.YNc(6,UMe,4,5,"div",76),n.qZA(),n.TgZ(7,"div",75),n.YNc(8,jMe,4,5,"div",76),n.qZA(),n.TgZ(9,"div",75),n.YNc(10,VMe,4,5,"div",76),n.qZA()()()()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(2),n.hij("",t.nome," "),n.xp6(1),n.Q6J("ngStyle",n.VKq(5,zMe,r.paddingLeft())),n.xp6(3),n.Q6J("ngForOf",r.getColunas(t).coluna1.subcategorias),n.xp6(2),n.Q6J("ngForOf",r.getColunas(t).coluna2.subcategorias),n.xp6(2),n.Q6J("ngForOf",r.getColunas(t).coluna3.subcategorias)}}const AQ=function(i){return{exibir:i}},qMe=function(i){return{"margin-left":i}};function JMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",63,64)(2,"i",65),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.scrollParaDireita())}),n.qZA(),n.TgZ(3,"i",66),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.scrollParaEsquerda())}),n.qZA(),n.TgZ(4,"div",67,68)(6,"ul",69),n.YNc(7,GMe,11,7,"li",70),n.qZA()()()}if(2&i){const t=n.oxw(3);n.xp6(3),n.Q6J("ngClass",n.VKq(3,AQ,t.deslocamento>0)),n.xp6(1),n.Q6J("ngStyle",n.VKq(5,qMe,t.marginLeft())),n.xp6(3),n.Q6J("ngForOf",t.categoriasMegamenu)}}function QMe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",35)(1,"div",36),n.YNc(2,EMe,5,2,"span",37),n.TgZ(3,"button",38),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.abraTelaDeBusca())}),n._UZ(4,"i",39),n.qZA()(),n.YNc(5,PMe,7,4,"div",40),n.YNc(6,OMe,6,1,"div",41),n.YNc(7,HMe,2,1,"div",0),n.YNc(8,JMe,8,7,"div",42),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngIf",t.empresa&&t.pedido),n.xp6(3),n.Q6J("ngIf",t.pedido.mesa&&t.empresa.avisosDeMesa),n.xp6(1),n.Q6J("ngIf",t.mensagemSucessoGarcom),n.xp6(1),n.Q6J("ngIf",t.empresa&&!t.empresa.layoutEcommerce),n.xp6(1),n.Q6J("ngIf",t.empresa&&t.empresa.layoutEcommerce)}}function WMe(i,o){1&i&&n._UZ(0,"div",19)}function KMe(i,o){1&i&&(n.ynx(0),n._UZ(1,"i",90),n.BQk())}function XMe(i,o){1&i&&(n.ynx(0),n.TgZ(1,"h6"),n._uU(2,"Por que voc\xea pediu esse produto na mensagem"),n.qZA(),n.BQk())}function e3e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-produto-container",91),n.NdJ("onAbrirDetalhes",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.abraDetalhesProduto(s))}),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("produto",t)("exibirPrecos",r.exibirPrecos)("layoutHorizontal",r.layoutHorizontal)("exibirProdutoValorZerado",r.exibirProdutosValorZerado)}}function t3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",92),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2).$implicit,l=n.oxw(2);return n.KtG(l.abraTelaBuscaPorCategoria(s))}),n.TgZ(1,"div",93)(2,"div",94)(3,"h5",95),n._uU(4,"Ver todos desta categoria"),n.qZA()()()()}if(2&i){const t=n.oxw(2).$implicit,r=n.oxw(2);n.Udp("width",r.larguraProdutos,"px"),n.Q6J("hidden",t.vitrine)}}const n3e=function(i){return{categoria_ia:i}};function i3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",82,83)(2,"h4",84),n.YNc(3,KMe,2,0,"ng-container",0),n._uU(4),n.qZA(),n.YNc(5,XMe,3,0,"ng-container",0),n._UZ(6,"hr"),n.TgZ(7,"div",85)(8,"a",86),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(2);return n.KtG(l.abraTelaBuscaPorCategoria(s))}),n._uU(9,"Ver todos"),n.qZA()(),n.TgZ(10,"div",27),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(15),l=n.MAs(1),u=n.oxw(3);return n.KtG(u.moverScrollEsquerda(s,l))}),n._UZ(11,"i",28),n.qZA(),n.TgZ(12,"div",29),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(15),l=n.MAs(1),u=n.oxw(3);return n.KtG(u.moverScrollDireita(s,l))}),n._UZ(13,"i",30),n.qZA(),n.TgZ(14,"div",87,88)(16,"div",33),n.YNc(17,e3e,2,4,"ng-container",23),n.ALo(18,"slice"),n.YNc(19,t3e,5,3,"div",89),n.qZA()()()}if(2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.ekj("ecommerce",t.nome===r.categoriaDestaque.nome||t.vitrine||t.destaque),n.Q6J("ngClass",n.VKq(17,n3e,t.ia)),n.xp6(2),n.Q6J("id",t.nome),n.xp6(1),n.Q6J("ngIf",t.ia),n.xp6(1),n.hij(" ",t.nome," "),n.xp6(1),n.Q6J("ngIf",t.ia),n.xp6(2),n.Q6J("hidden",(null==r.produtosPorCategoria[t.nome]?null:r.produtosPorCategoria[t.nome].length)<=3||t.vitrine),n.xp6(5),n.Q6J("hidden",(null==r.produtosPorCategoria[t.nome]?null:r.produtosPorCategoria[t.nome].length)<3),n.xp6(2),n.ekj("vitrine",t.vitrine),n.xp6(3),n.Q6J("ngForOf",n.Dn7(18,13,r.produtosPorCategoria[t.nome],0,r.qtdeMaxima)),n.xp6(2),n.Q6J("ngIf",r.layoutHorizontal&&r.produtosPorCategoria[t.nome].length>3)}}function o3e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,i3e,20,19,"div",81),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.ocultar)}}function r3e(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,kMe,13,2,"ng-container",0),n.YNc(2,QMe,9,5,"div",20),n.TgZ(3,"div",21,22),n.YNc(5,WMe,1,0,"div",16),n.YNc(6,o3e,2,1,"ng-container",23),n.qZA()()),2&i){const t=n.oxw();n.Tol(null==t.empresa?null:t.empresa.tema),n.ekj("ecommerce",t.layoutHorizontal),n.xp6(1),n.Q6J("ngIf",null==t.ultimosPratos?null:t.ultimosPratos.length),n.xp6(1),n.Q6J("ngIf",!t.carregando),n.xp6(3),n.Q6J("ngIf",t.carregando),n.xp6(1),n.Q6J("ngForOf",t.categorias)}}function a3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li")(1,"a",86),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.abraTelaBuscaCategoria(l))}),n._uU(2),n.qZA()()}if(2&i){const t=o.$implicit;n.xp6(2),n.hij(" ",t.nome,"")}}function s3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li")(1,"a",102),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheMenuCategorias())}),n._UZ(2,"i",103),n._uU(3," fechar"),n.qZA()()}}function l3e(i,o){if(1&i&&(n.TgZ(0,"div",96)(1,"div",97)(2,"div",98)(3,"div",99)(4,"h4"),n._uU(5,"Categorias"),n.qZA()(),n.TgZ(6,"div",100)(7,"ul",101),n.YNc(8,a3e,3,1,"li",23),n.YNc(9,s3e,4,0,"li",0),n.qZA()()()()()),2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(3,AQ,t.sharedDataService.exibirMenuMobile)),n.xp6(8),n.Q6J("ngForOf",t.categoriasMegamenu),n.xp6(1),n.Q6J("ngIf",!1)}}function c3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",104),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.sharedDataService.notifiqueExibirMenu())}),n.qZA()}}let fm=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I,P,F,V,oe,Ae){this.router=t,this.sanitizer=r,this.clienteService=s,this.produtoService=l,this.carrinhoService=u,this.autorizacaoLojaService=p,this.sharedDataService=y,this.activatedRoute=A,this.constantsService=w,this.dominiosService=I,this.detectorDevice=P,this.dialogService=F,this.location=V,this.bannerService=oe,this.httpClient=Ae,this.produtos=[],this.vitrines=[],this.ultimosPratos=[],this.mensagemErro="",this.categorias=[],this.produtosPorCategoria={},this.exibirVerMaisMegamenu=!1,this.deslocamento=0,this.exibirMenuMobile=!1,this.categoriaMonteSuaPizza={id:1,nome:""},this.destaques=[],this.nomeCategoriaDestaque="DESTAQUES",this.categoriaDestaque={id:2,nome:this.nomeCategoriaDestaque,imagem:null},this.alturaBanner=230,this.banners=[],this.exibirPrecos=!0,this.colunasMenu={},this.empresasDoGrupo=[],this.multiPedido=!1,this.ids="",this.exibirMenuCategorias=!1,this.exibirProdutosValorZerado=!1,this.nomePagina=I.obtenhaRaizCardapio(),this.isMobile=this.detectorDevice.isMobile(),this.hashMesa=this.activatedRoute.snapshot.params.hm,this.codigopromo=this.activatedRoute.snapshot.params.codigopromo,this.dominiosService.hashMesa=this.hashMesa,document.body.classList.add("ativar_fundo_tema"),this.isMobile&&(this.alturaBanner=100),window.multipedido&&(this.multiPedido=!0,this.produtoService.listeAhVendaGrupo(this.hashMesa||this.pedido&&this.pedido.mesa?"MESA":"DELIVERY",!1).subscribe(Se=>{this.empresasDoGrupo=Se})),this.apiLoaded=this.httpClient.jsonp("https://maps.googleapis.com/maps/api/js?key=AIzaSyBlPtg98e0hBo0JJSYMB3R7iakhFe_iT4o&callback=initMap&libraries=&v=weekly","callback").pipe((0,ft.U)(()=>(console.log("chamando"),!0)),hs(ue=>(console.log(ue),Et(!1)))),this.inicializePedido().then(()=>{this.activatedRoute.queryParams.subscribe(ue=>{ue.ids&&(this.ids=ue.ids),ue.nl&&this.autorizacaoLojaService.atualizeUsuarioLogado().then(()=>{}),ue.c&&(this.codigoProduto=parseInt(ue.c,10),isNaN(this.codigoProduto)&&(this.codigoProduto=null)),ue.t&&(this.idTamanho=parseInt(ue.t,10),isNaN(this.idTamanho)&&(this.idTamanho=null)),ue.e&&(this.indiceProduto=parseInt(ue.e,10),this.indiceProduto=isNaN(this.indiceProduto)?null:this.indiceProduto+"")}),this.codigopromo&&this.carrinhoService.atualizeValorDesconto(this.codigopromo,this.empresa,!0).then(()=>{})}),this.sharedDataService.exibirMenu.subscribe(ue=>{this.exibirMenuMobile=ue})}static abraPedindoEndereco(t,r,s,l,u,p){let y=La.calculeAlturaLarguraMenor(p);const A=u.open({title:null,content:vxe,minWidth:250,width:y.largura,maxHeight:y.altura,cssClass:"bsModal"});return A.content.instance.window=A,La.abraJanela(r,s,l,A,{}),A.result.subscribe(P=>{t&&(t.exibirPrecos=!0)}),A}ngAfterViewInit(){this.evtEmpresa2=this.constantsService.empresa$.subscribe(t=>{if(!t)return;let r=this.activatedRoute.snapshot.params;this.empresa=t,this.exibirMenuCategorias=t.cardapio&&t.cardapio.exibirSelecaoCategorias;const s=this.carrinhoService.obtenhaPedido();if(r.end){const u=Xr.novo();Object.assign(u,JSON.parse(decodeURI(r.end))),this.pedido.entrega.formaDeEntrega=wo.RECEBER_EM_CASA,this.pedido.entrega.setTaxaEntrega(u,null),this.carrinhoService.salvePedido(this.pedido)}const l=this.obtenhaFormaDeEntregaReceberEmCasa(t);if(l&&l.perguntarEnderecoInicio&&(t.integracaoDelivery||(this.mensagemErro="Integra\xe7\xe3o com Ecl\xe9tica tem que estar configurada"),(!s.entrega||!s.entrega.formaDeEntrega)&&(this.exibirPrecos=!1,i.abraPedindoEndereco(this,this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile))),t.nomeCategoriaDestaques){let u=this.categoriaDestaque.nome;this.categoriaDestaque.nome=t.nomeCategoriaDestaques,this.categoriaDestaque.imagem=t.imagemCategoriaDestaque,this.produtosPorCategoria[this.categoriaDestaque.nome]=this.produtosPorCategoria[u]}if(this.bannerService.obtenhaBanners().then(u=>{for(let p=0;p<u.length;p++){const y=u[p];y.thumbImage=y.image="https://promokit.com.br/images/empresa/"+y.linkImagem}this.banners=u}),this.layoutHorizontal="MERCADO"===t.tipoDeLoja||"ECOMMERCE"===t.tipoDeLoja,this.layoutHorizontal&&(this.qtdeMaxima=25),this.layoutHorizontal&&(this.larguraProdutos=this.isMobile?(this.divProdutos.nativeElement.clientWidth-20)/2:(this.divProdutos.nativeElement.clientWidth-40)/4),t.cardapio){const u=this.obtenhaTipoCardapio();this.exibirProdutosValorZerado=t.cardapio?.exibirProdutosValorZeradoMesa&&"MESA"===u}})}obtenhaFormaDeEntregaReceberEmCasa(t){return t.formasDeEntrega.find(r=>"Receber em casa"===r.formaDeEntrega.nome)}ngOnDestroy(){this.evtEmpresa&&this.evtEmpresa.unsubscribe(),this.evtEmpresa2&&this.evtEmpresa2.unsubscribe(),this.evtCatalogo&&this.evtCatalogo.unsubscribe(),document.body.classList.remove("ativar_fundo_tema")}onPopState(t){this.window&&this.window.close({back:!0})}abraDetalhesProduto(t,r=null){this.window=t.montar?HE.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t,r):u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t,r)}abraDetalhesPrato(t){this.window=u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t.produto,null,t)}obtenhaTipoCardapio(){return this.hashMesa||this.pedido&&this.pedido.mesa?"MESA":"DELIVERY"}carregueCategoriasDepoisProdutos(){this.evtCatalogo=this.constantsService.obtenhaCarpadioCompleto(this.obtenhaTipoCardapio(),this.empresa).subscribe(t=>{!t||(t.categorias&&(this.categorias=t.categorias,this.carregando=!1),t.produtos&&(this.produtos=t.produtos,this.agrupePorCategorias()))})}agrupePorCategorias(){this.produtosPorCategoria=_.groupBy(this.produtos,t=>t.categoria?t.categoria?.nome?.trim():"Outros"),p0.definaCategoriasFixas(this)}carregouProdutos(){if(this.produtos.forEach(t=>{if(t.tags.length&&!t.tags[0].nome)for(let r=0;r<t.tags.length;r++)t.tags[r]=this.empresa.tagsProdutos.find(s=>s.id===t.tags[r].id)}),this.ids){let t=La.calculeAlturaLargura(this.isMobile);const r=this.dialogService.open({title:null,content:pMe,minWidth:250,width:t.largura,height:t.altura});let s=r.content.instance;s.ids=this.ids,s.categorias=this.categorias,s.produtos=this.produtos,s.window=r,s.processe(),La.abraJanela(this.router,this.location,this.activatedRoute,r,{},null,"dialog-produto-ia")}if(this.constantsService.produtosLoja.length||(this.constantsService.produtosLoja=this.produtos),this.layoutHorizontal)for(let t=0;t<this.produtos.length;t++)this.produtos[t].destacado=!0;if(this.agrupePorCategorias(),this.categoriaSelecionada=this.categorias.length?this.categorias[0].nome:"",this.carregando=!1,this.codigoProduto){const t=this.obtenhaProduto(this.codigoProduto);this.abraDetalhesProduto(t,this.indiceProduto)}else if(this.idTamanho){let t=this.produtosPorCategoria[this.categoriaMonteSuaPizza.nome].find(r=>r.id===this.idTamanho);this.abraDetalhesProduto(t,this.indiceProduto)}this.assinatura=this.activatedRoute.params.subscribe(t=>{const r=t.idc;if(r){const s=this.categorias.find(l=>l.id===Number(r));s&&setTimeout(()=>{this.selecionou(s),this.assinatura.unsubscribe()},1e3)}})}ngOnInit(){this.carregando=!0,this.evtEmpresa=this.constantsService.empresa$.subscribe(t=>{!t||(this.exibirMegaMenu="ECOMMERCE"===t.tipoDeLoja,this.layoutHorizontal="MERCADO"===t.tipoDeLoja||"ECOMMERCE"===t.tipoDeLoja,this.exibirMegaMenu&&this.produtoService.listeCategoriasMegamenu().then(r=>{this.categoriasMegamenu=r,this.setColunasMegaMenu()}).catch(r=>{console.log(r)}),this.produtoService.listeProdutosVitrine().then(r=>{if(this.vitrines=r||[],this.vitrines.length&&this.exibirMegaMenu)return this.carregando=!1,void p0.definaCategoriasFixas(this);const s=this.obtenhaTipoCardapio();window.history.state.fezLogin&&this.produtoService.removaDaCache(t,s),this.ultimosPratos=[],this.exibirMenuCategorias?this.carregueCategoriasDepoisProdutos():this.produtoService.listeAhVenda(t,s,this.layoutHorizontal).subscribe(l=>{this.produtos=l.produtos,this.categorias=l.categorias,l.ultimosPratos&&l.ultimosPratos.forEach(u=>{this.ultimosPratos.push(u)}),this.carregouProdutos()})}))})}obtenhaProduto(t){return this.produtos.find(r=>r.id===t)}getPosicao(t){let r=this.produtos.find(l=>l.categoria&&l.categoria.nome.trim()===t.trim());return r?r.categoria.posicao:this.produtos.length}deveExibirTopo(){return!0}deveExibirMenu(){return!0}abraTelaDeBusca(){const t={state:{produtos:this.produtos,produtosPorCategoria:this.produtosPorCategoria,categorias:this.categorias,ehMesa:this.hashMesa||this.pedido&&this.pedido.mesa}};let r=String(`/${this.nomePagina}/busca`);this.empresa.layoutEcommerce&&(r+="/ecommerce/todos",t.state.categorias=this.categoriasMegamenu),this.router.navigateByUrl(r,t).then(()=>{})}abraTelaBuscaCategoria(t){return this.sharedDataService.exibirMenuMobile=!1,this.router.navigateByUrl("/busca/ecommerce/"+t.id,{state:{categoria:t,categorias:this.categoriasMegamenu}}),!1}abraTelaBuscaPorCategoria(t){if(this.empresa&&this.empresa.layoutEcommerce)this.abraTelaBuscaCategoria(t);else{const r=this.produtosPorCategoria[t.nome],s={};s[t.nome]=r,this.router.navigateByUrl("/busca?cid="+t.id,{state:{produtos:r,produtosPorCategoria:s,categorias:[t],ehMesa:this.hashMesa||this.pedido&&this.pedido.mesa}}).then(()=>{})}return!1}voltar(){}getOffset(t){const r=t.getBoundingClientRect();return{left:r.left+window.scrollX,top:r.top+window.scrollY}}exibaProdutosCategoria(t){}selecionou(t){this.categoriaSelecionada=t.nome;const s=t.nome;this.posicioneTab("tab_"+t.nome),this.posicioneConteudo(s);let l="/categoria/"+t.nome.toLowerCase().replace(/\s+/g,"-")+"/"+t.id+window.location.search;return window.history.pushState({path:l},"",l),!1}posicioneTab(t){t=t.trim();const r=document.getElementById(t);if(r){const s=$("#tabs.nav-tabs"),l=r.offsetLeft-s.width()/2+r.getBoundingClientRect().width/2;s.animate({scrollLeft:l},100)}}onScrollEvent(t){if(this.estaFazendoScroll)return;const r=document.querySelectorAll(".categoria");for(let s=r.length-1;s>=0;s--){const l=r[s],p=this.getOffset(l).top-document.querySelector(".header").clientHeight-50;if(window.scrollY>=p){console.log(l.innerText+" <-> "+this.categoriaSelecionada),this.categoriaSelecionada!==l.innerText&&(console.log(l.innerText),this.categoriaSelecionada=l.innerText,this.posicioneTab("tab_"+l.innerText));break}}}posicioneConteudo(t){t=t.trim();const s=this.getOffset(document.getElementById(t)).top-document.querySelector(".header").clientHeight-20;this.estaFazendoScroll=!0;let l=-1;const u=()=>{if(l!==window.scrollY)return l=window.scrollY,void setTimeout(u,100);this.estaFazendoScroll=!1};setTimeout(u,100),window.scroll({top:s,behavior:"smooth"})}mudeAba(){}exibirUnidade(t){return t.tipoDeVenda&&"Peso"===t.tipoDeVenda}inicializePedido(){let t=this.carrinhoService.obtenhaPedido();return t.mesa&&t.mesa.expirada?this.mesaExpirada=!0:this.pedido=t,Promise.resolve()}moverScrollDireita(t,r){if(this.movendo)return;let l=r.clientWidth;this.isMobile&&(l=this.larguraProdutos+10);const u=t.scrollLeft+l;this.movendo=!0,t.scroll({left:u,behavior:"smooth"}),r.classList.add("moveu"),setTimeout(()=>{this.movendo=!1,t.scrollWidth-l===u&&r.classList.add("scroll_fim")},500)}moverScrollEsquerda(t,r){if(this.movendo)return;r.classList.remove("scroll_fim");let l=r.clientWidth;this.isMobile&&(l=this.larguraProdutos+10);let u=t.scrollLeft-l;u<0&&(u=0),this.movendo=!0,t.scroll({left:u,behavior:"smooth"}),setTimeout(()=>{0===u&&r.classList.remove("moveu"),this.movendo=!1},500)}clicouBanner(t){const r=this.banners[t];"LINK"===r.comando?window.open(r.extra):"BUSCA"===r.comando&&this.router.navigateByUrl("/"+this.nomePagina+"/busca?q="+r.extra,{state:{produtos:this.produtos,produtosPorCategoria:this.produtosPorCategoria,categorias:this.categorias}}).then(()=>{})}deveTerBordas(){return!0}fecheMenuCategorias(){return this.sharedDataService.exibirMenuMobile=!1,!1}setColunasMegaMenu(){for(let t of this.categoriasMegamenu){this.colunasMenu[t.id]={coluna1:{total:0,subcategorias:[]},coluna2:{total:0,subcategorias:[]},coluna3:{total:0,subcategorias:[]}};for(let r=0;r<t.subcategorias.length;r++){let s=this.colunasMenu[t.id],l=this.obtenhaMaisVazia(s.coluna1,s.coluna2,s.coluna3),u=t.subcategorias[r];l.subcategorias.push(u),l.total+=1+u.subcategorias.length}}}obtenhaMaisVazia(t,r,s){return t.total<=r.total&&t.total<=s.total?t:r.total<=s.total?r:s}getColunas(t){return this.colunasMenu[t.id]}deveExibirBannerTema(){return!0}scrollParaDireita(){let t=0;for(let s=0;s<this.wraper.nativeElement.firstChild.children.length;s++)t+=this.wraper.nativeElement.firstChild.children[s].offsetWidth;this.deslocamento<=t-this.wraper.nativeElement.offsetWidth&&(this.deslocamento+=200)}scrollParaEsquerda(){this.deslocamento-=200,this.deslocamento<0&&(this.deslocamento=0)}marginLeft(){return String(`-${this.deslocamento}px`)}paddingLeft(){return String(`${this.deslocamento}px`)}solicitouFecharMesa(){this.solicitandoFechar=!0,this.carrinhoService.soliciteFecharMesa().then(t=>{this.timerSolicitarFecharNovamente=180,this.inicieTimerSolicitarFecharNovamente(),this.mensagemSucessoGarcom="Foi solicitado fechar a conta."})}solicitouGarcom(){this.solicitandoGarcom=!0,this.carrinhoService.soliciteGarcom().then(t=>{this.timerSolicitarGarcomNovamente=180,this.inicieTimerSolicitarGarcomNovamente(),this.mensagemSucessoGarcom="Gar\xe7om solicitado com sucesso."})}fecheMensagemSucessoGarcom(){this.mensagemSucessoGarcom=null}inicieTimerSolicitarGarcomNovamente(){setTimeout(()=>{this.timerSolicitarGarcomNovamente--,this.timerSolicitarGarcomNovamente>0?this.inicieTimerSolicitarGarcomNovamente():this.solicitandoGarcom=!1},1e3)}inicieTimerSolicitarFecharNovamente(){setTimeout(()=>{this.timerSolicitarFecharNovamente--,this.timerSolicitarFecharNovamente>0?this.inicieTimerSolicitarFecharNovamente():this.solicitandoFechar=!1},1e3)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(rd),n.Y36(ka),n.Y36(Cl),n.Y36(Oi),n.Y36(Qi),n.Y36(ZE),n.Y36(ci),n.Y36(gi),n.Y36(Eo),n.Y36(zo),n.Y36(Na),n.Y36(_n),n.Y36(CQ),n.Y36(Wo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-produtos"]],viewQuery:function(t,r){if(1&t&&(n.Gf(mMe,5),n.Gf(_Me,7),n.Gf(bMe,5),n.Gf(vMe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.divProdutos=s.first),n.iGM(s=n.CRH())&&(r.siteCategorias=s.first),n.iGM(s=n.CRH())&&(r.megamenu=s.first),n.iGM(s=n.CRH())&&(r.wraper=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("popstate",function(l){return r.onPopState(l)},!1,n.Jf7)("scroll",function(l){return r.onScrollEvent(l)},!1,n.Jf7)},decls:11,vars:11,consts:[[4,"ngIf"],["class","alert alert-danger mt-2 mb-2","role","alert",4,"ngIf"],["style","max-width: 1024px;margin: 0 auto;","class","mt-2",4,"ngIf"],["class","mt-5","style","text-align: center",4,"ngIf"],[3,"ecommerce","class",4,"ngIf"],[1,"d-block","d-sm-none"],["class","left-side-menu enlarged",3,"ngClass",4,"ngIf"],["class","modal-backdrop",3,"click",4,"ngIf"],[3,"empresas"],["role","alert",1,"alert","alert-danger","mt-2","mb-2"],[1,"fas","fa-exclamation-triangle"],[1,"mt-2",2,"max-width","1024px","margin","0 auto"],["slideImage","1",1,"navImagem",3,"id","images","animationSpeed","imagePopup","imageSize","autoSlide","imageClick"],["nav",""],[1,"mt-5",2,"text-align","center"],[1,"fas","fa-qrcode","mb-2","fa-4x"],["class","k-i-loading ml-1 mr-1 centralizado","style","font-size: 40px;height: 90px;",4,"ngIf"],[3,"categorias","produtosPorCategoria","isMobile","verCategoria"],["siteCategorias",""],[1,"k-i-loading","ml-1","mr-1","centralizado",2,"font-size","40px","height","90px"],["class","header tirar_margem ",4,"ngIf"],[1,"mt-3"],["divProdutos",""],[4,"ngFor","ngForOf"],[1,"mt-2","secaoCategoria","ecommerce","pacadenovo",2,"position","relative"],["secaoCategoriaNovamente",""],[1,"categoria","ml-2","font-weight-bold"],[1,"arrow","esquerda",3,"click"],[1,"fas","fa-chevron-left"],[1,"arrow","direita",3,"hidden","click"],[1,"fas","fa-chevron-right"],[1,"produtos_categoria","vitrine"],["divProdutosCategoriaNovamente",""],[1,"scroll_categoria"],[3,"itemPedido","exibirPrecos","exibirProdutoValorZerado","layoutHorizontal","destaque2","onAbrirDetalhesPrato","onAbrirDetalhes"],[1,"header","tirar_margem"],[1,"ml-2","wrapper-busca"],["class","h4 text-left",4,"ngIf"],[1,"btn","float-right",2,"margin-top","-5px","margin-right","-10px",3,"click"],[1,"fas","fa-search"],["style","display: flex;justify-content: center",4,"ngIf"],["class","alert alert-success mt-2 text-center","role","alert",4,"ngIf"],["class","megamenu  d-none d-sm-block",4,"ngIf"],[1,"h4","text-left"],["class","fa-stack",4,"ngIf"],[1,"fa-stack"],[1,"fas","fa-square","fa-stack-2x"],[1,"fas","fa-chair","fa-stack-1x","fa-inverse"],[2,"display","flex","justify-content","center"],[1,"btn","btn-primary","mr-2",3,"disabled","click"],[1,"fe-bell"],[1,"btn","btn-primary",3,"disabled","click"],[1,"fe-dollar-sign"],["role","alert",1,"alert","alert-success","mt-2","text-center"],[1,"mdi","mdi-check-all","mr-2"],["type","button","aria-label","Fechar",1,"close",3,"click"],["aria-hidden","true"],["id","tabs","class","nav-tabs nav-bordered nav","role","tablist",4,"ngIf"],["id","tabs","role","tablist",1,"nav-tabs","nav-bordered","nav"],["class","nav-item",3,"id","click",4,"ngIf"],[1,"nav-item",3,"id","click"],["ngbNavLink","",1,"nav-link","tab_categoria",3,"href","ngClass"],["ngbNavContent",""],[1,"megamenu","d-none","d-sm-block"],["megamenu",""],[1,"k-icon","k-i-arrow-chevron-right",3,"click"],[1,"k-icon","k-i-arrow-chevron-left",3,"ngClass","click"],[1,"wraper",3,"ngStyle"],["wraper",""],[1,""],["class","dropdown",4,"ngFor","ngForOf"],[1,"dropdown"],[1,"dropbtn",3,"click"],[1,"dropdown-content",3,"ngStyle"],[1,"linha"],[1,"coluna"],["class","grupo",3,"ngClass",4,"ngFor","ngForOf"],[1,"grupo",3,"ngClass"],[1,"cpointer",3,"click"],["href","#",3,"click",4,"ngFor","ngForOf"],["href","#",3,"click"],["class","mb-3 secaoCategoria","style","position: relative;",3,"ngClass","ecommerce",4,"ngIf"],[1,"mb-3","secaoCategoria",2,"position","relative",3,"ngClass"],["secaoCategoria",""],[1,"categoria","font-weight-bold",3,"id"],[1,"ver_todos",3,"hidden"],["href","",3,"click"],[1,"produtos_categoria"],["divProdutosCategoria",""],["class","produto pt-2 pb-2",3,"width","hidden","click",4,"ngIf"],[1,"fa","fa-magic"],[3,"produto","exibirPrecos","layoutHorizontal","exibirProdutoValorZerado","onAbrirDetalhes"],[1,"produto","pt-2","pb-2",3,"hidden","click"],[1,"media"],[1,"media-body","pt-0","ml-2"],[1,"preco","font-16",2,"margin","85px 15px"],[1,"left-side-menu","enlarged",3,"ngClass"],[1,"slimScrollDiv"],[1,"enlarged","slimscroll-menu"],[1,"nav-user","titulo"],[1,"sidebar-menu","mt-2"],[1,"metismenu"],[1,"cpointer","text-muted",3,"click"],[1,"fa","fa-arrow-left","ct-point"],[1,"modal-backdrop",3,"click"]],template:function(t,r){1&t&&(n.YNc(0,yMe,2,1,"ng-container",0),n.YNc(1,CMe,3,1,"div",1),n.YNc(2,xMe,3,8,"div",2),n.YNc(3,TMe,5,0,"div",3),n.YNc(4,SMe,1,0,"div",0),n.ALo(5,"async"),n.YNc(6,MMe,4,4,"ng-container",0),n.YNc(7,r3e,7,9,"div",4),n.TgZ(8,"span",5),n.YNc(9,l3e,10,5,"div",6),n.YNc(10,c3e,1,0,"div",7),n.qZA()),2&t&&(n.Q6J("ngIf",r.multiPedido),n.xp6(1),n.Q6J("ngIf",r.mensagemErro),n.xp6(1),n.Q6J("ngIf",r.banners.length>0),n.xp6(1),n.Q6J("ngIf",r.mesaExpirada),n.xp6(1),n.Q6J("ngIf",n.lcZ(5,9,r.apiLoaded)),n.xp6(2),n.Q6J("ngIf",r.exibirMenuCategorias),n.xp6(1),n.Q6J("ngIf",!r.mesaExpirada&&!r.exibirMenuCategorias),n.xp6(2),n.Q6J("ngIf",r.categorias.length),n.xp6(1),n.Q6J("ngIf",r.sharedDataService.exibirMenuMobile))},dependencies:[gt,Bt,Ge,uo,OE,RR,fMe,Qg,Qc],styles:['.media[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:#f1556c7a!important}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px;margin-left:7px;width:100%}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}.chinainbox[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]{border-bottom-color:#e52a2845!important;border-bottom-width:1px!important}.chinainbox[_ngcontent-%COMP%]   .nav-bordered[_ngcontent-%COMP%]   a.active[_ngcontent-%COMP%]{border-bottom:2px solid #e52a28!important}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:90%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:90%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:90%}.megamenu[_ngcontent-%COMP%]{position:relative;border:1px solid #dcdcdc;padding-right:30px;padding-left:0}.megamenu[_ngcontent-%COMP%]   .wraper[_ngcontent-%COMP%]{position:relative;transition:1s}.megamenu[_ngcontent-%COMP%]   .k-i-arrow-chevron-left[_ngcontent-%COMP%], .megamenu[_ngcontent-%COMP%]   .k-i-arrow-chevron-right[_ngcontent-%COMP%]{position:absolute;font-size:30px;top:7px;cursor:pointer;color:#999;z-index:10;background:#fff;transition:2s}.megamenu[_ngcontent-%COMP%]   .k-i-arrow-chevron-right[_ngcontent-%COMP%]{right:0}.megamenu[_ngcontent-%COMP%]   .k-i-arrow-chevron-left[_ngcontent-%COMP%]{left:-1px;opacity:0;z-index:-1}.megamenu[_ngcontent-%COMP%]   .k-i-arrow-chevron-left.exibir[_ngcontent-%COMP%]{opacity:1;z-index:10}.megamenu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]{margin:0;padding:0;background-color:#fff;font-family:Arial;white-space:nowrap;overflow:hidden;transition:1s}.megamenu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:left;font-size:14px;text-align:center;padding:7px 8px;text-decoration:none;color:#0b0b0b}.megamenu[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#56167d;font-size:14px}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]{display:inline;overflow:hidden;position:inherit;transition:1s}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]   .dropbtn[_ngcontent-%COMP%]{font-size:15px!important;padding:12px 15px;border:none;outline:none;color:#333;background-color:inherit;font:inherit;margin:0;text-transform:uppercase}.megamenu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover, .megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]:hover   .dropbtn[_ngcontent-%COMP%]{position:inherit!important}.megamenu[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]{border:1px solid #dcdcdc;display:none;position:absolute;background-color:#fff;width:100%;left:0;box-shadow:0 8px 16px #0003;z-index:1}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]:hover   .dropdown-content[_ngcontent-%COMP%]{display:block}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]{float:left;width:33.33%;padding:10px;background-color:#fff}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   .grupo.esconder[_ngcontent-%COMP%]{max-height:220px;overflow:hidden}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:none;background-color:#fff;padding:5px;text-decoration:none;display:block;text-align:left}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:#ddd}.megamenu[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.left-side-menu[_ngcontent-%COMP%]{left:0;bottom:0;top:auto;width:80%;transition:all .2s ease-out;z-index:10010!important;padding-top:0}.left-side-menu[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{padding-top:15px!important;background:rgba(0,0,0,.7882352941);padding-bottom:15px!important}.left-side-menu[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff}.left-side-menu.exibir[_ngcontent-%COMP%]{display:block}.left-side-menu[_ngcontent-%COMP%]   .slimscroll-menu[_ngcontent-%COMP%]{overflow:scroll;max-height:800px}.left-side-menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#6e768e;display:block;padding:10px 15px;position:relative;transition:all .4s;font-family:Poppins,sans-serif;font-size:.875rem}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1040;background-color:#333;opacity:.5;z-index:10001!important}@media (max-width: 992px){.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]{width:100%}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   .grupo[_ngcontent-%COMP%]{max-height:inherit;height:auto}.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}  .mat-tab-header{margin-left:-19px!important;margin-right:-19px!important}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}.tirar_margem[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}}.header[_ngcontent-%COMP%]{position:sticky;top:-1px;background:#fff;z-index:999}.header[_ngcontent-%COMP%]   .fa-search[_ngcontent-%COMP%]{color:#333;font-size:16px}.remova_padding[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.bg-light[_ngcontent-%COMP%]{background-color:#f7f8f8!important}  .tema-personalizado .bg-light,   .tema-personalizado .badge-danger,   .tema-personalizado .badge-success{background-color:var(--cor-fundo)!important;color:var(--cor-texto)!important}  .tema-personalizado .badge-danger{background-color:color-mix(in srgb,var(--cor-fundo) 90%,black)!important}  .tema-personalizado h4{color:var(--cor-texto-primaria)!important}  .tema-personalizado .headerCampo .text-muted{color:color-mix(in srgb,var(--cor-texto) 85%,black)!important}  .nav-tabs{overflow-x:hidden;overflow-y:hidden;flex-wrap:nowrap;padding-bottom:2px;border-bottom:none;position:sticky;top:55px;z-index:9999;border-bottom:solid 1px #eaeaea;background:#fff;width:100%}  .mobile .nav-tabs{overflow-x:scroll}  .mobile .nav-tabs::-webkit-scrollbar{display:none}  .nav-tabs .nav-link{font-size:14px;color:#a6a5a5}  .nav-bordered li a{padding:15px 20px!important}  .nav-tabs .nav-link.active,   .nav-tabs .nav-item.show .nav-link{background:#fff;font-weight:700}  .mobile .nav-tabs{border-bottom:solid 1px #dadada!important;box-shadow:0 3px 5px #e9e9e9}  .nav-tabs li{white-space:nowrap}  .tab-content{padding:5px}.tirar_margem[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.wrapper-busca[_ngcontent-%COMP%]{padding:20px 10px 20px 0}.font-11[_ngcontent-%COMP%]{font-size:11px}.font-12[_ngcontent-%COMP%]{font-size:12px}.ver_todos[_ngcontent-%COMP%]{display:none}.ver_todos[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{border:1px solid #7e57c2;border-radius:7px;padding-left:5px;padding-right:5px;font-size:14px}.arrow[_ngcontent-%COMP%]{display:none}.ecommerce[_ngcontent-%COMP%]   .secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%], .ecommerce.secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{display:block}.ecommerce[_ngcontent-%COMP%]   .secaoCategoria.scroll_fim[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{display:none}.ecommerce.pacadenovo[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{top:90px}.ecommerce[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative}.ecommerce[_ngcontent-%COMP%]   .scroll_categoria[_ngcontent-%COMP%]{grid-auto-flow:column;display:grid;width:-moz-fit-content;width:fit-content;grid-template-columns:inherit!important}.ecommerce[_ngcontent-%COMP%]     .produto{width:240px!important;min-height:145px;border:solid 1px #efefef;border-radius:5px;padding:5px;margin:5px;padding-bottom:0!important;margin-bottom:0!important}.ecommerce[_ngcontent-%COMP%]     .produto .container_foto{height:145px;display:flex;align-items:center;justify-content:center}.ecommerce[_ngcontent-%COMP%]     .produto .descricao{margin-top:10px}.ecommerce[_ngcontent-%COMP%]     .produto .preco{margin-top:3px}.ecommerce[_ngcontent-%COMP%]   .vitrine[_ngcontent-%COMP%]     .produto{min-height:250px}.ecommerce[_ngcontent-%COMP%]   .vitrine[_ngcontent-%COMP%]     .container_foto{height:250px}.ecommerce[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{position:absolute;display:block;padding:6px 12px;border:solid 1px #e2e2e2;background:#fff;border-radius:100px;font-size:16px;color:#2f2f2f;cursor:pointer;z-index:1;top:130px}.ecommerce[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{right:-10px}.ecommerce[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{left:-15px;display:none}.ecommerce[_ngcontent-%COMP%]   .ver_todos[_ngcontent-%COMP%]{position:absolute;right:0;top:0;display:block}  .navImagem .ng-image-slider .image{-o-object-fit:contain;object-fit:contain;cursor:pointer;right:auto!important}  .navImagem .ng-image-slider .ng-image-slider-container .main .main-inner .img-div{box-shadow:none}hr[_ngcontent-%COMP%]{border-top:solid 1px #eae9e9}.scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;grid-gap:15px 0px;gap:15px 0px}@media only screen and (max-width: 768px){.scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}}  .natal h4.categoria{color:#730101!important}  .natal .tab_categoria{color:#d39797!important}  .natal .tab_categoria.active{color:#730101!important;border-bottom:2px solid #730101!important}  .natal .nome-produto{color:#730101!important}  .arraia h4.categoria{color:#ce2400!important}  .arraia .tab_categoria{color:#5b5764!important}  .arraia .tab_categoria.active{color:#ce2400!important;border-bottom:2px solid #CE2400!important}  .arraia .nome-produto{color:#ce2400!important}  .copa_2022 h4.categoria{color:#1a7200!important}  .copa_2022 .ver_todos{display:none}  .copa_2022 .ver_todos a{background:#fff;color:#1a7200;border:1px solid #1a7200!important;border-radius:7px;padding-left:5px;padding-right:5px;font-size:14px}  .copa_2022 .nav-tabs{border-bottom:solid 1px #ffd80e!important}  .copa_2022 .tab_categoria{color:#9abe90!important}  .copa_2022 .tab_categoria.active{color:#1a7200!important;border-bottom:2px solid #ffd80e!important}  .copa_2022 .nome-produto{color:#1a7200!important}  .pascoa h4.categoria{color:#730101!important}  .pascoa .tab_categoria{color:#8a6757!important}  .pascoa .tab_categoria.active{color:#fb1e41!important;border-bottom:2px solid #FB1E41!important}  .pascoa .nome-produto{color:#730101!important}  .ano_novo h4.categoria{color:#030303!important}  .ano_novo .tab_categoria{color:#7f7f7f!important}  .ano_novo .tab_categoria.active{color:#030303!important;border-bottom:2px solid #f1dfa5!important}  .ano_novo .nav-bordered{border-bottom-width:1px!important}  .dia_maes h4.categoria{color:#fd6c67!important}  .dia_maes .tab_categoria{color:#8a6757!important}  .dia_maes .tab_categoria.active{color:#fd6c67!important;border-bottom:2px solid #F3ADAC!important}  .dia_maes .nome-produto{color:#730101!important}.carnaval[_ngcontent-%COMP%]   span.h4[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#49b8b8!important}.carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   h4.categoria[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   a.categoria[_ngcontent-%COMP%]{color:#49b8b8!important}  .black_friday_2022 hr{border-top:solid 1px #676767}  .black_friday_2022 .carrinho_desktop{background:#0e0e0e!important}  .black_friday_2022 .header{background:#0e0e0e}  .black_friday_2022 span.h4{color:#b57e2b!important}  .black_friday_2022 h4.categoria{color:#b57e2b!important}  .black_friday_2022 .tab_categoria{color:#676767!important}  .black_friday_2022 .tab_categoria.active{color:#b57e2b!important;border-bottom:2px solid #b57e2b!important;background-color:transparent!important}  .black_friday_2022 .produtos_categoria .produto{background:transparent!important;border:solid 1px #1a1a1a!important}  .black_friday_2022 .nav-tabs{background:#0e0e0e;box-shadow:none}  .black_friday_2022 .nav-tabs .nav-link.active,   .black_friday_2022   .nav-tabs .nav-item.show .nav-link{background:#fff;font-weight:700}  .black_friday_2022 .nome-produto{color:#f6a844!important}  .dia_pais span.h4{color:#10bde9}  .dia_pais h4.categoria{color:#10bde9!important}  .dia_pais .tab_categoria{color:#10bde9!important}  .dia_pais .tab_categoria.active{color:#00d!important;border-bottom:2px solid #0000dd!important}  .dia_pais .nome-produto{color:#10bde9!important}  .dia_namorados h4.categoria{color:#b264da!important}  .dia_namorados .tab_categoria{color:#b264da!important}  .dia_namorados .tab_categoria.active{color:#d64860!important;border-bottom:2px solid #F3ADAC!important}  .dia_namorados .nome-produto{color:#730101!important}.categoria_ia[_ngcontent-%COMP%]{padding:10px 15px;background:#ccc;border:solid 1px #efefef;border-radius:5px;background:#faf7f7}  .dialog-produto-ia{overflow-x:hidden;position:static;position:initial}  .mobile .dialog-produto-ia{padding:12px}  .dialog-produto-ia{padding:0!important}',".scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;grid-gap:15px;gap:15px}@media only screen and (max-width: 768px){.scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}.ecommerce[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{overflow-x:auto}.ecommerce[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none}}  .natal h4.categoria{color:#730101!important}  .natal .tab_categoria{color:#d39797!important}  .natal .tab_categoria.active{color:#730101!important;border-bottom:2px solid #730101!important}  .natal .nome-produto{color:#730101!important}  .arraia h4.categoria{color:#ce2400!important}  .arraia .tab_categoria{color:#5b5764!important}  .arraia .tab_categoria.active{color:#ce2400!important;border-bottom:2px solid #CE2400!important}  .arraia .nome-produto{color:#ce2400!important}  .copa_2022 h4.categoria{color:#1a7200!important}  .copa_2022 .ver_todos{display:none}  .copa_2022 .ver_todos a{background:#fff;color:#1a7200;border:1px solid #1a7200!important;border-radius:7px;padding-left:5px;padding-right:5px;font-size:14px}  .copa_2022 .nav-tabs{border-bottom:solid 1px #ffd80e!important}  .copa_2022 .tab_categoria{color:#9abe90!important}  .copa_2022 .tab_categoria.active{color:#1a7200!important;border-bottom:2px solid #ffd80e!important}  .copa_2022 .nome-produto{color:#1a7200!important}  .pascoa h4.categoria{color:#730101!important}  .pascoa .tab_categoria{color:#8a6757!important}  .pascoa .tab_categoria.active{color:#fb1e41!important;border-bottom:2px solid #FB1E41!important}  .pascoa .nome-produto{color:#730101!important}  .ano_novo h4.categoria{color:#030303!important}  .ano_novo .tab_categoria{color:#7f7f7f!important}  .ano_novo .tab_categoria.active{color:#030303!important;border-bottom:2px solid #f1dfa5!important}  .ano_novo .nav-bordered{border-bottom-width:1px!important}  .dia_maes h4.categoria{color:#fd6c67!important}  .dia_maes .tab_categoria{color:#8a6757!important}  .dia_maes .tab_categoria.active{color:#fd6c67!important;border-bottom:2px solid #F3ADAC!important}  .dia_maes .nome-produto{color:#730101!important}.carnaval[_ngcontent-%COMP%]   span.h4[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#49b8b8!important}.carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   h4.categoria[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   a.categoria[_ngcontent-%COMP%]{color:#49b8b8!important}  .black_friday_2022 hr{border-top:solid 1px #676767}  .black_friday_2022 .carrinho_desktop{background:#0e0e0e!important}  .black_friday_2022 .header{background:#0e0e0e}  .black_friday_2022 span.h4{color:#b57e2b!important}  .black_friday_2022 h4.categoria{color:#b57e2b!important}  .black_friday_2022 .tab_categoria{color:#676767!important}  .black_friday_2022 .tab_categoria.active{color:#b57e2b!important;border-bottom:2px solid #b57e2b!important;background-color:transparent!important}  .black_friday_2022 .produtos_categoria .produto{background:transparent!important;border:solid 1px #1a1a1a!important}  .black_friday_2022 .nav-tabs{background:#0e0e0e;box-shadow:none}  .black_friday_2022 .nav-tabs .nav-link.active,   .black_friday_2022   .nav-tabs .nav-item.show .nav-link{background:#fff;font-weight:700}  .black_friday_2022 .nome-produto{color:#f6a844!important}  .dia_pais span.h4{color:#10bde9}  .dia_pais h4.categoria{color:#10bde9!important}  .dia_pais .tab_categoria{color:#10bde9!important}  .dia_pais .tab_categoria.active{color:#00d!important;border-bottom:2px solid #0000dd!important}  .dia_pais .nome-produto{color:#10bde9!important}  .dia_namorados h4.categoria{color:#b264da!important}  .dia_namorados .tab_categoria{color:#b264da!important}  .dia_namorados .tab_categoria.active{color:#d64860!important;border-bottom:2px solid #F3ADAC!important}  .dia_namorados .nome-produto{color:#730101!important}.categoria_ia[_ngcontent-%COMP%]{padding:10px 15px;background:#ccc;border:solid 1px #efefef;border-radius:5px;background:#faf7f7}  .dialog-produto-ia{overflow-x:hidden;position:static;position:initial}  .mobile .dialog-produto-ia{padding:12px}  .dialog-produto-ia{padding:0!important}  .tema-personalizado hr{border-top:solid 1px color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important}  .tema-personalizado .carrinho_desktop{background:#0e0e0e!important}  .tema-personalizado .header{background:#fff;background:var(--cor-fundo-site, #fff)}  .tema-personalizado span.h4{color:#333!important;color:var(--cor-texto-primaria, #333)!important}  .tema-personalizado h4.categoria{color:#333!important;color:var(--cor-texto-primaria, #333)!important}  .tema-personalizado .tab_categoria{color:#999!important;color:var(--cor-texto, #999)!important}  .tema-personalizado .tab_categoria.active{color:#333!important;color:var(--cor-texto-primaria, #333)!important;border-bottom:2px solid #333!important;border-bottom:2px solid var(--cor-texto-primaria, #333)!important;background-color:transparent!important}  .tema-personalizado .produtos_categoria .produto{background:transparent!important;border:solid 1px #999!important;border:solid 1px var(--cor-fundo-site, #999)!important}  .tema-personalizado .nav-tabs{background:#fff;background:var(--cor-fundo-site, #fff);box-shadow:none}  .tema-personalizado .nav-tabs .nav-link.active,   .tema-personalizado   .nav-tabs .nav-item.show .nav-link{background:#fff;background:var(--cor-fundo-site, #fff);font-weight:700}  .tema-personalizado .nome-produto{color:#333!important;color:var(--cor-texto-primaria, #333)!important}"]}),i})();const d3e=["telaEndereco"];function u3e(i,o){if(1&i&&(n.TgZ(0,"div",14),n._uU(1),n.TgZ(2,"button",15)(3,"span",16),n._uU(4,"\xd7"),n.qZA()()()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",t.msgErro," ")}}function p3e(i,o){1&i&&n._UZ(0,"i",17)}function h3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",18),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.editarEndereco(s.endereco))}),n._uU(1," Alterar endere\xe7o"),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("disabled",t.calculandoTaxa)}}function g3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",6)(2,"label",7),n._uU(3,"Selecione o endere\xe7o de entrega"),n.qZA(),n.TgZ(4,"kendo-combobox",8),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.endereco=s)}),n.qZA()(),n.YNc(5,u3e,5,1,"div",9),n.TgZ(6,"div",3)(7,"button",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.calculeTaxaEntrega())}),n.YNc(8,p3e,1,0,"i",11),n._uU(9," Entregar nesse"),n.qZA(),n.YNc(10,h3e,2,1,"button",12),n.TgZ(11,"button",13),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.cadastrarNovo())}),n._uU(12,"Cadastrar Novo"),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(4),n.Q6J("data",t.enderecos)("autoFocus",!0)("allowCustom",!1)("ngModel",t.endereco)("valueField","id")("textField","descricaoCompleta"),n.xp6(1),n.Q6J("ngIf",t.msgErro),n.xp6(2),n.Q6J("disabled",!t.endereco||t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa),n.xp6(2),n.Q6J("ngIf",t.endereco.id),n.xp6(1),n.Q6J("disabled",t.calculandoTaxa)}}function f3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div"),n.YNc(1,g3e,13,11,"div",1),n.TgZ(2,"div",2)(3,"div",3)(4,"app-form-endereco",4,5),n.NdJ("submit",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.salveEndereco(s))}),n.qZA()()()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.enderecoEscolhido),n.xp6(1),n.Q6J("hidden",!t.enderecoEscolhido),n.xp6(2),n.Q6J("pedido",t.pedido)("cepObrigatorio",t.pedido.entrega.cepObrigatorio)}}let m3e=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.activatedRoute=t,this._location=r,this.autorizacao=s,this.constantsService=l,this.clienteService=u,this.carrinhoService=p,this.dominiosService=y,this.enderecoService=A,this.router=w,this.enderecos=[],this.carregou=!1,this.zonasDeEntrega=[{id:1,nome:"Zona 1"},{id:2,nome:"Zona 2"},{id:3,nome:"Zona 3"}],this.entregaPorZona=!1,this.usarEndereco=!1,this.nomePagina=y.obtenhaRaizCardapio()}ngOnInit(){}ngAfterViewInit(){this.activatedRoute.queryParams.subscribe(t=>{const r=t.endereco;this.constantsService.empresa$.subscribe(s=>{!s||(this.empresa=s,this.endereco=null,this.pedido=this.carrinhoService.obtenhaPedido(),this.endereco=this.pedido&&this.pedido.entrega?this.pedido.entrega.endereco:null,this.formaReceberEmCasa=this.empresa.formasDeEntrega.find(l=>l.nome===wo.RECEBER_EM_CASA),this.enderecoEscolhido=null!=this.endereco,this.carregando=!0,this.autorizacao.obtenhaEnderecos().then(l=>{this.carregando=!1,this.carregou=!0,this.setEnderecos(l),setTimeout(()=>{this.empresa.enderecoCompleto&&!this.formaReceberEmCasa.naoUsarCidadePadrao&&this.telaEndereco.setCidadePadrao(this.empresa.enderecoCompleto.cidade),r&&(this.telaEndereco.buscouUmEndereco=!0,this.telaEndereco.exibaEndereco(this.endereco))},0)}).catch(l=>{this.carregou=!0}))})})}setEnderecos(t=[]){this.enderecos=[],t.forEach(r=>{let s=Xr.novo();Object.assign(s,r),r.cidade&&(s.cidade=r.cidade,s.estado=r.cidade.estado),s.descricaoCompleta||(s.descricaoCompleta=s.obtenhaEnderecoCompleto()),this.enderecos.push(s)}),this.enderecos.length&&!this.enderecoEscolhido?this.endereco=this.enderecos[0]:!this.enderecos.length&&!this.enderecoEscolhido&&(this.enderecoEscolhido=!0)}voltar(){this._location.back()}salveEndereco(t,r=null){this.pedido.novosEnderecos.push(t),this.pedido.entrega.setTaxaEntrega(t,r),this.carrinhoService.salvePedido(this.pedido),this.router.navigate(["/"+this.nomePagina+"/forma-entrega"],{queryParamsHandling:"merge"}).then(()=>{})}deveExibirTopo(){return!1}deveExibirMenu(){return!1}calculeTaxaEntrega(){if(this.endereco.faltamInformacoes)return this.enderecoEscolhido=!0,void this.telaEndereco.exibaEndereco(this.endereco);this.calculandoTaxa=!0,this.enderecoService.calculeTaxaDeEntrega("Receber em casa",this.endereco,this.pedido.obtenhaSubTotal()).then(t=>{this.calculandoTaxa=!1,this.salveEndereco(this.endereco,t)}).catch(t=>{this.calculandoTaxa=!1,this.msgErro=t})}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}cadastrarNovo(){this.enderecoEscolhido=!0}editarEndereco(){this.enderecoEscolhido=!0,this.telaEndereco.exibaEndereco(this.endereco)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ci),n.Y36(_n),n.Y36(Qi),n.Y36(gi),n.Y36(ka),n.Y36(Oi),n.Y36(Eo),n.Y36(wc),n.Y36(Pn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-escolher-endereco"]],viewQuery:function(t,r){if(1&t&&n.Gf(d3e,5),2&t){let s;n.iGM(s=n.CRH())&&(r.telaEndereco=s.first)}},decls:2,vars:1,consts:[["titulo","Endere\xe7o"],[4,"ngIf"],[1,"mt-2",2,"max-width","800px",3,"hidden"],[1,"mt-3"],[3,"pedido","cepObrigatorio","submit"],["telaEndereco",""],[1,"form-group","mt-3"],["for","descricao"],["id","descricao","name","descricao","placeholder","selecionar","appAutoFocus","",1,"form-control",3,"data","autoFocus","allowCustom","ngModel","valueField","textField","ngModelChange"],["class","alert alert-danger alert-dismissible fade show mt-2 mb-2","role","alert",4,"ngIf"],["type","button",1,"btn","btn-blue","btn-block",3,"disabled","click"],["class","k-icon k-i-loading  ",4,"ngIf"],["type","button","class","btn btn-warning btn-block",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-block",3,"disabled","click"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2","mb-2"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close"],["aria-hidden","true"],[1,"k-icon","k-i-loading"],["type","button",1,"btn","btn-warning","btn-block",3,"disabled","click"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-tela",0),n.YNc(1,f3e,6,4,"div",1)),2&t&&(n.xp6(1),n.Q6J("ngIf",r.carregou))},dependencies:[Ge,ti,ni,nn,io,Cs,Za,nT],styles:[".mobile[_ngcontent-%COMP%]   .btn-block[_ngcontent-%COMP%]{padding:1em 0}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}"]}),i})();var zp=(()=>(function(i){i.Cielo="cielo",i.CieloCheckout="cielocheckout",i.Pagarme="pagarme",i.PagarmeHub="pagarmehub",i.Pagseguro="pagseguro",i.PagseguroConnect="pagseguroconnect",i.MercadoPago="mercadopago"}(zp||(zp={})),zp))();class Lc{constructor(){}setRetornoTokenCartaoPagarme(o,t){this.token=o.id,this.bandeira=o.card.brand,this.tokenize=t}outroSemDadosSensitivos(){const o=new Lc;return o.nome=this.nome,o.cpf=this.cpf,o.dataNascimento=this.dataNascimento,o.senderHash=this.senderHash,o.email=this.email,o.token=this.token,o.bandeira=this.bandeira,o.endereco=this.endereco,o.usarEnderecoDeEntrega=this.usarEnderecoDeEntrega,o.ultimosNumeros=this.numero.substr(this.numero.length-3,3),o.autenticacao3ds=this.autenticacao3ds,o.valorPagamento=this.valorPagamento,o.parcela=this.parcela,o.tipoDoCartao=this.tipoDoCartao,this.tokenize&&(o.tokenize=this.tokenize),this.deviceInfo&&(o.deviceInfo=this.deviceInfo),o}}let YR=(()=>{class i extends fs{constructor(t){super(t)}crieSessao(){return new Promise((t,r)=>{this.facaPost("/pagseguro/nova-sessao",{}).then(s=>{t(s)}).catch(s=>{r(s)})})}crieSessaoConnect(){return new Promise((t,r)=>{this.facaPost("/pagseguro/connect/nova-sessao",{}).then(s=>{t(s)}).catch(s=>{r(s)})})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function K(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Od(i,o){return function(t,r){o(t,r,i)}}function Z(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const St=i=>i?new Date(i.getTime()):null,IT=(i,o)=>{const t=St(i);return 0===o&&23===t.getHours()&&t.setHours(t.getHours()+2),t},Rc=(i,o)=>{const t=St(i);return t.setDate(t.getDate()+o),IT(t,i.getHours())},lc=(i,o,t,r=0,s=0,l=0,u=0)=>{const p=new Date(i,o,t,r,s,l,u);return i>-1&&i<100&&p.setFullYear(p.getFullYear()-1900),IT(p,r)},Cr=i=>lc(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0),er=(i,o)=>!i&&!o||i&&o&&i.getTime()===o.getTime(),Bu=i=>{const o=lc(i.getFullYear(),i.getMonth()+1,1,i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());return Rc(o,-1)},os=(i,o)=>{const t=St(i),s=(12+(t.getMonth()+o)%12)%12;return t.setMonth(t.getMonth()+o),((i,o)=>i.getMonth()!==o?Bu(os(i,-1)):i)(IT(t,i.getHours()),s)},SQ=(i,o)=>{const t=i.getMonth(),r=lc(o,t,i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());return r.getMonth()===t?r:Bu(os(r,-1))},cc=(i,o)=>IT(SQ(i,i.getFullYear()+o),i.getHours()),Nd=(i,o)=>cc(i,10*o),ET=(i,o)=>cc(i,100*o),zE=(i,o)=>SQ(i,o(i.getFullYear())),h0=i=>zE(i,o=>o-o%100),GE=i=>zE(i,o=>o-o%100+90),El=i=>zE(i,o=>o-o%10),PT=i=>zE(i,o=>o-o%10+9),wQ=(i,o)=>{const t=i.getDate(),r=lc(i.getFullYear(),o,t,i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());return r.getDate()===t?r:Bu(os(r,-1))},OT=i=>wQ(i,11),MQ=(i,o)=>(h0(o).getFullYear()-h0(i).getFullYear())/100,DQ=(i,o)=>(El(o).getFullYear()-El(i).getFullYear())/10,kQ=(i,o)=>Rc(i,7*o),IQ=i=>lc(i.getFullYear(),i.getMonth(),1,i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());var NT=(()=>(function(i){i[i.Forward=1]="Forward",i[i.Backward=-1]="Backward"}(NT||(NT={})),NT))();const EQ=(i,o,t=NT.Forward)=>{const r=St(i),s=(o-r.getDay()+7*t)%7;return r.setDate(r.getDate()+s),IT(r,i.getHours())},PQ=(i,o)=>12*(o.getFullYear()-i.getFullYear())+(o.getMonth()-i.getMonth()),OQ=i=>wQ(i,0),NQ=(i,o)=>o.getFullYear()-i.getFullYear();var LT=(()=>(function(i){i[i.Sunday=0]="Sunday",i[i.Monday=1]="Monday",i[i.Tuesday=2]="Tuesday",i[i.Wednesday=3]="Wednesday",i[i.Thursday=4]="Thursday",i[i.Friday=5]="Friday",i[i.Saturday=6]="Saturday"}(LT||(LT={})),LT))();const VR=(i,o)=>{const t=lc(i.getFullYear(),0,1,-6),s=((i,o)=>o!==LT.Monday?Rc(((i,o)=>EQ(i,o,NT.Backward))(i,o),4):Rc(i,4-(i.getDay()||7)))(i,o).getTime()-t.getTime(),l=Math.floor(s/864e5);return 1+Math.floor(l/7)},LQ=(i,o=LT.Monday)=>{i=Cr(i);const t=Rc(i,-7),r=Rc(i,7),s=VR(i,o);return 0===s?VR(t,o)+1:53===s&&VR(r,o)>1?1:s},RQ=["*"],FQ=["list"];function A3e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw().$implicit,r=n.oxw();n.Oqu(r.service.navigationTitle(t))}}function x3e(i,o){}const BQ=function(i,o,t){return{$implicit:i,activeView:o,date:t}};function T3e(i,o){if(1&i&&(n.TgZ(0,"li")(1,"span"),n.YNc(2,A3e,1,1,"ng-template",5),n.YNc(3,x3e,0,0,"ng-template",6),n.qZA()()),2&i){const t=o.$implicit,r=o.index,s=n.oxw();n.uIk("data-date-index",r),n.xp6(1),n.ekj("k-calendar-navigation-marker",s.service.isRangeStart(t)),n.xp6(1),n.Q6J("ngIf",!s.templateRef),n.xp6(1),n.Q6J("ngIf",s.templateRef)("ngTemplateOutlet",s.templateRef)("ngTemplateOutletContext",n.kEZ(7,BQ,s.service.navigationTitle(t),s.activeViewValue,t))}}const mm=function(i){return{click:i}};function S3e(i,o){if(1&i&&(n.TgZ(0,"th",11),n._uU(1),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(2);n.Udp("width",r.colWidth,"%"),n.xp6(1),n.Oqu(t)}}function w3e(i,o){if(1&i&&(n.TgZ(0,"table",7)(1,"thead",8)(2,"tr",9),n.YNc(3,S3e,2,3,"th",10),n.qZA()()()),2&i){const t=n.oxw();n.xp6(3),n.Q6J("ngForOf",t.weekNames)}}function M3e(i,o){1&i&&n._UZ(0,"col")}function D3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"tbody",12),n.NdJ("cellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cellClick.emit(s))})("weekNumberCellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.weekNumberCellClick.emit(s))}),n.qZA()}if(2&i){const t=o.$implicit,r=n.oxw();n.Q6J("activeView",r.activeView)("isActive",r.isActive)("min",r.min)("max",r.max)("cellUID",r.cellUID)("focusedDate",r.focusedDate)("selectedDates",r.selectedDates)("weekNumber",r.weekNumber)("templateRef",r.cellTemplateRef)("weekNumberTemplateRef",r.weekNumberTemplateRef)("viewDate",t)}}function k3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-calendar-navigation",5),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.handleNavigation(s))})("pageChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.onPageChange())}),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("activeView",t.activeViewEnum)("focusedDate",t.focusedDate)("min",t.min)("max",t.max)("templateRef",null==t.navigationItemTemplate?null:t.navigationItemTemplate.templateRef)}}function I3e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.YNc(1,k3e,1,5,"kendo-calendar-navigation",2),n.TgZ(2,"kendo-calendar-viewlist",3),n.NdJ("todayButtonClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleDateChange({selectedDates:[s],focusedDate:s}))})("cellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleCellClick(s))})("weekNumberCellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleWeekNumberClick(s))})("activeDateChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleActiveDateChange(s))})("pageChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onPageChange())}),n.qZA(),n.TgZ(3,"kendo-resize-sensor",4),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA(),n.BQk()}if(2&i){const t=n.oxw();let r;n.xp6(1),n.Q6J("ngIf",t.navigation),n.xp6(1),n.Q6J("activeView",t.activeViewEnum)("isActive",t.isActive)("cellTemplateRef",null==(r=t.activeCellTemplate())?null:r.templateRef)("headerTitleTemplateRef",null==t.headerTitleTemplate?null:t.headerTitleTemplate.templateRef)("weekNumberTemplateRef",null==t.weekNumberTemplate?null:t.weekNumberTemplate.templateRef)("cellUID",t.cellUID)("min",t.min)("max",t.max)("focusedDate",t.focusedDate)("weekNumber",t.weekNumber)("selectedDates",t.selectedDates)}}function E3e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"kendo-multiviewcalendar",6,7),n.NdJ("activeViewChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleActiveViewChange(s))})("navigate",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.navigate.emit(s))})("valueChange",function(s){n.CHM(t);const l=n.MAs(2),u=n.oxw();return n.KtG(u.handleMultiViewCalendarValueChange(s,l.focusedDate))}),n._UZ(3,"kendo-multiviewcalendar-messages",8),n.qZA(),n.BQk()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("views",1)("min",t.min)("max",t.max)("isActive",t.isActive)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("weekNumber",t.weekNumber)("animateNavigation",t.animateNavigation)("cellTemplate",t.activeCellTemplate())("monthCellTemplate",t.monthCellTemplate)("yearCellTemplate",t.yearCellTemplate)("decadeCellTemplate",t.decadeCellTemplate)("centuryCellTemplate",t.centuryCellTemplate)("headerTitleTemplate",t.headerTitleTemplate)("weekNumberTemplate",t.weekNumberTemplate)("focusedDate",t.focusedDate)("selection",t.selection)("value",t.value)("disabledDates",t.disabledDates),n.xp6(2),n.Q6J("today",t.localization.get("today"))("prevButtonTitle",t.localization.get("prevButtonTitle"))("nextButtonTitle",t.localization.get("nextButtonTitle"))}}const P3e=["dateInput"],O3e=["wrap"];function N3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",6),n.NdJ("mousedown",function(s){return s.preventDefault()}),n.TgZ(1,"span",7),n.NdJ("mousedown",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.arrowDirection=s.arrow.Up)})("mouseleave",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.arrowDirection=s.arrow.None)})("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleButtonClick(1))}),n._UZ(2,"span",8),n.qZA(),n.TgZ(3,"span",9),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleButtonClick(-1))})("mousedown",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.arrowDirection=s.arrow.Down)})("mouseleave",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.arrowDirection=s.arrow.None)}),n._UZ(4,"span",10),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.ekj("k-state-active",t.arrowDirection===t.arrow.Up),n.Q6J("title",t.localization.get("increment")),n.uIk("aria-label",t.localization.get("increment")),n.xp6(2),n.ekj("k-state-active",t.arrowDirection===t.arrow.Down),n.Q6J("title",t.localization.get("decrement")),n.uIk("aria-label",t.localization.get("decrement"))}}const L3e=function(i,o,t,r,s,l,u){return{click:i,focus:o,mousedown:t,touchstart:r,dragstart:s,drop:l,blur:u}},qE=["container"],zR=["popupTemplate"],GR=["wrapper"];function R3e(i,o){}const HQ=function(i){return{keydown:i}};function F3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-calendar",9,10),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleChange(l.mergeTime(s)))}),n._UZ(2,"kendo-calendar-messages",11),n.qZA(),n.YNc(3,R3e,0,0,"ng-template")}if(2&i){const t=n.oxw();n.Q6J("type",t.calendarType)("min",t.min)("max",t.max)("navigation",t.navigation)("animateNavigation",t.animateCalendarNavigation)("activeView",t.activeView)("bottomView",t.bottomView)("topView",t.topView)("weekNumber",t.weekNumber)("cellTemplate",t.cellTemplate)("monthCellTemplate",t.monthCellTemplate)("yearCellTemplate",t.yearCellTemplate)("decadeCellTemplate",t.decadeCellTemplate)("centuryCellTemplate",t.centuryCellTemplate)("weekNumberTemplate",t.weekNumberTemplate)("headerTitleTemplate",t.headerTitleTemplate)("navigationItemTemplate",t.navigationItemTemplate)("focusedDate",t.focusedDate)("value",t.value)("kendoEventsOutsideAngular",n.VKq(25,HQ,t.handleKeydown))("scope",t)("disabledDates",t.disabledDates),n.xp6(2),n.Q6J("today",t.localization.get("today"))("prevButtonTitle",t.localization.get("prevButtonTitle"))("nextButtonTitle",t.localization.get("nextButtonTitle"))}}const $Q=function(i,o){return{click:i,mousedown:o}},B3e=function(i,o){return{keydown:i,mousedown:o}};function H3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-timeselector",9,10),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.handleChange(s))})("valueReject",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleReject())}),n._UZ(2,"kendo-timeselector-messages",11),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("cancelButton",t.cancelButton)("nowButton",t.nowButton)("format",t.format)("min",t.min)("max",t.max)("steps",t.steps)("value",t.value)("kendoEventsOutsideAngular",n.WLB(15,B3e,t.handleKeydown,t.handleMousedown))("scope",t),n.xp6(2),n.Q6J("acceptLabel",t.localization.get("acceptLabel"))("accept",t.localization.get("accept"))("cancelLabel",t.localization.get("cancelLabel"))("cancel",t.localization.get("cancel"))("nowLabel",t.localization.get("nowLabel"))("now",t.localization.get("now"))}}function $3e(i,o){if(1&i&&(n.TgZ(0,"button",25),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("kendoEventsOutsideAngular",n.VKq(5,mm,t.handleCancel))("scope",t),n.uIk("title",t.localization.get("cancelLabel"))("aria-label",t.localization.get("cancelLabel")),n.xp6(1),n.hij(" ",t.localization.get("cancel")," ")}}const U3e=function(i,o){return{mousedown:i,keydown:o}},Y3e=function(i,o){return{focusin:i,focusout:o}},j3e=function(i,o){return{click:i,keydown:o}},Z3e=function(i){return{transitionend:i}},V3e=function(i,o,t){return{keydown:i,focusin:o,focusout:t}};function z3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",9)(1,"div",10)(2,"div",11)(3,"button",12),n._uU(4),n.qZA(),n.TgZ(5,"button",13),n._uU(6),n.qZA()()(),n.TgZ(7,"div",14,15)(9,"div",16)(10,"kendo-calendar",17),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.calendarValue=s)})("valueChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.handleCalendarValueChange())}),n._UZ(11,"kendo-calendar-messages",18),n.qZA()(),n.TgZ(12,"div",19)(13,"kendo-timeselector",20),n._UZ(14,"kendo-timeselector-messages",21),n.qZA()()(),n.TgZ(15,"div",22),n.YNc(16,$3e,2,7,"button",23),n.TgZ(17,"button",24),n._uU(18),n.qZA()()()}if(2&i){const t=n.MAs(8),r=n.oxw();n.Gre("k-datetime-wrap k-",r.activeTab,"-tab"),n.Q6J("kendoEventsOutsideAngular",n.WLB(62,U3e,r.preventMouseDown,r.handleKeyDown))("scope",r),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.WLB(65,Y3e,r.handleFocus,r.handleBlur))("scope",r),n.xp6(2),n.ekj("k-state-active","date"===r.activeTab),n.Q6J("kendoEventsOutsideAngular",n.WLB(68,j3e,r.changeActiveTab.bind(r,"date"),r.handleBackTabOut))("scope",r),n.uIk("title",r.localization.get("dateTabLabel"))("aria-label",r.localization.get("dateTabLabel")),n.xp6(1),n.hij(" ",r.localization.get("dateTab")," "),n.xp6(1),n.ekj("k-state-active","time"===r.activeTab),n.Q6J("kendoEventsOutsideAngular",n.VKq(71,mm,r.changeActiveTab.bind(r,"time"))),n.uIk("title",r.localization.get("timeTabLabel"))("aria-label",r.localization.get("timeTabLabel")),n.xp6(1),n.hij(" ",r.localization.get("timeTab")," "),n.xp6(1),n.Udp("transition",r.tabSwitchTransition),n.Q6J("kendoEventsOutsideAngular",n.VKq(73,Z3e,r.handleTabChangeTransitionEnd.bind(r,t))),n.xp6(3),n.Q6J("value",r.calendarValue)("type",r.calendarType)("min",r.calendarMin)("max",r.calendarMax)("focusedDate",r.focusedDate)("weekNumber",r.weekNumber)("navigation",!1)("animateNavigation",r.animateCalendarNavigation)("cellTemplate",r.cellTemplate)("monthCellTemplate",r.monthCellTemplate)("yearCellTemplate",r.yearCellTemplate)("decadeCellTemplate",r.decadeCellTemplate)("centuryCellTemplate",r.centuryCellTemplate)("weekNumberTemplate",r.weekNumberTemplate)("headerTitleTemplate",r.headerTitleTemplate)("disabled",r.disableCalendar)("disabledDates",r.disabledDates),n.xp6(1),n.Q6J("today",r.localization.get("today"))("prevButtonTitle",r.localization.get("prevButtonTitle"))("nextButtonTitle",r.localization.get("nextButtonTitle")),n.xp6(2),n.Q6J("value",r.value)("format",r.timeSelectorFormat)("min",r.timeSelectorMin)("max",r.timeSelectorMax)("setButton",!1)("cancelButton",!1)("steps",r.steps)("disabled",r.disableTimeSelector),n.xp6(1),n.Q6J("now",r.localization.get("now"))("nowLabel",r.localization.get("nowLabel")),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.kEZ(75,V3e,r.handleTabOut,r.handleFocus,r.handleBlur))("scope",r),n.xp6(1),n.Q6J("ngIf",r.cancelButton),n.xp6(1),n.Q6J("disabled",!r.calendarValue)("kendoEventsOutsideAngular",n.VKq(79,mm,r.handleAccept))("scope",r),n.uIk("title",r.localization.get("acceptLabel"))("aria-label",r.localization.get("acceptLabel")),n.xp6(1),n.hij(" ",r.localization.get("accept")," ")}}const G3e=function(i,o){return{mousedown:i,click:o}};function q3e(i,o){if(1&i&&(n.TgZ(0,"caption",7),n._uU(1),n.qZA()),2&i){const t=n.oxw().date,r=n.oxw();n.Q6J("ngClass",r.getCaptionClass()),n.xp6(1),n.Oqu(r.getCaptionTitle(t))}}function J3e(i,o){if(1&i&&(n.TgZ(0,"th",11),n._uU(1),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.Oqu(t)}}function Q3e(i,o){if(1&i&&(n.TgZ(0,"thead",8)(1,"tr",9),n.YNc(2,J3e,2,1,"th",10),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngForOf",t.weekNames)}}function W3e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"table",3),n.YNc(1,q3e,2,2,"caption",4),n.YNc(2,Q3e,3,1,"thead",5),n.TgZ(3,"tbody",6),n.NdJ("cellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cellClick.emit(s))})("weekNumberCellClick",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.weekNumberCellClick.emit(s))})("cellEnter",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cellEnter.emit(s))})("cellLeave",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cellLeave.emit(s))}),n.qZA()()}if(2&i){const t=o.date,r=o.className,s=n.oxw();n.Q6J("ngClass",r),n.xp6(1),n.Q6J("ngIf",s.showViewHeader),n.xp6(1),n.Q6J("ngIf",s.isMonthView()),n.xp6(1),n.Q6J("activeView",s.activeView)("isActive",s.isActive)("min",s.min)("max",s.max)("cellUID",s.cellUID)("focusedDate",s.focusedDate)("selectedDates",s.selectedDates)("selectionRange",s.selectionRange)("activeRangeEnd",s.activeRangeEnd)("weekNumber",s.weekNumber)("templateRef",s.cellTemplateRef)("weekNumberTemplateRef",s.weekNumberTemplateRef)("viewDate",t)}}function K3e(i,o){}const UQ=function(i){return{date:i,className:"k-pointer-events-none"}};function X3e(i,o){if(1&i&&n.YNc(0,K3e,0,0,"ng-template",12),2&i){const t=n.oxw(),r=n.MAs(1);n.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",n.VKq(2,UQ,t.nextAnimationDate))}}function eDe(i,o){}const tDe=function(i){return{date:i}};function nDe(i,o){if(1&i&&n.YNc(0,eDe,0,0,"ng-template",12),2&i){const t=o.$implicit;n.oxw();const r=n.MAs(1);n.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",n.VKq(2,tDe,t))}}function iDe(i,o){}function oDe(i,o){if(1&i&&n.YNc(0,iDe,0,0,"ng-template",12),2&i){const t=n.oxw(),r=n.MAs(1);n.Q6J("ngTemplateOutlet",r)("ngTemplateOutletContext",n.VKq(2,UQ,t.prevAnimationDate))}}function lDe(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw();n.Oqu(t.title)}}function cDe(i,o){}function dDe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",8),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.prevButtonClick.emit())}),n._UZ(1,"span",9),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("disabled",t.isPrevDisabled)("title",t.prevButtonTitle),n.uIk("aria-disabled",t.isPrevDisabled)}}function uDe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.nextButtonClick.emit())}),n._UZ(1,"span",11),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("disabled",t.isNextDisabled)("title",t.nextButtonTitle),n.uIk("aria-disabled",t.isNextDisabled)}}const pDe=["kendoCalendarView",""];function hDe(i,o){1&i&&(n.TgZ(0,"td",3),n._uU(1,"\xa0"),n.qZA())}function gDe(i,o){if(1&i&&(n.TgZ(0,"tr",4)(1,"th",5),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("colSpan",t.colSpan),n.xp6(1),n.Oqu(t.title)}}function fDe(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(3).$implicit,r=n.oxw();n.hij(" ",r.getWeekNumber(r.firstDate(t))," ")}}function mDe(i,o){}const YQ=function(i,o){return{$implicit:i,cellContext:o}};function _De(i,o){if(1&i&&(n.TgZ(0,"td",9),n.YNc(1,fDe,1,1,"ng-template",6),n.YNc(2,mDe,0,0,"ng-template",10),n.qZA()),2&i){const t=n.oxw(2).$implicit,r=n.oxw();n.Q6J("kendoEventsOutsideAngular",n.VKq(5,mm,r.handleWeekNumberClick.bind(r,t))),n.xp6(1),n.Q6J("ngIf",!r.weekNumberTemplateRef),n.xp6(1),n.Q6J("ngIf",r.weekNumberTemplateRef)("ngTemplateOutlet",r.weekNumberTemplateRef)("ngTemplateOutletContext",n.WLB(7,YQ,r.firstDate(t),r.getWeekNumberContext(t)))}}function bDe(i,o){if(1&i&&n.YNc(0,_De,3,10,"td",8),2&i){const t=n.oxw().$implicit,r=n.oxw(),s=n.MAs(1);n.Q6J("ngIf",r.firstDate(t))("ngIfElse",s)}}function vDe(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(2).$implicit;n.Oqu(t.formattedValue)}}function yDe(i,o){}function CDe(i,o){if(1&i&&n.YNc(0,yDe,0,0,"ng-template",15),2&i){const t=n.oxw(2).$implicit,r=n.oxw(2);n.Q6J("ngTemplateOutlet",r.templateRef)("ngTemplateOutletContext",n.WLB(2,YQ,t.value,t))}}function ADe(i,o){if(1&i&&(n.TgZ(0,"td",12)(1,"span",13),n.YNc(2,vDe,1,1,"ng-template",6),n.YNc(3,CDe,1,5,null,14),n.qZA()()),2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw().index,u=n.oxw();n.Q6J("ngClass",u.getStyles(r))("title",r.title),n.uIk("id",r.id)("data-cell-index",u.tableCellIndex(l,s))("aria-selected",r.isSelected||r.isRangeStart||r.isRangeMid||r.isRangeEnd)("aria-disabled",r.isDisabled),n.xp6(2),n.Q6J("ngIf",!u.templateRef),n.xp6(1),n.Q6J("ngIf",u.templateRef)}}function xDe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,ADe,4,8,"td",11),n.BQk()),2&i){const t=o.$implicit,r=n.oxw(2),s=n.MAs(1);n.xp6(1),n.Q6J("ngIf",r.shouldRenderCellContent(t))("ngIfElse",s)}}function TDe(i,o){if(1&i&&(n.TgZ(0,"tr",4),n.YNc(1,bDe,1,2,"ng-template",6),n.YNc(2,xDe,2,2,"ng-container",7),n.qZA()),2&i){const t=o.$implicit,r=n.oxw();n.xp6(1),n.Q6J("ngIf",r.weekNumber),n.xp6(1),n.Q6J("kForOf",t)}}function SDe(i,o){if(1&i&&(n.TgZ(0,"li",3)(1,"span"),n._uU(2),n.qZA()()),2&i){const t=o.$implicit;n.uIk("data-timelist-item-index",o.index),n.xp6(2),n.Oqu(t.text)}}const wDe=["accept"],MDe=["cancel"],DDe=["now"],kDe=["listWrapper"],qR=function(i,o,t){return{click:i,focus:o,blur:t}};function IDe(i,o){if(1&i&&(n.TgZ(0,"button",8,9),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.Q6J("kendoEventsOutsideAngular",n.kEZ(6,qR,t.handleNow,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),n.uIk("title",t.localization.get("nowLabel"))("aria-label",t.localization.get("nowLabel")),n.xp6(2),n.Oqu(t.localization.get("now"))}}const EDe=function(i,o){return{focus:i,blur:o}};function PDe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",12,13)(2,"span",2),n._uU(3),n.qZA(),n.TgZ(4,"kendo-timelist",14),n.NdJ("valueChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.current=s)}),n.qZA()()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw();n.xp6(3),n.Oqu(l.intl.dateFieldName(r)),n.xp6(1),n.Q6J("min",l.min)("max",l.max)("part",r)("step",l.partStep(r))("disabled",l.disabled)("value",l.current)("kendoEventsOutsideAngular",n.WLB(10,EDe,l.handleListFocus,l.handleBlur))("scope",l),n.uIk("data-timelist-index",s)}}function ODe(i,o){if(1&i&&(n.TgZ(0,"div",15),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",t.pattern," ")}}function NDe(i,o){if(1&i&&(n.YNc(0,PDe,5,13,"div",10),n.YNc(1,ODe,2,1,"div",11)),2&i){const t=o.$implicit;n.Q6J("ngIf","literal"!==t.type),n.xp6(1),n.Q6J("ngIf","literal"===t.type)}}function LDe(i,o){if(1&i&&(n.TgZ(0,"button",19,20),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("kendoEventsOutsideAngular",n.kEZ(6,qR,t.handleReject,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),n.uIk("title",t.localization.get("cancelLabel"))("aria-label",t.localization.get("cancelLabel")),n.xp6(2),n.Oqu(t.localization.get("cancel"))}}function RDe(i,o){if(1&i&&(n.TgZ(0,"button",21,22),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("kendoEventsOutsideAngular",n.kEZ(6,qR,t.handleAccept,t.handleFocus,t.handleBlur))("scope",t)("disabled",t.disabled),n.uIk("title",t.localization.get("acceptLabel"))("aria-label",t.localization.get("acceptLabel")),n.xp6(2),n.Oqu(t.localization.get("accept"))}}function FDe(i,o){if(1&i&&(n.TgZ(0,"div",16),n.YNc(1,LDe,3,10,"button",17),n.YNc(2,RDe,3,10,"button",18),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.cancelButton),n.xp6(1),n.Q6J("ngIf",t.setButton)}}const Ry={name:"@progress/kendo-angular-dateinputs",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1635945725,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};var Fn=(()=>(function(i){i[i.Left=0]="Left",i[i.Right=1]="Right",i[i.Up=2]="Up",i[i.Down=3]="Down",i[i.PrevView=4]="PrevView",i[i.NextView=5]="NextView",i[i.FirstInView=6]="FirstInView",i[i.LastInView=7]="LastInView",i[i.LowerView=8]="LowerView",i[i.UpperView=9]="UpperView"}(Fn||(Fn={})),Fn))();const Pl={start:null,end:null},Gp=new Date(1980,0,1),Hu=new Date(1900,0,1),$u=new Date(2099,11,31),Fy=new Date(1980,0,1),g0=new Date(1980,0,1,23,59,59),JE=i=>i&&(!i.touched||i.control&&"blur"===i.control.updateOn),BDe=i=>i.preventDefault(),JR=i=>i.relatedTarget||document.activeElement,yn=i=>null!=i,jQ=i=>null!=i,RT=i=>(o,t)=>{const r=St(o);return r[i](t),r},qp=(i,o)=>{const t=St(i);return t.setHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),t},ZQ=(i,o,t)=>({candidateValue:qp(Gp,i),maxValue:Rc(qp(Gp,t),o.getHours()<t.getHours()||o.getHours()===t.getHours()&&o.getMinutes()<t.getMinutes()?0:1),minValue:qp(Gp,o)}),UDe=RT("setFullYear"),QE=RT("setHours"),WE=RT("setMinutes"),KE=RT("setSeconds"),XE=RT("setMilliseconds"),sl=(i,o,t=1)=>{const r=[];for(let s=i;s<o;s+=t)r.push(s);return r},f0=(i,o,t)=>!i||!(o&&o>i||t&&t<i),VQ=(i,o,t)=>{if(!i||!o||!t)return!0;const{candidateValue:r,minValue:s,maxValue:l}=ZQ(i,o,t);return s<=r&&r<=l},QR=(i,o)=>!jQ(i)||!jQ(o)||i<=o,Jp=(i,o,t)=>i&&(o&&i<o?St(o):t&&i>t?St(t):i),WR=()=>new Date,Uu=()=>Cr(new Date),kn=i=>{},e6=()=>typeof window<"u",zQ=(i,o)=>i.slice(o).concat(i.slice(0,o)),Ld=i=>(o,t="",r={})=>{const s=document.createElement(i);return s.className=t,Object.keys(r).map(l=>s.style[l]=r[l]),"string"==typeof o?s.innerHTML=o||"":(o||[]).forEach(l=>l&&s.appendChild(l)),s},_m=(i,o)=>void 0!==i[o],GQ=(i,o)=>i[o]&&null!=i[o].currentValue,bm=(i=[])=>i&&i[i.length-1],t6=(i,o)=>{const{start:t,end:r}=o||Pl;return!(!t||!r)&&t<i&&i<r},i6=(i,o)=>(i=i||[]).length===(o=o||[]).length&&i.every((t,r)=>er(t,o[r])),XR=(i,o)=>i&&o?new Date(i.getFullYear(),i.getMonth(),i.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()):null,JQ=i=>i?new Date(i.getFullYear(),i.getMonth(),i.getDate(),23,59,59,999):null,qDe=i=>Array(i.match(/S+(\1)/)[0].length).join("0"),WDe=[[]],XDe={[Fn.Left]:i=>Nd(i,-1),[Fn.Up]:i=>Nd(i,-5),[Fn.Right]:i=>Nd(i,1),[Fn.Down]:i=>Nd(i,5),[Fn.PrevView]:i=>ET(i,-1),[Fn.NextView]:i=>ET(i,1),[Fn.FirstInView]:i=>h0(i),[Fn.LastInView]:i=>GE(i)};let tF=(()=>{let i=class{constructor(){this.dateRange=(t,r)=>{if(!yn(t)||!yn(r))return[];const s=[];let l=t;for(;l<=r;)s.push(l),l=Nd(l,1);return s}}addToDate(t,r){return ET(t,r)}datesList(t,r){return sl(0,r).map(s=>ET(t,s))}data(t){const{cellUID:r,focusedDate:s,isActiveView:l,max:u,min:p,selectedDates:y,selectionRange:A=Pl,viewDate:w}=t;if(!w)return WDe;const I=sl(0,4),P=h0(w),F=GE(w),V=Uu();return sl(0,3).map(oe=>{const Ae=Nd(P,4*oe);return I.map(ue=>{const Se=this.normalize(Nd(Ae,ue),p,u),Be=Se.getFullYear()>F.getFullYear();if(!this.isInRange(Se,p,u)||Be)return null;const Me=this.isEqual(Se,A.start),He=this.isEqual(Se,A.end),Le=!Me&&!He&&t6(Se,A);return{formattedValue:this.value(Se),id:`${r}${Se.getTime()}`,isFocused:this.isEqual(Se,s),isSelected:l&&y.some(tt=>this.isEqual(Se,tt)),isWeekend:!1,isRangeStart:Me,isRangeMid:Le,isRangeEnd:He,isRangeSplitEnd:Le&&this.isEqual(Se,F),isRangeSplitStart:Le&&this.isEqual(Se,P),isToday:this.isEqual(Se,V),title:this.cellTitle(Se),value:Se}})})}isEqual(t,r){return!(!t||!r)&&El(t).getFullYear()===El(r).getFullYear()}isInArray(t,r){if(!r.length)return!1;const s=t.getFullYear();return r[0].getFullYear()<=s&&s<=r[r.length-1].getFullYear()+99}isInRange(t,r,s){const l=El(t).getFullYear(),u=!r||El(r).getFullYear()<=l,p=!s||l<=El(s).getFullYear();return u&&p}beginningOfPeriod(t){if(!t)return t;const r=El(h0(t));return lc(r.getFullYear(),0,1)}lastDayOfPeriod(t){const r=GE(t),s=PT(r),l=OT(s);return Bu(l)}isRangeStart(t){return t.getFullYear()%1e3==0}move(t,r){const s=XDe[r];return s?s(t):t}cellTitle(t){return El(t).getFullYear().toString()}navigationTitle(t){return t?h0(t).getFullYear().toString():""}title(t){return t?`${h0(t).getFullYear()} - ${GE(t).getFullYear()}`:""}rowLength(){return 4}skip(t,r){return MQ(r,t)}total(t,r){return MQ(t,r)+1}value(t){return t?El(t).getFullYear().toString():""}viewDate(t,r,s=1){const l=this.total(t,r);return l<s?ET(t,-1*(s-l)):t}normalize(t,r,s){return t<r&&this.isEqual(t,r)?St(r):t>s&&this.isEqual(t,s)?St(s):t}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const eke=[[]],nke={[Fn.Left]:i=>cc(i,-1),[Fn.Up]:i=>cc(i,-5),[Fn.Right]:i=>cc(i,1),[Fn.Down]:i=>cc(i,5),[Fn.PrevView]:i=>Nd(i,-1),[Fn.NextView]:i=>Nd(i,1),[Fn.FirstInView]:i=>El(i),[Fn.LastInView]:i=>PT(i)};let iF=(()=>{let i=class{constructor(){this.dateRange=(t,r)=>{if(!yn(t)||!yn(r))return[];const s=[];let l=t;for(;l<=r;)s.push(l),l=cc(l,1);return s}}addToDate(t,r){return Nd(t,r)}datesList(t,r){return sl(0,r).map(s=>Nd(t,s))}data(t){const{cellUID:r,focusedDate:s,isActiveView:l,max:u,min:p,selectedDates:y,selectionRange:A=Pl,viewDate:w}=t;if(!w)return eke;const I=sl(0,4),P=El(w),F=PT(w),V=Uu();return sl(0,3).map(oe=>{const Ae=cc(P,4*oe);return I.map(ue=>{const Se=this.normalize(cc(Ae,ue),p,u),Be=Se.getFullYear()>F.getFullYear();if(!this.isInRange(Se,p,u)||Be)return null;const Me=this.isEqual(Se,A.start),He=this.isEqual(Se,A.end),Le=!Me&&!He&&t6(Se,A);return{formattedValue:this.value(Se),id:`${r}${Se.getTime()}`,isFocused:this.isEqual(Se,s),isSelected:l&&y.some(tt=>this.isEqual(Se,tt)),isWeekend:!1,isRangeStart:Me,isRangeMid:Le,isRangeEnd:He,isRangeSplitEnd:Le&&this.isEqual(Se,F),isRangeSplitStart:Le&&this.isEqual(Se,P),isToday:this.isEqual(Se,V),title:this.cellTitle(Se),value:Se}})})}isEqual(t,r){return!(!t||!r)&&t.getFullYear()===r.getFullYear()}isInArray(t,r){if(!r.length)return!1;const s=t.getFullYear();return r[0].getFullYear()<=s&&s<=r[r.length-1].getFullYear()+9}isInRange(t,r,s){const l=t.getFullYear(),u=!r||r.getFullYear()<=l,p=!s||l<=s.getFullYear();return u&&p}beginningOfPeriod(t){if(!t)return t;const r=El(t);return lc(r.getFullYear(),0,1)}lastDayOfPeriod(t){const r=PT(t),s=OT(r);return Bu(s)}isRangeStart(t){return t.getFullYear()%100==0}move(t,r){const s=nke[r];return s?s(t):t}cellTitle(t){return t.getFullYear().toString()}navigationTitle(t){return t?El(t).getFullYear().toString():""}title(t){return t?`${El(t).getFullYear()} - ${PT(t).getFullYear()}`:""}rowLength(){return 4}skip(t,r){return DQ(r,t)}total(t,r){return DQ(t,r)+1}value(t){return t?t.getFullYear().toString():""}viewDate(t,r,s=1){const l=this.total(t,r);return l<s?Nd(t,-1*(s-l)):t}normalize(t,r,s){return t<r&&this.isEqual(t,r)?St(r):t>s&&this.isEqual(t,s)?St(s):t}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const ike=[[]],rke={[Fn.Left]:i=>Rc(i,-1),[Fn.Up]:i=>kQ(i,-1),[Fn.Right]:i=>Rc(i,1),[Fn.Down]:i=>kQ(i,1),[Fn.PrevView]:i=>os(i,-1),[Fn.NextView]:i=>os(i,1),[Fn.FirstInView]:i=>IQ(i),[Fn.LastInView]:i=>Bu(i)};let rF=(()=>{let i=class{constructor(t){this._intlService=t,this.dateRange=(r,s)=>{if(!yn(r)||!yn(s))return[];const l=[];let u=r;for(;u<=s;)l.push(u),u=Rc(u,1);return l}}addToDate(t,r){return os(t,r)}datesList(t,r){return sl(0,r).map(s=>os(t,s))}data(t){const{cellUID:r,focusedDate:s,isActiveView:l,max:u,min:p,selectedDates:y,selectionRange:A=Pl,viewDate:w,isDateDisabled:I=(()=>!1)}=t;if(!w)return ike;const P=IQ(w),F=Cr(P),V=Bu(w),oe=Cr(V),ue=EQ(P,this._intlService.firstDay(),-1),Se=sl(0,7),Be=Uu();return sl(0,6).map(Me=>{const He=Rc(ue,7*Me);return Se.map(Ye=>{const Le=this.normalize(Rc(He,Ye),p,u),tt=Cr(Le),kt=tt<F||tt>oe;if(Le<p||Le>u)return null;const Re=this.isEqual(Le,A.start),ot=this.isEqual(Le,A.end),At=!Re&&!ot&&t6(Le,A);return{formattedValue:this.value(Le),id:`${r}${Le.getTime()}`,isFocused:this.isEqual(Le,s),isSelected:l&&y.some(Xe=>this.isEqual(Le,Xe)),isWeekend:this.isWeekend(Le),isRangeStart:Re,isRangeMid:At,isRangeEnd:ot,isRangeSplitStart:At&&this.isEqual(Le,P),isRangeSplitEnd:At&&this.isEqual(Le,V),isToday:this.isEqual(Le,Be),title:this.cellTitle(Le),value:Le,isDisabled:I(Le),isOtherMonth:kt}})})}isEqual(t,r){return!(!t||!r)&&Cr(t).getTime()===Cr(r).getTime()}isInArray(t,r){if(0===r.length)return!1;const s=this.beginningOfPeriod(r[0]),l=this.beginningOfPeriod(os(r[r.length-1],1));return s<=t&&t<l}isInRange(t,r,s){const l=Cr(t),u=!r||Cr(r)<=l,p=!s||l<=Cr(s);return u&&p}beginningOfPeriod(t){return t&&lc(t.getFullYear(),t.getMonth(),1)}lastDayOfPeriod(t){return Bu(t)}isRangeStart(t){return!t.getMonth()}move(t,r){const s=rke[r];return s?s(t):t}cellTitle(t){return this._intlService.formatDate(t,"D")}navigationTitle(t){return t?this.isRangeStart(t)?t.getFullYear().toString():this.abbrMonthNames()[t.getMonth()]:""}title(t){return`${this.wideMonthNames()[t.getMonth()]} ${t.getFullYear()}`}rowLength(t={}){return 7+(t.prependCell?1:0)}skip(t,r){return PQ(r,t)}total(t,r){return PQ(t,r)+1}value(t){return t?t.getDate().toString():""}viewDate(t,r,s=1){const l=this.total(t,r);return l<s?os(t,-1*(s-l)):t}isWeekend(t){const{start:r,end:s}=this._intlService.weekendRange(),l=t.getDay();return s<r?l<=s||r<=l:r<=l&&l<=s}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(t,r,s){return t<r&&this.isEqual(t,r)?St(r):t>s&&this.isEqual(t,s)?St(s):t}wideMonthNames(){return this._intlService.dateFormatNames({nameType:"wide",type:"months"})}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const ake=[[]],dke={[Fn.Left]:i=>os(i,-1),[Fn.Up]:i=>os(i,(i=>i>4?-5:i<2?-2:-7)(i.getMonth())),[Fn.Right]:i=>os(i,1),[Fn.Down]:i=>os(i,(i=>i<7?5:i<10?7:2)(i.getMonth())),[Fn.PrevView]:i=>cc(i,-1),[Fn.NextView]:i=>cc(i,1),[Fn.FirstInView]:i=>OQ(i),[Fn.LastInView]:i=>OT(i)};let sF=(()=>{let i=class{constructor(t){this._intlService=t,this.dateRange=(r,s)=>{if(!yn(r)||!yn(s))return[];const l=[];let u=r;for(;u<=s;)l.push(u),u=os(u,1);return l}}addToDate(t,r){return cc(t,r)}datesList(t,r){return sl(0,r).map(s=>cc(t,s))}data(t){const{cellUID:r,focusedDate:s,isActiveView:l,max:u,min:p,selectedDates:y,selectionRange:A=Pl,viewDate:w}=t;if(!w)return ake;const I=this.abbrMonthNames(),P=OQ(w),F=OT(w),V=P.getFullYear(),oe=sl(0,4),Ae=Uu();return sl(0,3).map(ue=>{const Se=os(P,4*ue);return oe.map(Be=>{const Me=this.normalize(os(Se,Be),p,u),He=V<Me.getFullYear();if(!this.isInRange(Me,p,u)||He)return null;const Ye=this.isEqual(Me,A.start),Le=this.isEqual(Me,A.end),kt=!Ye&&!Le&&t6(Me,A);return{formattedValue:I[Me.getMonth()],id:`${r}${Me.getTime()}`,isFocused:this.isEqual(Me,s),isSelected:l&&y.some(Ke=>this.isEqual(Me,Ke)),isWeekend:!1,isRangeStart:Ye,isRangeMid:kt,isRangeEnd:Le,isRangeSplitEnd:kt&&this.isEqual(Me,F),isRangeSplitStart:kt&&this.isEqual(Me,P),isToday:this.isEqual(Me,Ae),title:this.cellTitle(Me),value:Me}})})}isEqual(t,r){return!(!t||!r)&&t.getFullYear()===r.getFullYear()&&t.getMonth()===r.getMonth()}isInArray(t,r){if(!r.length)return!1;const s=t.getFullYear();return r[0].getFullYear()<=s&&s<=r[r.length-1].getFullYear()}isInRange(t,r,s){const l=lc(t.getFullYear(),t.getMonth(),1),u=!r||lc(r.getFullYear(),r.getMonth(),1)<=l,p=!s||l<=lc(s.getFullYear(),s.getMonth(),1);return u&&p}beginningOfPeriod(t){return t&&lc(t.getFullYear(),0,1)}lastDayOfPeriod(t){const r=OT(t);return Bu(r)}isRangeStart(t){return t.getFullYear()%10==0}move(t,r){const s=dke[r];return s?s(t):t}cellTitle(t){return`${t.getFullYear()} ${this.value(t)}`}navigationTitle(t){return this.title(t)}title(t){return t?t.getFullYear().toString():""}rowLength(){return 4}skip(t,r){return NQ(r,t)}total(t,r){return NQ(t,r)+1}value(t){return t?this.abbrMonthNames()[t.getMonth()]:""}viewDate(t,r,s=1){const l=this.total(t,r);return l<s?cc(t,-1*(s-l)):t}abbrMonthNames(){return this._intlService.dateFormatNames({nameType:"abbreviated",type:"months"})}normalize(t,r,s){return t<r&&this.isEqual(t,r)?St(r):t>s&&this.isEqual(t,s)?St(s):t}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();var Qt=(()=>(function(i){i[i.month=0]="month",i[i.year=1]="year",i[i.decade=2]="decade",i[i.century=3]="century"}(Qt||(Qt={})),Qt))();const uke={[Qt.month]:rF,[Qt.year]:sF,[Qt.decade]:iF,[Qt.century]:tF};let za=(()=>{let i=class{constructor(t){this.injector=t,this.viewChanged=new n.vpe,this.bottom=Qt.month,this.top=Qt.century}configure(t,r){this.bottom=t,this.top=r}service(t){const r=uke[t];return r?this.injector.get(r):null}moveDown(t){this.move(t,-1)}moveUp(t){this.move(t,1)}moveToBottom(t){t!==this.bottom&&this.viewChanged.emit({view:this.bottom})}canMoveDown(t){return this.bottom<t}canMoveUp(t){return t<this.top}clamp(t){return t<this.bottom?this.bottom:t>this.top?this.top:t}move(t,r){const s=this.clamp(((i,o)=>{const t=Qt[Qt[i+o]];return void 0!==t?t:i})(t,r));s!==t&&this.viewChanged.emit({view:s})}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.zs3))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[n.zs3])],i),i})();const o6=Ld("div"),hke=Ld("ul"),gke=Ld("li"),fke=Ld("td"),QQ=Ld("th"),lF=Ld("tr"),mke=Ld("tbody"),_ke=Ld("thead"),WQ=Ld("table"),KQ=(i,o)=>new Array(i).fill("1").map(o),XQ=i=>o6(i,"k-flex k-content k-calendar-content k-scrollable"),Ake=(()=>{let i;return()=>Dt?(i||(i=o6([XQ([hke([gke("<span>FEB</span>")])])],"k-calendar-navigation",{left:"0px",position:"absolute"})),i):null})(),cF=({cells:i,rows:o},t,r)=>{let s;return()=>Dt?(s||(s=((i,o,t)=>o6([o6('\n            <span class="k-button k-flat k-title k-calendar-title">March 2017</span>\n            <span class="k-spacer"></span>\n            <span class="k-calendar-nav k-hstack">\n                <span class="k-today k-nav-today">TODAY</span>\n            </span>\n        ',"k-calendar-header k-hstack"),t?WQ([_ke([lF([QQ("MO","k-calendar-th")],"k-calendar-tr")],"k-calendar-thead")],"k-calendar-weekdays k-calendar-table"):null,XQ([i,i])],o,{left:"-10000px",position:"absolute"}))(((i,o=1)=>WQ([mke([lF([QQ("1","k-calendar-th")],"k-calendar-tr")].concat(KQ(i,()=>lF(KQ(o,t=>fke(`<span class="k-link">${t}</span>`,"k-calendar-td")),"k-calendar-tr"))),"k-calendar-tbody")],"k-calendar-table"))(o,i),t,r)),s):null},r6=i=>i.querySelector(".k-scrollable"),dF=i=>(r6(i).classList.add("k-scrollable-horizontal"),i),eW=cF({cells:7,rows:6},"k-vstack k-calendar-view k-calendar-monthview",!0),tW=cF({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-yearview",!1),nW=cF({cells:4,rows:3},"k-vstack k-calendar-view k-calendar-decadeview",!1),vm=i=>parseFloat(window.getComputedStyle(i).height)||i.offsetHeight,FT=i=>{const o=window.getComputedStyle(i);return parseFloat(o.width)+parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)||i.offsetWidth},By=i=>i.querySelector("tbody");let Eg=(()=>{let i=class{ensureHeights(){void 0===this.calendarHeight&&this.calculateHeights()}calculateHeights(t){!Dt()||(this.hostContainer=t,this.batch(eW(),r=>{const s=By(r);this.calendarHeight=vm(r),this.monthViewHeight=vm(s),this.headerHeight=vm(s.children[0]),this.scrollableContentHeight=vm(r6(r))}),this.batch(dF(eW()),r=>{const s=By(r);this.calendarWidth=FT(r),this.monthViewWidth=FT(s),this.scrollableContentWidth=FT(r6(r))}),this.batch(tW(),r=>{this.yearViewHeight=vm(By(r)),this.scrollableYearContentHeight=vm(r6(r))}),this.batch(dF(tW()),r=>{this.yearViewWidth=FT(By(r))}),this.batch(nW(),r=>{this.decadeViewHeight=vm(By(r)),this.centuryViewHeight=this.decadeViewHeight}),this.batch(dF(nW()),r=>{this.decadeViewWidth=FT(By(r)),this.centuryViewWidth=this.decadeViewWidth}),this.batch(Ake(),r=>{this.navigationItemHeight=vm(r.querySelector("li"))}))}viewHeight(t){return this.viewDimension(t,"height")}viewWidth(t){return this.viewDimension(t,"width")}viewDimension(t,r){const s="height"===r?"ViewHeight":"ViewWidth";switch(t){case Qt.month:return this[`month${s}`];case Qt.year:return this[`year${s}`];case Qt.decade:return this[`decade${s}`];case Qt.century:return this[`century${s}`];default:return 1}}batch(t,r){if(!yn(this.hostContainer))return;const s=this.hostContainer.cloneNode();document.body.appendChild(s);try{r(s.appendChild(t))}catch(l){throw l}finally{document.body.removeChild(s)}}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();class Mke{constructor(o=0,t,r){this.total=o,this.rowHeight=t,this.detailRowHeight=r,this.offsets=[],this.heights=[];let s=0;for(let l=0;l<o;l++)this.offsets.push(s),s+=t,this.heights.push(t)}height(o){return this.heights[o]}expandDetail(o){this.height(o)===this.rowHeight&&this.updateRowHeight(o,this.detailRowHeight)}collapseDetail(o){this.height(o)>this.rowHeight&&this.updateRowHeight(o,-1*this.detailRowHeight)}index(o){if(o<0)return;const t=this.offsets.reduce((r,s,l)=>void 0!==r?r:s===o?l:s>o?l-1:void 0,void 0);return void 0===t?this.total-1:t}offset(o){return this.offsets[o]}totalHeight(){return this.heights.reduce((o,t)=>o+t,0)}updateRowHeight(o,t){this.heights[o]+=t,this.offsets=((i,o,t)=>[...i.slice(0,o+1),...i.slice(o+1).map(r=>r+t)])(this.offsets,o,t)}}const a6=i=>Math.max(i,0);class uF{constructor(o){this.offset=o}}class s6{constructor(o){this.skip=o}}class Dke{constructor(o){this.scrollObservable=o,this.firstLoaded=0,this.bottomOffset=0,this.topOffset=0}create(o,t,r,s,l=0,u=0,p="vertical"){this.rowHeightService=o,this.firstLoaded=t,this.lastLoaded=t+r,this.take=r,this.total=s,this.lastScroll=0,this.topOffset=l,this.bottomOffset=u,this.direction=p;const y=new mv(2),A=this.rowsForHeight(l),w=a6(t-A);return y.next(new uF(this.rowOffset(w))),A&&y.next(new s6(w)),this.subscription=new No.y(I=>{this.unsubscribe(),this.scrollSubscription=this.scrollObservable.subscribe(P=>this.onScroll(P,I))}).subscribe(I=>y.next(I)),y}destroy(){this.unsubscribe(),this.subscription&&this.subscription.unsubscribe()}onScroll({scrollLeft:o,scrollTop:t,offsetHeight:r,offsetWidth:s},l){const u="vertical"===this.direction?t:o,p="vertical"===this.direction?r:s;if(this.lastScroll===u)return;const y=this.lastScroll>=u;this.lastScroll=u;const A=this.rowHeightService.index(a6(u-this.topOffset)),w=this.rowHeightService.index(a6(u+p-this.bottomOffset));if(!y&&w>=this.lastLoaded&&this.lastLoaded<this.total&&(this.firstLoaded=A,l.next(new uF(this.rowOffset(A))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),l.next(new s6(this.firstLoaded))),y&&A<=this.firstLoaded){const I=Math.floor(.3*this.take);this.firstLoaded=a6(A-I),l.next(new uF(this.rowOffset(this.firstLoaded))),this.lastLoaded=Math.min(this.firstLoaded+this.take,this.total),l.next(new s6(this.firstLoaded))}}rowOffset(o){return this.rowHeightService.offset(o)+this.topOffset}rowsForHeight(o){return Math.ceil(o/this.rowHeightService.height(0))}unsubscribe(){this.scrollSubscription&&(this.scrollSubscription.unsubscribe(),this.scrollSubscription=null)}}const pF=new n.OlP("dateinputs-scroll-service-factory");function kke(i){return new Dke(i)}var Rd=(()=>(function(i){i[i.Backward=0]="Backward",i[i.Forward=1]="Forward"}(Rd||(Rd={})),Rd))();const Eke={[Rd.Forward]:i=>o=>o+i,[Rd.Backward]:i=>o=>o-i},Pke={[Rd.Forward]:i=>o=>Math.min(o,i),[Rd.Backward]:i=>o=>Math.max(o,i)},Oke={[Rd.Forward]:i=>o=>o<i,[Rd.Backward]:i=>o=>o>i};let Fc=(()=>{let i=class{constructor(t,r,s,l){this.container=r,this.renderer=s,this.zone=l,this.direction="vertical",this.itemHeight=1,this.itemWidth=1,this.topOffset=0,this.bottomOffset=0,this.maxScrollDifference=100,this.scrollOffsetSize=0,this.scrollDuration=150,this.activeIndexChange=new n.vpe,this.pageChange=new n.vpe,this.scrollChange=new n.vpe,this.wrapperClasses=!0,this.resolvedPromise=Promise.resolve(null),this.dispatcher=new Ht.xQ,this.scroller=t(this.dispatcher)}get horizontalClass(){return"horizontal"===this.direction}get totalVertexLength(){const t=`${this.totalSize}px`;return"vertical"===this.direction?{height:t}:{width:t}}get containerOffsetSize(){return this.getContainerProperty("vertical"===this.direction?"offsetHeight":"offsetWidth")}get containerScrollSize(){return this.getContainerProperty("vertical"===this.direction?"scrollHeight":"scrollWidth")}get containerScrollPosition(){return this.getContainerProperty("vertical"===this.direction?"scrollTop":"scrollLeft")}ngOnChanges(t){(t.direction||t.take||t.total)&&(this.initServices(),this.totalSize=this.rowHeightService.totalHeight()+this.bottomOffset)}ngOnInit(){this.rowHeightService||(this.rowHeightService=this.createRowHeightService())}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{this.containerScrollSubscription=this.scroll$().pipe((0,ft.U)(t=>t.target)).subscribe(t=>{this.dispatcher.next(t),this.emitActiveIndex()})})}ngOnDestroy(){this.containerScrollSubscription&&this.containerScrollSubscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.animationSubscription&&this.animationSubscription.unsubscribe()}getContainerProperty(t){return this.container.nativeElement[t]}activeIndex(){return this.itemIndex(Math.ceil(this.containerScrollPosition))}itemIndex(t){return this.rowHeightService.index(t)}itemOffset(t){return this.rowHeightService.offset(t)}isIndexVisible(t){if(!this.rowHeightService)return!1;const r=this.containerScrollPosition,s=r+this.containerOffsetSize,l=this.rowHeightService.offset(t),u=l+this.rowHeightService.height(t);return l>=r&&u<=s}isListScrolled(t){return this.containerScrollPosition!==this.rowHeightService.offset(t)}scrollTo(t){this.renderer.setProperty(this.container.nativeElement,"vertical"===this.direction?"scrollTop":"scrollLeft",t)}scrollToIndex(t){this.zone.runOutsideAngular(()=>{this.resolvedPromise.then(()=>{this.scrollTo(this.rowHeightService.offset(t))})})}scrollToBottom(){this.scrollTo(this.totalSize)}animateToIndex(t){this.animationSubscription&&this.animationSubscription.unsubscribe();const r=this.rowHeightService.offset(t),s=this.getContainerScrollDirection(r),{start:l,end:u}=this.scrollRange(r,s);if(l===u)return;const p=this.scrollStep(l,u),y=Eke[s](p),A=Pke[s](u),w=Oke[s](y(u));this.zone.runOutsideAngular(()=>{this.animationSubscription=bl(Et(l),wx(0,gD)).pipe((0,ft.U)(I=>I[0]),zl(y),gw(w),(0,ft.U)(A)).subscribe(I=>this.scrollTo(I))})}scrollRange(t,r){const s=this.containerScrollPosition;if(parseInt(t,10)===parseInt(s,10))return{start:t,end:t};const l=this.containerMaxScroll(),u=r===Rd.Backward?1:-1,p=((i,o,t)=>Math.min(Math.abs(o-i),t))(s,t,this.maxScrollDifference),y=Math.min(t,l);return{start:Math.min(Math.max(y+u*p,0),l),end:y}}scrollStep(t,r){return Math.abs(r-t)/(this.scrollDuration/17)}scroll$(){return Dt()?jn(this.container.nativeElement,"scroll"):ae}initServices(){this.rowHeightService=this.createRowHeightService(),this.scrollSubscription&&this.scrollSubscription.unsubscribe(),this.scrollSubscription=this.scroller.create(this.rowHeightService,this.skip,this.take,this.total,this.topOffset,this.scrollOffsetSize,this.direction).subscribe(t=>{t instanceof s6?this.pageChange.emit(t):this.scrollChange.emit(t)})}createRowHeightService(){return new Mke(this.total,"vertical"===this.direction?this.itemHeight:this.itemWidth,0)}emitActiveIndex(){const t=this.rowHeightService.index(this.containerScrollPosition-this.topOffset);this.lastActiveIndex!==t&&(this.lastActiveIndex=t,this.activeIndexChange.emit(t))}containerMaxScroll(){return this.containerScrollSize-this.containerOffsetSize}getContainerScrollDirection(t){return t<this.containerScrollPosition?Rd.Backward:Rd.Forward}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(pF),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-virtualization"]],hostVars:10,hostBindings:function(t,r){2&t&&n.ekj("k-flex",r.wrapperClasses)("k-content",r.wrapperClasses)("k-calendar-content",r.wrapperClasses)("k-scrollable",r.wrapperClasses)("k-scrollable-horizontal",r.horizontalClass)},inputs:{direction:"direction",itemHeight:"itemHeight",itemWidth:"itemWidth",topOffset:"topOffset",bottomOffset:"bottomOffset",maxScrollDifference:"maxScrollDifference",scrollOffsetSize:"scrollOffsetSize",scrollDuration:"scrollDuration",skip:"skip",take:"take",total:"total"},outputs:{activeIndexChange:"activeIndexChange",pageChange:"pageChange",scrollChange:"scrollChange"},features:[n._Bn([{provide:pF,useValue:kke}]),n.TTD],ngContentSelectors:RQ,decls:2,vars:3,consts:[[1,"k-scrollable-placeholder",3,"ngStyle"]],template:function(t,r){1&t&&(n.F$t(),n.Hsn(0),n._UZ(1,"div",0)),2&t&&(n.xp6(1),n.ekj("k-scrollable-horizontal-placeholder","horizontal"===r.direction),n.Q6J("ngStyle",r.totalVertexLength))},dependencies:[uo],encapsulation:2}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"direction",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"itemHeight",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"itemWidth",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"topOffset",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"bottomOffset",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"maxScrollDifference",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"scrollOffsetSize",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"scrollDuration",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"skip",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"take",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"total",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeIndexChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"pageChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"scrollChange",void 0),K([(0,n.pfw)("class.k-flex"),(0,n.pfw)("class.k-content"),(0,n.pfw)("class.k-calendar-content"),(0,n.pfw)("class.k-scrollable"),Z("design:type",Boolean)],i.prototype,"wrapperClasses",void 0),K([(0,n.pfw)("class.k-scrollable-horizontal"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"horizontalClass",null),i=K([Od(0,(0,n.tBr)(pF)),Z("design:paramtypes",[Object,n.SBq,n.Qsj,n.R0b])],i),i})();const hF=(i,o,t)=>{for(;i&&i!==t&&!o(i);)i=i.parentNode;if(i!==t)return i},gF=(i,o)=>{for(;i&&!o(i);)i=i.parentNode;return i};let l6=(()=>{let i=class{constructor(t,r,s,l,u){this.bus=t,this.dom=r,this.intl=s,this.cdr=l,this.renderer=u,this.min=new Date(Hu),this.max=new Date($u),this.focusedDate=new Date,this.valueChange=new n.vpe,this.pageChange=new n.vpe,this.dates=[],this.take=30,this.indexToScroll=-1}get getComponentClass(){return!0}ngOnInit(){this.dom.ensureHeights();const t=this.dom.calendarHeight;this.itemHeight=this.dom.navigationItemHeight,this.maxViewHeight=this.dom.monthViewHeight,this.topOffset=(t-this.itemHeight)/2,this.bottomOffset=t-this.itemHeight,this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(t){if(this.service=this.bus.service(this.activeView),!this.service)return;this.activeViewValue=Qt[this.activeView];const r=Jp(this.focusedDate,this.min,this.max),s=this.service.total(this.min,this.max),l=this.total&&this.total!==s;this.skip=this.service.skip(r,this.min),this.total=s,(l||!this.service.isInArray(r,this.dates))&&(this.dates=this.service.datesList(r,this.getTake(this.skip))),(t.focusedDate||l)&&(this.indexToScroll=this.service.skip(this.focusedDate,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}onPageChange({skip:t}){this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()}scrollChange({offset:t}){const r=this.list.nativeElement,s=`translateY(${t}px)`;this.renderer.setStyle(r,"transform",s),this.renderer.setStyle(r,"-ms-transform",s)}handleDateChange(t){const r=hF(t.target,s=>s.hasAttribute("data-date-index"),this.list.nativeElement);if(r){const s=parseInt(r.getAttribute("data-date-index"),10);this.valueChange.emit(St(this.dates[s]))}}getTake(t){return Math.min(this.total-t,this.take)}intlChange(){this.activeView===Qt.month&&this.cdr.markForCheck()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(Eg),n.Y36(_i.aJ),n.Y36(n.sBO),n.Y36(n.Qsj))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-calendar-navigation"]],viewQuery:function(t,r){if(1&t&&(n.Gf(Fc,5),n.Gf(FQ,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.virtualization=s.first),n.iGM(s=n.CRH())&&(r.list=s.first)}},hostVars:2,hostBindings:function(t,r){2&t&&n.ekj("k-calendar-navigation",r.getComponentClass)},inputs:{min:"min",max:"max",focusedDate:"focusedDate",activeView:"activeView",templateRef:"templateRef"},outputs:{valueChange:"valueChange",pageChange:"pageChange"},features:[n.TTD],decls:5,vars:12,consts:[[1,"k-calendar-navigation-highlight"],[3,"skip","take","total","itemHeight","topOffset","bottomOffset","maxScrollDifference","pageChange","scrollChange"],[1,"k-reset",3,"kendoEventsOutsideAngular","scope"],["list",""],[4,"kFor","kForOf"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n._UZ(0,"span",0),n.TgZ(1,"kendo-virtualization",1),n.NdJ("pageChange",function(l){return r.onPageChange(l)})("scrollChange",function(l){return r.scrollChange(l)}),n.TgZ(2,"ul",2,3),n.YNc(4,T3e,4,11,"li",4),n.qZA()()),2&t&&(n.xp6(1),n.Q6J("skip",r.skip)("take",r.take)("total",r.total)("itemHeight",r.itemHeight)("topOffset",r.topOffset)("bottomOffset",r.bottomOffset)("maxScrollDifference",r.maxViewHeight),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.VKq(10,mm,r.handleDateChange))("scope",r),n.xp6(2),n.Q6J("kForOf",r.dates))},dependencies:function(){return[Ge,Pi,m6,Fc,_a]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"templateRef",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"pageChange",void 0),K([(0,n.i9L)(Fc,{static:!1}),Z("design:type",Fc)],i.prototype,"virtualization",void 0),K([(0,n.i9L)("list",{static:!0}),Z("design:type",n.SBq)],i.prototype,"list",void 0),K([(0,n.pfw)("class.k-calendar-navigation"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentClass",null),i=K([Z("design:paramtypes",[za,Eg,_i.aJ,n.sBO,n.Qsj])],i),i})(),c6=(()=>{let i=class{constructor(t,r,s,l,u){this.bus=t,this.cdr=r,this.intl=s,this.dom=l,this.renderer=u,this.isActive=!0,this.min=new Date(Hu),this.max=new Date($u),this.selectedDates=[],this.cellClick=new n.vpe,this.weekNumberCellClick=new n.vpe,this.activeDateChange=new n.vpe,this.todayButtonClick=new n.vpe,this.pageChange=new n.vpe,this.getComponentClass=!0,this.dates=[],this.cols=[],this.weekNames=[],this.take=5,this.animateToIndex=!0,this.indexToScroll=-1,this.minViewsToRender=1}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(t){this.showWeekNumbers=t}get getComponentMonthClass(){return this.activeView===Qt.month}get getComponentYearClass(){return this.activeView===Qt.year}get getComponentDecadeClass(){return this.activeView===Qt.decade}get getComponentCenturyClass(){return this.activeView===Qt.century}ngOnInit(){this.weekNames=this.getWeekNames(),this.bottomOffset=this.getBottomOffset(),this.viewOffset=-1*this.dom.headerHeight,this.viewHeight=this.dom.viewHeight(this.activeView),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}ngOnChanges(t){if(this.service=this.bus.service(this.activeView),!this.service)return;this.cols=new Array(this.service.rowLength({prependCell:this.weekNumber})).fill(""),this.colWidth=Math.round(100/this.cols.length),this.weekNames=_m(t,"weekNumber")&&this.weekNumber?this.getWeekNames():this.weekNames;const r=_m(t,"activeView"),s=this.focusedDate,l=Jp(this.service.viewDate(s,this.max,this.minViewsToRender),this.min,this.max),u=this.service.total(this.min,this.max),y=this.total&&this.total!==u||!this.service.isInArray(s,this.dates);this.skip=this.service.skip(l,this.min),this.total=u,this.animateToIndex=!r,this.bottomOffset=this.getBottomOffset(),this.viewHeight=this.dom.viewHeight(this.activeView),y&&(this.dates=this.service.datesList(l,this.getTake(this.skip))),((i,o)=>i&&o&&i.getFullYear()===o.getFullYear()&&i.getMonth()===o.getMonth())(this.activeDate,s)||(this.activeDate=St(s));const A=_m(t,"focusedDate")||r;(y||A||this.virtualization.isIndexVisible(this.skip))&&(this.indexToScroll=this.service.skip(s,this.min))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe()}ngAfterViewInit(){-1!==this.indexToScroll&&(this.virtualization.scrollToIndex(this.indexToScroll),this.indexToScroll=-1)}ngAfterViewChecked(){-1!==this.indexToScroll&&(this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](this.indexToScroll),this.animateToIndex=!0,this.indexToScroll=-1)}onPageChange({skip:t}){this.dates=this.service.datesList(this.service.addToDate(this.min,t),this.getTake(t)),this.pageChange.emit()}scrollChange({offset:t}){const r=this.list.nativeElement,s=`translateY(${t}px)`;this.renderer.setStyle(r,"transform",s),this.renderer.setStyle(r,"-ms-transform",s)}setActiveDate(t){const r=this.service.addToDate(this.min,t);this.activeDate=r,this.activeDateChange.emit(r),this.cdr.detectChanges()}isMonthView(){return this.activeView===Qt.month}isScrolled(){return this.virtualization.isListScrolled(this.service.skip(this.focusedDate,this.min))}getBottomOffset(){return this.getScrollableHeight()-this.dom.viewHeight(this.activeView)}getScrollableHeight(){return this.activeView===Qt.month?this.dom.scrollableContentHeight:this.dom.scrollableYearContentHeight}getTake(t){return Math.min(this.total-t,this.take)}getWeekNames(){const t=zQ(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return this.weekNumber?[""].concat(t):t}intlChange(){this.weekNames=this.getWeekNames(),this.isMonthView()&&this.cdr.markForCheck()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(n.sBO),n.Y36(_i.aJ),n.Y36(Eg),n.Y36(n.Qsj))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-calendar-viewlist"]],viewQuery:function(t,r){if(1&t&&(n.Gf(Fc,5),n.Gf(FQ,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.virtualization=s.first),n.iGM(s=n.CRH())&&(r.list=s.first)}},hostVars:12,hostBindings:function(t,r){2&t&&n.ekj("k-vstack",r.getComponentClass)("k-calendar-view",r.getComponentClass)("k-calendar-monthview",r.getComponentMonthClass)("k-calendar-yearview",r.getComponentYearClass)("k-calendar-decadeview",r.getComponentDecadeClass)("k-calendar-centuryview",r.getComponentCenturyClass)},inputs:{isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",weekNumber:"weekNumber",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",headerTitleTemplateRef:"headerTitleTemplateRef",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",activeDateChange:"activeDateChange",todayButtonClick:"todayButtonClick",pageChange:"pageChange"},features:[n.TTD],decls:8,vars:17,consts:[[3,"currentDate","min","max","activeView","templateRef","todayButtonClick"],["class","k-calendar-weekdays k-calendar-table","style","table-layout: auto;",4,"ngIf"],[3,"tabindex","skip","take","total","itemHeight","topOffset","bottomOffset","scrollOffsetSize","maxScrollDifference","pageChange","scrollChange","activeIndexChange"],[1,"k-calendar-table"],["list",""],[4,"ngFor","ngForOf"],["class","k-calendar-tbody","kendoCalendarView","","role","rowgroup",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick",4,"kFor","kForOf"],[1,"k-calendar-weekdays","k-calendar-table",2,"table-layout","auto"],[1,"k-calendar-thead"],[1,"k-calendar-tr"],["class","k-calendar-th",3,"width",4,"ngFor","ngForOf"],[1,"k-calendar-th"],["kendoCalendarView","","role","rowgroup",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick"]],template:function(t,r){1&t&&(n.TgZ(0,"kendo-calendar-header",0),n.NdJ("todayButtonClick",function(l){return r.todayButtonClick.emit(l)}),n.qZA(),n.YNc(1,w3e,4,1,"table",1),n.TgZ(2,"kendo-virtualization",2),n.NdJ("pageChange",function(l){return r.onPageChange(l)})("scrollChange",function(l){return r.scrollChange(l)})("activeIndexChange",function(l){return r.setActiveDate(l)}),n.TgZ(3,"table",3,4)(5,"colgroup"),n.YNc(6,M3e,1,0,"col",5),n.qZA(),n.YNc(7,D3e,1,11,"tbody",6),n.qZA()()),2&t&&(n.Q6J("currentDate",r.activeDate)("min",r.min)("max",r.max)("activeView",r.activeView)("templateRef",r.headerTitleTemplateRef),n.xp6(1),n.Q6J("ngIf",r.isMonthView()),n.xp6(1),n.Q6J("tabindex",-1)("skip",r.skip)("take",r.take)("total",r.total)("itemHeight",r.viewHeight)("topOffset",r.viewOffset)("bottomOffset",r.bottomOffset)("scrollOffsetSize",r.viewOffset)("maxScrollDifference",r.viewHeight),n.xp6(4),n.Q6J("ngForOf",r.cols),n.xp6(1),n.Q6J("kForOf",r.dates))},dependencies:function(){return[Bt,Ge,m6,mW,_W,Fc]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"cellTemplateRef",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"weekNumberTemplateRef",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"headerTitleTemplateRef",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cellUID",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isActive",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Array)],i.prototype,"selectedDates",void 0),K([(0,n.IIB)(),Z("design:type",Boolean),Z("design:paramtypes",[Boolean])],i.prototype,"weekNumber",null),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"weekNumberCellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeDateChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"todayButtonClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"pageChange",void 0),K([(0,n.i9L)(Fc,{static:!1}),Z("design:type",Fc)],i.prototype,"virtualization",void 0),K([(0,n.i9L)("list",{static:!0}),Z("design:type",n.SBq)],i.prototype,"list",void 0),K([(0,n.pfw)("class.k-vstack"),(0,n.pfw)("class.k-calendar-view"),Z("design:type",Boolean)],i.prototype,"getComponentClass",void 0),K([(0,n.pfw)("class.k-calendar-monthview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentMonthClass",null),K([(0,n.pfw)("class.k-calendar-yearview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentYearClass",null),K([(0,n.pfw)("class.k-calendar-decadeview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentDecadeClass",null),K([(0,n.pfw)("class.k-calendar-centuryview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentCenturyClass",null),i=K([Z("design:paramtypes",[za,n.sBO,_i.aJ,Eg,n.Qsj])],i),i})();const Bke={33:Fn.PrevView,34:Fn.NextView,35:Fn.LastInView,36:Fn.FirstInView,37:Fn.Left,38:Fn.Up,39:Fn.Right,40:Fn.Down,"meta+38":Fn.UpperView,"meta+40":Fn.LowerView};let m0=(()=>{let i=class{constructor(t){this.bus=t}action(t){return Bke[`${t.ctrlKey||t.metaKey?"meta+":""}${t.keyCode}`]}move(t,r,s){const l=this.bus.service(s);return l?r===Fn.UpperView&&this.bus.canMoveUp(s)?(this.bus.moveUp(s),t):r===Fn.LowerView&&this.bus.canMoveDown(s)?(this.bus.moveDown(s),t):l.move(t,r):t}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(za))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[za])],i),i})();const iW=()=>!1;let ll=(()=>{let i=class{constructor(){this.changes=new Ht.xQ,this.isDateDisabled=iW}initialize(t){if("function"==typeof t)this.isDateDisabled=r=>t(Cr(r));else if((i=>Array.isArray(i)&&i.length>0&&i.every(o=>"number"==typeof o))(t)){const r=new Set(t);this.isDateDisabled=s=>r.has(s.getDay())}else if((i=>Array.isArray(i)&&i.length>0&&i.every(o=>o instanceof Date))(t)){const r=new Set(t.map(s=>Cr(s).getTime()));this.isDateDisabled=s=>r.has(Cr(s).getTime())}else this.isDateDisabled=iW,this.notifyInvalidInput(t);this.notifyServiceChange()}notifyInvalidInput(t){if(yn(t)&&(0,n.X6Q)())throw new Error("The 'disabledDates' value should be a function, a Day array or a Date array. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/disabled-dates/ for more information.")}notifyServiceChange(){this.changes.next()}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})(),Hy=(()=>{let i=class{constructor(t){this.bus=t}performSelection(t){let{date:r,modifiers:s,selectionMode:l,activeViewEnum:u,rangePivot:p}=t,y=t.selectedDates.slice();if("multiple"===l)if(s.ctrlKey||s.metaKey)this.isDateSelected(y,r)?y=y.filter(A=>!er(A,r)):y.push(r),p=r;else if(s.shiftKey){const[A,w]=(i=>i.filter(o=>yn(o)).sort((o,t)=>o.getTime()-t.getTime()))([p||r,r]);y=this.bus.service(u).dateRange(A,w),p=r>y[0]?y[0]:bm(y)}else y=[r],p=r;else y=[r],p=r;return{selectedDates:y,rangePivot:p}}isDateSelected(t,r){return t.some(s=>er(s,r))}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(za))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[za])],i),i})(),fF=(()=>{let i=class{constructor(t,r){this.dom=t,this.zone=r}configure(t){const r=Math.max(this.dom.viewHeight(t)/this.dom.navigationItemHeight,1);this.divideByMagnitude=(i=>o=>Math.floor(o/i))(r),this.powerByMagnitude=(i=>o=>o*i)(r)}sync(t,r){this.unsubscribe(),t&&r&&(this.navigator=t,this.view=r,this.zone.runOutsideAngular(()=>{let s,l;this.navSubscription=t.scroll$().subscribe(u=>{l?l=!1:(s=!0,this.scrollSiblingOf(u.target))}),this.viewSubscription=r.scroll$().subscribe(u=>{s?s=!1:(l=!0,this.scrollSiblingOf(u.target))})}))}scrollSiblingOf(t){const r=this.siblingComponent(t),s=this.calculateScroll(r,t.scrollTop);r.scrollTo(s)}siblingComponent(t){return this.navigator.container.nativeElement===t?this.view:this.navigator}calculateScroll(t,r){return(t===this.navigator?this.divideByMagnitude:this.powerByMagnitude)(r)}destroy(){this.unsubscribe()}unsubscribe(){this.navSubscription&&this.navSubscription.unsubscribe(),this.viewSubscription&&this.viewSubscription.unsubscribe()}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Eg),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[Eg,n.R0b])],i),i})(),As=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),xs=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarMonthCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Ts=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarYearCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Ss=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarDecadeCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),ws=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarCenturyCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Ms=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarWeekNumberCellTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Ds=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarHeaderTitleTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Qp=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoCalendarNavigationItemTemplate",""]]}),i=K([Z("design:paramtypes",[n.Rgc])],i),i})(),Ol=(()=>{class i{constructor(){this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.sameDateSelected=new n.vpe,this.dateCompletenessChange=new n.vpe}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const BT=i=>o=>i&&o.value&&o.value<i?{minError:{minValue:i,value:o.value}}:null,HT=i=>o=>i&&o.value&&o.value>i?{maxError:{maxValue:i,value:o.value}}:null,oW="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",rW=i=>i?i.virtualization:null,zke={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>$T)},Gke={multi:!0,provide:Ui,useExisting:(0,n.Gpc)(()=>$T)},qke={provide:Mo,useExisting:(0,n.Gpc)(()=>$T)};let $T=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A,w,I,P,F,V){this.bus=t,this.dom=r,this.element=s,this.navigator=l,this.renderer=u,this.cdr=p,this.ngZone=y,this.injector=A,this.scrollSyncService=w,this.disabledDatesService=I,this.localization=P,this.selectionService=F,this.pickerService=V,this.id=to(),this.rangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.navigation=!0,this.activeView=Qt[Qt.month],this.bottomView=Qt[Qt.month],this.topView=Qt[Qt.century],this.animateNavigation=!1,this.weekNumber=!1,this.activeViewChange=new n.vpe,this.navigate=new n.vpe,this.activeViewDateChange=new n.vpe,this.valueChange=new n.vpe,this.isActive=!1,this.cellUID=to(),this.selectedDates=[],this._min=new Date(Hu),this._max=new Date($u),this._focusedDate=Uu(),this.onControlChange=kn,this.onControlTouched=kn,this.onValidatorChange=kn,this.minValidateFn=kn,this.maxValidateFn=kn,this.syncNavigation=!0,this._type="infinite",this.domEvents=[],this.resolvedPromise=Promise.resolve(null),this.destroyed=!1,(0,mi.s)(Ry),this.setClasses(s.nativeElement),this.pickerService&&(this.pickerService.calendar=this)}set focusedDate(t){if(this.activeViewDate&&!er(this._focusedDate,t)){const r=this.bus.service(this.activeViewEnum),s=r.lastDayOfPeriod(this.activeViewDate);r.isInRange(t,this.activeViewDate,s)||this.emitNavigate(t)}this._focusedDate=t||Uu(),this.setAriaActivedescendant()}get focusedDate(){return this._focusedDate}set min(t){this._min=t||new Date(Hu)}get min(){return this._min}set max(t){this._max=t||new Date($u)}get max(){return this._max}get value(){return this._value}set value(t){this.verifyValue(t),this._value=Array.isArray(t)?t.filter(s=>yn(s)).map(s=>St(s)):St(t);const r=[].concat(t).filter(s=>yn(s)).map(s=>St(s));if(!i6(r,this.selectedDates)){const s=bm(r);this.rangePivot=St(s),this.focusedDate=St(s)||this.focusedDate,this.selectedDates=r}}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set disabledDates(t){this.disabledDatesService.initialize(t),this._disabledDates=t}get disabledDates(){return this._disabledDates}set type(t){this.renderer.removeClass(this.element.nativeElement,`k-calendar-${this.type}`),this.renderer.addClass(this.element.nativeElement,`k-calendar-${t}`),this._type=t}get type(){return this._type}set cellTemplateRef(t){this.cellTemplate=t}set monthCellTemplateRef(t){this.monthCellTemplate=t}set yearCellTemplateRef(t){this.yearCellTemplate=t}set decadeCellTemplateRef(t){this.decadeCellTemplate=t}set centuryCellTemplateRef(t){this.centuryCellTemplate=t}set weekNumberTemplateRef(t){this.weekNumberTemplate=t}set headerTitleTemplateRef(t){this.headerTitleTemplate=t}set navigationItemTemplateRef(t){this.navigationItemTemplate=t}get activeViewEnum(){const t=Qt[this.activeView];return t<this.bottomViewEnum?this.bottomViewEnum:t}get bottomViewEnum(){return Qt[this.bottomView]}get topViewEnum(){return Qt[this.topView]}get widgetId(){return this.id}get widgetRole(){return"grid"}get calendarTabIndex(){return this.disabled||"classic"===this.type?void 0:this.tabIndex}get ariaDisabled(){return this.disabled}ngOnInit(){this.dom.calculateHeights(this.element.nativeElement),this.scrollSyncService.configure(this.activeViewEnum),this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.viewChangeSubscription=this.bus.viewChanged.subscribe(({view:t})=>this.handleActiveViewChange(Qt[t])),this.control=this.injector.get(jo,null),this.element&&this.ngZone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(t){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),this.scrollSyncService.configure(this.activeViewEnum),GQ(t,"focusedDate")&&(this.focusedDate=Jp(t.focusedDate.currentValue,this.min,this.max)),t.navigation&&(this.syncNavigation=!0),(t.min||t.max||t.rangeValidation)&&(this.minValidateFn=this.rangeValidation?BT(this.min):kn,this.maxValidateFn=this.rangeValidation?HT(this.max):kn,this.onValidatorChange())}ngAfterViewInit(){this.setAriaActivedescendant()}ngAfterViewChecked(){!this.syncNavigation||(this.syncNavigation=!1,this.scrollSyncService.sync(rW(this.navigationView),rW(this.monthView)))}ngOnDestroy(){this.scrollSyncService.destroy(),this.viewChangeSubscription.unsubscribe(),this.domEvents.forEach(t=>t()),this.pickerService&&(this.pickerService.calendar=null),this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.destroyed=!0}onResize(){this.focusedDate=new Date(this.focusedDate),this.cdr.detectChanges()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}containsElement(t){return Boolean(gF(t,r=>r===this.element.nativeElement))}handleNavigation(t){if(this.disabled)return;const r=t?new Date(St(t).setDate(1)):this.focusedDate;this.focusedDate=Jp(r,this.min,this.max),this.detectChanges()}onPageChange(){n.R0b.isInAngularZone()||(this.pageChangeSubscription&&this.pageChangeSubscription.unsubscribe(),this.pageChangeSubscription=(0,Yo.D)(this.resolvedPromise).subscribe(()=>{this.detectChanges()}))}handleMultiViewCalendarValueChange(t,r){const s=Array.isArray(t)?t:[t];this.handleDateChange({selectedDates:s,focusedDate:r})}handleDateChange(t){const r=Array.isArray(t.selectedDates)?t.selectedDates:[t.selectedDates],s=this.bus.canMoveDown(this.activeViewEnum),l=r.filter(u=>!this.disabledDatesService.isDateDisabled(u));if(this.focusedDate=t.focusedDate||this.focusedDate,!this.disabled){if(!s&&i6(l,this.selectedDates))return void this.emitSameDate();if(s)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||this.ngZone.run(()=>{this.selectedDates=l.map(u=>St(u)),this.value=this.parseSelectionToValue(l),this.onControlChange(this.parseSelectionToValue(l)),this.valueChange.emit(this.parseSelectionToValue(l)),this.cdr.markForCheck()})}}writeValue(t){this.verifyValue(t),this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)}registerOnValidatorChange(t){this.onValidatorChange=t}activeCellTemplate(){switch(this.activeViewEnum){case Qt.month:return this.monthCellTemplate||this.cellTemplate;case Qt.year:return this.yearCellTemplate;case Qt.decade:return this.decadeCellTemplate;case Qt.century:return this.centuryCellTemplate;default:return null}}emitNavigate(t){this.navigate.emit({activeView:Qt[this.activeViewEnum],focusedDate:t})}emitEvent(t,r){Ut(t)&&this.ngZone.run(()=>{t.emit(r)})}handleActiveDateChange(t){this.activeViewDate=t,this.emitEvent(this.activeViewDateChange,t)}handleActiveViewChange(t){this.activeView=t,this.emitEvent(this.activeViewChange,t),"infinite"===this.type&&this.scrollSyncService.configure(this.activeViewEnum),this.detectChanges()}handleCellClick({date:t,modifiers:r}){this.performSelection(t,r)}handleWeekNumberClick(t){"single"!==this.selection&&this.ngZone.run(()=>{this.handleDateChange({selectedDates:t,focusedDate:bm(t)})})}setClasses(t){this.renderer.addClass(t,"k-widget"),this.renderer.addClass(t,"k-calendar"),this.renderer.addClass(t,`k-calendar-${this.type}`)}verifyChanges(){if((0,n.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(t){if((0,n.X6Q)()){if("single"===this.selection&&t&&!(t instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${oW} for possible resolution.`);if("multiple"===this.selection&&t&&Array.isArray(t)&&!t.every(s=>s instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${oW} for possible resolution.`)}}bindEvents(){const t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"blur",this.handleBlur.bind(this)),this.renderer.listen(t,"focus",this.handleFocus.bind(this)),this.renderer.listen(t,"mousedown",BDe),this.renderer.listen(t,"click",this.handleComponentClick.bind(this)),this.renderer.listen(t,"keydown",this.handleKeydown.bind(this)))}emitBlur(t){this.pickerService&&this.pickerService.onBlur.emit(t)}emitFocus(){this.pickerService&&this.pickerService.onFocus.emit()}handleBlur(t){this.isActive=!1,!this.pickerService&&JE(this.control)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(t),this.cdr.markForCheck()}):(this.emitBlur(t),this.detectChanges())}handleFocus(){this.isActive=!0,n.R0b.isInAngularZone()||this.detectChanges(),this.emitFocus()}handleComponentClick(){this.isActive||("infinite"===this.type&&this.monthView.isScrolled()&&(this.focusedDate=St(this.focusedDate),this.detectChanges()),this.focus())}handleKeydown(t){const r=-1!==[Ie.ArrowUp,Ie.ArrowRight,Ie.ArrowDown,Ie.ArrowLeft].indexOf(t.keyCode);if(yn(this.pickerService)&&r&&t.altKey)return;const s=Jp(this.navigator.move(this.focusedDate,this.navigator.action(t),this.activeViewEnum),this.min,this.max);er(this.focusedDate,s)||(this.focusedDate=s,this.detectChanges(),t.preventDefault()),t.keyCode===Ie.Enter&&this.performSelection(this.focusedDate,t)}detectChanges(){this.destroyed||this.cdr.detectChanges()}emitSameDate(){this.pickerService&&this.pickerService.sameDateSelected.emit()}setAriaActivedescendant(){if(!yn(this.element))return;const t=this.cellUID+this.focusedDate.getTime();this.renderer.setAttribute(this.element.nativeElement,"aria-activedescendant",t)}parseSelectionToValue(t){return t=t||[],"single"===this.selection?St(bm(t)):t.map(r=>St(r))}performSelection(t,r){const s=this.selectionService.performSelection({date:t,modifiers:r,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=s.rangePivot,this.handleDateChange({selectedDates:s.selectedDates,focusedDate:t})}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(Eg),n.Y36(n.SBq),n.Y36(m0),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(n.zs3),n.Y36(fF),n.Y36(ll),n.Y36(Te),n.Y36(Hy),n.Y36(Ol,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-calendar"]],contentQueries:function(t,r,s){if(1&t&&(n.Suo(s,As,7),n.Suo(s,xs,7),n.Suo(s,Ts,7),n.Suo(s,Ss,7),n.Suo(s,ws,7),n.Suo(s,Ms,7),n.Suo(s,Ds,7),n.Suo(s,Qp,7)),2&t){let l;n.iGM(l=n.CRH())&&(r.cellTemplate=l.first),n.iGM(l=n.CRH())&&(r.monthCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.yearCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.decadeCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.centuryCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.weekNumberTemplate=l.first),n.iGM(l=n.CRH())&&(r.headerTitleTemplate=l.first),n.iGM(l=n.CRH())&&(r.navigationItemTemplate=l.first)}},viewQuery:function(t,r){if(1&t&&(n.Gf(l6,5),n.Gf(c6,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.navigationView=s.first),n.iGM(s=n.CRH())&&(r.monthView=s.first)}},hostVars:8,hostBindings:function(t,r){2&t&&(n.uIk("id",r.widgetId)("role",r.widgetRole)("tabindex",r.calendarTabIndex)("aria-disabled",r.ariaDisabled),n.ekj("k-week-number",r.weekNumber)("k-state-disabled",r.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",navigation:"navigation",activeView:"activeView",bottomView:"bottomView",topView:"topView",animateNavigation:"animateNavigation",weekNumber:"weekNumber",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",type:"type",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"]},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",activeViewDateChange:"activeViewDateChange",valueChange:"valueChange"},exportAs:["kendo-calendar"],features:[n._Bn([za,zke,Gke,qke,Te,ll,{provide:gn,useValue:"kendo.calendar"},m0,fF,Hy]),n.TTD],decls:3,vars:2,consts:function(){let o,t,r;return o="Today",t="Navigate to previous view",r="Navigate to next view",[["kendoCalendarLocalizedMessages","","today",o,"prevButtonTitle",t,"nextButtonTitle",r],[4,"ngIf"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange",4,"ngIf"],[3,"activeView","isActive","cellTemplateRef","headerTitleTemplateRef","weekNumberTemplateRef","cellUID","min","max","focusedDate","weekNumber","selectedDates","todayButtonClick","cellClick","weekNumberCellClick","activeDateChange","pageChange"],[3,"resize"],[3,"activeView","focusedDate","min","max","templateRef","valueChange","pageChange"],[3,"views","min","max","isActive","activeView","bottomView","topView","weekNumber","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","headerTitleTemplate","weekNumberTemplate","focusedDate","selection","value","disabledDates","activeViewChange","navigate","valueChange"],["multiviewcalendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(t,r){1&t&&(n.GkF(0,0),n.YNc(1,I3e,4,12,"ng-container",1),n.YNc(2,E3e,4,23,"ng-container",1)),2&t&&(n.xp6(1),n.Q6J("ngIf","infinite"===r.type),n.xp6(1),n.Q6J("ngIf","classic"===r.type))},dependencies:function(){return[Ge,b0,Wp,Bs,l6,v0,c6]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"id",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"focusedDate",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"min",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"max",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"selection",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"value",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"tabindex",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],i.prototype,"tabIndex",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"disabledDates",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"navigation",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"bottomView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"topView",void 0),K([(0,n.IIB)(),Z("design:type",String),Z("design:paramtypes",[String])],i.prototype,"type",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"animateNavigation",void 0),K([(0,n.IIB)(),(0,n.pfw)("class.k-week-number"),Z("design:type",Boolean)],i.prototype,"weekNumber",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeViewChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"navigate",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeViewDateChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueChange",void 0),K([(0,n.aQ5)(As,{static:!0}),Z("design:type",As)],i.prototype,"cellTemplate",void 0),K([(0,n.IIB)("cellTemplate"),Z("design:type",As),Z("design:paramtypes",[As])],i.prototype,"cellTemplateRef",null),K([(0,n.aQ5)(xs,{static:!0}),Z("design:type",xs)],i.prototype,"monthCellTemplate",void 0),K([(0,n.IIB)("monthCellTemplate"),Z("design:type",xs),Z("design:paramtypes",[xs])],i.prototype,"monthCellTemplateRef",null),K([(0,n.aQ5)(Ts,{static:!0}),Z("design:type",Ts)],i.prototype,"yearCellTemplate",void 0),K([(0,n.IIB)("yearCellTemplate"),Z("design:type",Ts),Z("design:paramtypes",[Ts])],i.prototype,"yearCellTemplateRef",null),K([(0,n.aQ5)(Ss,{static:!0}),Z("design:type",Ss)],i.prototype,"decadeCellTemplate",void 0),K([(0,n.IIB)("decadeCellTemplate"),Z("design:type",Ss),Z("design:paramtypes",[Ss])],i.prototype,"decadeCellTemplateRef",null),K([(0,n.aQ5)(ws,{static:!0}),Z("design:type",ws)],i.prototype,"centuryCellTemplate",void 0),K([(0,n.IIB)("centuryCellTemplate"),Z("design:type",ws),Z("design:paramtypes",[ws])],i.prototype,"centuryCellTemplateRef",null),K([(0,n.aQ5)(Ms,{static:!0}),Z("design:type",Ms)],i.prototype,"weekNumberTemplate",void 0),K([(0,n.IIB)("weekNumberTemplate"),Z("design:type",Ms),Z("design:paramtypes",[Ms])],i.prototype,"weekNumberTemplateRef",null),K([(0,n.aQ5)(Ds,{static:!0}),Z("design:type",Ds)],i.prototype,"headerTitleTemplate",void 0),K([(0,n.IIB)("headerTitleTemplate"),Z("design:type",Ds),Z("design:paramtypes",[Ds])],i.prototype,"headerTitleTemplateRef",null),K([(0,n.aQ5)(Qp,{static:!0}),Z("design:type",Qp)],i.prototype,"navigationItemTemplate",void 0),K([(0,n.IIB)("navigationItemTemplate"),Z("design:type",Qp),Z("design:paramtypes",[Qp])],i.prototype,"navigationItemTemplateRef",null),K([(0,n.i9L)(l6,{static:!1}),Z("design:type",l6)],i.prototype,"navigationView",void 0),K([(0,n.i9L)(c6,{static:!1}),Z("design:type",c6)],i.prototype,"monthView",void 0),K([(0,n.pfw)("attr.id"),Z("design:type",String),Z("design:paramtypes",[])],i.prototype,"widgetId",null),K([(0,n.pfw)("attr.role"),Z("design:type",String),Z("design:paramtypes",[])],i.prototype,"widgetRole",null),K([(0,n.pfw)("attr.tabindex"),Z("design:type",Number),Z("design:paramtypes",[])],i.prototype,"calendarTabIndex",null),K([(0,n.pfw)("attr.aria-disabled"),(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"ariaDisabled",null),i=K([Od(12,(0,n.FiY)()),Z("design:paramtypes",[za,Eg,n.SBq,m0,n.Qsj,n.sBO,n.R0b,n.zs3,fF,ll,Te,Hy,Ol])],i),i})();const d6=()=>(i,o)=>!yn(i.value)&&o?{incompleteDate:!0}:null;var UT,$y=(()=>(function(i){i[i.Up=0]="Up",i[i.Down=1]="Down",i[i.None=2]="None"}($y||($y={})),$y))();const Kke=/year|month|<day>/,Xke=/hour|minute|second|millisecond/,eIe=/d|M|H|h|m|s/,sW=i=>i.replace(/^0*/,"");class oIe{constructor(){this.symbols=""}}class rIe{constructor(o,t,r,s,l=68){if(this.intl=o,this.formatPlaceholder=t,this.format=r,this.twoDigitYearMax=l,this.year=!0,this.month=!0,this.date=!0,this.hours=!0,this.minutes=!0,this.seconds=!0,this.milliseconds=!0,this.leadingZero=null,this.monthNames=null,this.typedMonthPart="",this.value=Cr(new Date),this.knownParts="adHhmMsSEy",this.symbols={E:"E",H:"H",M:"M",a:"a",d:"d",h:"h",m:"m",s:"s",S:"S",y:"y"},(0,mi.s)(Ry),this.monthNames=this.allFormatedMonths(),this.dayPeriods=this.allDayPeriods(),s)this.value=St(s);else{this.value=Cr(new Date);const u=this.dateFormatString(this.value,this.format).symbols;for(let p=0;p<u.length;p++)this.setExisting(u[p],!1)}}hasValue(){return this.intl.splitDateFormat(this.format).reduce((t,r)=>t||"literal"!==r.type&&"dayperiod"!==r.type&&this.getExisting(r.pattern[0]),!1)}shouldNormalizeCentury(){return this.intl.splitDateFormat(this.format).some(o=>"yy"===o.pattern)}getDateObject(){for(let o=0;o<this.knownParts.length;o++)if(!this.getExisting(this.knownParts[o]))return null;return St(this.value)}getTextAndFormat(o){return this.merge(this.intl.formatDate(this.value,o),this.dateFormatString(this.value,o))}getExisting(o){switch(o){case"y":return this.year;case"M":case"L":return this.month;case"d":return this.date;case"E":return this.date&&this.month&&this.year;case"h":case"H":return this.hours;case"m":return this.minutes;case"s":return this.seconds;case"S":return this.milliseconds;default:return!0}}setExisting(o,t){switch(o){case"y":this.year=t,!1===t&&this.value.setFullYear(2e3);break;case"M":this.month=t,!1===t&&this.value.setMonth(0);break;case"d":this.date=t;break;case"h":case"H":this.hours=t;break;case"m":this.minutes=t;break;case"s":this.seconds=t;break;case"S":this.milliseconds=t;break;default:return}}modifyPart(o,t){let r=St(this.value);switch(o){case"y":r.setFullYear(r.getFullYear()+t);break;case"M":r=os(this.value,t);break;case"d":case"E":r.setDate(r.getDate()+t);break;case"h":case"H":r.setHours(r.getHours()+t);break;case"m":r.setMinutes(r.getMinutes()+t);break;case"s":r.setSeconds(r.getSeconds()+t);break;case"S":r.setMilliseconds(r.getMilliseconds()+t);break;case"a":r.setHours(r.getHours()+12*t)}this.shouldNormalizeCentury()&&(r=this.normalizeCentury(r)),r.getFullYear()>0&&(this.setExisting(o,!0),this.value=r)}parsePart(o,t,r){if(!t)return this.resetLeadingZero(),this.setExisting(o,!1),{value:null,switchToNext:!1};let s=this.intl.formatDate(this.value,this.format),l=this.dateFormatString(this.value,this.format),u=l.symbols,p=!1,y="",A="",w="";for(let ue=0;ue<s.length;ue++)u[ue]===o?(A+=this.getExisting(o)?s[ue]:"0",p=!0):p?w+=s[ue]:y+=s[ue];let I=A.length-3,P=null;const F=this.matchMonth(t),V=this.matchDayPeriod(t,o),oe="0"===t,Ae=(this.leadingZero||{})[o]||0;oe?0===parseInt(r?t:A+t,10)&&!this.isAbbrMonth(l.partMap,o)&&this.incrementLeadingZero(o):this.resetLeadingZero();for(let ue=Math.max(0,I);ue<=A.length;ue++){let Se=r?t:A.substring(ue)+t;"S"===o&&r&&(Se=qDe(u)+Se);let Be=parseInt(Se,10);if(P=this.intl.parseDate(y+Se+w,this.format),!P&&!isNaN(Be)&&!isNaN(parseInt(t,10))){if("M"===o&&!F){const Me=Be-1;Me>-1&&Me<12&&(P=St(this.value),P.setMonth(Me),P.getMonth()!==Me&&(P=Bu(os(P,-1))))}"y"===o&&(P=lc(parseInt(Se,10),this.month?this.value.getMonth():0,this.date?this.value.getDate():1,this.hours?this.value.getHours():0,this.minutes?this.value.getMinutes():0,this.seconds?this.value.getSeconds():0,this.milliseconds?this.value.getMilliseconds():0),this.date&&P.getDate()!==this.value.getDate()&&(P=Bu(os(P,-1))))}if(P){const Me=this.partPattern(l.partMap,o).pattern,He=this.intl.parseDate(`${y}${this.peek(Se,Me)}${w}`,this.format),Ye=this.patternLength(Me)||Me.length,Le=Ae+(sW(Se)||t).length>=Ye,tt=null===He||Le;return this.shouldNormalizeCentury()&&(P=this.normalizeCentury(P)),this.value=P,this.setExisting(o,!0),{value:this.value,switchToNext:tt}}}return F&&(P=this.intl.parseDate(y+F+w,this.format),P)?(this.value=P,this.setExisting(o,!0),{value:this.value,switchToNext:!1}):V&&(P=this.intl.parseDate(y+V+w,this.format),P)?(this.value=P,{value:this.value,switchToNext:!0}):(oe&&this.setExisting(o,!1),{value:null,switchToNext:!1})}resetLeadingZero(){const o=null!==this.leadingZero;return this.setLeadingZero(null),o}setLeadingZero(o){this.leadingZero=o}normalizeCentury(o){if(!yn(o))return o;const t=(i=>!yn(i)||isNaN(i.getTime())?0:Number(i.getFullYear().toString().slice(-2)))(o),r=this.getNormalizedCenturyBase(t);return UDe(o,r+t)}incrementLeadingZero(o){const t=this.leadingZero||{};t[o]=(t[o]||0)+1,this.leadingZero=t}isAbbrMonth(o,t){const r=this.partPattern(o,t);return"month"===r.type&&r.names}partPattern(o,t){return o.filter(r=>-1!==r.pattern.indexOf(t))[0]}peek(o,t){const r=sW(o)+"0";return(i=>new Array(Math.max(i,0)).fill("0").join(""))(t.length-r.length)+r}matchMonth(o){if(this.typedMonthPart+=o.toLowerCase(),!this.monthNames)return"";for(;this.typedMonthPart.length>0;){for(let r=0;r<this.monthNames.length;r++)if(0===this.monthNames[r].toLowerCase().indexOf(this.typedMonthPart))return this.monthNames[r];const t=parseInt(this.typedMonthPart,10);if(t>=1&&t<=12&&t.toString()===this.typedMonthPart)return this.monthNames[t-1];this.typedMonthPart=this.typedMonthPart.substring(1,this.typedMonthPart.length)}return""}matchDayPeriod(o,t){const r=String(o).toLowerCase();if("a"===t&&this.dayPeriods){if(this.dayPeriods.am.toLowerCase().startsWith(r))return this.dayPeriods.am;if(this.dayPeriods.pm.toLowerCase().startsWith(r))return this.dayPeriods.pm}return""}allFormatedMonths(){const o=this.intl.splitDateFormat(this.format);for(let t=0;t<o.length;t++)if("month"===o[t].type&&o[t].names)return this.intl.dateFormatNames(o[t].names);return null}allDayPeriods(){const o=this.intl.splitDateFormat(this.format);for(let t=0;t<o.length;t++)if("dayperiod"===o[t].type&&o[t].names)return this.intl.dateFormatNames(o[t].names);return null}patternLength(o){return"y"===o[0]?4:eIe.test(o)?2:0}dateFormatString(o,t){const r=this.intl.splitDateFormat(t),s=[],l=[];for(let p=0;p<r.length;p++){let y=this.intl.formatDate(o,{pattern:r[p].pattern}).length;for(;y>0;)s.push(this.symbols[r[p].pattern[0]]||"_"),l.push(r[p]),y--}const u=new oIe;return u.symbols=s.join(""),u.partMap=l,u}merge(o,t){let r="",s="",l=t.symbols;for(let u=l.length-1;u>=0;u--)if(-1===this.knownParts.indexOf(l[u])||this.getExisting(l[u]))r=o[u]+r,s=l[u]+s;else{const p=l[u];for(;u>=0&&p===l[u];)u--;for(u++,r=this.leadingZero&&this.leadingZero[p]?"0"+r:this.dateFieldName(t.partMap[u])+r;s.length<r.length;)s=l[u]+s}return[r,s]}dateFieldName(o){const t=this.formatPlaceholder||"wide";return t[o.type]?t[o.type]:"formatPattern"===t?o.pattern:this.intl.dateFieldName(Object.assign(o,{nameType:t}))}getNormalizedCenturyBase(o){return o>this.twoDigitYearMax?1900:2e3}}let Kn=UT=class{constructor(o,t,r,s,l,u,p,y){this.cdr=o,this.intl=t,this.renderer=r,this.element=s,this.ngZone=l,this.injector=u,this.localization=p,this.pickerService=y,this.focusableId=`k-${to()}`,this.disabled=!1,this.readonly=!1,this.title="",this.tabindex=0,this.role="spinbutton",this.ariaReadOnly=!1,this.format="d",this.placeholder=null,this.steps={},this.rangeValidation=!0,this.autoCorrect=!1,this.incompleteDateValidation=!1,this.twoDigitYearMax=68,this.spinners=!1,this.isPopupOpen=!1,this.hasPopup=!1,this.valueChange=new n.vpe,this.valueUpdate=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.arrow=$y,this.arrowDirection=$y.None,this.formatSections={date:!1,time:!1},this.hasMousedown=!1,this.focusedPriorToMousedown=!1,this.isDateIncomplete=!1,this.currentValue="",this.currentFormat="",this.backspace=!1,this.resetSegmentValue=!0,this.minValidator=kn,this.maxValidator=kn,this.incompleteValidator=kn,this._value=null,this._active=!1,this.kendoDate=null,this.paste=!1,this.domEvents=[],this.onControlChange=kn,this.onControlTouched=kn,this.onValidatorChange=kn,this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections(),this.pickerService&&(this.pickerService.input=this)}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set value(o){this.verifyValue(o),(!this.autoCorrect||f0(o,this.min,this.max))&&(this._value=St(o),this.valueUpdate.emit(St(o)))}get value(){return this._value}get wrapperClass(){return!0}get disabledClass(){return this.disabled}get inputElement(){return this.dateInput?this.dateInput.nativeElement:null}get inputValue(){return(this.inputElement||{}).value||""}get isActive(){return this._active}set isActive(o){if(this._active=o,this.wrap&&!yn(this.pickerService)){const t=this.wrap.nativeElement;o?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}}get inputFormat(){return this.format?"string"==typeof this.format?this.format:this.format.inputFormat:"d"}get displayFormat(){return this.format?"string"==typeof this.format?this.format:this.format.displayFormat:"d"}isEmpty(){return!this.currentValue||!String(this.currentValue).trim()}containsElement(o){return Boolean(gF(o,t=>t===this.element.nativeElement))}ngOnChanges(o){this.verifyRange(),(o.min||o.max||o.rangeValidation||o.incompleteDateValidation)&&(this.minValidator=this.rangeValidation?BT(this.min):kn,this.maxValidator=this.rangeValidation?HT(this.max):kn,this.incompleteValidator=this.incompleteDateValidation?d6():kn,this.onValidatorChange()),o.format&&(this.symbolsMap=this.dateSymbolMap(),this.updateFormatSections());const t=this.kendoDate&&er(this.value,this.kendoDate.getDateObject());(o.format||!t||o.placeholder)&&(this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive))}ngOnDestroy(){this.intlSubscription&&this.intlSubscription.unsubscribe(),this.pickerService&&(this.pickerService.input=null),this.domEvents.forEach(o=>o())}validate(o){return this.minValidator(o)||this.maxValidator(o)||this.incompleteValidator(o,this.isDateIncomplete)}registerOnValidatorChange(o){this.onValidatorChange=o}ngOnInit(){this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(),this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this)),this.ngControl=this.injector.get(jo,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.ngZone.runOutsideAngular(()=>{this.bindEvents()}))}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}writeValue(o){this.verifyValue(o),this.kendoDate=this.getKendoDate(o),this.value=St(o),this.updateElementValue(this.isActive)}triggerChange(){const o=this.kendoDate.getDateObject();+o!=+this.value&&(this.value=St(o),this.notify())}notify(){this.ngZone.run(()=>{this.onControlChange(St(this.value)),this.valueChange.emit(St(this.value))})}registerOnChange(o){this.onControlChange=o}registerOnTouched(o){this.onControlTouched=o}focus(){const o=this.inputElement;o&&(o.focus(),this.selectDateSegment(this.currentFormat[0]))}blur(){const o=this.inputElement;o&&o.blur()}handleButtonClick(o){this.arrowDirection=$y.None,this.modifyDateSegmentValue(o)}modifyDateSegmentValue(o){const t=this.caret(),r=this.currentFormat[t[0]];let s=(this.steps||{})[this.symbolsMap[r]]||1;if("S"===r&&!this.steps.millisecond){const l=(i=>{const o=i&&i.match(/S+(\1)/);return o?o[0].length:0})(this.inputFormat);s=(i=>Math.pow(10,3-i))(l)}this.kendoDate.modifyPart(r,o*s),this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.selectDateSegment(r),this.updateIncompleteValidationStatus()}switchDateSegment(o){const t=this.caret();if(this.kendoDate.resetLeadingZero()&&this.updateElementValue(this.isActive),t[0]<t[1]&&this.currentFormat[t[0]]!==this.currentFormat[t[1]-1])return this.selectNearestSegment(o>0?t[0]:t[1]-1),this.resetSegmentValue=!0,!0;const r=this.currentFormat[t[0]];let s=t[0]+o;for(;s>0&&s<this.currentFormat.length&&(this.currentFormat[s]===r||"_"===this.currentFormat[s]);)s+=o;if("_"===this.currentFormat[s])return!1;let l=s;for(;l>=0&&l<this.currentFormat.length&&this.currentFormat[l]===this.currentFormat[s];)l+=o;return s>l&&(l+1!==t[0]||s+1!==t[1])?(this.caret(l+1,s+1),this.resetSegmentValue=!0,!0):s<l&&(s!==t[0]||l!==t[1])&&(this.caret(s,l),this.resetSegmentValue=!0,!0)}selectDateSegment(o){let t=-1,r=0;for(let s=0;s<this.currentFormat.length;s++)this.currentFormat[s]===o&&(r=s+1,-1===t&&(t=s));t<0&&(t=0),this.caret(0,0),this.caret(t,r)}handleClick(){if(this.hasMousedown=!1,this.isActive){const o=this.inputElement.selectionStart!==this.inputElement.selectionEnd,t=yn(this.placeholder)&&!this.kendoDate.hasValue()&&!this.focusedPriorToMousedown,s=!o&&t?0:this.caret()[0];this.selectNearestSegment(s)}}handleDragAndDrop(o){o.preventDefault()}handleMousedown(){this.hasMousedown=!0,this.focusedPriorToMousedown=this.isActive}handleFocus(o){this.isActive=!0,this.updateElementValue(),this.hasMousedown||this.caret(0,this.inputValue.length),this.hasMousedown=!1,Ut(this.onFocus)?this.ngZone.run(()=>{this.emitFocus(o)}):this.emitFocus(o)}handleBlur(o){this.isActive=!1,this.resetSegmentValue=!0,this.kendoDate.resetLeadingZero(),this.updateElementValue(),Ut(this.onBlur)||JE(this.ngControl)?this.ngZone.run(()=>{this.onControlTouched(),this.emitBlur(o),this.cdr.markForCheck()}):this.emitBlur(o)}getKendoDate(o){const{leadingZero:t}=this.kendoDate||{},r=new rIe(this.intl,this.formatPlaceholder,this.inputFormat,o,this.twoDigitYearMax);return r.setLeadingZero(this.isActive?t:null),r}dateSymbolMap(){return this.intl.splitDateFormat(this.inputFormat).reduce((t,r)=>(t[r.pattern[0]]=r.type,t),{})}updateElementValue(o){const t=this.caret()[0],s=this.kendoDate.getTextAndFormat(this.isActive?this.inputFormat:this.displayFormat),l=!this.isActive&&yn(this.placeholder)&&!this.kendoDate.hasValue(),u=this.inputElement;this.currentFormat=s[1],this.currentValue=l?"":s[0],this.renderer.setProperty(u,"value",this.currentValue),u.placeholder!==this.placeholder&&this.renderer.setProperty(u,"placeholder",this.placeholder),o&&this.selectNearestSegment(t)}caret(o,t=o){const r=void 0!==o;let s=[o,o];const l=this.inputElement;if(!r||!this.disabled&&!this.readonly){try{void 0!==l.selectionStart&&(r&&(Dt()&&document.activeElement!==l&&l.focus(),l.setSelectionRange(o,t)),s=[l.selectionStart,l.selectionEnd])}catch{s=[]}return s}}selectNearestSegment(o){for(let t=o,r=o-1;t<this.currentFormat.length||r>=0;t++,r--){if(t<this.currentFormat.length&&"_"!==this.currentFormat[t])return void this.selectDateSegment(this.currentFormat[t]);if(r>=0&&"_"!==this.currentFormat[r])return void this.selectDateSegment(this.currentFormat[r])}}verifyRange(){if((0,n.X6Q)()&&!QR(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DateInputComponent/#toc-max.")}verifyValue(o){if((0,n.X6Q)()&&o&&!(o instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/dateinput/#toc-using-with-json for possible resolution.")}putDateInRange(){const o=this.kendoDate.getDateObject(),t=Jp(o,this.min,this.max);this.autoCorrect&&!er(o,t)&&(this.kendoDate=this.getKendoDate(t))}updateFormatSections(){this.formatSections=this.intl.splitDateFormat(this.inputFormat).reduce(({date:o,time:t},r)=>({date:o||Kke.test(r.type),time:t||Xke.test(r.type)}),{date:!1,time:!1})}intlChange(){this.updateFormatSections(),this.kendoDate=this.getKendoDate(this.value),this.updateElementValue(this.isActive)}updateOnPaste(){let o=this.intl.parseDate(this.inputValue,this.inputFormat)||this.value;yn(o)&&this.kendoDate.shouldNormalizeCentury()&&(o=this.kendoDate.normalizeCentury(o));const t=+o!=+this.value;this.writeValue(o),t&&this.notify()}bindEvents(){const o=this.element.nativeElement,t=this.handleMouseWheel.bind(this);this.domEvents.push(this.renderer.listen(o,"DOMMouseScroll",t),this.renderer.listen(o,"mousewheel",t),this.renderer.listen(o,"keydown",this.handleKeydown.bind(this)),this.renderer.listen(o,"paste",this.handlePaste.bind(this)),this.renderer.listen(o,"input",this.handleInput.bind(this)))}handleMouseWheel(o){this.disabled||this.readonly||!this.isActive||((o=window.event||o).shiftKey?this.switchDateSegment((o.wheelDelta||-o.detail)>0?-1:1):this.modifyDateSegmentValue((o.wheelDelta||-o.detail)>0?1:-1),o.returnValue=!1,o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation())}handlePaste(){this.paste=!0}handleKeydown(o){if(!(this.disabled||this.readonly||o.altKey||o.ctrlKey||o.metaKey)){if(o.keyCode===Ie.Tab)return void(this.switchDateSegment(o.shiftKey?-1:1)&&o.preventDefault());if(o.keyCode===Ie.Backspace)return void(this.backspace=!0);switch(o.keyCode){case Ie.ArrowDown:this.modifyDateSegmentValue(-1);break;case Ie.ArrowUp:this.modifyDateSegmentValue(1);break;case Ie.ArrowRight:this.switchDateSegment(1);break;case Ie.ArrowLeft:this.switchDateSegment(-1);break;case Ie.Home:this.selectNearestSegment(0);break;case Ie.End:this.selectNearestSegment(this.inputValue.length);break;default:return}o.preventDefault()}}handleInput(){if(this.disabled||this.readonly)return;if(this.paste)return this.updateOnPaste(),void(this.paste=!1);const o=((i,o,t,r)=>{const s=r+i.length-t.length,l=i[s],u=i.substring(0,r+i.length-t.length),p=t.substring(0,r),y=[];if(u===p&&r>0)return y.push([o[r-1],p[r-1]]),y;if(0===u.indexOf(p)&&(0===p.length||o[p.length-1]!==o[p.length])){let A="";1===p.length&&y.push([o[0],p[0]]);for(let w=p.length;w<u.length;w++)o[w]!==A&&"_"!==o[w]&&(A=o[w],y.push([A,""]));return y}if(0===p.indexOf(u)||"_"===o[r-1]){let A=o[0];for(let w=Math.max(0,u.length-1);w<o.length;w++)if("_"!==o[w]){A=o[w];break}return[[A,p[r-1]]]}return" "===p[p.length-1]||p[p.length-1]===l&&"_"===o[s]?[[o[r-1],"_"]]:[[o[r-1],p[r-1]]]})(this.currentValue,this.currentFormat,this.inputValue,this.caret()[0]),t=1===o.length&&"_"===o[0][1];let r=!1;if(!t){let s;for(let u=0;u<o.length;u++)s=this.kendoDate.parsePart(o[u][0],o[u][1],this.resetSegmentValue),r=s.switchToNext;const l=this.kendoDate.getDateObject();this.value&&l&&!this.formatSections.date&&(this.kendoDate=this.getKendoDate(qp(this.value,l)))}this.resetSegmentValue=!1,this.putDateInRange(),this.updateElementValue(this.isActive),this.triggerChange(),this.updateIncompleteValidationStatus(),o.length&&"_"!==o[0][0]&&this.selectDateSegment(o[0][0]),(r||t)&&this.switchDateSegment(1),this.backspace&&this.switchDateSegment(-1),this.backspace=!1}emitFocus(o){this.onFocus.emit(),this.pickerService&&this.pickerService.onFocus.emit(o)}emitBlur(o){this.onBlur.emit(),this.pickerService&&this.pickerService.onBlur.emit(o)}updateIncompleteValidationStatus(){const o=this.isDateIncomplete;this.isDateIncomplete=this.kendoDate.hasValue()&&null===this.value,o!==this.isDateIncomplete&&this.incompleteDateValidation&&(yn(this.ngControl)&&!yn(this.pickerService)?(this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())):yn(this.pickerService)&&this.pickerService.dateCompletenessChange.emit())}};Kn.\u0275fac=function(o){return new(o||Kn)(n.Y36(n.sBO),n.Y36(_i.aJ),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.zs3),n.Y36(Te),n.Y36(Ol,8))},Kn.\u0275cmp=n.Xpm({type:Kn,selectors:[["kendo-dateinput"]],viewQuery:function(o,t){if(1&o&&(n.Gf(P3e,7),n.Gf(O3e,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.dateInput=r.first),n.iGM(r=n.CRH())&&(t.wrap=r.first)}},hostVars:6,hostBindings:function(o,t){2&o&&n.ekj("k-widget",t.wrapperClass)("k-dateinput",t.wrapperClass)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",title:"title",tabindex:"tabindex",role:"role",ariaReadOnly:"ariaReadOnly",format:"format",placeholder:"placeholder",steps:"steps",rangeValidation:"rangeValidation",autoCorrect:"autoCorrect",incompleteDateValidation:"incompleteDateValidation",twoDigitYearMax:"twoDigitYearMax",spinners:"spinners",isPopupOpen:"isPopupOpen",hasPopup:"hasPopup",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder",max:"max",min:"min"},outputs:{valueChange:"valueChange",valueUpdate:"valueUpdate",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-dateinput"],features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>UT),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>UT),multi:!0},{provide:gn,useValue:"kendo.dateinput"},{provide:Mo,useExisting:(0,n.Gpc)(()=>UT)},Te]),n.TTD],decls:6,vars:21,consts:function(){let i,o;return i="Aumentar valor",o="Diminuir valor",[["kendoDateInputLocalizedMessages","","increment",i,"decrement",o],[1,"k-dateinput-wrap"],["wrap",""],["autocomplete","off","autocorrect","off","autocapitalize","off","spellcheck","false",1,"k-input",3,"id","title","tabindex","disabled","readonly","placeholder","kendoEventsOutsideAngular","scope"],["dateInput",""],["class","k-select",3,"mousedown",4,"ngIf"],[1,"k-select",3,"mousedown"],[1,"k-link","k-link-increase",3,"title","mousedown","mouseleave","click"],[1,"k-icon","k-i-arrow-n"],[1,"k-link","k-link-decrease",3,"title","click","mousedown","mouseleave"],[1,"k-icon","k-i-arrow-s"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2),n._UZ(3,"input",3,4),n.YNc(5,N3e,5,8,"span",5),n.qZA()),2&o&&(n.xp6(3),n.Q6J("id",t.focusableId)("title",t.title)("tabindex",t.tabindex)("disabled",t.disabled)("readonly",t.readonly)("placeholder",t.placeholder)("kendoEventsOutsideAngular",n.Hh0(13,L3e,t.handleClick,t.handleFocus,t.handleMousedown,t.handleMousedown,t.handleDragAndDrop,t.handleDragAndDrop,t.handleBlur))("scope",t),n.uIk("role",t.role)("aria-readonly",t.ariaReadOnly)("aria-expanded",t.isPopupOpen)("aria-haspopup",t.hasPopup),n.xp6(2),n.Q6J("ngIf",t.spinners))},dependencies:function(){return[Ge,_a,y0]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",String)],Kn.prototype,"focusableId",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"readonly",void 0),K([(0,n.IIB)(),Z("design:type",String)],Kn.prototype,"title",void 0),K([(0,n.IIB)(),Z("design:type",Number)],Kn.prototype,"tabindex",void 0),K([(0,n.IIB)(),Z("design:type",String)],Kn.prototype,"role",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"ariaReadOnly",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],Kn.prototype,"tabIndex",null),K([(0,n.IIB)(),Z("design:type",Object)],Kn.prototype,"format",void 0),K([(0,n.IIB)(),Z("design:type",Object)],Kn.prototype,"formatPlaceholder",void 0),K([(0,n.IIB)(),Z("design:type",String)],Kn.prototype,"placeholder",void 0),K([(0,n.IIB)(),Z("design:type",Object)],Kn.prototype,"steps",void 0),K([(0,n.IIB)(),Z("design:type",Date)],Kn.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Date)],Kn.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"autoCorrect",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"incompleteDateValidation",void 0),K([(0,n.IIB)(),Z("design:type",Number)],Kn.prototype,"twoDigitYearMax",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],Kn.prototype,"value",null),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"spinners",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"isPopupOpen",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Kn.prototype,"hasPopup",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],Kn.prototype,"valueChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],Kn.prototype,"valueUpdate",void 0),K([(0,n.r_U)("focus"),Z("design:type",n.vpe)],Kn.prototype,"onFocus",void 0),K([(0,n.r_U)("blur"),Z("design:type",n.vpe)],Kn.prototype,"onBlur",void 0),K([(0,n.i9L)("dateInput",{static:!0}),Z("design:type",n.SBq)],Kn.prototype,"dateInput",void 0),K([(0,n.i9L)("wrap",{static:!1}),Z("design:type",n.SBq)],Kn.prototype,"wrap",void 0),K([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-dateinput"),Z("design:type",Boolean),Z("design:paramtypes",[])],Kn.prototype,"wrapperClass",null),K([(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],Kn.prototype,"disabledClass",null),Kn=UT=K([Od(7,(0,n.FiY)()),Z("design:paramtypes",[n.sBO,_i.aJ,n.Qsj,n.SBq,n.R0b,n.zs3,Te,Ol])],Kn);class u6{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}const Pg=new n.OlP("dateinputs-touch-enabled"),lW=i=>o=>i&&o.value&&i(o.value)?{disabledDate:!0}:null;var YT;let dn=YT=class{constructor(o,t,r,s,l,u,p,y,A,w){this.zone=o,this.localization=t,this.cdr=r,this.popupService=s,this.element=l,this.renderer=u,this.injector=p,this.pickerService=y,this.disabledDatesService=A,this.touchEnabled=w,this.focusableId=`k-${to()}`,this.activeView=Qt[Qt.month],this.bottomView=Qt[Qt.month],this.topView=Qt[Qt.century],this.calendarType="infinite",this.animateCalendarNavigation=!1,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.navigation=!0,this.min=St(Hu),this.max=St($u),this.incompleteDateValidation=!1,this.focusedDate=null,this.format="d",this.twoDigitYearMax=68,this.placeholder=null,this.tabindex=0,this.title="",this.rangeValidation=!0,this.disabledDatesValidation=!0,this.weekNumber=!1,this.valueChange=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.open=new n.vpe,this.close=new n.vpe,this.wrapperClasses=!0,this.popupUID=to(),this._popupSettings={animate:!0},this._show=!1,this._value=null,this._active=!1,this.onControlChange=kn,this.onControlTouched=kn,this.onValidatorChange=kn,this.minValidateFn=kn,this.maxValidateFn=kn,this.disabledDatesValidateFn=kn,this.incompleteValidator=kn,this.resolvedPromise=Promise.resolve(null),this.domEvents=[],(0,mi.s)(Ry),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set cellTemplateRef(o){this.cellTemplate=o}set monthCellTemplateRef(o){this.monthCellTemplate=o}set yearCellTemplateRef(o){this.yearCellTemplate=o}set decadeCellTemplateRef(o){this.decadeCellTemplate=o}set centuryCellTemplateRef(o){this.centuryCellTemplate=o}set weekNumberTemplateRef(o){this.weekNumberTemplate=o}set headerTitleTemplateRef(o){this.headerTitleTemplate=o}set navigationItemTemplateRef(o){this.navigationItemTemplate=o}set popupSettings(o){this._popupSettings=Object.assign({},{animate:!0},o)}get popupSettings(){return this._popupSettings}set value(o){this.verifyValue(o),this._value=St(o)}get value(){return this._value}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set disabledDates(o){this._disabledDates=o,this.disabledDatesService.initialize(o)}get disabledDates(){return this._disabledDates}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(o){if(this._active=o,!this.wrapper)return;const t=this.wrapper.nativeElement;o?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}get show(){return this._show}set show(o){o&&(this.disabled||this.readonly)||(o||this._show&&Ut(this.close)?this.zone.run(()=>{this.togglePopup(o)}):this.togglePopup(o))}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(jo,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(o){this.verifySettings(),(o.min||o.max||o.rangeValidation||o.disabledDatesValidation||o.disabledDates||o.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?BT(this.min):kn,this.maxValidateFn=this.rangeValidation?HT(this.max):kn,this.disabledDatesValidateFn=this.disabledDatesValidation?lW(this.disabledDatesService.isDateDisabled):kn,this.incompleteValidator=this.incompleteDateValidation?d6():kn,this.onValidatorChange())}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(o=>o()),this.pickerSubscriptions.unsubscribe()}get isOpen(){return this.show}writeValue(o){this.verifyValue(o),this.value=St(o),this.cdr.markForCheck(),!o&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(o))}registerOnChange(o){this.onControlChange=o}registerOnTouched(o){this.onControlTouched=o}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}validate(o){return this.minValidateFn(o)||this.maxValidateFn(o)||this.disabledDatesValidateFn(o)||this.incompleteValidator(o,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(o){this.onValidatorChange=o}focus(){this.input.focus()}blur(){(this.calendar||this.input).blur()}toggle(o){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===o?!this.show:o)})}handleIconClick(o){this.disabled||this.readonly||(o.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show,this.cdr.markForCheck())}handleMousedown(o){o.preventDefault()}handleChange(o){this.cdr.markForCheck(),this.focusInput(),this.value=o,this.show=!1,this.onControlChange(St(o)),this.valueChange.emit(St(o))}handleInputChange(o){this.handleChange(this.input.formatSections.time?o:this.mergeTime(o))}get popupClasses(){return["k-calendar-container","k-group","k-reset"].concat(this.popupSettings.popupClass||[])}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}mergeTime(o){return this.value&&o?qp(o,this.value):o}handleKeydown(o){const{altKey:t,keyCode:r}=o;r===Ie.Escape&&(this.show=!1),t&&(r===Ie.ArrowDown&&!this.show&&(this.show=!0),r===Ie.ArrowUp&&(this.show=!1)),r===Ie.Tab&&this.show&&this.calendar.isActive&&(this.input.focus(),this.show=!1)}togglePopup(o){const t=new u6;!this._show&&o?this.open.emit(t):this._show&&!o&&this.close.emit(t),!t.isDefaultPrevented()&&(this._toggle(o),this.toggleFocus())}_toggle(o){if(o!==this._show)if(this._show=o,o){const t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:t},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:t},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.subscription=this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null,this.subscription.unsubscribe()}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.calendar||this.cdr.detectChanges(),this.calendar&&this.calendar.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifySettings(){if((0,n.X6Q)()&&!QR(this.min,this.max))throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max.")}verifyValue(o){if((0,n.X6Q)()&&o&&!(o instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json for possible resolution.")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),e6()&&(this.windowBlurSubscription=jn(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleFocus(){this.isActive||(this.isActive=!0,Ut(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleBlur(o){const t=o&&JR(o);t&&(this.input.containsElement(t)||this.calendar&&this.calendar.containsElement(t))||(Ut(this.onBlur)||this.show&&Ut(this.close)||JE(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.cdr.detectChanges(),this.onControlTouched(),this.onBlur.emit()}handleSameSelection(){this.show&&(this.focusInput(),this.show=!1)}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};dn.\u0275fac=function(o){return new(o||dn)(n.Y36(n.R0b),n.Y36(Te),n.Y36(n.sBO),n.Y36(Do),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.zs3),n.Y36(Ol),n.Y36(ll),n.Y36(Pg,8))},dn.\u0275cmp=n.Xpm({type:dn,selectors:[["kendo-datepicker"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,As,5),n.Suo(r,xs,5),n.Suo(r,Ts,5),n.Suo(r,Ss,5),n.Suo(r,ws,5),n.Suo(r,Ms,5),n.Suo(r,Ds,5),n.Suo(r,Qp,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.cellTemplate=s.first),n.iGM(s=n.CRH())&&(t.monthCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.yearCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.decadeCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.centuryCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.weekNumberTemplate=s.first),n.iGM(s=n.CRH())&&(t.headerTitleTemplate=s.first),n.iGM(s=n.CRH())&&(t.navigationItemTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(qE,7,n.s_b),n.Gf(zR,7),n.Gf(GR,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first)}},hostVars:6,hostBindings:function(o,t){2&o&&n.ekj("k-widget",t.wrapperClasses)("k-datepicker",t.wrapperClasses)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",activeView:"activeView",bottomView:"bottomView",topView:"topView",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",navigation:"navigation",min:"min",max:"max",incompleteDateValidation:"incompleteDateValidation",focusedDate:"focusedDate",format:"format",twoDigitYearMax:"twoDigitYearMax",placeholder:"placeholder",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",weekNumber:"weekNumber",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],navigationItemTemplateRef:["navigationItemTemplate","navigationItemTemplateRef"],popupSettings:"popupSettings",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-datepicker"],features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>YT),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>YT),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>YT)},Te,Ol,ll,{provide:gn,useValue:"kendo.datepicker"}]),n.TTD],decls:11,vars:26,consts:function(){let i,o,t,r;return i="Today",o="Toggle calendar",t="Navigate to previous view",r="Navigate to next view",[["kendoDatePickerLocalizedMessages","","today",i,"toggle",o,"prevButtonTitle",t,"nextButtonTitle",r],[1,"k-picker-wrap"],["wrapper",""],[3,"role","focusableId","hasPopup","isPopupOpen","disabled","readonly","ariaReadOnly","tabindex","title","format","twoDigitYearMax","formatPlaceholder","placeholder","min","max","incompleteDateValidation","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-calendar"],["container",""],["popupTemplate",""],[3,"type","min","max","navigation","animateNavigation","activeView","bottomView","topView","weekNumber","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","navigationItemTemplate","focusedDate","value","kendoEventsOutsideAngular","scope","disabledDates","valueChange"],["calendar",""],[3,"today","prevButtonTitle","nextButtonTitle"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2)(3,"kendo-dateinput",3,4),n.NdJ("valueChange",function(s){return t.handleInputChange(s)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA()(),n.GkF(7,null,7),n.YNc(9,F3e,4,27,"ng-template",null,8,n.W1O)),2&o&&(n.xp6(1),n.ekj("k-state-disabled",t.disabled),n.xp6(2),n.Q6J("role",t.inputRole)("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.show)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("ariaReadOnly",t.readonly)("tabindex",t.tabindex)("title",t.title)("format",t.format)("twoDigitYearMax",t.twoDigitYearMax)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.min)("max",t.max)("incompleteDateValidation",t.incompleteDateValidation)("value",t.value),n.xp6(2),n.Q6J("kendoEventsOutsideAngular",n.WLB(23,$Q,t.handleIconClick,t.handleMousedown))("scope",t),n.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")))},dependencies:function(){return[Kn,$T,Cm,_a,C0]},encapsulation:2,changeDetection:0}),K([(0,n.i9L)("container",{read:n.s_b,static:!0}),Z("design:type",n.s_b)],dn.prototype,"container",void 0),K([(0,n.i9L)("popupTemplate",{static:!0}),Z("design:type",n.Rgc)],dn.prototype,"popupTemplate",void 0),K([(0,n.i9L)("wrapper",{static:!1}),Z("design:type",n.SBq)],dn.prototype,"wrapper",void 0),K([(0,n.aQ5)(As,{static:!1}),Z("design:type",As)],dn.prototype,"cellTemplate",void 0),K([(0,n.IIB)("cellTemplate"),Z("design:type",As),Z("design:paramtypes",[As])],dn.prototype,"cellTemplateRef",null),K([(0,n.aQ5)(xs,{static:!1}),Z("design:type",xs)],dn.prototype,"monthCellTemplate",void 0),K([(0,n.IIB)("monthCellTemplate"),Z("design:type",xs),Z("design:paramtypes",[xs])],dn.prototype,"monthCellTemplateRef",null),K([(0,n.aQ5)(Ts,{static:!1}),Z("design:type",Ts)],dn.prototype,"yearCellTemplate",void 0),K([(0,n.IIB)("yearCellTemplate"),Z("design:type",Ts),Z("design:paramtypes",[Ts])],dn.prototype,"yearCellTemplateRef",null),K([(0,n.aQ5)(Ss,{static:!1}),Z("design:type",Ss)],dn.prototype,"decadeCellTemplate",void 0),K([(0,n.IIB)("decadeCellTemplate"),Z("design:type",Ss),Z("design:paramtypes",[Ss])],dn.prototype,"decadeCellTemplateRef",null),K([(0,n.aQ5)(ws,{static:!1}),Z("design:type",ws)],dn.prototype,"centuryCellTemplate",void 0),K([(0,n.IIB)("centuryCellTemplate"),Z("design:type",ws),Z("design:paramtypes",[ws])],dn.prototype,"centuryCellTemplateRef",null),K([(0,n.aQ5)(Ms,{static:!1}),Z("design:type",Ms)],dn.prototype,"weekNumberTemplate",void 0),K([(0,n.IIB)("weekNumberTemplate"),Z("design:type",Ms),Z("design:paramtypes",[Ms])],dn.prototype,"weekNumberTemplateRef",null),K([(0,n.aQ5)(Ds,{static:!1}),Z("design:type",Ds)],dn.prototype,"headerTitleTemplate",void 0),K([(0,n.IIB)("headerTitleTemplate"),Z("design:type",Ds),Z("design:paramtypes",[Ds])],dn.prototype,"headerTitleTemplateRef",null),K([(0,n.aQ5)(Qp,{static:!1}),Z("design:type",Qp)],dn.prototype,"navigationItemTemplate",void 0),K([(0,n.IIB)("navigationItemTemplate"),Z("design:type",Qp),Z("design:paramtypes",[Qp])],dn.prototype,"navigationItemTemplateRef",null),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"focusableId",void 0),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"bottomView",void 0),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"topView",void 0),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"calendarType",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"animateCalendarNavigation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"readonly",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"readOnlyInput",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],dn.prototype,"popupSettings",null),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"navigation",void 0),K([(0,n.IIB)(),Z("design:type",Date)],dn.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],dn.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"incompleteDateValidation",void 0),K([(0,n.IIB)(),Z("design:type",Date)],dn.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],dn.prototype,"value",null),K([(0,n.IIB)(),Z("design:type",Object)],dn.prototype,"format",void 0),K([(0,n.IIB)(),Z("design:type",Number)],dn.prototype,"twoDigitYearMax",void 0),K([(0,n.IIB)(),Z("design:type",Object)],dn.prototype,"formatPlaceholder",void 0),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"placeholder",void 0),K([(0,n.IIB)(),Z("design:type",Number)],dn.prototype,"tabindex",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],dn.prototype,"tabIndex",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],dn.prototype,"disabledDates",null),K([(0,n.IIB)(),Z("design:type",String)],dn.prototype,"title",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"disabledDatesValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],dn.prototype,"weekNumber",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],dn.prototype,"valueChange",void 0),K([(0,n.r_U)("focus"),Z("design:type",n.vpe)],dn.prototype,"onFocus",void 0),K([(0,n.r_U)("blur"),Z("design:type",n.vpe)],dn.prototype,"onBlur",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],dn.prototype,"open",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],dn.prototype,"close",void 0),K([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-datepicker"),Z("design:type",Boolean)],dn.prototype,"wrapperClasses",void 0),K([(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],dn.prototype,"disabledClass",null),dn=YT=K([Od(9,(0,n.FiY)()),Od(9,(0,n.tBr)(Pg)),Z("design:paramtypes",[n.R0b,Te,n.sBO,Do,n.SBq,n.Qsj,n.zs3,Ol,ll,Boolean])],dn);var jT;const gIe=new RegExp("hour|minute|second|millisecond|dayperiod|literal");let ji=jT=class{constructor(o,t,r,s,l,u,p,y,A,w){this.zone=o,this.localization=t,this.cdr=r,this.popupService=s,this.element=l,this.renderer=u,this.injector=p,this.pickerService=y,this.intl=A,this.touchEnabled=w,this.focusableId=`k-${to()}`,this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.format="t",this.placeholder=null,this.incompleteDateValidation=!1,this.cancelButton=!0,this.nowButton=!0,this.tabindex=0,this.title="",this.rangeValidation=!0,this.valueChange=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.open=new n.vpe,this.close=new n.vpe,this.wrapperClasses=!0,this.popupUID=to(),this.onControlChange=kn,this.onControlTouched=kn,this.onValidatorChange=kn,this.resolvedPromise=Promise.resolve(null),this.timeRangeValidateFn=kn,this.incompleteValidator=kn,this._min=St(Fy),this._max=St(g0),this._popupSettings={animate:!0},this._show=!1,this._steps={},this._value=null,this._active=!1,this.domEvents=[],(0,mi.s)(Ry),this.pickerSubscriptions=this.pickerService.onFocus.subscribe(this.handleFocus.bind(this)),this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)))}set min(o){this._min=St(o||Fy)}get min(){return this._min}set max(o){this._max=St(o||g0)}get max(){return this._max}set steps(o){this._steps=o||{}}get steps(){return this._steps}set popupSettings(o){this._popupSettings=Object.assign({},{animate:!0},o)}get popupSettings(){return this._popupSettings}set tabIndex(o){this.tabindex=o}get tabIndex(){return this.tabindex}set value(o){this.verifyValue(o),this._value=St(o)}get value(){return this._value}get disabledClass(){return this.disabled}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get isActive(){return this._active}set isActive(o){if(this._active=o,!this.wrapper)return;const t=this.wrapper.nativeElement;o?this.renderer.addClass(t,"k-state-focused"):this.renderer.removeClass(t,"k-state-focused")}get show(){return this._show}set show(o){o&&(this.disabled||this.readonly)||(o||this._show&&Ut(this.close)?this.zone.run(()=>{this.togglePopup(o)}):this.togglePopup(o))}get input(){return this.pickerService.input}get timeSelector(){return this.pickerService.timeSelector}isEmpty(){return!this.value&&this.input.isEmpty()}ngOnInit(){this.localizationChangeSubscription=this.localization.changes.subscribe(()=>this.cdr.markForCheck()),this.control=this.injector.get(jo,null),this.element&&(this.renderer.removeAttribute(this.element.nativeElement,"tabindex"),this.zone.runOutsideAngular(()=>{this.bindEvents()}))}ngOnChanges(o){(o.min||o.max||o.rangeValidation||o.incompleteDateValidation)&&(this.timeRangeValidateFn=this.rangeValidation?((i,o)=>t=>{if(!i||!o||!t.value)return null;const r={timeRangeError:{maxValue:o,minValue:i,value:t.value}};return VQ(t.value,i,o)?null:r})(this.min,this.max):kn,this.incompleteValidator=this.incompleteDateValidation?d6():kn,this.onValidatorChange()),o.format&&this.verifyFormat()}ngOnDestroy(){this.isActive=!1,this.show=!1,this.localizationChangeSubscription&&this.localizationChangeSubscription.unsubscribe(),this.windowBlurSubscription&&this.windowBlurSubscription.unsubscribe(),this.domEvents.forEach(o=>o()),this.pickerSubscriptions.unsubscribe()}handleKeydown(o){const{altKey:t,keyCode:r}=o;r!==Ie.Escape?t&&(r===Ie.ArrowUp&&(this.show=!1),r===Ie.ArrowDown&&!this.show&&(this.show=!0)):this.show=!1}writeValue(o){this.verifyValue(o),this.value=St(o),this.cdr.markForCheck(),!o&&this.input&&(this.input.placeholder=this.placeholder,this.input.writeValue(o))}registerOnChange(o){this.onControlChange=o}registerOnTouched(o){this.onControlTouched=o}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}validate(o){return this.timeRangeValidateFn(o)||this.incompleteValidator(o,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(o){this.onValidatorChange=o}focus(){this.input.focus()}blur(){(this.timeSelector||this.input).blur()}toggle(o){this.disabled||this.readonly||this.resolvedPromise.then(()=>{this._toggle(void 0===o?!this.show:o)})}get isOpen(){return this.show}get appendTo(){const{appendTo:o}=this.popupSettings;if(o&&"root"!==o)return"component"===o?this.container:o}handleChange(o){if(er(this.value,o))return this.focusInput(),void(this.show=!1);this.value=St(o),this.zone.run(()=>{this.focusInput(),this.show=!1,this.onControlChange(St(o)),this.valueChange.emit(St(o))})}handleReject(){this.show=!1}handleInputChange(o){const t=this.input.formatSections.date?o:this.mergeTime(o);this.handleChange(t)}handleMousedown(o){o.preventDefault()}handleIconClick(o){this.disabled||this.readonly||(o.preventDefault(),this.focusInput(),this.handleFocus(),this.show=!this.show)}get popupClasses(){return["k-group","k-reset"].concat(this.popupSettings.popupClass||[])}normalizeTime(o){return qp(Gp,o)}mergeTime(o){return this.value&&o?qp(this.value,o):o}togglePopup(o){const t=new u6;!this._show&&o?this.open.emit(t):this._show&&!o&&this.close.emit(t),!t.isDefaultPrevented()&&(this._toggle(o),this.toggleFocus())}_toggle(o){if(o!==this.isOpen)if(this._show=o,this.cdr.markForCheck(),o){const t=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,anchorAlign:{vertical:"bottom",horizontal:t},animate:this.popupSettings.animate,appendTo:this.appendTo,content:this.popupTemplate,popupAlign:{vertical:"top",horizontal:t},popupClass:this.popupClasses,positionMode:"absolute"}),this.popupRef.popupElement.setAttribute("id",this.popupUID),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.show=!1)}else this.popupRef.close(),this.popupRef=null}focusInput(){this.touchEnabled||this.input.focus()}toggleFocus(){!this.isActive||(this.show?(this.timeSelector||this.cdr.detectChanges(),this.isActive&&this.timeSelector.focus()):this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}verifyValue(o){if((0,n.X6Q)()&&o&&!(o instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json for possible resolution.")}verifyFormat(){if((0,n.X6Q)()&&this.intl.splitDateFormat(this.format).some(t=>!gIe.test(t.type)))throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md")}bindEvents(){this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this))),e6()&&(this.windowBlurSubscription=jn(window,"blur").subscribe(this.handleWindowBlur.bind(this)))}handleWindowBlur(){!this.isOpen||(this.show=!1)}handleFocus(){this.isActive||(this.isActive=!0,Ut(this.onFocus)&&this.zone.run(()=>{this.onFocus.emit()}))}handleBlur(o){const t=o&&JR(o);t&&(this.input.containsElement(t)||this.timeSelector&&this.timeSelector.containsElement(t))||(Ut(this.onBlur)||this.show&&Ut(this.close)||JE(this.control)?this.zone.run(()=>{this.blurComponent(),this.cdr.markForCheck()}):this.blurComponent())}blurComponent(){this.isActive=!1,this.show=!1,this.onControlTouched(),this.onBlur.emit()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.zone.run(()=>this.onValidatorChange())}};var ZT;ji.\u0275fac=function(o){return new(o||ji)(n.Y36(n.R0b),n.Y36(Te),n.Y36(n.sBO),n.Y36(Do),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n.zs3),n.Y36(Ol),n.Y36(_i.aJ),n.Y36(Pg,8))},ji.\u0275cmp=n.Xpm({type:ji,selectors:[["kendo-timepicker"]],viewQuery:function(o,t){if(1&o&&(n.Gf(qE,5,n.s_b),n.Gf(zR,5),n.Gf(GR,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first),n.iGM(r=n.CRH())&&(t.wrapper=r.first)}},hostVars:6,hostBindings:function(o,t){2&o&&n.ekj("k-widget",t.wrapperClasses)("k-timepicker",t.wrapperClasses)("k-state-disabled",t.disabledClass)},inputs:{focusableId:"focusableId",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",format:"format",placeholder:"placeholder",incompleteDateValidation:"incompleteDateValidation",cancelButton:"cancelButton",nowButton:"nowButton",tabindex:"tabindex",title:"title",rangeValidation:"rangeValidation",min:"min",max:"max",steps:"steps",popupSettings:"popupSettings",tabIndex:"tabIndex",value:"value",formatPlaceholder:"formatPlaceholder"},outputs:{valueChange:"valueChange",onFocus:"focus",onBlur:"blur",open:"open",close:"close"},exportAs:["kendo-timepicker"],features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>jT),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>jT),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>jT)},Te,{provide:gn,useValue:"kendo.timepicker"},Ol]),n.TTD],decls:11,vars:26,consts:function(){let i,o,t,r,s,l,u;return i="P\xF4r",o="P\xF4r",t="Cancelar",r="Cancelar",s="Agora",l="Agora",u="Lista de altern\xE2ncia",[["kendoTimePickerLocalizedMessages","","accept",i,"acceptLabel",o,"cancel",t,"cancelLabel",r,"now",s,"nowLabel",l,"toggle",u],[1,"k-picker-wrap"],["wrapper",""],[3,"focusableId","hasPopup","isPopupOpen","disabled","readonly","role","ariaReadOnly","format","formatPlaceholder","placeholder","min","max","incompleteDateValidation","steps","tabindex","title","value","valueChange"],["input",""],["role","button",1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-icon","k-i-clock"],["popupTemplate",""],["container",""],[3,"cancelButton","nowButton","format","min","max","steps","value","kendoEventsOutsideAngular","scope","valueChange","valueReject"],["timeSelector",""],[3,"acceptLabel","accept","cancelLabel","cancel","nowLabel","now"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2)(3,"kendo-dateinput",3,4),n.NdJ("valueChange",function(s){return t.handleInputChange(s)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n.YNc(7,H3e,3,18,"ng-template",null,7,n.W1O),n.qZA(),n.GkF(9,null,8)),2&o&&(n.xp6(1),n.ekj("k-state-disabled",t.disabled),n.xp6(2),n.Q6J("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.show)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("role",t.inputRole)("ariaReadOnly",t.readonly)("format",t.format)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("min",t.normalizeTime(t.min))("max",t.normalizeTime(t.max))("incompleteDateValidation",t.incompleteDateValidation)("steps",t.steps)("tabindex",t.show?-1:t.tabindex)("title",t.title)("value",t.value),n.xp6(2),n.Q6J("kendoEventsOutsideAngular",n.WLB(23,$Q,t.handleIconClick,t.handleMousedown))("scope",t),n.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")))},dependencies:function(){return[Kn,_a,xm,Og,LF]},encapsulation:2,changeDetection:0}),K([(0,n.i9L)("container",{read:n.s_b,static:!1}),Z("design:type",n.s_b)],ji.prototype,"container",void 0),K([(0,n.i9L)("popupTemplate",{static:!1}),Z("design:type",n.Rgc)],ji.prototype,"popupTemplate",void 0),K([(0,n.i9L)("wrapper",{static:!1}),Z("design:type",n.SBq)],ji.prototype,"wrapper",void 0),K([(0,n.IIB)(),Z("design:type",String)],ji.prototype,"focusableId",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"readonly",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"readOnlyInput",void 0),K([(0,n.IIB)(),Z("design:type",String)],ji.prototype,"format",void 0),K([(0,n.IIB)(),Z("design:type",Object)],ji.prototype,"formatPlaceholder",void 0),K([(0,n.IIB)(),Z("design:type",String)],ji.prototype,"placeholder",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],ji.prototype,"min",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],ji.prototype,"max",null),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"incompleteDateValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"cancelButton",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"nowButton",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],ji.prototype,"steps",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],ji.prototype,"popupSettings",null),K([(0,n.IIB)(),Z("design:type",Number)],ji.prototype,"tabindex",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],ji.prototype,"tabIndex",null),K([(0,n.IIB)(),Z("design:type",String)],ji.prototype,"title",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],ji.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],ji.prototype,"value",null),K([(0,n.r_U)(),Z("design:type",n.vpe)],ji.prototype,"valueChange",void 0),K([(0,n.r_U)("focus"),Z("design:type",n.vpe)],ji.prototype,"onFocus",void 0),K([(0,n.r_U)("blur"),Z("design:type",n.vpe)],ji.prototype,"onBlur",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],ji.prototype,"open",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],ji.prototype,"close",void 0),K([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-timepicker"),Z("design:type",Boolean)],ji.prototype,"wrapperClasses",void 0),K([(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],ji.prototype,"disabledClass",null),ji=jT=K([Od(9,(0,n.FiY)()),Od(9,(0,n.tBr)(Pg)),Z("design:paramtypes",[n.R0b,Te,n.sBO,Do,n.SBq,n.Qsj,n.zs3,Ol,_i.aJ,Boolean])],ji);const cW=new RegExp("hour|minute|second|dayperiod|literal"),_F="date";let Xn=ZT=class{constructor(o,t,r,s,l,u,p,y,A,w){this.popupService=o,this.intl=t,this.cdr=r,this.pickerService=s,this.ngZone=l,this.host=u,this.touchEnabled=p,this.localization=y,this.disabledDatesService=A,this.renderer=w,this.hostClasses=!0,this.twoDigitYearMax=68,this.focusableId=`k-${to()}`,this.title="",this.disabled=!1,this.readonly=!1,this.readOnlyInput=!1,this.cancelButton=!0,this.steps={},this.calendarType="infinite",this.animateCalendarNavigation=!1,this.weekNumber=!1,this.rangeValidation=!0,this.disabledDatesValidation=!0,this.incompleteDateValidation=!1,this.valueChange=new n.vpe,this.open=new n.vpe,this.close=new n.vpe,this.onFocus=new n.vpe,this.onBlur=new n.vpe,this.activeTab=_F,this.timeSelectorFormat="t",this.timeSelectorMin=St(Fy),this.timeSelectorMax=St(g0),this.calendarValue=null,this.calendarMin=St(Hu),this.calendarMax=JQ($u),this._popupSettings={animate:!0},this._value=null,this._format="g",this._tabindex=0,this._defaultTab=_F,this._min=XR(Hu,Fy),this._max=XR($u,g0),this._isActive=!1,this.onControlTouched=kn,this.onControlChange=kn,this.onValidatorChange=kn,this.minValidateFn=kn,this.maxValidateFn=kn,this.disabledDatesValidateFn=kn,this.incompleteValidator=kn,this.subscriptions=new bn.w,(0,mi.s)(Ry)}get input(){return this.pickerService.input}get calendar(){return this.pickerService.calendar}get timeSelector(){return this.pickerService.timeSelector}set value(o){this.verifyValue(o),this._value=St(o),this.setCalendarValue(o),this.cdr.markForCheck()}get value(){return this._value}set format(o){this._format=o;const t=this.getDisplayFormat(o);this.timeSelectorFormat=this.getTimeSelectorFormat(t)}get format(){return this._format}set tabindex(o){const t=Number(o);this._tabindex=isNaN(t)?0:t}get tabindex(){return this.disabled?-1:this._tabindex}set disabledDates(o){this._disabledDates=o,this.disabledDatesService.initialize(o)}get disabledDates(){return this._disabledDates}set popupSettings(o){this._popupSettings=Object.assign({},{animate:!0},o)}get popupSettings(){return this._popupSettings}set min(o){!yn(o)||(this._min=St(o),this.calendarMin=Cr(o))}get min(){return this._min}set max(o){!yn(o)||(this._max=St(o),this.calendarMax=JQ(o))}get max(){return this._max}get isOpen(){return yn(this.popupRef)}get isActive(){return this._isActive}set isActive(o){o?this.renderer.addClass(this.wrapper.nativeElement,"k-state-focused"):this.renderer.removeClass(this.wrapper.nativeElement,"k-state-focused"),this._isActive=o}set defaultTab(o){this._defaultTab=o||_F,this.activeTab=this.defaultTab}get defaultTab(){return this._defaultTab}get tabSwitchTransition(){return this.isOpen?null:"none"}get disableCalendar(){return"date"!==this.activeTab&&!this.calendar.isActive}get inputRole(){return this.readOnlyInput?"listbox":"spinbutton"}get disableTimeSelector(){return"time"!==this.activeTab&&!this.timeSelector.isActive}get activeTabComponent(){if(this.isOpen)return yn(this.calendar)||yn(this.timeSelector)||this.cdr.detectChanges(),"date"===this.activeTab?this.calendar:this.timeSelector}get appendTo(){const{appendTo:o}=this.popupSettings;if(yn(o)&&"root"!==o)return"component"===o?this.container:o}ngOnInit(){this.subscriptions.add(this.pickerService.onFocus.pipe(oi(this.detectPopupChanges.bind(this))).subscribe(this.handleFocus.bind(this))),this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this))),this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this))),e6()&&this.subscriptions.add(this.ngZone.runOutsideAngular(()=>jn(window,"blur").subscribe(this.handleCancel.bind(this))))}ngOnChanges(o){(yn(o.min)||yn(o.max))&&this.verifyMinMaxRange(),(o.min||o.max||o.rangeValidation||o.disabledDatesValidation||o.disabledDates||o.incompleteDateValidation)&&(this.minValidateFn=this.rangeValidation?BT(this.min):kn,this.maxValidateFn=this.rangeValidation?HT(this.max):kn,this.disabledDatesValidateFn=this.disabledDatesValidation?lW(this.disabledDatesService.isDateDisabled):kn,this.incompleteValidator=this.incompleteDateValidation?d6():kn,this.onValidatorChange())}ngOnDestroy(){this.isOpen&&this.closePopup(),this.subscriptions.unsubscribe()}focus(){this.disabled||(this.isOpen?this.activeTabComponent.focus():this.input.focus())}blur(){this.isOpen&&this.activeTabComponent.isActive?this.activeTabComponent.blur():this.input.blur()}toggle(o){this.disabled||this.readonly||o===this.isOpen||((yn(o)?o:!this.isOpen)?this.openPopup():(this.closePopup(),this.activeTab!==this.defaultTab&&(this.activeTab=this.defaultTab,this.cdr.detectChanges())))}writeValue(o){this.value=o}registerOnChange(o){this.onControlChange=o}registerOnTouched(o){this.onControlTouched=o}setDisabledState(o){this.disabled=o,this.cdr.markForCheck()}validate(o){return this.minValidateFn(o)||this.maxValidateFn(o)||this.disabledDatesValidateFn(o)||this.incompleteValidator(o,this.input&&this.input.isDateIncomplete)}registerOnValidatorChange(o){this.onValidatorChange=o}isEmpty(){return!yn(this.value)&&this.input.isEmpty()}handleIconClick(o){if(this.disabled||this.readonly)return;o.preventDefault();const t=!this.isOpen||Ut(this.close);this.run(t,()=>{const r=!this.isOpen;this.handleFocus(),this.togglePopup(r),this.switchFocus()})}handleFocus(){this.isActive||(this.isActive=!0,Ut(this.onFocus)&&this.ngZone.run(()=>this.onFocus.emit()))}handleBlur(o){if(!this.isActive||this.focusTargetInComponent(o))return;this.isActive=!1;const r=this.host.nativeElement.classList.contains("ng-untouched")||Ut(this.onBlur)||this.isOpen&&Ut(this.close);this.run(r,()=>{this.onBlur.emit(),this.onControlTouched(),this.togglePopup(!1),this.cdr.markForCheck()})}changeActiveTab(o){!this.isOpen||this.activeTab===o||(er(this.timeSelector.value,this.timeSelector.current)||this.timeSelector.handleAccept(),this.activeTab=o,this.cdr.detectChanges(),this.detectPopupChanges())}handleTabChangeTransitionEnd(o,t){t.target===o&&this.activeTabComponent.focus()}handleAccept(){if(!this.isOpen)return;const o=XR(this.calendar.value,this.timeSelector.current),r=!er(this.value,o)||Ut(this.close);this.run(r,()=>{this.handleValueChange(o),this.togglePopup(!1)})}handleCancel(){if(!this.isOpen)return;const o=Ut(this.close);this.run(o,()=>this.togglePopup(!1))}handleInputValueChange(o){this.handleValueChange(o),this.isOpen&&this.togglePopup(!1)}handleCalendarValueChange(){this.setTimeSelectorMinMax(this.calendar.value),this.changeActiveTab("time")}handleKeyDown(o){if(this.disabled||this.readonly)return;const{keyCode:t,altKey:r}=o;switch(t){case r&&Ie.ArrowUp:case Ie.Escape:this.handleCancel();break;case!this.isOpen&&r&&Ie.ArrowDown:this.ngZone.run(()=>this.togglePopup(!0));break;case r&&Ie.ArrowRight:this.changeActiveTab("time");break;case r&&Ie.ArrowLeft:this.changeActiveTab("date");break;case this.isOpen&&this.timeSelector.isActive&&yn(this.calendarValue)&&Ie.Enter:this.handleAccept();break;default:return}o.preventDefault()}handleTabOut(o){const{keyCode:t,shiftKey:r,target:s}=o,l=yn(s.nextElementSibling)&&!s.nextElementSibling.disabled;t===Ie.Tab&&!r&&!l&&(this.input.focus(),this.handleCancel())}handleBackTabOut(o){const{keyCode:t,shiftKey:r}=o;t===Ie.Tab&&r&&this.input.focus()}preventMouseDown(o){o.preventDefault()}verifyValue(o){if((0,n.X6Q)()&&yn(o)&&!(o instanceof Date))throw new Error("The 'value' should be a valid JavaScript Date instance. Check https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/ for possible resolution.")}verifyMinMaxRange(){if((0,n.X6Q)()&&!QR(this.min,this.max))throw new Error("The max value should be bigger than the min. See https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/.")}getTimeSelectorFormat(o){return this.intl.splitDateFormat(o).filter(this.timeFormatPartFilter).reduce((r,s)=>r+s.pattern,"")||"t"}getDisplayFormat(o){return o?"string"==typeof o?o:o.displayFormat:"g"}timeFormatPartFilter(o,t,r){const s=t>=1&&r[t-1];return cW.test(s&&"literal"===o.type?s.type:o.type)}togglePopup(o){if(o===this.isOpen)return;const t=new u6;o?this.open.emit(t):this.close.emit(t),!t.isDefaultPrevented()&&(this.toggle(o),this.switchFocus())}switchFocus(){!this.isActive||(this.isOpen?this.activeTabComponent.focus():this.touchEnabled?this.input.isActive||this.handleBlur():this.input.focus())}openPopup(){this.setCalendarValue(this.value),this.setTimeSelectorMinMax(this.value);const o=this.localization.rtl?"right":"left";this.popupRef=this.popupService.open({anchor:this.wrapper,content:this.popupTemplate,positionMode:"absolute",animate:this.popupSettings.animate,appendTo:this.appendTo,popupClass:`k-datetime-container ${this.popupSettings.popupClass||""}`,anchorAlign:{vertical:"bottom",horizontal:o},popupAlign:{vertical:"top",horizontal:o}}),this.popupRef.popupAnchorViewportLeave.subscribe(()=>this.handleCancel())}closePopup(){!this.isOpen||(this.popupRef.close(),this.popupRef=null)}handleValueChange(o){er(this.value,o)||(this.value=St(o),this.onControlChange(St(o)),this.valueChange.emit(St(o)))}focusTargetInComponent(o){if(!yn(o))return!1;const t=o.relatedTarget||document.activeElement,r=yn(this.popupRef)&&this.popupRef.popupElement.contains(t),s=this.wrapper.nativeElement.contains(t);return r||s}setTimeSelectorMinMax(o){const t=yn(o)&&er(Cr(o),Cr(this.min));this.timeSelectorMin=St(t?this.min:Fy);const r=yn(o)&&er(Cr(o),Cr(this.max));this.timeSelectorMax=St(r?this.max:g0)}setCalendarValue(o){const t=yn(o)&&f0(o,this.calendarMin,this.calendarMax);this.calendarValue=t?Cr(o):null}detectPopupChanges(){!this.isOpen||this.popupRef.popup.changeDetectorRef.detectChanges()}run(o,t){o?this.ngZone.run(()=>t()):t()}handleDateCompletenessChange(){this.cdr.markForCheck(),this.ngZone.run(()=>this.onValidatorChange())}};Xn.\u0275fac=function(o){return new(o||Xn)(n.Y36(Do),n.Y36(_i.aJ),n.Y36(n.sBO),n.Y36(Ol),n.Y36(n.R0b),n.Y36(n.SBq),n.Y36(Pg),n.Y36(Te),n.Y36(ll),n.Y36(n.Qsj))},Xn.\u0275cmp=n.Xpm({type:Xn,selectors:[["kendo-datetimepicker"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,As,5),n.Suo(r,xs,5),n.Suo(r,Ts,5),n.Suo(r,Ss,5),n.Suo(r,ws,5),n.Suo(r,Ms,5),n.Suo(r,Ds,5)),2&o){let s;n.iGM(s=n.CRH())&&(t.cellTemplate=s.first),n.iGM(s=n.CRH())&&(t.monthCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.yearCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.decadeCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.centuryCellTemplate=s.first),n.iGM(s=n.CRH())&&(t.weekNumberTemplate=s.first),n.iGM(s=n.CRH())&&(t.headerTitleTemplate=s.first)}},viewQuery:function(o,t){if(1&o&&(n.Gf(GR,7),n.Gf(qE,7,n.s_b),n.Gf(zR,7,n.Rgc)),2&o){let r;n.iGM(r=n.CRH())&&(t.wrapper=r.first),n.iGM(r=n.CRH())&&(t.container=r.first),n.iGM(r=n.CRH())&&(t.popupTemplate=r.first)}},hostVars:4,hostBindings:function(o,t){2&o&&n.ekj("k-widget",t.hostClasses)("k-datetimepicker",t.hostClasses)},inputs:{twoDigitYearMax:"twoDigitYearMax",focusableId:"focusableId",title:"title",disabled:"disabled",readonly:"readonly",readOnlyInput:"readOnlyInput",cancelButton:"cancelButton",steps:"steps",calendarType:"calendarType",animateCalendarNavigation:"animateCalendarNavigation",weekNumber:"weekNumber",rangeValidation:"rangeValidation",disabledDatesValidation:"disabledDatesValidation",incompleteDateValidation:"incompleteDateValidation",value:"value",format:"format",tabindex:"tabindex",disabledDates:"disabledDates",popupSettings:"popupSettings",min:"min",max:"max",defaultTab:"defaultTab",formatPlaceholder:"formatPlaceholder",placeholder:"placeholder",focusedDate:"focusedDate"},outputs:{valueChange:"valueChange",open:"open",close:"close",onFocus:"focus",onBlur:"blur"},exportAs:["kendo-datetimepicker"],features:[n._Bn([Ol,Te,ll,{provide:gn,useValue:"kendo.datetimepicker"},{provide:Ri,useExisting:(0,n.Gpc)(()=>ZT),multi:!0},{provide:Ui,useExisting:(0,n.Gpc)(()=>ZT),multi:!0},{provide:Mo,useExisting:(0,n.Gpc)(()=>ZT)}]),n.TTD],decls:11,vars:35,consts:function(){let i,o,t,r,s,l,u,p,y,A,w,I,P,F;return i="Date",o="Date tab",t="Time",r="Time tab",s="Toggle popup",l="Set",u="Set",p="Cancel",y="Cancel",A="NOW",w="Select now",I="Today",P="Navigate to previous view",F="Navigate to next view",[["kendoDateTimePickerLocalizedMessages","","dateTab",i,"dateTabLabel",o,"timeTab",t,"timeTabLabel",r,"toggle",s,"accept",l,"acceptLabel",u,"cancel",p,"cancelLabel",y,"now",A,"nowLabel",w,"today",I,"prevButtonTitle",P,"nextButtonTitle",F],[1,"k-picker-wrap"],["wrapper",""],[3,"value","format","twoDigitYearMax","min","max","incompleteDateValidation","formatPlaceholder","placeholder","disabled","readonly","role","ariaReadOnly","steps","tabindex","title","focusableId","hasPopup","isPopupOpen","kendoEventsOutsideAngular","scope","valueChange"],[1,"k-select",3,"kendoEventsOutsideAngular","scope"],[1,"k-link","k-link-date"],[1,"k-icon"],["container",""],["popupTemplate",""],[3,"kendoEventsOutsideAngular","scope"],[1,"k-datetime-buttongroup",3,"kendoEventsOutsideAngular","scope"],[1,"k-button-group","k-button-group-stretched"],["type","button",1,"k-button","k-date-tab",3,"kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-tab",3,"kendoEventsOutsideAngular"],[1,"k-datetime-selector",3,"kendoEventsOutsideAngular"],["dateTimeSelector",""],[1,"k-datetime-calendar-wrap"],[3,"value","type","min","max","focusedDate","weekNumber","navigation","animateNavigation","cellTemplate","monthCellTemplate","yearCellTemplate","decadeCellTemplate","centuryCellTemplate","weekNumberTemplate","headerTitleTemplate","disabled","disabledDates","valueChange"],[3,"today","prevButtonTitle","nextButtonTitle"],[1,"k-datetime-time-wrap"],[3,"value","format","min","max","setButton","cancelButton","steps","disabled"],[3,"now","nowLabel"],[1,"k-datetime-footer","k-action-buttons","k-actions","k-hstack","k-justify-content-stretch",3,"kendoEventsOutsideAngular","scope"],["type","button","class","k-button k-time-cancel",3,"kendoEventsOutsideAngular","scope",4,"ngIf"],["type","button",1,"k-time-accept","k-button","k-primary",3,"disabled","kendoEventsOutsideAngular","scope"],["type","button",1,"k-button","k-time-cancel",3,"kendoEventsOutsideAngular","scope"]]},template:function(o,t){1&o&&(n.GkF(0,0),n.TgZ(1,"span",1,2)(3,"kendo-dateinput",3),n.NdJ("valueChange",function(s){return t.handleInputValueChange(s)}),n.qZA(),n.TgZ(4,"span",4)(5,"span",5),n._UZ(6,"span",6),n.qZA()()(),n.GkF(7,null,7),n.YNc(9,z3e,19,81,"ng-template",null,8,n.W1O)),2&o&&(n.xp6(1),n.ekj("k-state-disabled",t.disabled),n.xp6(2),n.Q6J("value",t.value)("format",t.format)("twoDigitYearMax",t.twoDigitYearMax)("min",t.min)("max",t.max)("incompleteDateValidation",t.incompleteDateValidation)("formatPlaceholder",t.formatPlaceholder)("placeholder",t.placeholder)("disabled",t.disabled)("readonly",t.readonly||t.readOnlyInput)("role",t.inputRole)("ariaReadOnly",t.readonly)("steps",t.steps)("tabindex",t.tabindex)("title",t.title)("focusableId",t.focusableId)("hasPopup",!0)("isPopupOpen",t.isOpen)("kendoEventsOutsideAngular",n.VKq(30,HQ,t.handleKeyDown))("scope",t),n.xp6(1),n.Q6J("kendoEventsOutsideAngular",n.WLB(32,G3e,t.preventMouseDown,t.handleIconClick))("scope",t),n.uIk("title",t.localization.get("toggle"))("aria-label",t.localization.get("toggle")),n.xp6(2),n.ekj("k-i-calendar","date"===t.activeTab)("k-i-clock","time"===t.activeTab))},dependencies:function(){return[Ge,Kn,$T,Cm,Og,LF,_a,Sm]},encapsulation:2,changeDetection:0}),K([(0,n.pfw)("class.k-widget"),(0,n.pfw)("class.k-datetimepicker"),Z("design:type",Boolean)],Xn.prototype,"hostClasses",void 0),K([(0,n.i9L)("wrapper",{static:!0}),Z("design:type",n.SBq)],Xn.prototype,"wrapper",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],Xn.prototype,"value",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],Xn.prototype,"format",null),K([(0,n.IIB)(),Z("design:type",Number)],Xn.prototype,"twoDigitYearMax",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],Xn.prototype,"tabindex",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],Xn.prototype,"disabledDates",null),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],Xn.prototype,"popupSettings",null),K([(0,n.IIB)(),Z("design:type",String)],Xn.prototype,"focusableId",void 0),K([(0,n.IIB)(),Z("design:type",String)],Xn.prototype,"title",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"readonly",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"readOnlyInput",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"cancelButton",void 0),K([(0,n.IIB)(),Z("design:type",Object)],Xn.prototype,"formatPlaceholder",void 0),K([(0,n.IIB)(),Z("design:type",String)],Xn.prototype,"placeholder",void 0),K([(0,n.IIB)(),Z("design:type",Object)],Xn.prototype,"steps",void 0),K([(0,n.IIB)(),Z("design:type",Date)],Xn.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",String)],Xn.prototype,"calendarType",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"animateCalendarNavigation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"weekNumber",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],Xn.prototype,"min",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],Xn.prototype,"max",null),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"disabledDatesValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],Xn.prototype,"incompleteDateValidation",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],Xn.prototype,"valueChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],Xn.prototype,"open",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],Xn.prototype,"close",void 0),K([(0,n.r_U)("focus"),Z("design:type",n.vpe)],Xn.prototype,"onFocus",void 0),K([(0,n.r_U)("blur"),Z("design:type",n.vpe)],Xn.prototype,"onBlur",void 0),K([(0,n.IIB)(),Z("design:type",String),Z("design:paramtypes",[String])],Xn.prototype,"defaultTab",null),K([(0,n.aQ5)(As,{static:!1}),Z("design:type",As)],Xn.prototype,"cellTemplate",void 0),K([(0,n.aQ5)(xs,{static:!1}),Z("design:type",xs)],Xn.prototype,"monthCellTemplate",void 0),K([(0,n.aQ5)(Ts,{static:!1}),Z("design:type",Ts)],Xn.prototype,"yearCellTemplate",void 0),K([(0,n.aQ5)(Ss,{static:!1}),Z("design:type",Ss)],Xn.prototype,"decadeCellTemplate",void 0),K([(0,n.aQ5)(ws,{static:!1}),Z("design:type",ws)],Xn.prototype,"centuryCellTemplate",void 0),K([(0,n.aQ5)(Ms,{static:!1}),Z("design:type",Ms)],Xn.prototype,"weekNumberTemplate",void 0),K([(0,n.aQ5)(Ds,{static:!1}),Z("design:type",Ds)],Xn.prototype,"headerTitleTemplate",void 0),K([(0,n.i9L)("container",{read:n.s_b,static:!0}),Z("design:type",n.s_b)],Xn.prototype,"container",void 0),K([(0,n.i9L)("popupTemplate",{read:n.Rgc,static:!0}),Z("design:type",n.Rgc)],Xn.prototype,"popupTemplate",void 0),Xn=ZT=K([Od(6,(0,n.tBr)(Pg)),Z("design:paramtypes",[Do,_i.aJ,n.sBO,Ol,n.R0b,n.SBq,Boolean,Te,ll,n.Qsj])],Xn);let p6=(()=>{let i=class{constructor(t){this.intl=t}getWeekNames(t=!1){const r=zQ(this.intl.dateFormatNames({nameType:"short",type:"days"}),this.intl.firstDay());return t?[""].concat(r):r}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})(),h6=(()=>{let i=class{constructor(t,r,s,l,u,p){this.bus=t,this.intl=r,this.weekService=s,this.cdr=l,this.element=u,this.renderer=p,this.activeView=Qt.month,this.isActive=!0,this.min=new Date(Hu),this.max=new Date($u),this.selectedDates=[],this.views=2,this.showViewHeader=!1,this.animateNavigation=!1,this.cellClick=new n.vpe,this.weekNumberCellClick=new n.vpe,this.cellEnter=new n.vpe,this.cellLeave=new n.vpe,this.activeDateChange=new n.vpe,this.getComponentClass=!0,this.weekNames=[],this.dates=[],this.intlSubscription=this.intl.changes.subscribe(this.intlChange.bind(this))}get weekNumber(){return this.showWeekNumbers&&this.isMonthView()}set weekNumber(t){this.showWeekNumbers=t}get getComponentMonthClass(){return this.activeView===Qt.month}get getComponentYearClass(){return this.activeView===Qt.year}get getComponentDecadeClass(){return this.activeView===Qt.decade}get getComponentCenturyClass(){return this.activeView===Qt.century}ngOnChanges(t){if(this.initService(),(0===this.weekNames.length||t.weekNumber)&&(this.weekNames=this.weekService.getWeekNames(this.weekNumber)),!this.service)return;this.views=this.views||2;const r=this.focusedDate,s=this.clampDate(this.service.viewDate(r,this.max,this.views));this.skip=this.service.skip(s,this.min),this.total=this.service.total(this.min,this.max);const l=_m(t,"activeView"),u=this.views>0&&_m(t,"views");(l||!this.isInDates(r)||u||!this.activeDate)&&(this.dates=this.service.datesList(s,this.getTake(this.skip)),this.activeDate=St(this.dates[0]),this.activeDateChange.emit(this.activeDate))}ngAfterViewInit(){1===this.views&&this.setTableMinWidth()}ngOnDestroy(){this.intlSubscription.unsubscribe()}initService(){this.service=this.bus.service(this.activeView)}isMonthView(){return this.activeView===Qt.month}getCaptionTitle(t){return this.service.title(t)}getCaptionClass(){return this.isMonthView()?"k-month-header":"k-meta-header"}animateView(t){const r=this.element.nativeElement,s=r.querySelector("table"),l=parseFloat(getComputedStyle(r).width),u=parseFloat(getComputedStyle(s).width);this.renderer.setStyle(r,"width",`${l}px`),this.renderer.setStyle(r,"overflow","visible"),t===Fn.NextView?this.nextAnimationDate=St(this.dates[0]):this.prevAnimationDate=St(this.dates[this.dates.length-1]),this.cdr.detectChanges(),r.querySelectorAll("table").forEach(I=>{this.renderer.setStyle(I,"width",`${u}px`),1===this.views&&this.renderer.setStyle(I,"min-width",`${l}px`)});const p=s.getBoundingClientRect(),y=parseFloat(getComputedStyle(r).columnGap),A=t===Fn.NextView?"translateX(0)":`translateX(-${p.width+y}px)`,w=t===Fn.NextView?`translateX(-${p.width+y}px)`:"translateX(0)";this.animation?this.animation.cancel():(this.animation=r.animate([{transform:A},{transform:w}],{duration:500,easing:"ease-out"}),this.animation.oncancel=this.animation.onfinish=()=>{this.renderer.removeStyle(r,"width"),this.renderer.removeStyle(r,"overflow"),r.querySelectorAll("table").forEach(I=>{this.renderer.removeStyle(I,"width")}),this.animation=null,this.nextAnimationDate=null,this.prevAnimationDate=null,this.cdr.detectChanges()})}navigate(t){this.animateNavigation&&Dt()&&yn(this.element.nativeElement.animate)&&this.animateView(t);const r=this.move(t),s=this.service.datesList(r,this.getTake(this.skip));return this.isListInRange(s)&&(this.dates=s),this.activeDate=St(this.dates[0]),this.focusedDate=St(r),this.cdr.markForCheck(),this.activeDateChange.emit(this.activeDate),St(r)}canNavigate(t){return!!this.service&&this.isListInRange(this.service.datesList(this.move(t),this.getTake(this.skip)))}setTableMinWidth(){const t=this.element.nativeElement,r=t.querySelector("table");if(r){const s=parseFloat(getComputedStyle(t).width);this.renderer.setStyle(r,"min-width",`${s}px`)}}intlChange(){this.weekNames=this.weekService.getWeekNames(this.weekNumber),this.cdr.markForCheck()}clampDate(t){return Jp(t,this.min,this.max)}move(t){return this.service.move(this.dates[0]||this.focusedDate,t)}isListInRange(t){const r=this.service.beginningOfPeriod(this.min),s=this.service.beginningOfPeriod(this.service.addToDate(this.max,1));return r<=t[0]&&t[t.length-1]<s}isInDates(t){return this.service.isInArray(t,this.dates)}getTake(t){return Math.min(this.total-t,this.views)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(_i.aJ),n.Y36(p6),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.Qsj))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-calendar-horizontal"]],hostVars:16,hostBindings:function(t,r){2&t&&n.ekj("k-calendar-view",r.getComponentClass)("k-hstack",r.getComponentClass)("k-align-items-start",r.getComponentClass)("k-justify-content-center",r.getComponentClass)("k-calendar-monthview",r.getComponentMonthClass)("k-calendar-yearview",r.getComponentYearClass)("k-calendar-decadeview",r.getComponentDecadeClass)("k-calendar-centuryview",r.getComponentCenturyClass)},inputs:{activeView:"activeView",isActive:"isActive",min:"min",max:"max",selectedDates:"selectedDates",views:"views",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",focusedDate:"focusedDate",cellTemplateRef:"cellTemplateRef",weekNumberTemplateRef:"weekNumberTemplateRef",activeRangeEnd:"activeRangeEnd",cellUID:"cellUID",selectionRange:"selectionRange"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave",activeDateChange:"activeDateChange"},features:[n.TTD],decls:5,vars:3,consts:[["tableTemplate",""],[4,"ngIf"],[4,"kFor","kForOf"],[1,"k-content","k-calendar-content","k-calendar-table",3,"ngClass"],[3,"ngClass",4,"ngIf"],["class","k-calendar-thead",4,"ngIf"],["kendoCalendarView","","role","rowgroup","direction","horizontal",1,"k-calendar-tbody",3,"activeView","isActive","min","max","cellUID","focusedDate","selectedDates","selectionRange","activeRangeEnd","weekNumber","templateRef","weekNumberTemplateRef","viewDate","cellClick","weekNumberCellClick","cellEnter","cellLeave"],[3,"ngClass"],[1,"k-calendar-thead"],["role","row",1,"k-calendar-tr"],["class","k-calendar-th",4,"ngFor","ngForOf"],[1,"k-calendar-th"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.YNc(0,W3e,4,16,"ng-template",null,0,n.W1O),n.YNc(2,X3e,1,4,null,1),n.YNc(3,nDe,1,4,null,2),n.YNc(4,oDe,1,4,null,1)),2&t&&(n.xp6(2),n.Q6J("ngIf",r.nextAnimationDate),n.xp6(1),n.Q6J("kForOf",r.dates),n.xp6(1),n.Q6J("ngIf",r.prevAnimationDate))},dependencies:function(){return[gt,Bt,Ge,Pi,m6,_W]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"cellTemplateRef",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"weekNumberTemplateRef",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"activeRangeEnd",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cellUID",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isActive",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Object)],i.prototype,"selectionRange",void 0),K([(0,n.IIB)(),Z("design:type",Array)],i.prototype,"selectedDates",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"views",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"showViewHeader",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"animateNavigation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean),Z("design:paramtypes",[Boolean])],i.prototype,"weekNumber",null),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"weekNumberCellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellEnter",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellLeave",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeDateChange",void 0),K([(0,n.pfw)("class.k-calendar-view"),(0,n.pfw)("class.k-hstack"),(0,n.pfw)("class.k-align-items-start"),(0,n.pfw)("class.k-justify-content-center"),Z("design:type",Boolean)],i.prototype,"getComponentClass",void 0),K([(0,n.pfw)("class.k-calendar-monthview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentMonthClass",null),K([(0,n.pfw)("class.k-calendar-yearview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentYearClass",null),K([(0,n.pfw)("class.k-calendar-decadeview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentDecadeClass",null),K([(0,n.pfw)("class.k-calendar-centuryview"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"getComponentCenturyClass",null),i=K([Z("design:paramtypes",[za,_i.aJ,p6,n.sBO,n.SBq,n.Qsj])],i),i})();const bIe=()=>null,hW="http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json",TIe={multi:!0,provide:Ri,useExisting:(0,n.Gpc)(()=>Wp)},SIe={multi:!0,provide:Ui,useExisting:(0,n.Gpc)(()=>Wp)};let Wp=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A){this.bus=t,this.element=r,this.navigator=s,this.renderer=l,this.cdr=u,this.zone=p,this.disabledDatesService=y,this.selectionService=A,this.id=to(),this.rangeValidation=!1,this.disabledDatesRangeValidation=!1,this.selection="single",this.disabled=!1,this.tabindex=0,this.isActive=!1,this.activeView=Qt[Qt.month],this.bottomView=Qt[Qt.month],this.topView=Qt[Qt.century],this.showViewHeader=!1,this.animateNavigation=!1,this.weekNumber=!1,this.views=2,this.activeViewChange=new n.vpe,this.navigate=new n.vpe,this.cellEnter=new n.vpe,this.cellLeave=new n.vpe,this.valueChange=new n.vpe,this.cellUID=to(),this.isHovered=!1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.prevView=Fn.PrevView,this.nextView=Fn.NextView,this.selectedDates=[],this._min=new Date(Hu),this._max=new Date($u),this._focusedDate=Uu(),this.resolvedPromise=Promise.resolve(),this.onControlChange=kn,this.onControlTouched=kn,this.onValidatorChange=kn,this.minValidateFn=kn,this.maxValidateFn=kn,this.disabledDatesRangeValidateFn=kn,this.subscriptions=new bn.w,this.setClasses(r.nativeElement)}set focusedDate(t){this._focusedDate=t||Uu()}get focusedDate(){return this._focusedDate}set min(t){this._min=t||new Date(Hu)}get min(){return this._min}set max(t){this._max=t||new Date($u)}get max(){return this._max}get value(){return this._value}set value(t){this.verifyValue(t),this._value=Array.isArray(t)?t.filter(s=>yn(s)).map(s=>St(s)):St(t);const r=[].concat(t).filter(s=>yn(s)).map(s=>St(s));if(!i6(r,this.selectedDates)){const s=bm(r);this.rangePivot=St(s),this.focusedDate=St(s)||this.focusedDate,this.selectedDates=r}}set tabIndex(t){this.tabindex=t}get tabIndex(){return this.tabindex}set disabledDates(t){this.disabledDatesService.initialize(t)}set selectionRange(t){this._selectionRange=t,this.disabledDatesRangeValidation&&this.onValidatorChange()}get selectionRange(){return this._selectionRange}set cellTemplateRef(t){this.cellTemplate=t}set monthCellTemplateRef(t){this.monthCellTemplate=t}set yearCellTemplateRef(t){this.yearCellTemplate=t}set decadeCellTemplateRef(t){this.decadeCellTemplate=t}set centuryCellTemplateRef(t){this.centuryCellTemplate=t}set weekNumberTemplateRef(t){this.weekNumberTemplate=t}set headerTitleTemplateRef(t){this.headerTitleTemplate=t}get activeViewEnum(){const t=Qt[this.activeView];return t<this.bottomViewEnum?this.bottomViewEnum:t}get bottomViewEnum(){return Qt[this.bottomView]}get topViewEnum(){return Qt[this.topView]}get widgetId(){return this.id}get widgetRole(){return"grid"}get calendarTabIndex(){return this.disabled?void 0:this.tabIndex}get ariaDisabled(){return this.disabled}get ariaActivedescendant(){return this.cellUID+this.focusedDate.getTime()}handleBlur(){this.onControlTouched(),this.isActive=!1,this.isHovered=!1}handleFocus(){this.isActive=!0}handleMouseEnter(){this.isHovered=!0}handleMouseLeave(){this.isHovered=!1}handleMousedown(t){t.preventDefault()}handleClick(){this.isActive||this.focus()}keydown(t){t.keyCode===Ie.Enter&&this.performSelection(this.focusedDate,t);const r=Jp(this.navigator.move(this.focusedDate,this.navigator.action(t),this.activeViewEnum),this.min,this.max);er(this.focusedDate,r)||(this.focusedDate=r,t.preventDefault(),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate))}ngOnInit(){this.subscriptions.add(this.bus.viewChanged.subscribe(({view:t})=>{this.activeView=Qt[t],this.activeViewChange.emit(this.activeView),this.cdr.detectChanges(),this.updateButtonState()}))}ngOnChanges(t){this.verifyChanges(),this.bus.configure(this.bottomViewEnum,this.topViewEnum),GQ(t,"focusedDate")&&(this.focusedDate=Jp(t.focusedDate.currentValue,this.min,this.max)),(t.min||t.max||t.rangeValidation||t.disabledDates||t.disabledDatesRangeValidation)&&(this.minValidateFn=this.rangeValidation?BT(this.min):kn,this.maxValidateFn=this.rangeValidation?HT(this.max):kn,this.disabledDatesRangeValidateFn=this.disabledDatesRangeValidation?(i=>yn(i)?o=>{if(!(yn(o)&&yn(o.start)&&yn(o.end))||o.start>o.end)return null;const r=((i,o,t)=>{if(!(i&&o&&t)||i>o)return[];const r=[];let s=i;for(;s<=o;)t(s)&&r.push(s),s=Rc(s,1);return r})(o.start,o.end,i);return r.length?{disabledDatesInRange:r}:null}:bIe)(this.disabledDatesService.isDateDisabled):kn,this.onValidatorChange()),(t.min||t.max||t.focusedDate||t.activeView)&&this.updateButtonState()}ngOnDestroy(){this.subscriptions.unsubscribe()}ngAfterViewInit(){this.updateButtonState()}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}handleDateChange(t){const r=this.bus.canMoveDown(this.activeViewEnum),s=t.selectedDates.filter(u=>!this.disabledDatesService.isDateDisabled(u));this.focusedDate=t.focusedDate||this.focusedDate;const l=!r&&i6(s,this.selectedDates);if(!this.disabled&&!l){if(r)return void this.bus.moveDown(this.activeViewEnum);this.disabledDatesService.isDateDisabled(this.focusedDate)||(this.selectedDates=s.map(u=>St(u)),this.value=this.parseSelectionToValue(s),this.onControlChange(this.parseSelectionToValue(s)),this.valueChange.emit(this.parseSelectionToValue(s)))}}handleTodayButtonClick(t){const r=t.focusedDate,s=this.bus.service(this.activeViewEnum).isInArray(r,this.viewList.dates),l=!this.bus.canMoveDown(this.activeViewEnum);!s&&l&&this.emitNavigate(r),this.handleDateChange(t)}setActiveDate(t){this.activeDate=St(t),this.cdr.detectChanges()}writeValue(t){this.verifyValue(t),this.value=t,this.cdr.markForCheck()}registerOnChange(t){this.onControlChange=t}registerOnTouched(t){this.onControlTouched=t}setDisabledState(t){this.disabled=t,this.cdr.markForCheck()}validate(t){return this.minValidateFn(t)||this.maxValidateFn(t)||this.disabledDatesRangeValidateFn(this.selectionRange)}registerOnValidatorChange(t){this.onValidatorChange=t}activeCellTemplate(){switch(this.activeViewEnum){case Qt.month:return this.monthCellTemplate||this.cellTemplate;case Qt.year:return this.yearCellTemplate;case Qt.decade:return this.decadeCellTemplate;case Qt.century:return this.centuryCellTemplate;default:return null}}navigateView(t){this.focusedDate=this.viewList.navigate(t),this.updateButtonState(),this.emitNavigate(this.focusedDate)}emitNavigate(t){this.navigate.emit({activeView:Qt[this.activeViewEnum],focusedDate:t})}emitCellEvent(t,r){Ut(t)&&this.zone.run(()=>{t.emit(r)})}handleCellClick({date:t,modifiers:r}){this.performSelection(t,r),this.bus.service(this.activeViewEnum).isInArray(this.focusedDate,this.viewList.dates)||this.emitNavigate(this.focusedDate)}handleWeekNumberClick(t){"single"!==this.selection&&this.zone.run(()=>{this.handleDateChange({selectedDates:t,focusedDate:bm(t)})})}setClasses(t){this.renderer.addClass(t,"k-widget"),this.renderer.addClass(t,"k-calendar"),this.renderer.addClass(t,"k-calendar-range")}verifyChanges(){if((0,n.X6Q)()){if(this.min>this.max)throw new Error("The max value should be bigger than the min. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max.");if(this.bottomViewEnum>this.topViewEnum)throw new Error("The topView should be greater than bottomView. See http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview and http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview.")}}verifyValue(t){if((0,n.X6Q)()){if("single"===this.selection&&t&&!(t instanceof Date))throw new Error(`The 'value' should be a valid JavaScript Date instance. Check ${hW} for possible resolution.`);if("multiple"===this.selection&&t&&Array.isArray(t)&&!t.every(s=>s instanceof Date))throw new Error(`The 'value' should be an array of valid JavaScript Date instances. Check ${hW} for possible resolution.`)}}updateButtonState(){this.resolvedPromise.then(()=>{this.isPrevDisabled=!this.viewList.canNavigate(this.prevView),this.isNextDisabled=!this.viewList.canNavigate(this.nextView),this.cdr.markForCheck()})}parseSelectionToValue(t){return t=t||[],"single"===this.selection?St(bm(t)):t.map(r=>St(r))}performSelection(t,r){const s=this.selectionService.performSelection({date:t,modifiers:r,selectionMode:this.selection,activeViewEnum:this.activeViewEnum,rangePivot:this.rangePivot,selectedDates:this.selectedDates});this.rangePivot=s.rangePivot,this.handleDateChange({selectedDates:s.selectedDates,focusedDate:t})}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(n.SBq),n.Y36(m0),n.Y36(n.Qsj),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(ll),n.Y36(Hy))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-multiviewcalendar"]],contentQueries:function(t,r,s){if(1&t&&(n.Suo(s,As,7),n.Suo(s,xs,7),n.Suo(s,Ts,7),n.Suo(s,Ss,7),n.Suo(s,ws,7),n.Suo(s,Ms,7),n.Suo(s,Ds,7)),2&t){let l;n.iGM(l=n.CRH())&&(r.cellTemplate=l.first),n.iGM(l=n.CRH())&&(r.monthCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.yearCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.decadeCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.centuryCellTemplate=l.first),n.iGM(l=n.CRH())&&(r.weekNumberTemplate=l.first),n.iGM(l=n.CRH())&&(r.headerTitleTemplate=l.first)}},viewQuery:function(t,r){if(1&t&&n.Gf(h6,5),2&t){let s;n.iGM(s=n.CRH())&&(r.viewList=s.first)}},hostVars:7,hostBindings:function(t,r){1&t&&n.NdJ("blur",function(){return r.handleBlur()})("focus",function(){return r.handleFocus()})("mouseenter",function(){return r.handleMouseEnter()})("mouseleave",function(){return r.handleMouseLeave()})("mousedown",function(l){return r.handleMousedown(l)})("click",function(){return r.handleClick()})("keydown",function(l){return r.keydown(l)}),2&t&&(n.uIk("id",r.widgetId)("role",r.widgetRole)("tabindex",r.calendarTabIndex)("aria-disabled",r.ariaDisabled)("aria-activedescendant",r.ariaActivedescendant),n.ekj("k-state-disabled",r.ariaDisabled))},inputs:{id:"id",rangeValidation:"rangeValidation",disabledDatesRangeValidation:"disabledDatesRangeValidation",selection:"selection",disabled:"disabled",tabindex:"tabindex",isActive:"isActive",activeView:"activeView",bottomView:"bottomView",topView:"topView",showViewHeader:"showViewHeader",animateNavigation:"animateNavigation",weekNumber:"weekNumber",views:"views",focusedDate:"focusedDate",min:"min",max:"max",value:"value",tabIndex:"tabIndex",disabledDates:"disabledDates",selectionRange:"selectionRange",cellTemplateRef:["cellTemplate","cellTemplateRef"],monthCellTemplateRef:["monthCellTemplate","monthCellTemplateRef"],yearCellTemplateRef:["yearCellTemplate","yearCellTemplateRef"],decadeCellTemplateRef:["decadeCellTemplate","decadeCellTemplateRef"],centuryCellTemplateRef:["centuryCellTemplate","centuryCellTemplateRef"],weekNumberTemplateRef:["weekNumberTemplate","weekNumberTemplateRef"],headerTitleTemplateRef:["headerTitleTemplate","headerTitleTemplateRef"],activeRangeEnd:"activeRangeEnd"},outputs:{activeViewChange:"activeViewChange",navigate:"navigate",cellEnter:"cellEnter",cellLeave:"cellLeave",valueChange:"valueChange"},exportAs:["kendo-multiviewcalendar"],features:[n._Bn([za,TIe,SIe,Te,ll,{provide:gn,useValue:"kendo.multiviewcalendar"},m0,Hy]),n.TTD],decls:3,vars:24,consts:function(){let o,t,r;return o="Today",t="",r="",[["kendoMultiViewCalendarLocalizedMessages","","today",o,"prevButtonTitle",t,"nextButtonTitle",r],[3,"activeView","currentDate","min","max","rangeLength","templateRef","isPrevDisabled","isNextDisabled","showNavigationButtons","todayButtonClick","prevButtonClick","nextButtonClick"],[3,"activeView","isActive","cellTemplateRef","weekNumberTemplateRef","cellUID","views","min","max","focusedDate","animateNavigation","showViewHeader","weekNumber","activeRangeEnd","selectionRange","selectedDates","valueChange","cellClick","weekNumberCellClick","cellEnter","cellLeave","activeDateChange"]]},template:function(t,r){if(1&t&&(n.GkF(0,0),n.TgZ(1,"kendo-calendar-header",1),n.NdJ("todayButtonClick",function(l){return r.handleTodayButtonClick({selectedDates:[l],focusedDate:l})})("prevButtonClick",function(){return r.navigateView(r.prevView)})("nextButtonClick",function(){return r.navigateView(r.nextView)}),n.qZA(),n.TgZ(2,"kendo-calendar-horizontal",2),n.NdJ("valueChange",function(l){return r.handleDateChange(l)})("cellClick",function(l){return r.handleCellClick(l)})("weekNumberCellClick",function(l){return r.handleWeekNumberClick(l)})("cellEnter",function(l){return r.emitCellEvent(r.cellEnter,l)})("cellLeave",function(l){return r.emitCellEvent(r.cellLeave,l)})("activeDateChange",function(l){return r.setActiveDate(l)}),n.qZA()),2&t){let s;n.xp6(1),n.Q6J("activeView",r.activeViewEnum)("currentDate",r.activeDate)("min",r.min)("max",r.max)("rangeLength",r.views)("templateRef",null==r.headerTitleTemplate?null:r.headerTitleTemplate.templateRef)("isPrevDisabled",r.isPrevDisabled)("isNextDisabled",r.isNextDisabled)("showNavigationButtons",!0),n.xp6(1),n.Q6J("activeView",r.activeViewEnum)("isActive",r.isActive||r.isHovered)("cellTemplateRef",null==(s=r.activeCellTemplate())?null:s.templateRef)("weekNumberTemplateRef",null==r.weekNumberTemplate?null:r.weekNumberTemplate.templateRef)("cellUID",r.cellUID)("views",r.views)("min",r.min)("max",r.max)("focusedDate",r.focusedDate)("animateNavigation",r.animateNavigation)("showViewHeader",r.showViewHeader)("weekNumber",r.weekNumber)("activeRangeEnd",r.activeRangeEnd)("selectionRange",r.selectionRange)("selectedDates",r.selectedDates)}},dependencies:function(){return[mW,h6,_0]},encapsulation:2,changeDetection:0}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"id",void 0),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"focusedDate",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"min",null),K([(0,n.IIB)(),Z("design:type",Date),Z("design:paramtypes",[Date])],i.prototype,"max",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"rangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"disabledDatesRangeValidation",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"selection",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"value",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"tabindex",void 0),K([(0,n.IIB)(),Z("design:type",Number),Z("design:paramtypes",[Number])],i.prototype,"tabIndex",null),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isActive",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"disabledDates",null),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"bottomView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"topView",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"showViewHeader",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"animateNavigation",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"weekNumber",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"activeRangeEnd",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"selectionRange",null),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"views",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"activeViewChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"navigate",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellEnter",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellLeave",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueChange",void 0),K([(0,n.aQ5)(As,{static:!0}),Z("design:type",As)],i.prototype,"cellTemplate",void 0),K([(0,n.IIB)("cellTemplate"),Z("design:type",As),Z("design:paramtypes",[As])],i.prototype,"cellTemplateRef",null),K([(0,n.aQ5)(xs,{static:!0}),Z("design:type",xs)],i.prototype,"monthCellTemplate",void 0),K([(0,n.IIB)("monthCellTemplate"),Z("design:type",xs),Z("design:paramtypes",[xs])],i.prototype,"monthCellTemplateRef",null),K([(0,n.aQ5)(Ts,{static:!0}),Z("design:type",Ts)],i.prototype,"yearCellTemplate",void 0),K([(0,n.IIB)("yearCellTemplate"),Z("design:type",Ts),Z("design:paramtypes",[Ts])],i.prototype,"yearCellTemplateRef",null),K([(0,n.aQ5)(Ss,{static:!0}),Z("design:type",Ss)],i.prototype,"decadeCellTemplate",void 0),K([(0,n.IIB)("decadeCellTemplate"),Z("design:type",Ss),Z("design:paramtypes",[Ss])],i.prototype,"decadeCellTemplateRef",null),K([(0,n.aQ5)(ws,{static:!0}),Z("design:type",ws)],i.prototype,"centuryCellTemplate",void 0),K([(0,n.IIB)("centuryCellTemplate"),Z("design:type",ws),Z("design:paramtypes",[ws])],i.prototype,"centuryCellTemplateRef",null),K([(0,n.aQ5)(Ms,{static:!0}),Z("design:type",Ms)],i.prototype,"weekNumberTemplate",void 0),K([(0,n.IIB)("weekNumberTemplate"),Z("design:type",Ms),Z("design:paramtypes",[Ms])],i.prototype,"weekNumberTemplateRef",null),K([(0,n.aQ5)(Ds,{static:!0}),Z("design:type",Ds)],i.prototype,"headerTitleTemplate",void 0),K([(0,n.IIB)("headerTitleTemplate"),Z("design:type",Ds),Z("design:paramtypes",[Ds])],i.prototype,"headerTitleTemplateRef",null),K([(0,n.i9L)(h6,{static:!1}),Z("design:type",h6)],i.prototype,"viewList",void 0),K([(0,n.pfw)("attr.id"),Z("design:type",String),Z("design:paramtypes",[])],i.prototype,"widgetId",null),K([(0,n.pfw)("attr.role"),Z("design:type",String),Z("design:paramtypes",[])],i.prototype,"widgetRole",null),K([(0,n.pfw)("attr.tabindex"),Z("design:type",Number),Z("design:paramtypes",[])],i.prototype,"calendarTabIndex",null),K([(0,n.pfw)("attr.aria-disabled"),(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"ariaDisabled",null),K([(0,n.pfw)("attr.aria-activedescendant"),Z("design:type",String),Z("design:paramtypes",[])],i.prototype,"ariaActivedescendant",null),K([(0,n.L6J)("blur"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],i.prototype,"handleBlur",null),K([(0,n.L6J)("focus"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],i.prototype,"handleFocus",null),K([(0,n.L6J)("mouseenter"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],i.prototype,"handleMouseEnter",null),K([(0,n.L6J)("mouseleave"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],i.prototype,"handleMouseLeave",null),K([(0,n.L6J)("mousedown",["$event"]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",void 0)],i.prototype,"handleMousedown",null),K([(0,n.L6J)("click"),Z("design:type",Function),Z("design:paramtypes",[]),Z("design:returntype",void 0)],i.prototype,"handleClick",null),K([(0,n.L6J)("keydown",["$event"]),Z("design:type",Function),Z("design:paramtypes",[Object]),Z("design:returntype",void 0)],i.prototype,"keydown",null),i=K([Z("design:paramtypes",[za,n.SBq,m0,n.Qsj,n.sBO,n.R0b,ll,Hy])],i),i})();class IIe{constructor(o,t,r,s){this.$implicit=o,this.kForOf=t,this.index=r,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let m6=(()=>{let i=class{constructor(t,r,s){this._viewContainer=t,this._template=r,this._differs=s,this._differ=null}set kForTemplate(t){t&&(this._template=t)}ngOnChanges(t){if("kForOf"in t){const r=t.kForOf.currentValue;if(this._differ||!r)return;try{this._differ=this._differs.find(r).create(this.kForTrackBy)}catch{throw new Error(`Cannot find a differ supporting object '${r}' of type '${function EIe(i){return i.name||typeof i}(r)}'.`)}}}ngDoCheck(){if(this._differ){const t=this._differ.diff(this.kForOf);t&&this._applyChanges(t)}}_applyChanges(t){if(!Dt())return;const r=this._viewContainer.length,s=this.kForOf.length,l={};t.forEachOperation((u,p,y)=>{null!==y&&(l[y]=u.item)});for(let u=r;u<s;u++)this._viewContainer.createEmbeddedView(this._template,new IIe(null,this.kForOf,-1,-1),u);for(let u=this._viewContainer.length;u>s;u--)this._viewContainer.remove(u-1);for(let u=0;u<this._viewContainer.length;u++){const p=this._viewContainer.get(u);p.context.index=u,p.context.count=length,p.context.$implicit=l[u]||null}}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.s_b),n.Y36(n.Rgc),n.Y36(n.ZZ4))},i.\u0275dir=n.lG2({type:i,selectors:[["","kFor","","kForOf",""]],inputs:{kForTemplate:"kForTemplate",kForOf:"kForOf",kForTrackBy:"kForTrackBy"},features:[n.TTD]}),K([(0,n.IIB)(),Z("design:type",Object)],i.prototype,"kForOf",void 0),K([(0,n.IIB)(),Z("design:type",Function)],i.prototype,"kForTrackBy",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc),Z("design:paramtypes",[n.Rgc])],i.prototype,"kForTemplate",null),i=K([Z("design:paramtypes",[n.s_b,n.Rgc,n.ZZ4])],i),i})(),mW=(()=>{let i=class{constructor(t,r,s,l,u){this.bus=t,this.cdr=r,this.localization=s,this.intl=l,this.disabledDatesService=u,this.navigate=!0,this.todayAvailable=!0,this.min=new Date(Hu),this.max=new Date($u),this.rangeLength=1,this.isPrevDisabled=!0,this.isNextDisabled=!0,this.showNavigationButtons=!1,this.todayButtonClick=new n.vpe,this.prevButtonClick=new n.vpe,this.nextButtonClick=new n.vpe,this.getComponentClass=!0,this.subscriptions=new bn.w}ngOnInit(){this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.localization.changes.subscribe(this.l10nChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.setTodayAvailability.bind(this)))}ngOnChanges(t){!this.bus.service(this.activeView)||(this.activeViewValue=Qt[this.activeView],this.todayMessage=this.localization.get("today"),this.setTodayAvailability(),this.navigate=this.bus.canMoveUp(this.activeView),this.title=this.getTitle())}ngOnDestroy(){this.subscriptions.unsubscribe()}handleTodayClick(){!this.todayAvailable||(this.bus.moveToBottom(this.activeView),this.todayButtonClick.emit(Jp(Uu(),this.min,this.max)))}handleNavigation(){!this.navigate||this.bus.moveUp(this.activeView)}intlChange(){this.currentDate&&this.bus.service(this.activeView)&&(this.title=this.getTitle(),this.cdr.markForCheck())}l10nChange(){this.prevButtonTitle=this.localization.get("prevButtonTitle"),this.nextButtonTitle=this.localization.get("nextButtonTitle"),this.todayMessage=this.localization.get("today"),this.cdr.markForCheck()}getTitle(){if(!this.currentDate)return"";const t=this.bus.service(this.activeView),r=this.rangeLength-1,s=t.title(this.currentDate),l=t.addToDate(this.currentDate,r);return r<1||!t.isInRange(l,this.min,this.max)?s:`${s} - ${t.title(l)}`}setTodayAvailability(){const t=Uu(),r=f0(t,Cr(this.min),Cr(this.max)),s=this.disabledDatesService.isDateDisabled(t);this.todayAvailable=r&&!s,this.cdr.markForCheck()}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(n.sBO),n.Y36(Te),n.Y36(_i.aJ),n.Y36(ll))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-calendar-header"]],hostVars:4,hostBindings:function(t,r){2&t&&n.ekj("k-calendar-header",r.getComponentClass)("k-hstack",r.getComponentClass)},inputs:{min:"min",max:"max",rangeLength:"rangeLength",isPrevDisabled:"isPrevDisabled",isNextDisabled:"isNextDisabled",showNavigationButtons:"showNavigationButtons",activeView:"activeView",currentDate:"currentDate",templateRef:"templateRef"},outputs:{todayButtonClick:"todayButtonClick",prevButtonClick:"prevButtonClick",nextButtonClick:"nextButtonClick"},features:[n.TTD],decls:9,vars:23,consts:[[1,"k-button","k-flat","k-title","k-calendar-title",3,"kendoEventsOutsideAngular","scope"],[3,"ngIf"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-spacer"],[1,"k-calendar-nav","k-hstack"],["class","k-button k-flat k-icon-button k-prev-view","type","button",3,"disabled","title","click",4,"ngIf"],[1,"k-today","k-nav-today",3,"kendoEventsOutsideAngular","scope"],["class","k-button k-flat k-icon-button k-next-view","type","button",3,"disabled","title","click",4,"ngIf"],["type","button",1,"k-button","k-flat","k-icon-button","k-prev-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-left"],["type","button",1,"k-button","k-flat","k-icon-button","k-next-view",3,"disabled","title","click"],[1,"k-icon","k-i-arrow-60-right"]],template:function(t,r){1&t&&(n.TgZ(0,"span",0),n.YNc(1,lDe,1,1,"ng-template",1),n.YNc(2,cDe,0,0,"ng-template",2),n.qZA(),n._UZ(3,"span",3),n.TgZ(4,"span",4),n.YNc(5,dDe,2,3,"button",5),n.TgZ(6,"span",6),n._uU(7),n.qZA(),n.YNc(8,uDe,2,3,"button",7),n.qZA()),2&t&&(n.ekj("k-state-disabled",!r.navigate),n.Q6J("kendoEventsOutsideAngular",n.VKq(15,mm,r.handleNavigation))("scope",r),n.xp6(1),n.Q6J("ngIf",!r.templateRef),n.xp6(1),n.Q6J("ngIf",r.templateRef)("ngTemplateOutlet",r.templateRef)("ngTemplateOutletContext",n.kEZ(17,BQ,r.title,r.activeViewValue,r.currentDate)),n.xp6(3),n.Q6J("ngIf",r.showNavigationButtons),n.xp6(1),n.ekj("k-state-disabled",!r.todayAvailable),n.Q6J("kendoEventsOutsideAngular",n.VKq(21,mm,r.handleTodayClick))("scope",r),n.xp6(1),n.hij(" ",r.todayMessage," "),n.xp6(1),n.Q6J("ngIf",r.showNavigationButtons))},dependencies:[Ge,Pi,_a],encapsulation:2}),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"currentDate",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"rangeLength",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"templateRef",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isPrevDisabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isNextDisabled",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"showNavigationButtons",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"todayButtonClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"prevButtonClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"nextButtonClick",void 0),K([(0,n.pfw)("class.k-calendar-header"),(0,n.pfw)("class.k-hstack"),Z("design:type",Boolean)],i.prototype,"getComponentClass",void 0),i=K([Z("design:paramtypes",[za,n.sBO,Te,_i.aJ,ll])],i),i})(),_W=(()=>{let i=class{constructor(t,r,s,l,u,p,y){this.bus=t,this.intl=r,this.cdr=s,this.element=l,this.zone=u,this.renderer=p,this.disabledDatesService=y,this.direction="vertical",this.isActive=!0,this.selectedDates=[],this.cellClick=new n.vpe,this.weekNumberCellClick=new n.vpe,this.cellEnter=new n.vpe,this.cellLeave=new n.vpe,this.colSpan=0,this.subscriptions=new bn.w,this.domEvents=[],this.subscriptions.add(this.intl.changes.subscribe(this.intlChange.bind(this))),this.subscriptions.add(this.disabledDatesService.changes.subscribe(this.disabledDatesChange.bind(this)))}get weekNumber(){return this.showWeekNumbers&&this.activeView===Qt.month}set weekNumber(t){this.showWeekNumbers=t}ngOnInit(){this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnChanges(t){this.service=this.bus.service(this.activeView),this.service&&(this.colSpan=this.service.rowLength({prependCell:this.weekNumber}),this.title=this.service.title(this.viewDate),this.updateData(),t.activeView&&(this.currentCellIndex=null))}ngOnDestroy(){this.subscriptions.unsubscribe(),this.domEvents.forEach(t=>t())}isHorizontal(){return"horizontal"===this.direction}isMonthView(){return this.activeView===Qt.month}shouldRenderCellContent(t){return yn(t)&&!(!this.isHorizontal()&&t.isOtherMonth)}firstDate(t){const r=this.firstWeekDateContext(t);return r?r.value:null}getWeekNumber(t){return this.weekNumber?LQ(t,this.intl.firstDay()):null}getWeekNumberContext(t){const r=this.firstWeekDateContext(t);if(!this.weekNumber||!r)return null;const s=LQ(r.value,this.intl.firstDay()).toString();return{formattedValue:s,id:null,isFocused:!1,isSelected:!1,isWeekend:!1,title:s,value:St(r.value)}}getStyles(t){const{isRangeEnd:r,isRangeStart:s}=t;return(i=>Object.keys(i).reduce((t,r)=>i[r]?t.concat(r):t,[]).join(" "))({"k-range-end":!t.isOtherMonth&&r,"k-range-mid":!t.isOtherMonth&&t.isRangeMid,"k-range-split-end":!t.isOtherMonth&&t.isRangeSplitEnd,"k-range-split-start":!t.isOtherMonth&&t.isRangeSplitStart,"k-range-start":!t.isOtherMonth&&s,"k-state-active":"start"===this.activeRangeEnd&&s||"end"===this.activeRangeEnd&&r,"k-state-focused":!t.isOtherMonth&&this.isActive&&t.isFocused,"k-state-selected":!t.isOtherMonth&&(t.isSelected||s||r),"k-today":!t.isOtherMonth&&t.isToday,"k-weekend":t.isWeekend,"k-state-disabled":t.isDisabled,"k-other-month":t.isOtherMonth})}tableCellIndex(t,r){return`${t}:${r}`}handleWeekNumberClick(t){const r=t.map(s=>s.value).filter(s=>!this.disabledDatesService.isDateDisabled(s));this.weekNumberCellClick.emit(r)}firstWeekDateContext(t){if(!this.weekNumber)return null;let r=0,s=this.shouldRenderCellContent(t[r])?t[r]:null;for(;!s&&r<t.length;){const l=t[++r];s=this.shouldRenderCellContent(l)?l:null}return s}updateData(){const t=bm(this.selectedDates)||Uu(),r=qp(this.viewDate,t);this.data=this.service.data({cellUID:this.cellUID,focusedDate:this.focusedDate,isActiveView:!this.bus.canMoveDown(this.activeView),max:this.max,min:this.min,selectedDates:this.selectedDates,selectionRange:this.selectionRange,viewDate:r,isDateDisabled:this.disabledDatesService.isDateDisabled,direction:this.direction})}intlChange(){this.updateData(),this.cdr.markForCheck()}disabledDatesChange(){this.updateData(),this.cdr.markForCheck()}bindEvents(){const t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",this.cellMouseoverHandler.bind(this)),this.renderer.listen(t,"mouseleave",this.mouseLeaveHandler.bind(this)),this.renderer.listen(t,"click",this.clickHandler.bind(this)))}clickHandler(t){const r=this.closestCell(t);if(!r)return;const s=r.getAttribute("data-cell-index"),l=this.cellByIndex(s);if(!l.isDisabled){const{ctrlKey:u,metaKey:p,shiftKey:y}=t;this.cellClick.emit({date:l.value,modifiers:{ctrlKey:u,metaKey:p,shiftKey:y}})}}mouseLeaveHandler(){this.currentCellIndex&&this.emitCellLeave()}cellMouseoverHandler(t){const r=this.closestCell(t);if(r){const s=r.getAttribute("data-cell-index");this.currentCellIndex&&this.currentCellIndex!==s&&this.emitCellLeave();const l=this.cellByIndex(s).value;this.cellEnter.emit(l),this.currentCellIndex=s}else this.currentCellIndex&&this.emitCellLeave()}closestCell(t){return hF(t.target,r=>r.hasAttribute("data-cell-index"),this.element.nativeElement)}emitCellLeave(){const t=this.cellByIndex(this.currentCellIndex);t&&this.cellLeave.emit(t.value),this.currentCellIndex=null}cellByIndex(t){const[r,s]=t.split(":");return this.data[r][s]}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(za),n.Y36(_i.aJ),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(ll))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoCalendarView",""]],inputs:{direction:"direction",isActive:"isActive",selectedDates:"selectedDates",weekNumber:"weekNumber",activeView:"activeView",cellUID:"cellUID",focusedDate:"focusedDate",viewDate:"viewDate",activeRangeEnd:"activeRangeEnd",selectionRange:"selectionRange",min:"min",max:"max",viewIndex:"viewIndex",templateRef:"templateRef",weekNumberTemplateRef:"weekNumberTemplateRef"},outputs:{cellClick:"cellClick",weekNumberCellClick:"weekNumberCellClick",cellEnter:"cellEnter",cellLeave:"cellLeave"},features:[n.TTD],attrs:pDe,decls:4,vars:2,consts:[["emptyCell",""],["class","k-calendar-tr","role","row",4,"ngIf"],["class","k-calendar-tr","role","row",4,"kFor","kForOf"],[1,"k-empty","k-calendar-td"],["role","row",1,"k-calendar-tr"],["scope","col",1,"k-calendar-caption",3,"colSpan"],[3,"ngIf"],[4,"kFor","kForOf"],["class","k-alt k-calendar-td",3,"kendoEventsOutsideAngular",4,"ngIf","ngIfElse"],[1,"k-alt","k-calendar-td",3,"kendoEventsOutsideAngular"],[3,"ngIf","ngTemplateOutlet","ngTemplateOutletContext"],["class","k-calendar-td","role","gridcell",3,"ngClass","title",4,"ngIf","ngIfElse"],["role","gridcell",1,"k-calendar-td",3,"ngClass","title"],[1,"k-link"],[4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.YNc(0,hDe,2,0,"ng-template",null,0,n.W1O),n.YNc(2,gDe,3,2,"tr",1),n.YNc(3,TDe,3,2,"tr",2)),2&t&&(n.xp6(2),n.Q6J("ngIf",!r.isHorizontal()),n.xp6(1),n.Q6J("kForOf",r.data))},dependencies:[gt,Ge,Pi,_a,m6],encapsulation:2}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"direction",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"isActive",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"activeView",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cellUID",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"focusedDate",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"viewDate",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"activeRangeEnd",void 0),K([(0,n.IIB)(),Z("design:type",Object)],i.prototype,"selectionRange",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Array)],i.prototype,"selectedDates",void 0),K([(0,n.IIB)(),Z("design:type",Boolean),Z("design:paramtypes",[Boolean])],i.prototype,"weekNumber",null),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"viewIndex",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"templateRef",void 0),K([(0,n.IIB)(),Z("design:type",n.Rgc)],i.prototype,"weekNumberTemplateRef",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"weekNumberCellClick",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellEnter",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"cellLeave",void 0),i=K([Z("design:paramtypes",[za,_i.aJ,n.sBO,n.SBq,n.R0b,n.Qsj,ll])],i),i})(),_6=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,bs]}),i})(),ym=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})(),b6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"today",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"prevButtonTitle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nextButtonTitle",void 0),i})();var vF;let _0=vF=class extends b6{constructor(o){super(),this.service=o}};var yF;_0.\u0275fac=function(o){return new(o||_0)(n.Y36(Te))},_0.\u0275dir=n.lG2({type:_0,selectors:[["","kendoMultiViewCalendarLocalizedMessages",""]],features:[n._Bn([{provide:b6,useExisting:(0,n.Gpc)(()=>vF)}]),n.qOj]}),_0=vF=K([Z("design:paramtypes",[Te])],_0);let b0=yF=class extends b6{constructor(o){super(),this.service=o}get override(){return!0}};b0.\u0275fac=function(o){return new(o||b0)(n.Y36(Te))},b0.\u0275cmp=n.Xpm({type:b0,selectors:[["kendo-multiviewcalendar-messages"]],features:[n._Bn([{provide:b6,useExisting:(0,n.Gpc)(()=>yF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),b0=yF=K([Z("design:paramtypes",[Te])],b0);let v6=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[m0,tF,iF,rF,sF,p6],imports:[Lt,_6,_i.o0,ym,Eu,_6,ym]}),i})(),y6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{today:"today",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"today",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"prevButtonTitle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nextButtonTitle",void 0),i})();var CF;let v0=CF=class extends y6{constructor(o){super(),this.service=o}};var AF;v0.\u0275fac=function(o){return new(o||v0)(n.Y36(Te))},v0.\u0275dir=n.lG2({type:v0,selectors:[["","kendoCalendarLocalizedMessages",""]],features:[n._Bn([{provide:y6,useExisting:(0,n.Gpc)(()=>CF)}]),n.qOj]}),v0=CF=K([Z("design:paramtypes",[Te])],v0);let Cm=AF=class extends y6{constructor(o){super(),this.service=o}get override(){return!0}};Cm.\u0275fac=function(o){return new(o||Cm)(n.Y36(Te))},Cm.\u0275cmp=n.Xpm({type:Cm,selectors:[["kendo-calendar-messages"]],features:[n._Bn([{provide:y6,useExisting:(0,n.Gpc)(()=>AF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),Cm=AF=K([Z("design:paramtypes",[Te])],Cm);let bW=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})(),C6=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[Eg,tF,iF,rF,sF,p6],imports:[Lt,_6,v6,_i.o0,ym,bW,bs,cg,_6,ym]}),i})(),vW=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[C6,v6,C6,v6]}),i})(),A6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{decrement:"decrement",increment:"increment"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"decrement",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"increment",void 0),i})();var xF;let y0=xF=class extends A6{constructor(o){super(),this.service=o}};var TF;y0.\u0275fac=function(o){return new(o||y0)(n.Y36(Te))},y0.\u0275dir=n.lG2({type:y0,selectors:[["","kendoDateInputLocalizedMessages",""]],features:[n._Bn([{provide:A6,useExisting:(0,n.Gpc)(()=>xF)}]),n.qOj]}),y0=xF=K([Z("design:paramtypes",[Te])],y0);let Uy=TF=class extends A6{constructor(o){super(),this.service=o}get override(){return!0}};Uy.\u0275fac=function(o){return new(o||Uy)(n.Y36(Te))},Uy.\u0275cmp=n.Xpm({type:Uy,selectors:[["kendo-dateinput-messages"]],features:[n._Bn([{provide:A6,useExisting:(0,n.Gpc)(()=>TF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),Uy=TF=K([Z("design:paramtypes",[Te])],Uy);let Yy=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,_i.o0,bs]}),i})(),x6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{today:"today",toggle:"toggle",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"today",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"toggle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"prevButtonTitle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nextButtonTitle",void 0),i})();var SF;let C0=SF=class extends x6{constructor(o){super(),this.service=o}};var wF;C0.\u0275fac=function(o){return new(o||C0)(n.Y36(Te))},C0.\u0275dir=n.lG2({type:C0,selectors:[["","kendoDatePickerLocalizedMessages",""]],features:[n._Bn([{provide:x6,useExisting:(0,n.Gpc)(()=>SF)}]),n.qOj]}),C0=SF=K([Z("design:paramtypes",[Te])],C0);let Xp=wF=class extends x6{constructor(o){super(),this.service=o}get override(){return!0}};Xp.\u0275fac=function(o){return new(o||Xp)(n.Y36(Te))},Xp.\u0275cmp=n.Xpm({type:Xp,selectors:[["kendo-datepicker-messages"]],features:[n._Bn([{provide:x6,useExisting:(0,n.Gpc)(()=>wF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),Xp=wF=K([Z("design:paramtypes",[Te])],Xp);const PIe=iT;let MF=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Pg,useValue:PIe}],imports:[Lt,Yy,C6,_i.o0,Eu,ym,bs,ym]}),i})();const OIe=[v6,Yy,Eu,bs];let yW=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,OIe]}),i})();const DF=Ld("div"),NIe=Ld("ul"),LIe=Ld("li"),HIe=Dt()?DF([DF([DF([NIe([LIe("<span>02</span>","k-item")],"k-reset")],"k-time-container k-content k-scrollable")],"k-time-list")],"k-time-list-wrapper",{left:"-10000px",position:"absolute"}):null;let VT=(()=>{let i=class{ensureHeights(){void 0===this.timeListHeight&&this.calculateHeights()}calculateHeights(t){if(!Dt())return;const s=t&&t.querySelector(".k-time-list-container")||document.body,l=s.appendChild(HIe);this.timeListHeight=l.querySelector(".k-scrollable").getBoundingClientRect().height,this.itemHeight=l.querySelector("li").getBoundingClientRect().height,s.removeChild(l)}isActive(t){return!(!Dt()||!t)&&(t.nativeElement||t)===document.activeElement}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i})();const CW=o=>o%24,AW=(i,o)=>CW(24+i-o),xW=i=>(o,t)=>t&&Cr(o).getTime()!==Cr(t).getTime()?QE(o,i):o,UIe=xW(0),YIe=xW(23);let TW=(()=>{let i=class{constructor(t){this.intl=t,this.boundRange=!1,this.insertUndividedMax=!1}apply(t,r){return QE(t,r.getHours())}configure(t){const{boundRange:r=this.boundRange,insertUndividedMax:s=this.insertUndividedMax,min:l=this.min,max:u=this.max,part:p,step:y=this.step}=t;this.boundRange=r,this.insertUndividedMax=s,this.toListItem=A=>{const w=QE(Gp,A);return{text:this.intl.formatDate(w,p.pattern),value:w}},this.min=l,this.max=u,this.step=y}data(t){const[r]=this.range(t),s=((i,o)=>t=>CW(i+t*o))(r,this.step),u=sl(0,this.countFromMin(t)).map(p=>this.toListItem(s(p)));return this.addLast(u),this.addMissing(u,t),u}isRangeChanged(t,r){return!er(this.min,t)||!er(this.max,r)}limitRange(t,r,s){return this.boundRange?[UIe(t,s),YIe(r,s)]:[t,r]}total(t){const r=this.insertUndividedMax&&this.isLastMissing(t)?1:0,s=this.isMissing(t)?1:0;return this.countFromMin(t)+s+r}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastHour(t)===t.getHours()||!this.isMissing(t)}addLast(t,r){return this.insertUndividedMax&&this.isLastMissing(r)&&t.push(this.toListItem(this.lastHour(r))),t}addMissing(t,r){if(this.valueInList(r))return t;const s=this.toListItem(r.getHours());return t.splice(this.selectedIndex(r),0,s),t}countFromMin(t){const[r,s]=this.range(t);return Math.floor(AW(s,r)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(QE(this.max,this.lastHour(t)))}divideByStep(t){return AW(t.getHours(),this.min.getHours())/this.step}lastHour(t){return this.range(t)[1]}range(t){const[r,s]=this.limitRange(this.min,this.max,t);return[r.getHours(),s.getHours()]}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const SW=o=>o%60,wW=(i,o)=>SW(60+i-o),MW=i=>(o,t)=>t&&o.getHours()!==t.getHours()?WE(o,i):o,ZIe=MW(0),VIe=MW(59);let DW=(()=>{let i=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,r){return WE(t,r.getMinutes())}configure(t){const{insertUndividedMax:r=this.insertUndividedMax,min:s=this.min,max:l=this.max,part:u,step:p=this.step}=t;this.insertUndividedMax=r,this.toListItem=y=>{const A=WE(Gp,y);return{text:this.intl.formatDate(A,u.pattern),value:A}},this.min=s,this.max=l,this.step=p}data(t){const[r]=this.range(t),s=((i,o)=>t=>SW(i+t*o))(r,this.step),u=sl(0,this.countFromMin(t)).map(p=>this.toListItem(s(p)));return this.addLast(u),this.addMissing(u,t),u}isRangeChanged(t,r){return!er(this.min,t)||!er(this.max,r)}limitRange(t,r,s){return[ZIe(t,s),VIe(r,s)]}total(t){const r=this.insertUndividedMax&&this.isLastMissing(t)?1:0,s=this.isMissing(t)?1:0;return this.countFromMin(t)+s+r}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastMinute(t)===t.getMinutes()||!this.isMissing(t)}addLast(t,r){return this.insertUndividedMax&&this.isLastMissing(r)&&t.push(this.toListItem(this.lastMinute(r))),t}addMissing(t,r){if(this.valueInList(r))return t;const s=this.toListItem(r.getMinutes());return t.splice(this.selectedIndex(r),0,s),t}countFromMin(t){const[r,s]=this.range(t);return Math.floor(wW(s,r)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(WE(this.max,this.lastMinute(t)))}divideByStep(t){return wW(t.getMinutes(),this.min.getMinutes())/this.step}lastMinute(t){return this.range(t)[1]}range(t){const[r,s]=this.limitRange(this.min,this.max,t);return[r.getMinutes(),s.getMinutes()]}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const kW=o=>o%60,IW=(i,o)=>kW(60+i-o),EW=i=>(o,t)=>!t||o.getHours()===t.getHours()&&o.getMinutes()===t.getMinutes()?o:KE(o,i),GIe=EW(0),qIe=EW(59);let PW=(()=>{let i=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,r){return KE(t,r.getSeconds())}configure(t){const{insertUndividedMax:r=this.insertUndividedMax,min:s=this.min,max:l=this.max,part:u,step:p=this.step}=t;this.insertUndividedMax=r,this.toListItem=y=>{const A=KE(Gp,y);return{text:this.intl.formatDate(A,u.pattern),value:A}},this.min=s,this.max=l,this.step=p}data(t){const[r]=this.range(t),s=((i,o)=>t=>kW(i+t*o))(r,this.step),u=sl(0,this.countFromMin(t)).map(p=>this.toListItem(s(p)));return this.addLast(u),this.addMissing(u,t),u}isRangeChanged(t,r){return!er(this.min,t)||!er(this.max,r)}limitRange(t,r,s){return[GIe(t,s),qIe(r,s)]}total(t){const r=this.insertUndividedMax&&this.isLastMissing(t)?1:0,s=this.isMissing(t)?1:0;return this.countFromMin(t)+s+r}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastSecond(t)===t.getSeconds()||!this.isMissing(t)}divideByStep(t){return IW(t.getSeconds(),this.min.getSeconds())/this.step}addLast(t,r){return this.insertUndividedMax&&this.isLastMissing(r)&&t.push(this.toListItem(this.lastSecond(r))),t}addMissing(t,r){if(this.valueInList(r))return t;const s=this.toListItem(r.getSeconds());return t.splice(this.selectedIndex(r),0,s),t}countFromMin(t){const[r,s]=this.range(t);return Math.floor(IW(s,r)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(KE(this.max,this.lastSecond(t)))}lastSecond(t){return this.range(t)[1]}range(t){const[r,s]=this.limitRange(this.min,this.max,t);return[r.getSeconds(),s.getSeconds()]}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const OW=o=>o%1e3,NW=(i,o)=>OW(1e3+i-o),LW=i=>(o,t)=>!t||o.getHours()===t.getHours()&&o.getMinutes()===t.getMinutes()&&o.getSeconds()===t.getSeconds()?o:XE(o,i),QIe=LW(0),WIe=LW(999);let RW=(()=>{let i=class{constructor(t){this.intl=t,this.insertUndividedMax=!1}apply(t,r){return XE(t,r.getMilliseconds())}configure(t){const{insertUndividedMax:r=this.insertUndividedMax,min:s=this.min,max:l=this.max,step:u=this.step}=t;this.insertUndividedMax=r,this.toListItem=p=>{const y=XE(Gp,p);return{text:this.intl.formatDate(y,"SSS"),value:y}},this.min=s,this.max=l,this.step=u}data(t){const[r]=this.range(t),s=((i,o)=>t=>OW(i+t*o))(r,this.step),u=sl(0,this.countFromMin(t)).map(p=>this.toListItem(s(p)));return this.addLast(u),this.addMissing(u,t),u}isRangeChanged(t,r){return!er(this.min,t)||!er(this.max,r)}limitRange(t,r,s){return[QIe(t,s),WIe(r,s)]}total(t){const r=this.insertUndividedMax&&this.isLastMissing(t)?1:0,s=this.isMissing(t)?1:0;return this.countFromMin(t)+s+r}selectedIndex(t){return Math.ceil(this.divideByStep(t))}valueInList(t){return!t||this.insertUndividedMax&&this.lastMillisecond(t)===t.getMilliseconds()||!this.isMissing(t)}divideByStep(t){return NW(t.getMilliseconds(),this.min.getMilliseconds())/this.step}addLast(t,r){return this.insertUndividedMax&&this.isLastMissing(r)&&t.push(this.toListItem(this.lastMillisecond(r))),t}addMissing(t,r){if(this.valueInList(r))return t;const s=this.toListItem(r.getMilliseconds());return t.splice(this.selectedIndex(r),0,s),t}countFromMin(t){const[r,s]=this.range(t);return Math.floor(NW(s,r)/this.step)+1}isMissing(t){return!!t&&this.selectedIndex(t)!==this.divideByStep(t)}isLastMissing(t){return this.isMissing(XE(this.max,this.lastMillisecond(t)))}lastMillisecond(t){return this.range(t)[1]}range(t){const[r,s]=this.limitRange(this.min,this.max,t);return[r.getMilliseconds(),s.getMilliseconds()]}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const OF=(i,o)=>{const t=St(i);return t.setHours(o),t},NF=i=>null!==i&&i<12,XIe=(i,o,t)=>!o&&!t||i>=o&&i<=t,eEe=(i,o,t)=>!o&&!t||i>=o||i<=t;let FW=(()=>{let i=class{constructor(t){this.intl=t}apply(t,r){const s=t.getHours(),l=NF(s),u=NF(r.getHours());if(l&&u||!l&&!u)return t;const[p,y=24]=this.normalizedRange();return OF(t,Math.min(Math.max(p,s+(u?-12:12)),y||24))}configure(t){const{min:r=this.min,max:s=this.max,part:l=this.part}=t;this.min=r,this.max=s,this.part=l}data(t){const r=this.part.names;if(!r)return[];const s=[],[l,u]=this.normalizedRange(),p=this.intl.dateFormatNames(r);return NF(l)&&s.push({text:p.am,value:OF(this.min,l)}),(i=>null!==i&&(!i||i>11))(u)&&s.push({text:p.pm,value:OF(this.min,Math.max(12,u))}),this.min.getHours()!==l?s.reverse():s}isRangeChanged(t,r){return!1}limitRange(t,r,s){return[t,r]}total(){const[t,r]=this.normalizedRange();return(t||r)&&(t>11||r<12)?1:2}selectedIndex(t){if(!this.valueInList(t))return-1;const r=Math.floor(t.getHours()/12);return this.min.getHours()===this.normalizedRange()[0]?r:0===r?1:0}valueInList(t){return(this.min.getHours()!==this.normalizedRange()[0]?eEe:XIe)(t.getHours(),this.min.getHours(),this.max.getHours())}normalizedRange(){const t=this.min.getHours(),r=this.max.getHours();return[Math.min(t,r),Math.max(t,r)]}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(_i.aJ))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=K([Z("design:paramtypes",[_i.aJ])],i),i})();const nEe=()=>null,iEe={35:(i,o)=>i[i.length-1],36:(i,o)=>i[0],38:(i,o)=>i[o-1],40:(i,o)=>i[o+1]},oEe={dayperiod:FW,hour:TW,minute:DW,second:PW,millisecond:RW};let T6=(()=>{let i=class{constructor(t,r,s,l,u){this.element=t,this.injector=r,this.dom=s,this.renderer=l,this.zone=u,this.min=St(Gp),this.max=St(g0),this.step=1,this.disabled=!1,this.valueChange=new n.vpe,this.componentClass=!0,this.animateToIndex=!0,this.isActive=!1,this.skip=0,this.total=60,this.data=[],this.indexToScroll=-1,this.domEvents=[]}get tabIndex(){return this.disabled?void 0:0}ngOnChanges(t){t.part&&(this.service=this.injector.get(oEe[this.part.type]),this.service.configure(this.serviceSettings()));const r=this.value,s=t.value||{},[l,u]=this.service.limitRange(this.min,this.max,r);(this.service.isRangeChanged(l,u)||t.min||t.max||t.step)&&(this.data=[],this.service.configure(this.serviceSettings({min:l,max:u}))),(!this.data.length||this.hasMissingValue(s))&&(this.animateToIndex=!1,this.data=this.service.data(r)),this.animateToIndex=this.animateToIndex&&this.textHasChanged(s),this.total=this.service.total(r),this.indexToScroll=this.selectedIndex(r)}ngOnInit(){this.animateToIndex=!0,this.dom.ensureHeights(),this.itemHeight=this.dom.itemHeight,this.listHeight=this.dom.timeListHeight,this.topOffset=(this.listHeight-this.itemHeight)/2,this.bottomOffset=this.listHeight-this.itemHeight,this.topThreshold=.05*this.itemHeight,this.bottomThreshold=.95*this.itemHeight;const t=`translateY(${this.topOffset}px)`;this.style={transform:t,"-ms-transform":t},this.element&&this.zone.runOutsideAngular(()=>{this.bindEvents()})}ngOnDestroy(){this.scrollSubscription.unsubscribe(),this.domEvents.forEach(t=>t())}ngAfterViewInit(){this.scrollOnce(t=>this.virtualization.scrollToIndex(t))}ngAfterViewChecked(){this.scrollOnce(t=>{this.virtualization[this.animateToIndex?"animateToIndex":"scrollToIndex"](t),this.animateToIndex=!0})}handleChange(t){const r=this.service.apply(this.value,t.value);this.value.getTime()!==r.getTime()&&(this.indexToScroll=this.data.indexOf(t),this.value=r,this.valueChange.emit(r))}handleItemClick(t){const r=hF(t.target,s=>s.hasAttribute("data-timelist-item-index"),this.element.nativeElement);if(r){const s=r.getAttribute("data-timelist-item-index");this.handleChange(this.data[s])}}focus(){!this.element||this.element.nativeElement.focus()}blur(){!this.element||this.element.nativeElement.blur()}itemOffset(t){const r=this.selectedIndex(this.value),s=this.virtualization.activeIndex(),l=this.virtualization.itemOffset(s),u=Math.abs(Math.ceil(t)-l);if(r===s&&u<2)return l;const p=r>s;return p&&u>=this.bottomThreshold||!p&&u>this.topThreshold?this.virtualization.itemOffset(s+1):l}hasMissingValue({previousValue:t,currentValue:r}){const s=t&&!this.service.valueInList(t),l=r&&!this.service.valueInList(r);return s||l}scrollOnce(t){-1!==this.indexToScroll&&(t(this.indexToScroll),this.indexToScroll=-1)}serviceSettings(t){const s=Object.assign({},{boundRange:!1,insertUndividedMax:!1,max:this.max,min:this.min,part:this.part,step:this.step},t);return s.boundRange="hour"!==s.part.type,s}selectedIndex(t){return t?this.service.selectedIndex(t):-1}textHasChanged({previousValue:t,currentValue:r}){if(!t||!r)return!1;const s=this.data[this.selectedIndex(t)],l=this.data[this.selectedIndex(r)];return s&&l&&s.text!==l.text}handleKeyDown(t){const s=(iEe[t.keyCode]||nEe)(this.data,this.service.selectedIndex(this.value));s&&(this.handleChange(s),t.preventDefault())}bindEvents(){this.scrollSubscription=this.virtualization.scroll$().pipe(xu(100),(0,ft.U)(r=>r.target.scrollTop),(0,ft.U)(r=>this.itemOffset(r)),(0,ft.U)(r=>this.virtualization.itemIndex(r))).subscribe(r=>{this.virtualization.scrollToIndex(r),this.handleChange(this.data[r])});const t=this.element.nativeElement;this.domEvents.push(this.renderer.listen(t,"mouseover",()=>!this.isActive&&this.focus()),this.renderer.listen(t,"click",()=>this.focus()),this.renderer.listen(t,"blur",()=>this.isActive=!1),this.renderer.listen(t,"focus",()=>this.isActive=!0),this.renderer.listen(t,"keydown",this.handleKeyDown.bind(this)))}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.zs3),n.Y36(VT),n.Y36(n.Qsj),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-timelist"]],viewQuery:function(t,r){if(1&t&&n.Gf(Fc,7),2&t){let s;n.iGM(s=n.CRH())&&(r.virtualization=s.first)}},hostVars:3,hostBindings:function(t,r){2&t&&(n.uIk("tabindex",r.tabIndex),n.ekj("k-time-list",r.componentClass))},inputs:{min:"min",max:"max",step:"step",disabled:"disabled",value:"value",part:"part"},outputs:{valueChange:"valueChange"},features:[n.TTD],decls:3,vars:13,consts:[["role","presentation","tabindex","-1",1,"k-time-container",3,"skip","take","total","itemHeight","maxScrollDifference","topOffset","bottomOffset"],[1,"k-reset",3,"ngStyle","kendoEventsOutsideAngular","scope"],["class","k-item",4,"ngFor","ngForOf"],[1,"k-item"]],template:function(t,r){1&t&&(n.TgZ(0,"kendo-virtualization",0)(1,"ul",1),n.YNc(2,SDe,3,2,"li",2),n.qZA()()),2&t&&(n.Q6J("skip",r.skip)("take",r.total)("total",r.total)("itemHeight",r.itemHeight)("maxScrollDifference",r.listHeight)("topOffset",r.topOffset)("bottomOffset",r.bottomOffset),n.xp6(1),n.Q6J("ngStyle",r.style)("kendoEventsOutsideAngular",n.VKq(11,mm,r.handleItemClick))("scope",r),n.xp6(1),n.Q6J("ngForOf",r.data))},dependencies:[Bt,uo,Fc,_a],encapsulation:2}),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Object)],i.prototype,"part",void 0),K([(0,n.IIB)(),Z("design:type",Number)],i.prototype,"step",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"value",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueChange",void 0),K([(0,n.i9L)(Fc,{static:!0}),Z("design:type",Fc)],i.prototype,"virtualization",void 0),K([(0,n.pfw)("attr.tabindex"),Z("design:type",Number),Z("design:paramtypes",[])],i.prototype,"tabIndex",null),K([(0,n.pfw)("class.k-time-list"),Z("design:type",Boolean)],i.prototype,"componentClass",void 0),i=K([Z("design:paramtypes",[n.SBq,n.zs3,VT,n.Qsj,n.R0b])],i),i})();const HW=(i,o)=>i.getHours()===o.getHours()&&i.getMinutes()===o.getMinutes(),$W=(i,o)=>HW(i,o)&&i.getSeconds()===o.getSeconds(),UW=[{type:"hour",getter:i=>i.getHours(),minGetter:(i,o)=>o.getHours()},{type:"minute",getter:i=>i.getMinutes(),minGetter:(i,o)=>HW(i,o)?o.getMinutes():0},{type:"second",getter:i=>i.getSeconds(),minGetter:(i,o)=>$W(i,o)?o.getSeconds():0},{type:"millisecond",getter:i=>i.getMilliseconds(),minGetter:(i,o)=>((i,o)=>$W(i,o)&&i.getMilliseconds()===o.getMilliseconds())(i,o)?o.getMilliseconds():0}],YW=(i=>o=>i.map((i=>o=>i[o.type]?(i=>(o,t)=>i(t))(o.getter):(i=>(o,t)=>i(o))(o.getter))((i=>i.reduce((o,t)=>(o[t.type]=t.type,o),{}))(o))))(UW),CEe=(i=>o=>i.map(t=>{const r=o[t.type];return r?((i,o,t)=>(r,s)=>{const l=i(r),u=o(r,s),p=l-u;if(p<0)return u;const y=p%t;return l-y+(y>t/2?t:0)})(t.getter,t.minGetter,r):t.getter}))(UW),jW=i=>(o,t)=>(o.setHours(...i.map(r=>r(o,t))),o),xEe=(i,o,t,r)=>i.length||!o.isActive?i:[{next:r[t+1]||o,prev:r[t-1]||o}];var jy=(()=>(function(i){i[i.Left=0]="Left",i[i.Right=1]="Right"}(jy||(jy={})),jy))();let LF=(()=>{let i=class{constructor(t,r,s,l,u,p,y,A){this.localization=t,this.cdr=r,this.element=s,this.intl=l,this.dom=u,this.zone=p,this.renderer=y,this.pickerService=A,this.componentClass=!0,this.format="t",this.min=St(Fy),this.max=St(g0),this.cancelButton=!0,this.setButton=!0,this.nowButton=!0,this.disabled=!1,this.value=null,this.valueChange=new n.vpe,this.valueReject=new n.vpe,this.isActive=!1,this.showNowButton=!0,this._activeListIndex=-1,this._steps={},this.domEvents=[],this.pickerService&&(this.pickerService.timeSelector=this)}get disabledClass(){return this.disabled}set steps(t){this._steps=t||{}}get steps(){return this._steps}set current(t){this._current=((i,o,t)=>{if(!i||!o||!t)return i;const{candidateValue:r,minValue:s,maxValue:l}=ZQ(i,o,t);return r<s?qp(i,o):r>l?qp(i,t):i})(this.snapTime(St(t||Gp),this.min),this.min,this.max),n.R0b.isInAngularZone()||this.cdr.detectChanges()}get current(){return this._current}get activeListIndex(){return this._activeListIndex}set activeListIndex(t){if(this._activeListIndex=t,this.timeListWrappers&&this.timeListWrappers.length&&(this.timeListWrappers.forEach(r=>{this.renderer.removeClass(r.nativeElement,"k-state-focused")}),t>=0)){const r=this.listIndex(t),s=this.timeListWrappers.toArray()[r];s&&this.renderer.addClass(s.nativeElement,"k-state-focused")}}ngOnInit(){this.subscriptions=this.intl.changes.subscribe(this.intlChange.bind(this)),this.localization&&this.subscriptions.add(this.localization.changes.subscribe(()=>this.cdr.markForCheck())),this.dom.calculateHeights(this.element.nativeElement),this.init(),this.bindEvents()}ngOnChanges(t){this.init()}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe(),this.pickerService&&(this.pickerService.timeSelector=null),this.domEvents.forEach(t=>t())}focus(){const t=this.timeLists.first;!t||t.focus()}blur(){const t=this.timeLists.first;!t||t.blur()}handleAccept(){this.handleChange(this.mergeValue(St(this.value||Cr(WR())),this.current))}handleNow(){this.current=WR(),this.handleChange(this.current),this.cdr.markForCheck()}handleReject(){this.current=this.value,this.valueReject.emit()}handleFocus(t){this.isActive||(this.isActive=!0,this.emitFocus(t))}handleListFocus(t){const r=parseInt(t.target.getAttribute("data-timelist-index"),10);this.activeListIndex=r,this.handleFocus(t)}handleBlur(t){const r=JR(t);r&&this.containsElement(r)||(this.activeListIndex=-1,this.isActive=!1,this.emitBlur(t))}containsElement(t){return Boolean(gF(t,r=>r===this.element.nativeElement))}partStep(t){return this.steps[t.type]||1}init(t){(!t||_m(t,"format"))&&(this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=jW(YW(this.dateFormatParts))),(!t||_m(t,"steps"))&&(this.snapTime=(i=>(o,t)=>{const r=St(o);return r.setHours(...i.map(s=>s(r,t))),r})(CEe(this.steps))),(!t||_m(t,"value"))&&(this.current=this.value),this.showNowButton=!this.hasSteps()&&this.nowButton&&VQ(WR(),this.min,this.max)}focusList(t){!this.timeLists.length||this.timeLists.reduce(xEe,[]).map(r=>t===jy.Right?r.next:r.prev).map(r=>r&&r.focus())}handleChange(t){this.value=t,this.valueChange.emit(St(t))}hasActiveButton(){return!!this.accept&&[this.accept,this.cancel,this.now].reduce((t,r)=>t||this.dom.isActive(r),!1)}hasSteps(){const t=Object.keys(this.steps);return t.length!==t.reduce((r,s)=>r+this.steps[s],0)}intlChange(){this.dateFormatParts=this.intl.splitDateFormat(this.format),this.mergeValue=jW(YW(this.dateFormatParts)),this.cdr.markForCheck()}bindEvents(){this.element&&this.zone.runOutsideAngular(()=>{this.domEvents.push(this.renderer.listen(this.element.nativeElement,"keydown",this.handleKeydown.bind(this)))})}handleKeydown(t){const{keyCode:r,altKey:s}=t,l=-1!==[Ie.ArrowLeft,Ie.ArrowRight].indexOf(r);yn(this.pickerService)&&l&&s||(r!==Ie.Enter||this.hasActiveButton()?(r===Ie.ArrowLeft||r===Ie.ArrowRight)&&this.focusList(r===Ie.ArrowLeft?jy.Left:jy.Right):this.handleAccept())}emitBlur(t){this.pickerService&&this.pickerService.onBlur.emit(t)}emitFocus(t){this.pickerService&&this.pickerService.onFocus.emit(t)}listIndex(t){let r=0,s=0;for(;s<t;)"literal"!==this.dateFormatParts[s].type&&r++,s++;return r}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Te),n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(_i.aJ),n.Y36(VT),n.Y36(n.R0b),n.Y36(n.Qsj),n.Y36(Ol,8))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-timeselector"]],viewQuery:function(t,r){if(1&t&&(n.Gf(wDe,5),n.Gf(MDe,5),n.Gf(DDe,5),n.Gf(T6,5),n.Gf(kDe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.accept=s.first),n.iGM(s=n.CRH())&&(r.cancel=s.first),n.iGM(s=n.CRH())&&(r.now=s.first),n.iGM(s=n.CRH())&&(r.timeLists=s),n.iGM(s=n.CRH())&&(r.timeListWrappers=s)}},hostVars:4,hostBindings:function(t,r){2&t&&n.ekj("k-timeselector",r.componentClass)("k-state-disabled",r.disabledClass)},inputs:{format:"format",min:"min",max:"max",cancelButton:"cancelButton",setButton:"setButton",nowButton:"nowButton",disabled:"disabled",value:"value",steps:"steps"},outputs:{valueChange:"valueChange",valueReject:"valueReject"},exportAs:["kendo-timeselector"],features:[n._Bn([Te,{provide:gn,useValue:"kendo.timeselector"}]),n.TTD],decls:9,vars:4,consts:function(){let o,t,r,s,l,u;return o="",t="",r="",s="",l="",u="",[["kendoTimeSelectorLocalizedMessages","","accept",o,"acceptLabel",t,"cancel",r,"cancelLabel",s,"now",l,"nowLabel",u],[1,"k-time-header"],[1,"k-title","k-timeselector-title"],["class","k-button k-flat k-time-now","type","button",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],[1,"k-time-list-container"],[1,"k-time-highlight"],["ngFor","",3,"ngForOf"],["class","k-time-footer k-action-buttons",4,"ngIf"],["type","button",1,"k-button","k-flat","k-time-now",3,"kendoEventsOutsideAngular","scope","disabled"],["now",""],["class","k-time-list-wrapper","role","presentation","tabindex","-1",4,"ngIf"],["class","k-time-separator",4,"ngIf"],["role","presentation","tabindex","-1",1,"k-time-list-wrapper"],["listWrapper",""],[3,"min","max","part","step","disabled","value","kendoEventsOutsideAngular","scope","valueChange"],[1,"k-time-separator"],[1,"k-time-footer","k-action-buttons"],["class","k-button k-time-cancel","type","button",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["type","button","class","k-time-accept k-button k-primary",3,"kendoEventsOutsideAngular","scope","disabled",4,"ngIf"],["type","button",1,"k-button","k-time-cancel",3,"kendoEventsOutsideAngular","scope","disabled"],["cancel",""],["type","button",1,"k-time-accept","k-button","k-primary",3,"kendoEventsOutsideAngular","scope","disabled"],["accept",""]]},template:function(t,r){1&t&&(n.GkF(0,0),n.TgZ(1,"div",1)(2,"span",2),n._uU(3),n.qZA(),n.YNc(4,IDe,3,10,"button",3),n.qZA(),n.TgZ(5,"div",4),n._UZ(6,"span",5),n.YNc(7,NDe,2,2,"ng-template",6),n.qZA(),n.YNc(8,FDe,3,2,"div",7)),2&t&&(n.xp6(3),n.hij(" ",r.intl.formatDate(r.current,r.format)," "),n.xp6(1),n.Q6J("ngIf",r.showNowButton),n.xp6(3),n.Q6J("ngForOf",r.dateFormatParts),n.xp6(1),n.Q6J("ngIf",r.setButton||r.cancelButton))},dependencies:function(){return[Bt,Ge,_a,T6,Tm]},encapsulation:2,changeDetection:0}),K([(0,n.i9L)("accept",{static:!1}),Z("design:type",n.SBq)],i.prototype,"accept",void 0),K([(0,n.i9L)("cancel",{static:!1}),Z("design:type",n.SBq)],i.prototype,"cancel",void 0),K([(0,n.i9L)("now",{static:!1}),Z("design:type",n.SBq)],i.prototype,"now",void 0),K([(0,n.vR)(T6),Z("design:type",n.n_E)],i.prototype,"timeLists",void 0),K([(0,n.vR)("listWrapper"),Z("design:type",n.n_E)],i.prototype,"timeListWrappers",void 0),K([(0,n.pfw)("class.k-timeselector"),Z("design:type",Boolean)],i.prototype,"componentClass",void 0),K([(0,n.pfw)("class.k-state-disabled"),Z("design:type",Boolean),Z("design:paramtypes",[])],i.prototype,"disabledClass",null),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"format",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"min",void 0),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"max",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"cancelButton",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"setButton",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"nowButton",void 0),K([(0,n.IIB)(),Z("design:type",Boolean)],i.prototype,"disabled",void 0),K([(0,n.IIB)(),Z("design:type",Object),Z("design:paramtypes",[Object])],i.prototype,"steps",null),K([(0,n.IIB)(),Z("design:type",Date)],i.prototype,"value",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueChange",void 0),K([(0,n.r_U)(),Z("design:type",n.vpe)],i.prototype,"valueReject",void 0),i=K([Od(7,(0,n.FiY)()),Z("design:paramtypes",[Te,n.sBO,n.SBq,_i.aJ,VT,n.R0b,n.Qsj,Ol])],i),i})(),Am=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",now:"now",nowLabel:"nowLabel",toggle:"toggle"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"accept",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"acceptLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cancel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cancelLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"now",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nowLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"toggle",void 0),i})();var RF;let xm=RF=class extends Am{constructor(o){super(),this.service=o}};var FF;xm.\u0275fac=function(o){return new(o||xm)(n.Y36(Te))},xm.\u0275dir=n.lG2({type:xm,selectors:[["","kendoTimePickerLocalizedMessages",""]],features:[n._Bn([{provide:Am,useExisting:(0,n.Gpc)(()=>RF)}]),n.qOj]}),xm=RF=K([Z("design:paramtypes",[Te])],xm);let A0=FF=class extends Am{constructor(o){super(),this.service=o}get override(){return!0}};var BF;A0.\u0275fac=function(o){return new(o||A0)(n.Y36(Te))},A0.\u0275cmp=n.Xpm({type:A0,selectors:[["kendo-timepicker-messages"]],features:[n._Bn([{provide:Am,useExisting:(0,n.Gpc)(()=>FF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),A0=FF=K([Z("design:paramtypes",[Te])],A0);let Tm=BF=class extends Am{constructor(o){super(),this.service=o}};var HF;Tm.\u0275fac=function(o){return new(o||Tm)(n.Y36(Te))},Tm.\u0275dir=n.lG2({type:Tm,selectors:[["","kendoTimeSelectorLocalizedMessages",""]],features:[n._Bn([{provide:Am,useExisting:(0,n.Gpc)(()=>BF)}]),n.qOj]}),Tm=BF=K([Z("design:paramtypes",[Te])],Tm);let Og=HF=class extends Am{constructor(o){super(),this.service=o}get override(){return!0}};Og.\u0275fac=function(o){return new(o||Og)(n.Y36(Te))},Og.\u0275cmp=n.Xpm({type:Og,selectors:[["kendo-timeselector-messages"]],features:[n._Bn([{provide:Am,useExisting:(0,n.Gpc)(()=>HF)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),Og=HF=K([Z("design:paramtypes",[Te])],Og);const TEe=[Yy,_i.o0,Eu,bW,bs],SEe=[VT,TW,DW,PW,RW,FW,{provide:Pg,useValue:iT}];let S6=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:SEe,imports:[Lt,TEe]}),i})(),w6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{toggle:"toggle",dateTab:"dateTab",dateTabLabel:"dateTabLabel",timeTab:"timeTab",timeTabLabel:"timeTabLabel",accept:"accept",acceptLabel:"acceptLabel",cancel:"cancel",cancelLabel:"cancelLabel",today:"today",now:"now",nowLabel:"nowLabel",prevButtonTitle:"prevButtonTitle",nextButtonTitle:"nextButtonTitle"},features:[n.qOj]}),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"toggle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"dateTab",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"dateTabLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"timeTab",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"timeTabLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"accept",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"acceptLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cancel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"cancelLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"today",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"now",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nowLabel",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"prevButtonTitle",void 0),K([(0,n.IIB)(),Z("design:type",String)],i.prototype,"nextButtonTitle",void 0),i})();var $F;let x0=$F=class extends w6{constructor(o){super(),this.service=o}get override(){return!0}};var UF;x0.\u0275fac=function(o){return new(o||x0)(n.Y36(Te))},x0.\u0275cmp=n.Xpm({type:x0,selectors:[["kendo-datetimepicker-messages"]],features:[n._Bn([{provide:w6,useExisting:(0,n.Gpc)(()=>$F)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),x0=$F=K([Z("design:paramtypes",[Te])],x0);let Sm=UF=class extends w6{constructor(o){super(),this.service=o}};Sm.\u0275fac=function(o){return new(o||Sm)(n.Y36(Te))},Sm.\u0275dir=n.lG2({type:Sm,selectors:[["","kendoDateTimePickerLocalizedMessages",""]],features:[n._Bn([{provide:w6,useExisting:(0,n.Gpc)(()=>UF)}]),n.qOj]}),Sm=UF=K([Z("design:paramtypes",[Te])],Sm);const wEe=iT;let YF=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[{provide:Pg,useValue:wEe}],imports:[Lt,_i.o0,Yy,C6,S6,Eu,bs,ym,ym]}),i})();const MEe=[vW,Yy,MF,S6,yW,YF];let DEe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[MEe,vW,Yy,MF,S6,yW,YF]}),i})(),kEe=(()=>{class i{constructor(t){this.el=t}validate(t){const r=t.value;let s;return"ecletica"===this.sistema&&r&&r.trim().split(" ").length<2&&(s={logradouroInvalido:"Informe um endere\xe7o v\xe1lido. "}),this.el.nativeElement.setCustomValidity(s?"logradouro invalido":""),s}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","logradouroValido","","ngModel",""]],inputs:{sistema:"sistema"},features:[n._Bn([{provide:Ui,useExisting:i,multi:!0}])]}),i})(),jF=(()=>{class i{constructor(t){this.el=t}validate(t){const r=t.value,s=!r||Number(r)<Number(this.trocoMinimo)?{trocoMinimo:!0}:null;return this.el.nativeElement.setCustomValidity(s?"erro de m\xednimo":""),s}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","trocoMinimo","","ngModel",""]],inputs:{trocoMinimo:"trocoMinimo"},features:[n._Bn([{provide:Ui,useExisting:i,multi:!0}])]}),i})(),Yu=(()=>{class i{constructor(){}validate(t){return!this.required&&!t.value||this.cpfValido(t.value)?null:{cpfInvalido:!0}}cpfValido(t){if(!t)return!1;let r,s,l,u,p,y;if(y=1,!(t=t.replace(/\D/g,""))||t.length<11)return!1;for(u=0;u<t.length-1;u++)if(t.charAt(u)!==t.charAt(u+1)){y=0;break}if(y)return!1;for(r=t.substring(0,9),s=t.substring(9),l=0,u=10;u>1;u--)l+=r.charAt(10-u)*u;if(p=l%11<2?0:11-l%11,p!==Number(s.charAt(0)))return!1;for(r=t.substring(0,10),l=0,u=11;u>1;u--)l+=r.charAt(11-u)*u;return p=l%11<2?0:11-l%11,p===Number(s.charAt(1))}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","cpfValido","","ngModel",""]],inputs:{required:"required"},features:[n._Bn([{provide:Ui,useExisting:(0,n.Gpc)(()=>i),multi:!0}])]}),i})(),ZW=(()=>{class i{constructor(){}validate(t){return this.nomeValido(t.value)?null:{nomeCompleto:!0}}nomeValido(t){return t&&t.split(" ").length>1}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","nomeCompleto","","ngModel",""]],features:[n._Bn([{provide:Ui,useExisting:(0,n.Gpc)(()=>i),multi:!0}])]}),i})(),VW=(()=>{class i{constructor(){}validate(t){return this.nomeValido(t.value)?null:{nomeValido:!0}}nomeValido(t){return!/[0-9@]/g.test(t)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275dir=n.lG2({type:i,selectors:[["","nomeValido","","ngModel",""]],features:[n._Bn([{provide:Ui,useExisting:(0,n.Gpc)(()=>i),multi:!0}])]}),i})(),IEe=(()=>{class i{constructor(t){this.el=t}onInput(){let t=this.el.nativeElement.value;t.length>this.tamanhoMax&&(t=t.substr(0,this.tamanhoMax),this.el.nativeElement.value=t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","tamanhoMax",""]],hostBindings:function(t,r){1&t&&n.NdJ("input",function(){return r.onInput()})},inputs:{tamanhoMax:"tamanhoMax"}}),i})();const zW=["frm"];function EEe(i,o){if(1&i&&(n.TgZ(0,"div",2),n._UZ(1,"i",3),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erroInicializacao,"\n")}}function PEe(i,o){if(1&i&&(n.TgZ(0,"div",2),n._UZ(1,"i",4),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErro,"\n")}}function OEe(i,o){1&i&&(n.TgZ(0,"div",41),n._UZ(1,"div",42),n.qZA())}function NEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function LEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function REe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero do cart\xe3o de cr\xe9dito inv\xe1lido."),n.qZA())}function FEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function BEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function HEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function $Ee(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function UEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function YEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function jEe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",43)(1,"label",44),n._uU(2,"N\xfamero de parcelas"),n.qZA(),n.TgZ(3,"kendo-combobox",45,46),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cartao.parcelamento=s)}),n.qZA(),n.TgZ(5,"div",14),n.YNc(6,YEe,2,0,"p",15),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.cartao.parcelamento)("data",r.parcelamento.parcelas),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function ZEe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function VEe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",47),n._UZ(1,"i",48),n._uU(2),n.TgZ(3,"button",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheMensagemSucesso())}),n.TgZ(4,"span",50),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.mensagemSucesso," ")}}function zEe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",51),n._UZ(1,"i",48),n._uU(2),n.TgZ(3,"button",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheMensagemErro())}),n.TgZ(4,"span",50),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.mensagemErro," ")}}const GEe=function(i,o){return{"needs-validation":i,"was-validated":o}},qEe=function(i,o){return{"text-muted":i," text-success":o}};function JEe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",5,6),n.YNc(2,OEe,2,0,"div",7),n.TgZ(3,"div")(4,"div",8)(5,"div",9)(6,"div",10)(7,"label",11),n._uU(8,"Nome impresso"),n.qZA(),n.TgZ(9,"input",12,13),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.nome=s)}),n.qZA(),n.TgZ(11,"div",14),n.YNc(12,NEe,2,0,"p",15),n.qZA()()(),n.TgZ(13,"div",16)(14,"div",10)(15,"label",17),n._uU(16,"N\xfamero do Cart\xe3o "),n.qZA(),n.TgZ(17,"input",18,19),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.numero=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.alterouNumeroCartao())}),n.qZA(),n._UZ(19,"i",20),n.TgZ(20,"div",14),n.YNc(21,LEe,2,0,"p",15),n.YNc(22,REe,2,0,"p",15),n.qZA()()(),n.TgZ(23,"div",21)(24,"div",10)(25,"label",22),n._uU(26,"CVV"),n.qZA(),n.TgZ(27,"input",23,24),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.cvv=s)}),n.qZA(),n.TgZ(29,"div",14),n.YNc(30,FEe,2,0,"p",15),n.qZA()()(),n.TgZ(31,"div",21)(32,"div",10)(33,"label",25),n._uU(34,"Data validade"),n.qZA(),n.TgZ(35,"kendo-dateinput",26,27),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.validade=s)}),n.qZA(),n.TgZ(37,"div",14),n.YNc(38,BEe,2,0,"p",15),n.qZA()()(),n.TgZ(39,"div",28)(40,"div",10)(41,"label",11),n._uU(42,"CPF"),n.qZA(),n.TgZ(43,"input",29,30),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.cpf=s)}),n.qZA(),n.TgZ(45,"div",14),n.YNc(46,HEe,2,0,"p",15),n.YNc(47,$Ee,2,0,"p",15),n.qZA()()(),n.TgZ(48,"div",31)(49,"div",10)(50,"label",25),n._uU(51,"Data de Nascimento"),n.qZA(),n.TgZ(52,"kendo-datepicker",32,33),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.dataNascimento=s)}),n.qZA(),n.TgZ(54,"div",14),n.YNc(55,UEe,2,0,"p",15),n.qZA()()()(),n.TgZ(56,"div",8),n.YNc(57,jEe,7,3,"div",34),n.qZA(),n.TgZ(58,"div",8)(59,"div",35)(60,"label",11),n._uU(61,"Email"),n.qZA(),n.TgZ(62,"input",36,37),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.email=s)}),n.qZA(),n.TgZ(64,"small",38),n._uU(65,"Voc\xea receber\xe1 notifica\xe7\xf5es e o comprovante de pagamento nesse email."),n.qZA(),n.TgZ(66,"div",14),n.YNc(67,ZEe,2,0,"p",15),n.qZA()()(),n.YNc(68,VEe,6,1,"div",39),n.YNc(69,zEe,6,1,"div",40),n.qZA()()}if(2&i){const t=n.MAs(1),r=n.MAs(10),s=n.MAs(18),l=n.MAs(28),u=n.MAs(36),p=n.MAs(44),y=n.MAs(53),A=n.MAs(63),w=n.oxw();n.Q6J("ngClass",n.WLB(25,GEe,!t.submitted,t.submitted)),n.xp6(2),n.Q6J("ngIf",w.carregandoScript||!w.definiuSessaoPagSeguro),n.xp6(7),n.Q6J("ngModel",w.cartao.nome)("autoFocus",!0),n.xp6(3),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(5),n.Q6J("mask","0000-0000-0000-0000")("ngModel",w.cartao.numero),n.xp6(2),n.Q6J("ngClass",n.WLB(28,qEe,!w.cartao.bandeira,w.cartao.bandeira&&w.cartao.numeroValido)),n.xp6(2),n.Q6J("ngIf",null==s.errors?null:s.errors.required),n.xp6(1),n.Q6J("ngIf",null==s.errors?null:s.errors.mask),n.xp6(5),n.Q6J("mask","000")("ngModel",w.cartao.cvv),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(5),n.Q6J("ngModel",w.cartao.validade),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngModel",w.cartao.cpf),n.xp6(3),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(1),n.Q6J("ngIf",null==p.errors?null:p.errors.cpfInvalido),n.xp6(5),n.Q6J("ngModel",w.cartao.dataNascimento),n.xp6(3),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(2),n.Q6J("ngIf",w.parcelamento&&w.parcelamento.parcelas.length),n.xp6(5),n.Q6J("ngModel",w.cartao.email),n.xp6(5),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(1),n.Q6J("ngIf",w.mensagemSucesso),n.xp6(1),n.Q6J("ngIf",w.mensagemErro)}}let QEe=(()=>{class i{constructor(t,r,s,l,u,p){this._renderer2=t,this.ngZone=r,this.pagSeguroService=s,this.app=l,this._document=u,this._ngZone=p,this.onCriou=new n.vpe,this.cartao=new Lc,this.carregandoScript=!0,this.bandeira=null,this.definiuSessaoPagSeguro=!1,this.tentativas=1,this.cartao.numero="",this.cartao.cvv="",this.cartao.nome="",this.cartao.cpf="",this.cartao.validade=null,this.cartao.dataNascimento=null}ngOnInit(){this.addScriptPagseguro(),this.inicializePagSeguro()}addScriptPagseguro(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.src=window.pagseguroprod?"https://stc.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.directpayment.js":"https://stc.sandbox.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.directpayment.js",this._renderer2.appendChild(this._document.body,t)}inicializePagSeguro(){"object"==typeof PagSeguroDirectPayment?(this.carregandoScript=!1,this.crieSessaoPagSeguro()):this.tentativas<=10?(this.tentativas++,setTimeout(()=>{this.inicializePagSeguro()},1e3)):this.erroInicializacao="N\xe3o foi possivel carreguar os scripts do PagSeguro"}canceleProcessando(){this._ngZone.run(()=>{this.processando=!1})}fecheMensagemSucesso(){delete this.mensagemSucesso}fecheMensagemErro(){delete this.mensagemErro}alterouNumeroCartao(){this.cartao.numero.length<=6||!this.definiuSessaoPagSeguro||PagSeguroDirectPayment.getBrand({cardBin:this.cartao.numero.substr(0,6),success:t=>{this.bandeira=t,this.calculeParcelas().then(r=>{this.parcelas=r}).catch(r=>{})},error:t=>{console.log(t)},complete:t=>{}})}ativeAssinatura(){}obtenhaBandeira(){return this.bandeira?this.bandeira.brand.name:null}ehValido(){this.frm.submitted=!0;const t=Y1.obtenhaControleInvalido(this.frm,this.frmElement);return t?{valido:!1,controle:t}:{valido:this.frm.valid,controle:null}}crieTokenCartao(t){const r=(this.cartao.validade.getMonth()+1).toString().padStart(2,"0");return new Promise((s,l)=>{PagSeguroDirectPayment.createCardToken({cardNumber:this.cartao.numero,brand:this.obtenhaBandeira(),cvv:this.cartao.cvv,expirationMonth:r,expirationYear:this.cartao.validade.getFullYear(),success:u=>{this.ngZone.run(()=>{this.setTokenCartao(u.card.token),s(this.cartao)})},error:u=>{this.ngZone.run(()=>{l(u.errors[30400]?"Dados do cart\xe3o de cr\xe9dito est\xe3o incorretos":Object.values(u.errors).join(" "))})}})})}calculeParcelas(){return new Promise((t,r)=>{PagSeguroDirectPayment.getInstallments({amount:this.pedido.total,maxInstallmentNoInterest:1,brand:this.obtenhaBandeira(),success:s=>{t(s)},error:s=>{r(s)},complete:s=>{}})})}setTokenCartao(t){this.cartao.senderHash=PagSeguroDirectPayment.getSenderHash(),this.cartao.token=t}crieSessaoPagSeguro(){if(this.pagSeguroService.crieSessao().then(t=>{if(t)try{PagSeguroDirectPayment.setSessionId(t),PagSeguroDirectPayment.getPaymentMethods({amount:this.pedido.total,success:r=>{this.definiuSessaoPagSeguro=!0,this.app.tick()},error:r=>{this.erroInicializacao="Erro ao criar sess\xe3o de pagamento com PagSeguro",r&&Object.keys(r.errors).length&&Object.keys(r.errors).forEach(s=>{this.erroInicializacao=String(`${this.msgErro}: ${r.errors[s]}`)}),this.app.tick()}})}catch(r){console.error(r),this.app.tick()}else this.erroInicializacao="N\xe3o foi poss\xedvel criar sess\xe3o de pagamento.",this.app.tick()}).catch(t=>{console.log(t),this.erroInicializacao="N\xe3o foi poss\xedvel criar sess\xe3o de pagamento.",this.app.tick()}),PagSeguroDirectPayment.onSenderHashReady(t=>{if(t&&"error"===t.status)return this.msgErro=t.message,this.app.tick(),!1}),this.parcelamento){this.parcelamento.parcelas=[];for(let t=1;t<=this.parcelamento.numeroParcelas;t++){let r=this.parcelamento.total/t;r=r.toFixed(2).replace(".",","),this.parcelamento.parcelas.push({numeroParcelas:t,descricao:String(`${t}x de R$ ${r} sem juros`)})}}}exibaCartao(t){this.cartao=new Lc,Object.assign(this.cartao,t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(YR),n.Y36(n.z2F),n.Y36(ie),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["cad-cartaocredito-pag-seguro"]],viewQuery:function(t,r){if(1&t&&(n.Gf(zW,5),n.Gf(zW,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first)}},inputs:{parcelamento:"parcelamento",pedido:"pedido"},outputs:{onCriou:"onCriou"},decls:3,vars:3,consts:[["class","alert alert-danger mb-2","role","alert",4,"ngIf"],["id","frm","novalidate","",3,"ngClass",4,"ngIf"],["role","alert",1,"alert","alert-danger","mb-2"],[1,"fas","fa-times"],[1,"fas","fa-exclamation-triangle"],["id","frm","novalidate","",3,"ngClass"],["frm","ngForm"],["class","bloqueio",4,"ngIf"],[1,"row"],[1,"col-12","col-sm-12"],[1,"form-group"],["for","nome"],["type","text","required","","id","nome","name","nome","autocomplete","cc-name","appAutoFocus","","placeholder","Nome impresso","value","",1,"form-control",3,"ngModel","autoFocus","ngModelChange"],["nome","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],[1,"col-12","col-sm-9"],["for","numero"],["type","text","autocomplete","cc-number","id","numero","name","numero","required","",1,"form-control",2,"font-family","monospace",3,"mask","ngModel","ngModelChange"],["numero","ngModel"],[1,"fa","fa-credit-card","fa-2x",3,"ngClass"],[1,"col-6","col-sm-3"],["for","cvv"],["type","text","autocomplete","cc-csc","id","cvv","name","cvv","required","",1,"form-control",3,"mask","ngModel","ngModelChange"],["cvv","ngModel"],["for","validade"],["name","validade","autocomplete","cc-exp","id","validade","format","MM/yyyy","required","",1,"form-control",3,"ngModel","ngModelChange"],["validade","ngModel"],[1,"col-6","col-sm-5"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["cpf","ngModel"],[1,"col-6","col-sm-4"],["name","dataNascimento","id","dataNascimento","format","dd/MM/yyyy","required","",1,"form-control",3,"ngModel","ngModelChange"],["dataNascimento","ngModel"],["class","col-12 mt-2 form-group",4,"ngIf"],[1,"form-group","mb-2","col"],["kendoTextBox","","id","email","name","email","placeholder","Informe seu email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["id","emailHelp",1,"form-text","text-muted"],["class","alert alert-success alert-dismissible fade show mt-2","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show mt-2","role","alert",4,"ngIf"],[1,"bloqueio"],[1,"k-icon","k-i-loading","mt-5","centralizado","fa-2x"],[1,"col-12","mt-2","form-group"],["for","parcelamento"],["id","parcelamento","name","parcelamento","required","","textField","descricao","placeholder","Selecione a quantidade de parcelas",1,"form-control",3,"ngModel","data","ngModelChange"],["parcelamentoModel","ngModel"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show","mt-2"],[1,"mdi","mdi-check-all","mr-2"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close",3,"click"],["aria-hidden","true"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2"]],template:function(t,r){1&t&&(n.YNc(0,EEe,3,1,"div",0),n.YNc(1,PEe,3,1,"div",0),n.YNc(2,JEe,70,31,"form",1)),2&t&&(n.Q6J("ngIf",r.erroInicializacao),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",!r.erroInicializacao))},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,nn,Er,dn,Kn,io,Za,Yu],styles:[".form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:31px;right:20px}button[_ngcontent-%COMP%]{width:100%}.bloqueio[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background:rgba(0,0,0,.1803921569)}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;height:20px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}"]}),i})(),WEe=(()=>{class i extends fs{constructor(t){super(t)}obtenhaPublicToken(){return new Promise((t,r)=>{this.obtenha("/mercadopago/pbtoken",{}).then(s=>{t(s)}).catch(s=>{r(s)})})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const GW=["frm"],KEe=["numeroElem"];let XEe=(()=>{class i{constructor(t,r,s,l,u){this._renderer2=t,this.ngZone=r,this.mercadopagoService=s,this._document=l,this._ngZone=u,this.onCriou=new n.vpe,this.onGerouToken=new n.vpe,this.cartao=new Lc,this.definiuSessao=!1,this.bandeiras=[],this.renderizou=!1,this.cartao.numero="",this.cartao.cvv="",this.cartao.nome="",this.cartao.cpf="",this.cartao.validade=null,this.cartao.dataNascimento=null}ngOnInit(){this.incluaScriptMercadoPago()}incluaScriptMercadoPago(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.src="https://sdk.mercadopago.com/js/v2",this._renderer2.appendChild(this._document.body,t),this.ativeMercadoPago()}ativeMercadoPago(){var t=this;window.MercadoPago?(this.definiuSessao=!0,this.mercadopagoService.obtenhaPublicToken().then(function(){var r=sn(function*(s){try{t.Mercadopago=new window.MercadoPago(s,{locale:"pt-BR"});const l=t.Mercadopago.bricks();yield t.renderCardPaymentBrick(l)}catch(l){console.error(l),t.mensagemErro="Ops! falha ao configurar scripts MercadoPago: "+l.message}});return function(s){return r.apply(this,arguments)}}()).catch(r=>{console.error(r),this.mensagemErro="Ops! na\xf5 foi possivel iniciar sess\xe3o pagamento, feche e tente de novo."})):setTimeout(()=>{this.ativeMercadoPago()},500)}renderCardPaymentBrick(t){var r=this;return sn(function*(){const s={initialization:{amount:0,payer:{}},customization:{paymentMethods:{minInstallments:1,maxInstallments:1},visual:{style:{theme:"bootstrap"},texts:{formSubmit:"Confimar cart\xe3o"}}},callbacks:{onReady:()=>{r.renderizou=!0},onSubmit:l=>new Promise((u,p)=>{console.log(l),r.cartao.token=l.token,r.cartao.bandeira=l.payment_method_id,r.cartao.numero=l.payment_method_id,r.cartao.tipoDoc=l.payer.identification.type,r.cartao.cpf=l.payer.identification.number,r.cartao.email=l.payer.email,r.onGerouToken.emit(r.cartao)}),onError:l=>{console.error(l)}}};if(r.pedido.cliente){let l=r.pedido.cliente;s.initialization.amount=r.pedido.total,s.initialization.payer={cpf:l.cpf,email:l.email}}else s.initialization.amount=r.pedido.obtenhaValorAhPagar(),s.initialization.payer={cpf:r.pedido.contato.cpf,email:r.pedido.contato.email};window.cardPaymentBrickController=yield t.create("cardPayment","cardPaymentBrick_container",s)})()}ehValido(){return{valido:!0,controle:null}}crieTokenCartao(t){return this.cartao.token?Promise.resolve(this.cartao):Promise.reject("Erro")}exibaCartao(t){this.cartao=new Lc,Object.assign(this.cartao,t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(WEe),n.Y36(ie),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-cartao-mercadopago"]],viewQuery:function(t,r){if(1&t&&(n.Gf(GW,7),n.Gf(GW,5,n.SBq),n.Gf(KEe,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first),n.iGM(s=n.CRH())&&(r.numeroElem=s.first)}},inputs:{parcelamento:"parcelamento",pedido:"pedido"},outputs:{onCriou:"onCriou",onGerouToken:"onGerouToken"},decls:3,vars:1,consts:[[2,"position","relative","min-height","630px"],["id","load",3,"hidden"],["id","cardPaymentBrick_container"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0),n._UZ(1,"div",1)(2,"div",2),n.qZA()),2&t&&(n.xp6(1),n.Q6J("hidden",r.renderizou))},styles:[".input-background[_ngcontent-%COMP%]{background-position:98% 50%;background-repeat:no-repeat;background-color:#fff}.form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:33px;right:18px}#load[_ngcontent-%COMP%]{width:557px;height:628px;filter:blur(5px);position:absolute;top:0;background-image:url(data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4R8WRXhpZgAASUkqAAgAAAAHABIBAwABAAAAAQAAABoBBQABAAAAYgAAABsBBQABAAAAagAAACgBAwABAAAAAgAAADEBAgANAAAAcgAAADIBAgAUAAAAgAAAAGmHBAABAAAAlAAAAKYAAABIAAAAAQAAAEgAAAABAAAAR0lNUCAyLjEwLjMwAAAyMDIzOjAzOjE2IDE1OjA0OjQwAAEAAaADAAEAAAABAAAAAAAAAAkA/gAEAAEAAAABAAAAAAEEAAEAAADjAAAAAQEEAAEAAAAAAQAAAgEDAAMAAAAYAQAAAwEDAAEAAAAGAAAABgEDAAEAAAAGAAAAFQEDAAEAAAADAAAAAQIEAAEAAAAeAQAAAgIEAAEAAADwHQAAAAAAAAgACAAIAP/Y/+AAEEpGSUYAAQEAAAEAAQAA/9sAQwAIBgYHBgUIBwcHCQkICgwUDQwLCwwZEhMPFB0aHx4dGhwcICQuJyAiLCMcHCg3KSwwMTQ0NB8nOT04MjwuMzQy/9sAQwEJCQkMCwwYDQ0YMiEcITIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIy/8AAEQgBAADjAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/aAAwDAQACEQMRAD8A9/ooooAKKKQkAgEjJ6CgBaKKMjOM0AFFFIWC4yQMnHNAC0UhZV+8QPqaWgAooooAKKQsoBJIGOuT0o3DnkcdaAFooBBGQciigAoopN6+tAC0UgYHoaNy+tAC0UgYHoaN6+tAC0UgYHoaNy+tAC0UgYHoaNy+tAC0UgIPQ0tABRRRQAHpxXHWelata2soS0mTU1iZXvvtQIuWJByFJPPpuA29BxXY0UAcha2HiK5mkjup72C1JkK75Yi5G1NqsVz33dPTrVP+zPEiS6a0cVxmA2yhjJAfLQMPODk/MSRnG09OOtd3RQBy1jD4oFtqQkkKzm1xbm4ZGH2j5ssu3on3eG546eud9h8UpFcywC9R5ZYywkmgMrKIyDgg7QN2PfH5V3VFAHP3cWu+fp2HmkRYQJzbvGn73K5Ztw5XG7hfXp6ZMuneKHjs3eWaWQTSuRmEmI+YfLPP8Oz0yea7aigDhbrTPEtzcymaOaVwkyhmkh8k5dSmxeo+Uc7u4NSPYeJrWykgsTdCTzrgoxmiI3M26NjnJ8sAnI69eOldtRQBz2oR+IG1uFrZm+ybYsGNkCKQx8zeG+Y5XG3b79KZpQ8RYkjvEZHjs/LWWR0ZZZ9zfOApzjGOoFdJRQBwE2meKJI5XWO5PmGETLPJA0jhQ+7Zg7R85Q844z9KsR6d4nj1SVx5xEzQmSQyReSyiJVkBX724kHGMDPPSu3ooYHDWeleIbFrxgt0UmlhkKwzRA7BCqsqbjhSHXnoMdDXX6at2um263zBroIPMIx1/DirVFABXn3iDTvFk/i+CewlnOmCEACKcIqnvuGRmvQaTA9BWdWmqkXFu3odOFxLw03OMU9Laq+5m6NHeRaeiXrEy/Njc2SB7mmahbavLNusdRjgi2DCNGp+bnPJB46flWtgDoKTA9BVUo+ziorW3cwnLnk5PqVrFLpLdVvJklny2XRcDGeBj2GBUMyaiQRbzQp0IZxnjI4x9M85rQwB2pMD0FU9SUUbCO+jtlTUJ4p5wmC8a7QeBzj61xWraRqtxrl7KNMnkhaXMckbphlwOcFgeua9EwB2pMD0FaU6jg7ozqU+dWbOe8J2dzZWM6XMEsLM+QshUnGOvykiqOvab4uvNTeTSdUgtrTaojQy4PTkkeWe/vXYYA7UmB6Com+d3ZtQn7HZJ+upnaHb39rpkEWp3IubwBjJIDkHJ47D+VaVGAOgopIUnzNsKKKKBBWFANcjgUTBZJFjXDAgZfAzkfi35A1tyErGzDqATUchSGPfJKVUYGS1AGdKdaRW8vypOQBkAEDC5/HJYfQCpLdtV86PzxGULNuCrwBk47+m0/iasm5twxUztkHB5P0pWnt1jlka4wkR2uxbhT6fqKAM9TrIu2YhTEdgAIGByc9+mD169Kku31YCb7MFzk7MqD2OO/rjNW2ubdGZWnYFeuSeKc0sCJK7XGEi/wBYS3C8Z5oAzZxrOJCjgksdoCjCgF9vfr9zP41esWvWaT7WqgZ+XaPc+/pj9ac9xbxsytOwK9Rk04yQgSEz4EQy53fd4zz+FAFiiqpuLdSQZ2yMZAz3/wD1ino8UrsiTFmUAkBumelAE9FM8v8A23/Ojy/9t/zoAfRTPL/23/Ojy/8Abf8AOgB9FM8v/bf86PL/ANt/zoAfRTPL/wBt/wA6PL/23/OgB9FM8v8A23/Ojy/9t/zoAfRTPL/23/Ojy/8Abf8AOgB9FM8v/bf86PL/ANt/zoAfRTPL/wBt/wA6PL/23/OgB9FRlShUhmOTjk1JQAUUUUAMl/1L/wC6aJYxNC0ZOAw6in0zyYv+eSf98igCpJp3m+b5lw7eY2TkDIHYD0x2p0enRx211AJHK3Gc5IyuVC8flVnyYv8Ankn/AHyKPJi/55J/3yKAKk2m+f52+dz5vHQZUdgD2x1+tPTT40guYg7lZ87snOMjHFWPJi/55J/3yKPJi/55J/3yKAK01h5zTFp2xKNuMD5R6CnQWEcCzBXciXruOcdf8an8mL/nkn/fIo8mL/nkn/fIoAqvp+8vunYqyhApUEKuOR+NPtLFLSR3SSRt6qpDHPQk5/Wp/Ji/55J/3yKPJi/55J/3yKAH0UzyYv8Ankn/AHyKPJi/55J/3yKAH0UzyYv+eSf98ijyYv8Ankn/AHyKAH0UzyYv+eSf98ijyYv+eSf98igB9FM8mL/nkn/fIo8mL/nkn/fIoAfRTPJi/wCeSf8AfIo8mL/nkn/fIoAfRTPJi/55J/3yKPJi/wCeSf8AfIoAfRTPJi/55J/3yKPJi/55J/3yKAH0UzyYv+eSf98ijyYv+eSf98igAk6p/vU+mCKNTlUUH1Ap9ABRRRQAVhx61c/Zo3a13M0YfhWADEDKdDyM/oa23bajN6DNMAmx99P++D/jQBn2+qTSyCN7Yg+UXJGeSApwOPViPqpqKz1e5uL828lmwQvhZADtxtB79ecj8RWriX++n/fB/wAaMS/30/74P+NAGTPrdxCjMumzPhXI9yo6fnmpJdVnjMi/ZTvQ4xgnd7jjpWliX++n/fB/xoxL/fT/AL4P+NAGXNrFzAoLWDsSM/IcgY29f++v0NH9r3PysbJlUmQYOc/KWA7d9ufxrUxL/fT/AL4P+NGJf76f98H/ABpgNtJzc2yyshQkkYPsSM/Q4yPrU1R4l/vp/wB8H/GjEv8AfT/vg/40gJKKjxL/AH0/74P+NGJf76f98H/GgCSio8S/30/74P8AjSoX3MrEHGDkDFAFG61CW3nmUREhFyqhGJk+XOQRwBnj/wDWM1TrF1ujVbUk+YqMdp+YHHzKPT3PpWsGkZ3CsoCnHK57A+vvS4l/vp/3wf8AGgDLtdba5lVBbNgkAkZ7gHHTqM85pra1cLdGP7E7JuCggH5Tlhz+Q6etacUBhTbF5SL6LHj+tPxL/fT/AL4P+NAGbc6xLb3TwrYyyBWADL0PGfzpi66S7L9mckbANoJ5YgY6dR3+hrVxL/fT/vg/40yOAwgiPykycnEeM/rQBQj1a4klii+x7Xk4IJPy8A5PHTn9KibXnFs8q2hLKu4xZO5flJwQBwTjA+ta+Jf76f8AfB/xpBE6uzgxhmxk7Dzj8aAJaKjxL/fT/vg/40Yl/vp/3wf8aAJKKhLSKcF1z7Rk/wBaguL5LRA00yoDwMxNz+tAF2ioIpjKkcqSI8b9Cqkf1qegAooooAZL/qX/AN01FdwyTwhI5NhzkkEjsf64qcgEEHoab5eP43/OgDO+wXg3EXPOG2Zc8dcZ/MflTHsL/wAx/LnUIcYG8j0z2ODnP+Fanl/7b/nR5f8Atv8AnQAQq6QRrI25woDH1OOafTPL/wBt/wA6PL/23/OgB9FM8v8A23/Ojy/9t/zoAfRTPL/23/Ojy/8Abf8AOgB9FM8v/bf86PL/ANt/zoAfTF/1z/Qf1o8v/bf86VUCknJJPc0ANj+/N/v/APsoqg+nyb0CxwMi7zl2OcnOB06c88/yrQ8sbmIZhuOTg0eX/tv+dAEdnA1vbLG2Mgk4ByBk5xU9M8v/AG3/ADo8v/bf86AH0Uzy/wDbf86PL/23/OgB9FM8v/bf86PL/wBt/wA6AH0Uzy/9t/zo8v8A23/OgCvcRIzs7JI54GENZ15YC78sRJNE4ONzjcMH8a12gVzliT9cUn2WP0/QU7iIbS3FraQwht21uTjGTzVymCIDHLEDoKfSGFFFFABWPb+I7OeBZSkqZjEjKVyUBAPOPqPzrXYhVLHoBmoPIQgZtYeOnTj9KAKj67aRqTIsqEELhl6kgHH5MD+NOudZt7aSJCrsHxyB0yCQPqcVaaFXBDW8RB65/D29h+VDQq5Be2iYgYyeePTpQBSvNbitIBN5MkimJ5eMD7uMj68/Sny6zbxPEhVy7tt245B5/qMVaMKsFBt4iFGAD2H5U37PHkn7LDz16f4UAQx6tby27zIspVGCcrglicYH40xtctAwAErEsVG1OuA2fy2t+VW/JURmMW8Ww9V7fyoEKgki2iyep/T0oAgi1W2lmWIbw7ZHK9CN3B/75b8qhGvWRfYfNByASU4GduD9PnX86vCIB94gjDeuef5VF9jiE6zC1iDqDgj3xz068CgCt/b9mASRKMYzlMdcY/PIpx1yyCI+59rsFQ7PvZBP9DVoW8YUqLWEKeo45/SjyEJz9mi6g9uo6dqAIJtWtoJnicSb1O0YX7xwCcfQGnTapbwnDbzwuNq5yWICj6nIqZog+d9vE2euef6ewoaIOctbxMcYyfT06UAUBr9u/wDq4pmHCglcDcQuF/8AHxz0qzaapBesFjDgkHqOMjGR+GRUv2dNu37LDt9OP8PalSIRtuS3iU4xleOPyoAnopm6T+4v/fX/ANajdJ/cX/vr/wCtQA+imbpP7i/99f8A1qN0n9xf++v/AK1AD6KZuk/uL/31/wDWo3Sf3F/76/8ArUAPopm6T+4v/fX/ANajdJ/cX/vr/wCtQA+imbpP7i/99f8A1qN0n9xf++v/AK1AD6KZvYEbkABOMg5p9ABRRRQAyX/Uv/umob37T5KG15cOCRxyvcc1YZQylT0IxTNs2P8AWR/98H/GgDLU6winI3MZM9FwFLcjr2HSn51RHwF3AyJzwcj5d3U8fxdP/wBejtm/56R/98H/ABo2zf8APSP/AL4P+NMCk/25bmTYJDGT1+XgewNRj+1WhQv8rEjcqhcgcdOfrWjtm/56R/8AfB/xo2zf89I/++D/AI0gKCyaplN0Y+8N4AHHrjnp096WddSWWeSA5UuAqEg/LgcjPvn86vbZv+ekf/fB/wAaNs3/AD0j/wC+D/jQBnM+r/KdiHLcgAYA49/rSO2qrbkooMmDtXAPOBjJJ781pbZv+ekf/fB/xo2zf89I/wDvg/40xElFR7Zv+ekf/fB/xo2zf89I/wDvg/40hklFR7Zv+ekf/fB/xo2zf89I/wDvg/40ASUVHtm/56R/98H/ABo2zf8APSP/AL4P+NAElFR7Zv8AnpH/AN8H/GjbN/z0j/74P+NAElFR7Zv+ekf/AHwf8aNs3/PSP/vg/wCNAElFR7Zv+ekf/fB/xo2zf89I/wDvg/40ASUVHtm/56R/98H/ABo2zf8APSP/AL4P+NAElFR7Zv8AnpH/AN8H/GjbN/z0j/74P+NACyfwf7wp9R7JCw3upAOcBcf1qSgAooooAKqR6nZyIridVDgMu7jIPIPPbkVaJABJ6VmjSrAwiMxSsgj8rB3cpgfKfbgUAW/t1rsL+fHtHU56cZ/kKT+0LQru+0R4HfP+fQ1XfTrSTHmCdscclvQj+RNE+mWFyVMsDMVJI+U8ZJJ/UmgCf+0bTcB56ZOf0x/iPzqwjrIgdGDKwyCOhqibC03hgkqsMYIyMdP8BVqLy4YljRXCqMD5SaAJqKZ5o9H/AO+TR5o9H/75NAD6KZ5o9H/75NHmj0f/AL5NAD6KZ5o9H/75NHmj0f8A75NAD6KZ5o9H/wC+TR5o9H/75NAD6KZ5o9H/AO+TR5o9H/75NAD6KZ5o9H/75NHmj0f/AL5NAD6KZ5o9H/75NHmj0f8A75NAD6KZ5o9H/wC+TR5o9H/75NAD6KZ5o9H/AO+TR5o9H/75NAD6KZ5o9H/75NHmj0f/AL5NAD6KYJFJAwwz6qRT6ACiiigBkv8AqX/3TVW+untjCFZI1cndK4JVcDgfj/SrbruRl9QRSBpMfcH/AH1QBj/2lqJnAS2BiMwiDADJG3OQCR+uPxrZcssZKruYDpnGaTdJ/cH/AH1Ruk/uD/vqgBgcyKjFGQFuA3XH07VSu725humjjQFcZ7cDHXr6/h71fbe2PkHBz96l3Sf3B/31QBmQajcvPCskYCOTk4HQbsHr7D1HPWoxqd5sBMQPOOAOW44+99ff2rX3Sf3B/wB9UbpP7g/76oAzBqNz5EzFFDIU9O5w2Oe3vio/7SvMnMQHAJ4Hyj5eevufb3rX3Sf3B/31Ruk/uD/vqgCkbu5+wrMYgpIBJyPX0zj9ajsb66nuY45odoaHe3A+U/Lgdfc9u1aO6T+4P++qN0n9wf8AfVAD6KZuk/uD/vqjdJ/cH/fVAD6KZuk/uD/vqjdJ/cH/AH1QA+imbpP7g/76o3Sf3B/31QA+imbpP7g/76o3Sf3B/wB9UAPopm6T+4P++qN0n9wf99UAPopm6T+4P++qN0n9wf8AfVAD6KZuk/uD/vqjdJ/cH/fVABJ/B/vCn1Gd7FcqAAc9akoAKKKKACiiuVtNZ8QiygmuNLWRpLdpyuCjKQF+XHPJLHAODgGgDqqK5ZfEetNgHQWH7p3zuOCRv29u+1eOvzd8cyT63q/k3EaabsmSGUq2HYM679u35f8AZU89d3GaAOlornBrmqpcwQSaX1kVJJFDlSC4BI+XjAOTnApL7xBqltc3EUGjPOI5FVGBYBgQxznbjqAOOmefcA6SiucuPEGoRNIselSMY5NrZV8Y3sARgc8BTx/epNW1rVrXVoIbTT2kgBYuQjHePJZhyFwBuCj19uaAOkorkZvEWtssIi0tlJuVRiI3O9PM2kjK8fKM5OOvtV2z13Ubi6topdLaOOWRkaTD4ACqQcFeOSRzj7vvTsB0NFFFIAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAqJLmCS3FwsqmEjIfOAR65qU9OelZ0Gn2UFpFbpESsaqqt5fzYGCBkD2oAtm8tguftEWCcA7xToZo54/MiYMuSMj1Bwf1FZz6TZuAP36jy1jOFPKqcjtVy1jhs7cQxCTYCx5UnqST29TQBZopnmr6P/AN8H/CjzV9H/AO+D/hQA+imeavo//fB/wo81fR/++D/hQA+imeavo/8A3wf8KPNX0f8A74P+FAD6KZ5q+j/98H/CjzV9H/74P+FAD6KZ5q+j/wDfB/wo81fR/wDvg/4UAPopnmr6P/3wf8KPNX0f/vg/4UAPopnmr6P/AN8H/CjzV9H/AO+D/hQA+imeavo//fB/wo81fR/++D/hQA+imeavo/8A3wf8KPNX0f8A74P+FAD6KZ5q+j/98H/CjzV9H/74P+FAD6KZ5q+j/wDfB/wo81fR/wDvg/4UAPopgkUkDkE+qkU+gAooooAZL/qX/wB01Fd3aWcIkdWbLBQFGeamdd0bKOpBFMY712vCWHcEAigCi2tQhivlSkjqMdsA/wAiKf8A2qoUO0DhCA2cjoSQP5VaKoetvnv90UMqOhRoCVIwRgdPzoAqLqytKqCE5YHgsOuFPXp0akGsRu6BEYq23r15/wAn8qtiOJYwgtvlHGNopohiEvmi3O/14/xoAqRa5FMFMcExBQyDIx8o2+v+8Ke+rIoP7psq2xskcHJH49KtgIM4t8Z9FFBVCcm3yfUqKAK8epB4o3MfLZJAYDADY70z+1k5xBISBkgEdDjHf3q3tTj/AEfocj5RQAijAt8D2UUAOhl86PdtKnJBB9RUlRh8dImH5f40vmH/AJ5v+n+NAD6KZ5h/55v+n+NHmH/nm/6f40APopnmH/nm/wCn+NHmH/nm/wCn+NAD6KZ5h/55v+n+NHmH/nm/6f40APopnmH/AJ5v+n+NHmH/AJ5v+n+NAD6KZ5h/55v+n+NHmH/nm/6f40APopnmH/nm/wCn+NHmH/nm/wCn+NAD6KZ5h/55v+n+NHmH/nm/6f40AEn8H+8KfUZLOV+Rhg5ycVJQAUUUUAFFI7BEZz0UZNefN8W9LV2X+zrw4OM5X/GuihhK2Iv7KN7GVStTpW53Y9Corzz/AIW5pf8A0Drz81/xo/4W5pf/AEDrz81/xro/srGf8+3+Bl9cofzHodFeef8AC3NL/wCgdefmv+NH/C3NL/6B15+a/wCNH9lYz/n2/wAA+uUP5j0OivPP+FuaX/0Drz81/wAaP+FuaX/0Drz81/xo/srGf8+3+AfXKH8x6HRXnn/C3NL/AOgdefmv+NH/AAtzS/8AoHXn5r/jR/ZWM/59v8A+uUP5j0OivPP+FuaX/wBA68/Nf8aP+FuaX/0Drz81/wAaP7Kxn/Pt/gH1yh/Meh0V55/wtzS/+gdefmv+NaWg/ETT9e1iHTYrS5illDbWfaRwC3Y+gNTPLcXCLlKDsio4ujJpKWp2NFFFcJ0BRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQBHcf8e0v+4f5V8ySf61/9419N3H/AB7S/wC4f5V8ySf61/8AeNfT8ObVPl+p4+a/Y+Y2tPT9Ia/tHmEgVtxSNSVG9gM45I9QOM8kVmVbttRuLWMJHswG3qWUEq3HI/IflX0dRTcfc3PKpuKfv7FzSNEGp280zzvEkbrGBHAZSWbOMgHIHHXn6Vdj8Fag8cbm5s0R1ySzP8pO3APy/wC0OmR71gQ3VxbbvInki3DDbGK5Hvin/b7zaq/a59qjao8w8D0H5CspwruTcZWXoaRlSsuaOp00/ghksonS9iWbbmbzSwRMA5HCknpVdPBGoSMQt3ZECQxbgzkbwSCv3PUHnp71hNqF6wIa7nIPUGQ80qalfRklLy4UkknEhGSTk/rWapYlL419xTnQb+F/eaf/AAit39ultPtVqXhjR5GBchd2Nq8LnPI7YGeTU7+C76K2eeW8s444xmQsX+XgHH3eeo6ZrCW9ukmaZLmZZWGGcOQSPTNObUL14vKe7naPGNhkJGPTFW4Yi6tJfcSpUesX9507+ApgkqRXsUk6yEICrKrJuC7jxwc54rm9T02XS7oQTOjlkEismcFT06gEfiKb/ad+QQb25wTnHmt1/P2qCaaW4kMk0jyOerOxJP40UYV4v95K69AqTpNe5GzGV1Hw6/5HzTf+2v8A6KeuXrqPh1/yPem/9tf/AEU9GN/3ap/hf5Cw/wDGh6r8z3miiivzs+qCiiigAooooAKKKKACiiigAooooAKKKKACiiigAIyMGslvC+gsxZtGsCSckm3Xn9K1qKuNScPhdiXFS3Rkf8It4f8A+gLp/wD4Dr/hR/wi3h//AKAun/8AgOv+Fa9FV9Yq/wAz+9i9nDsjI/4Rbw//ANAXT/8AwHX/AAo/4Rbw/wD9AXT/APwHX/Cteij6xV/mf3sPZw7IyP8AhFvD/wD0BdP/APAdf8KP+EW8P/8AQF0//wAB1/wrXoo+sVf5n97D2cOyMj/hFvD/AP0BdP8A/Adf8KP+EW8P/wDQF0//AMB1/wAK16KPrFX+Z/ew9nDsjI/4Rbw//wBAXT//AAHX/Cj/AIRbw/8A9AXT/wDwHX/Cteij6xV/mf3sPZw7IyP+EW8P/wDQF0//AMB1/wAKntND0mwnE9nptpbygY3xQqpx9QK0KKHWqNWcn94KnBapBRRRWRYUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf//Z/+EMd2h0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8APD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAtRXhpdjIiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpHSU1QPSJodHRwOi8vd3d3LmdpbXAub3JnL3htcC8iIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1wTU06RG9jdW1lbnRJRD0iZ2ltcDpkb2NpZDpnaW1wOmIzOTY1Njc4LTA5YzUtNDM0ZS1iM2UxLTQzYWIzNjM3ZjZmNyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoxOTA2NTEwMy1jZWY2LTRmYzctOGE4Zi0yMmJjNmVhZTQ5MjMiIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDoyZDk5NGNiMS1mYTg3LTQ4MDEtYjM5NC0yZTZlZDdlMGJjYzIiIGRjOkZvcm1hdD0iaW1hZ2UvanBlZyIgR0lNUDpBUEk9IjIuMCIgR0lNUDpQbGF0Zm9ybT0iTGludXgiIEdJTVA6VGltZVN0YW1wPSIxNjc4OTg5ODg2NjA2MjY5IiBHSU1QOlZlcnNpb249IjIuMTAuMzAiIHhtcDpDcmVhdG9yVG9vbD0iR0lNUCAyLjEwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0ic2F2ZWQiIHN0RXZ0OmNoYW5nZWQ9Ii8iIHN0RXZ0Omluc3RhbmNlSUQ9InhtcC5paWQ6MTVmNGRiMmEtN2QyMC00MmRhLWE0MWUtM2IzMDg3OTY3YTU0IiBzdEV2dDpzb2Z0d2FyZUFnZW50PSJHaW1wIDIuMTAgKExpbnV4KSIgc3RFdnQ6d2hlbj0iMjAyMy0wMy0xNlQxNTowNDo0Ni0wMzowMCIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPD94cGFja2V0IGVuZD0idyI/Pv/iArBJQ0NfUFJPRklMRQABAQAAAqBsY21zBDAAAG1udHJSR0IgWFlaIAfnAAMAEAASAAAAN2Fjc3BBUFBMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD21gABAAAAANMtbGNtcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADWRlc2MAAAEgAAAAQGNwcnQAAAFgAAAANnd0cHQAAAGYAAAAFGNoYWQAAAGsAAAALHJYWVoAAAHYAAAAFGJYWVoAAAHsAAAAFGdYWVoAAAIAAAAAFHJUUkMAAAIUAAAAIGdUUkMAAAIUAAAAIGJUUkMAAAIUAAAAIGNocm0AAAI0AAAAJGRtbmQAAAJYAAAAJGRtZGQAAAJ8AAAAJG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAJAAAABwARwBJAE0AUAAgAGIAdQBpAGwAdAAtAGkAbgAgAHMAUgBHAEJtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABoAAAAcAFAAdQBiAGwAaQBjACAARABvAG0AYQBpAG4AAFhZWiAAAAAAAAD21gABAAAAANMtc2YzMgAAAAAAAQxCAAAF3v//8yUAAAeTAAD9kP//+6H///2iAAAD3AAAwG5YWVogAAAAAAAAb6AAADj1AAADkFhZWiAAAAAAAAAknwAAD4QAALbEWFlaIAAAAAAAAGKXAAC3hwAAGNlwYXJhAAAAAAADAAAAAmZmAADypwAADVkAABPQAAAKW2Nocm0AAAAAAAMAAAAAo9cAAFR8AABMzQAAmZoAACZnAAAPXG1sdWMAAAAAAAAAAQAAAAxlblVTAAAACAAAABwARwBJAE0AUG1sdWMAAAAAAAAAAQAAAAxlblVTAAAACAAAABwAcwBSAEcAQv/bAEMAMiIlLCUfMiwpLDg1MjtLfVFLRUVLmW1zWn21n767sp+vrMjh//PI1P/XrK/6//3////////B8P/////////////bAEMBNTg4S0JLk1FRk//Or87////////////////////////////////////////////////////////////////////CABEIAnQCLQMBEQACEQEDEQH/xAAYAAEBAQEBAAAAAAAAAAAAAAAAAQIDBP/EABcBAQEBAQAAAAAAAAAAAAAAAAABAgP/2gAMAwEAAhADEAAAAfUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACFAAAABCkKAAAAQFIUAAAAAAAAAAAAAAAAAA5EKQGClB2OJk0djkCFIYSr0KCFBDBAbJEqnU0ADjN4zvpMdemBgzWo2DMSodDKefWQPVnY4TeTqz0sAAA5mQQ0QhAdjkQJ2XkaICETSighDRCGTQNGQdU0oA4zeM76THXpgZIDYMAh0Mpw1nSo7zUOM2OjO7AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAApAaMFNGQQoNFAAAAAAAAAAAAAAAAAAAAAAAAAAMmCmjJDRTINEBCkNGgAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAIUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEKAACFMghSkBClICFKQEKUoAAAAAAAAAAAAAAAAAAABCgAAhTJCkKCFIUEKQoIUhTQAAAAAAAAAAAAAAAAAAABCgAAhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQoAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyACghQACAoIUoAAAAAABkFMmgUyUpAAAACgAAAAAAAAwZBE0sjNdDJEqgaOZoFNGgAAAAAAcwZBYlm1wkXoYAKkUaIZO4AAAAAAAAAAAAAAAAAAAAAAAAAABkpQACENAAyaAAAAAAAAAIAAAAAAAAAAAAAAAUEAAAAAAAAAAAAAAAKAACFIAACgAAAAAAAAAAhQQpkA0AAAAAAAAAQgIZNlKAACFOYKQhDsAAAAAAAAAACFBCmCA6AAAAAAAAAEAIYNlKAACFAAAAAAAAAAAAAAIUEKAAAAAAAAAAAQEBQCgAAgAAAAAAAAAAAAAABQQAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIUAAEKQpCgAAAAAAAAAAhQAAAAAAAAAAAAAAAADmYKVIuiRLNrgFBE2uSGjJswVIsKUhswDZkGTRDZsAAAAAAAAAAAAAAAAEBSAApAAAAUgBk0AAUgKQAAoAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAhQACFIUAAAhQCFAAAAAAAAAAAAAAAAAAAABCgAAhTmQqVYlUQFSLUi6IRCkLQbAAAAAAAAAAAAAAAAAAABCgAAhSAhQACFBAUpkpCgFAAAAAAAAAAAAAAAAAAABCgAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADBkpQmVoBDRsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyCFIUAEKaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgAAhQAAAQoAAAAAAAAAAAAAAAAAAAAAAAAABCgAAgjFQydTRACnIoKQAFMlInRcmTRsAAAAAAAAAAAAAAAAAEKAACFOZoGgAQpkAAAAAGiEKUAAAAAAAAAAAAAAAAAEKAACFAAABCgAAAAAAAAAAAAAAAAAAAAAAAAAEKAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOZClBk0YNmTZACGzidCGTQOgAAAAAAAAAAAAAAAAAAAAAAAOQBkqFFIZTqvMqZWnQ5JtcGiA7FAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA5miGREs7KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMmiAgNAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAKAACFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCgAAhTmUAApk0ZKAUhDQIAaKAAAAAAAAAAAAAAAAAAAQoAAIUyACmDQIQ0AUgAIaIUoAAAAAAAAAAAAAAAAAABCgAAhQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQoAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzZiwAAAAAAAAAAAAAAal3KAAAAAAAAAAAAAAAAAAPP0xy1AAAAAAAAAAAAAABuX1ctgAAAAAAAAAAAAAAAAADz9MctQAAAAAUgAAABSAAAG5fVy2AAAAAAAAAAAAAAAAAAPP0xy1AANyjFnbNyULqM0QDNaiGoLLLLmznqAAbl9XLYAAAAAAAAAAAAAAAAAA8/THLUAA1AzW5YlIACqM2alIWJVETNAAbl9XLYAAAAAAAAAAAAAAAAAA8/THLUAAAAAAAAAAAAAAG5fVy2AAAAAAAAAAAAAAAAAAOHTHHUAAAAAAAAAAAAAAHTN9PPYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/8QAKhAAAgEDAwIGAwEBAQAAAAAAAREAAhASITFBIlADIDAyQEITcIBgM0P/2gAIAQEAAQUC/i1+k+01mfjhqImRyyOQf5D1GmrTKpcZVGUFUZmEoZVQ1HKoymqZVEf+Zf5DUXTU5VUoKi6S5QcgajkP+mTNRYyIn38PbKpAseSupQVGO5Kmcy6rOZAHKx2QiECdjWZnVKST6FVLnWYQWqjVSOpEVqqkikxVJaAVUwUHBGEMdaRzqp6hTOoDE4VA5IiqkF1AsAmoCqmUBAgioA54kSqkoiqqAddIKVSpCHkrpcFJiuQ5jMQ7KY642OwBE1gbt+OfjlIX7aJRerUyjmUccNUys5lMtCZlAX3Za4xExammYzkDRFIwjREzVrp1gBEH7E5NuBtybcDbk2eg25NnoNu5c8xQbc8xQbc8xQbc8xQbfyQTHGIwo49LOMRxxizjEfwHHpHHHYmOzsxZxiOOMfDO51n24HusBoAYBF0xRdUA1nI29bac3EG3Ch2im9UXSYoJ9e7rz7xeVa/5DT1X89xx/HNh6XBn2Fj80Fzn4ysP5mq3cOk5lO8EGw2GlNVhrDvb7QT68jW3O9qduODsdJtV9YNZT2ReRRWUUQi9BCLWKLyq6FlF+sRvDtzBvz5NrVbeXkdyVkLKKKKK6iurKL+Sju1GprHGU1HGYCVz3siKKKYxaKKKYxfsk6BQ7webjngb820Z345tzwN+2oxakedWUVlFFZWV1/RdRImUyCyEFTmYhqUNUFQmYhKGQgqcy6co9DXoakcwsurMQ1AdxqDNVPTVS5gwKdUfxogow0skVEVajEkCnVVYkGLpIqx1FWJSJqVSIL/XlW+s1bK1h2/wCd1EIh+z3HHHNY7DZ2ccZU1t9dYzHGe5KKKKcmKKKystIoorL+kCVMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxMxBUD2fxN/nUe7s3ib+ovhUe7s3ib+UbHaEoxAxC2k0iAiEqU0E0SDCmwQei8tHu7N4m/oZRl5RxxxzKZWymUy1BUymRZL81Hu7N4m/zqPd2bxN/nUe7+gv/EACERAAMAAAYDAQEAAAAAAAAAAAABEQIQEjBAUCAhgDHA/9oACAEDAQE/AfojDho8KJsL3tRGlDXYYcQ8SLsL1tajUN3+BwpSlKUpSlKUpSlKUpSlKUpSlKUpenfPXTvnrp3s/nnMnurp3s0pS5XKlypS5UpfJdO+eunfPX0H/8QAIxEAAgICAQQDAQEAAAAAAAAAAAEREgIxUCAhMEAQQYBRwP/aAAgBAgEBPwH9AfXhbJ6I6HK51ojwP/A+JSVZVlWVZVlWVZVlWVZVlWVZVlWVZVlWVZVlWVZVlWVZVlWVZVlWNRw+Ovfy1w+OvLPpZa4fHXhSn4k7n9+O5J3Ed2dyWOTZJ99WWuHx14YIIIIIIII+IIIGiCCOrLXD469/LXD4+/lr9B//xAAqEAACAQMCBAYDAQEAAAAAAAAAAREQITEgQQJQYYESMFFwcYBAYJAy4f/aAAgBAQAGPwL6wJLcs7iW4k0NJDLIdsExallYbLwSTFiEiD4JiwqQiHkhZI4qwi5MI4WXVjig6ExYnTC1YI87BfyOp6CaE4GSWucU7nhIIIP8pEECZKuOYRAkSiUSyUSxwXJRLIhMUFxsh4II0yvLmrMGDFcmfd7Fca7LnTOwqbEqkaF7lemn00+mn05qjGhGNCMaEY+p2SfKz+LPJFTAugx2N8U+BZEYO4xZEdx2/BTaMWkdh2F8UVh50dhCsO2whKLkRf8ARZ9ou46IX5r+wKGOHsK53o7naiO4/gdxfAjI7kCGNyO4jO5/0uxUTG5vSzFcQ7ivy7HuVJkYqoYh6Jo6d6P7HKl6IkvRdaQ/0GKr3MyXFnOvqXFS4pHBYvSx1MF+YZ+0Sgc7aN6KKb6JpJak80RCEO0GCCUjhH8CUUZg8MGCGRA4UydZLo8JZe3qLKkjcnb6K7a1pnVPOe+uNOf42QhsQzhGK2RiLUkQ7Vlc6XTy5/gt/8QALRAAAwACAwABBAIBBAIDAQAAAAERIVExQWEQIFBxgTBAkWBwobGAwdHh8PH/2gAIAQEAAT8h/wDCC/xppqr4hdr+JouWWfFVlz9mdlQYZcthwhVyaAqXQHDSejN8WljJGsLoSqoTTroVjSPywSjweMQwKOH/ALCyUVFY6V5deDlTSXgoxFmBPPZ05ZgwOm1zRjNEQYyRWMDRviD1d6Y2j2YDr7o7qI4cD+15JguxvqVaLwFZyM07cFoqJSfS5g3RN8154P8A8UXQ+VSqHAYlaT//AC+OT8Hp/wAnp/yJCb380uJQ8BdhfwSprCcHVF6OcTWyiQkMT2sMqoqmJhCRjSQq4lNigkUJNdMYZsO0T4vU4WQoRElOzyk5GYS8Mc1CmkJYtfk4xlMhquBtFp3lCzc7IvOuhMXJwhgiJp9jp7EL28obZOGhYT2MgYqYwSRJIbgYaEmVl2RxqbIf0nMGqJvlc3oau5eeRKpc/L6pxERwYlXDfxl+D4J+f/JhZfNf/wAlGOW/7tTNdmLfo5LnFPyZ4JneoQk6mp0fmuhI1TAonl8jRXDi5Y2kqTmpqbOSUao8TZyNsS/OCGlE3SD7s6R6K7ag7LMwPI0UvHNODwl0NPgZ2Qh9mFhg5EpGUhdDQacX4IzHMFwsVERtqZEikqFlvL+70pSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUpSlKUv8Hf3/v6+/htyuisuxDblouG2NUY25XRWXYhty0XDbGqMbcrorLsQ25bBUbY1RjbldFZdiG3LYKjbGqP7V39ffw0Dr7EO6oniyK0lGgdfYh3VE8WRWko0Dr7EO6on3BWko0Dr7EO6on3BWkv2rv6+/v8A3/BkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkz/ALKQaUbokfk2YuAnZMCafDGi7QlhuKlxSkNxNFHE0RZVTtYv2YrH+RtLlwhdoakneSFy1/QeeE3NDUKpajvI8bGicbRCVqnwlabIsqpwRLVCpqp4KdoqI2j0QkfDRFlVPRf08XR/pCOnMYxs5RpuH0LS9lDmSJnDtnfBJqN/oRKWMYfSI/QeC6WaLCabN05cFZE6EmqfTpHQPvkalxucMbO8YFaVP+dPNNPnod0D8wnexBq4tlLo4ds6Ypmqgrvq8ExXU10NsHyfSF9jTas70VG8vK57H0KZFsx45wL9hWhK2TfoPKCJRH/A13P0+8O3y1dCwp9TURih2tv3+yOWRaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoax8pYItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLR+hFo4f19/FWyrZG0NlVlKrL/XfD+VwvhUm9HLKlOlXP8AUZgwNonw7+vv4mY/6iL/AAP+JF8c8DYfCzx/XfD+VwvhOV6Ia3PSLUa51/UZERDEehId/X3/AHnw/lcL+wxqkIJQR39fZfC+F8L4XwvhfC+F8L4XwvhfC+F8L4XwvhfC+F8L4XwvhfC+F8L4Xw56+eOi+F8L4XwvhfC+F8L4XwvhfC+F8L4XwvhfC+F8L4Xwvh+j9H6P0fo/R3/snfrTqq+KsenI3FX/AF20uWl9kS/uOXThPw4DP24JgrPORtqq6clUv/dOXbKGaSbiGef+TCbeXswHX+3o3GjnJlC2yfY4liY+lUvI28E0qyTscl5E24bxXk5pakPsE/ycqbLGxnBtz/sryq6DtLpLwKsl0ddjbqJ1fmUrk6Kqx27G+QSDvyYHT/4OAm/yStbeWuzl0yno+Btx/kap5uefscWiEpFCEWhJLhQaN1pENSL4jSIzhZPANG8pES6Gk+VSKSKEUkU+IpIhKcFHYiabSaY0mo0RpDR8pMaT5SY0mo0viKSEWxX4SS4SQkcJEUkwRpESRT7H2T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0npPSek9J6T0np39ff1J1fDaXL+vgTT4f0J37X39ffxgz6bK034ElULY8Cri9HKrRrko/DmFhDw8nwcJqzix8HWZuW+fhd6LCM45/ZmNeDOOf2Z2OYrwc8r9p7+vv4iEyeRCJBIuBoyJIQQitEi6Itg1fiF0QSIj/2NJiSXH2nv6+GVbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtlWyrZVsq2VbKtnL/AN2c1V/5KdrnQ36njoqp2cFfuaz8DesHi4E9/wDpigzgQ2bcQm+B+vvlGnWpomNc3snuv8i3bf5Fwy8cEg0bzqC9t/kiJojOXsUO1t+/fcmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmf4O/wCHv7t39fY1HoTtW6caZ8dDblOP8iZi/v4uS5O/jGQcr/AvJwTSXA5X+Baug66BYBEdC5Tiin6DCSF9Dn/QXC8UmkuPsvf19nJiix/BwPShRrz55ODv4reBp3DOETK3kadwzgo5Dg85YmuWR4ycOc7Es1srt4+GncM4RMSnP2Xv6+/4e/u3f8EIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEIQhCEJ/u0wSM7FOH9DmZ89FJvKnNEtI1+TFZG4JaZb8Oe2Gxq8qbPL/ARZik7VNiWka/JPbBqum8XBHgbxewTDLfhsuYK1WUplNGTubmBo1HjmfceO1dmSkdRKzorAM/R0tzPaKyMnLCrY200sPMHaTggTj0RxST/JFPC6TdHS3M9pJkr2mNOnKcKdmYMJPHpHkHoS0xhUMtBScllhTdLn+RMXGf9d1b/wBApcSfPJglD/I6mzB2XfBWSInQzbfh/oFpy/7Fgmb2RJ0N3R5f6CyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZMmTJkyZ/g7+/9/X38d8/sdX0+B5SpfktpScwtTBU9sK045kZwRhb0Xd/XRgmLNZTujQFaasyVlVIWz8CcR+HqGCJCm8TgwN4wLK+0d/X38eGOiubk6Z4JyE/5HKt04qPKODzk5qyr4cHexJ3L+E1Z4aJ4OmeFDhLiEfY0uBKOiWH6JRT7R39ff3/v+CLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFoi0RaItEWiLRFr/dpfM8meTPJnkzyZ5M8meTPJnkzyZ5M8meTPJnkzyZ5M8meTPJnkzyZ5M8meTPJnkzyZ5McxfZ+H8f3+H7Pw/j+Wn0cfwy/wcP2fh/H1cjsplVvw7qBJOik6MglE3IUhKQxEn/JIZq5Glr/kMw8pFEyXLIOISSatIlladVhoeJwgot5z6P8AFlGmkk+rh+z8P4+pcLMaY+Hmtv4T+P8AIszZVXGOhOm3ssG7TW3Rs54VW8ZGzmFgbromS6wJlp/kuHjAz9hMlIvgGpMJefVw/Z+H8f3+H7OmD/vpg/8AyD//2gAMAwEAAgADAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAABAAAAAAIIAAAAAAAAAAAAAAAAAAAIBJIJEBBA4ABIAIMpAACoBggNIOlgFWAAAIIJJJJPJBA4JJNJAJAwACoAkgLIPxhMsAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIBIBBIAAAAAAAAAAAAAAAAAAAAAAAAAAAAJABIBABAIAAAAAAAAAAAAAAAAAAAAAAAAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAIAIABAAIABAAAAAAAAAAAAAAAAAAAAABAAAIIAJABIIJBBAAAAAAAAAAAAAAAAAAAABAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJJIBIAJIAAAAAAAAAAIAAAIIAAAAAAAAAAAAB5lAUAIAEAAAAAABBB2HIBPBJAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAJAAIAAAAAAAAABJJJJJJJJJJJJJJAAJJJJJJJJJJJJJIIAAAIJBJAAAAAAAAAAAIBBAAAAAAAAAABJBJAAAIAJBAAAAAAAAAAAIBBJAAAAAAAAABJJJAAAIAAAAAAAAAAAAAAIBAAAAAAAAAAABBIJAAAJJJJJJJJJJJJJJJAAJJJJJJJJJJJJAAJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAABABAAAAAAAAAAAIAAAAAAAAAAAAAAAAABJ5O4gJxAICZIJNJJooAAAAAAAAAAAAAAAABAJAAABJAJBIBIIBBAAAAAAAAAAAAAAAAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAIAAIIAAAIAIAAAAAAAAAAAAAAAAAAAABAAAIBPPJIw4A5xIAAAAAAAAAAAAAAAAAAABAAAIBJAAJBJBJAIAAAAAAAAAAAAAAAAAAABAAABJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAPIEIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIIIJIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAIAAABAAAAAAAAAAAAAAAAAAAAAAAAAABAAAIoJABAIBENJGBAAAAAAAAAAAAAAAAAABAAAIIIABAJJJJJABAAAAAAAAAAAAAAAAAABAAAIAAABAAAAAAAAAAAAAAAAAAAAAAAAAABAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIABAIAIABBAAAAAAAAAAAAAAAAAAAAAAAAJACEJ4DJOIFIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAIJAIBhAAJFJJAAAAAAAAAAAAAAAAAAABAAAIABBIJJAAJIJAAAAAAAAAAAAAAAAAAABAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/wD/AP8A/wD/AP8A/wD/AP8A/wD/AKAAAAAAAAAAAAAAAAAAAO222222222222220AAAAAAAAAAAAAAAAAAAO2222212222y2220AAAAAAAAAAAAAAAAAAAO22Ax5gltD/1y220AAAAAAAAAAAAAAAAAAAO22/05/wCwDHGB9ttAAAAAAAAAAAAAAAAAAADtttttttttttttttAAAAAAAAAAAAAAAAAAADttttttttttttttsgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/xAApEQACAgEEAQQBBAMAAAAAAAAAARFBMRAgIVFhMEBQgHBxkOHwYIHR/9oACAEDAQE/EPrBhaUMY8j6LgzgXJ+hb0XOzwLPBTHW24L0dGSmeS0WZxuVyZ0Bo/QZJseCEQhJTqoudBSx6HjSh4HkY8yWYFxpb0RgdaWLgpjPJejLksZ1pR4LMMwLapcM7A0XoRpseBJqjnoU9ax6I9Ej8xV/gNbPJUHkqNe/2seiiy9EYenYx/8AC9Xfsb1ZeiyU9FjXoqDssWEfqd/tGVrevf8AbHZ/Ij+d1lirR7eyytOiv72XH56ovbZRZQ9l7L+yKKnVad/RBC5+9Fb69BclfLUIqNbZ0UWio2WLAioPJmTox+Qey4K/19JFQvuw0REiRIkSJEiRIkSJEiRIkSJEiRIkSJEiRIkSIkfw+fv8vh8/Vh+yy+Hz3LA8aN4Iy5ZCfJCmCkQuRwlJBNkKJILhEJJSQokhShRzAoSkaTZCalbsvh8/RTEpkYyknQ3xBKZ0NzyJkSJCcaJZHLdl8Pn7/L4deffrz9g//8QAKREAAgICAgECBQUBAAAAAAAAAAERQRAxIVEgYYAwUGBwgUBxkMHw4f/aAAgBAgEBPxD2wbeNsXIuRaF2VJrY+CuR6R6DP3xZUj1yWhXipzU4QtM0aYuiw9Gtj8WxiE6eUpwjic1PBbJZLG3GZJF8C5xYti0LoWoKNj5NodYZsViKHyWhHoaUC4FwVGF0U1ixbkqDaNj8WhjE7ynBJOZPwWxtM47HGYIF94r+gb8HqC5PQufD0/iuRo7LkooYx8oZa/1CoVfkrKoqB/HrK/soY9FiLz2XJ0f8HY+dFr+IlZs3ihj0X/ujr/UL+0PReVmjo7wq/Pg9FnReHZZU/fisWV40WUWIvNeFe45G8MuMvRcHX0Lc/ctj4+LRflfvUvzs9fF4fAtrPfzNbOi5y9I7LKZc+Gx7Yy5PQ1B2bc/b5bx2dFSX+fZI7Hv6Kr3HN0/X1VVVVVVVVVN5fQ1s+aUPhT8DZ8tnuBbjCEljbUJMkpTJSGznkS5SXQm0qdEnCRKNpk2pZMkEs4RwMSSljlo6E0CbUH5bPls9i3hqNYgiNISIc+okTkSKSMQJRKFA1Y1ZGIEMavkjECRc+Wz6Gtnyd+I/Xt7g3//EAC0QAQACAQQCAQMEAgIDAQAAAAEAESExUWGRQaFxIIHBEFCx8UDwMHBg0eGA/9oACAEBAAE/EP8A8QIKtC9LgiWI/H0COiPx9KgWtEvQI+T9EQpDgV/4bLqy9pV0FtF+YiloXpb+gzARqXk/4M7TOxM7H6MzsTOxM7H652JnYmdiH6Z2JnYmdv0vaZ2JnYmdv+CzYFS7EQAE8nWEmJ9plEmUzfxMog10ojwy+PLTiCOXT+MxA0oiJ5DV5qCC5Fy5YHy5YLhfiTBDbpckQmgXFAsvB4QsGQDhuPonMAGDnoXnYkqCyPnNQC2SxK7xpUWhhloJ5nFDRniLgdCGIQWtDHcBgKikQSmI5DAtaCKaqzIpMZg1nxBdOPMSjJVrSCop8FedJj4bV83BSg5y5qBoh+h0ghKatZmW05gnLZPJ8R1IYhyFG9o1M0bDOFpesByhrXnb3PM8xK7EMM20aaXpHoJetF/dDVhEVotmY/8A0T/eIJ1mng+SGkNWBuwaLGf1P/2NUFVpDQ+tkNm1FA5osOjXpPKI3I0HSU7Ew3rEh645qpe+d5aqVwDkJvEZHSm/iEWoCowvjI6Qj7aMxRAHgNwdIsqEiWGd4+I4JYq8o/IxTLBGKArPvHhcpC/iO5NSzSCP1ol1DwJyNUykwx0eCMpkqV5IDInA3FitYmqjwKW2sVAJpGoUAoYdOIKhrwRZFkZBQAIuZrUbuBdSoNw9uTFgsX0F/EyxdefodIIC2qSZlsOYpyUczyfEdSBA4VwINKUDrCV1FbvW55nmIlnygRUlht5+YEATzTrDVhQGVQQhLt8wIAyCLLbhpN4BdPP+vM5PX/2WaSW1YaH7fneZ3Jnc/RmdyZ3Jnc/XO5M7kzuQ/TO5M7kzv+lbTO5M7kzv/wBKMWrV/AjUuhQrmOM1CaHiUsEXY1/3mZrQR0M3FAhS0ZzE4BUXQyEqdxz4lrFABGHMQycAGCXu448yowleHiAWO0WRFIEGT/7MgrC9Svf/ALgiQ0AZgWFlNI6j+7NhqCP3gVAUqv4rwxp02AFYjhVe+ojeVkDppWZeoSjAxh3g3YpSYS1S2ypzFrFUZzaETH31t1L1lK1NEXiJzYYMs7xrzG2Ct4lJ2wPDTDxo1FcP5iqkSI6ObilIUtrT92UNZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemU56ZTnplOemCOn1mv4P390/D9Zr+D8/phqkv3xKcADGNZQICr+8vdWLBzGUypMNUl++JTgAYxrKBAVf3l7qxYOYymVJhqkv3xKcADGNYgIUW/MyVbRGUypMNUl++JTgAYxrEBCi35mSraIymVP2p0/D+PrNfwfn9GUDAt9TXEOhZmLjJpejAZIhWITLP8RlAwLfU1xDoWZi4yaXowGSIViEyz/EZQMC31NcQ6FmYrjiTS9GABugqiEyz/EZQMC31NcQ6FmYrjiTS9GABugqiEyz/H7U6fh/H1mv4Pz+/un4fx9aN2NMrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1K3HUrcdStx1Abtbf+k6YZagr8w11WowqZCIGyQmCbl0miD8MSpBdBdYl+leWILErW5QrJnTmCiSagwuCdhiN3EvMBqANRsC4ukFsButREKQ5FY6BSobjSpXpbr/gCI8uRpAkIjpbX8zWgN7xE2KAG9DbAgS6CxERLRXDBEsbINhAgg5LYiES8LmKC1APLBa+ZeIVAdw4hpG+GaGTOmdYKKVGudIMWMVeviJopNQYKgw1BzElEk1L0/w1bIA3Y7bSn3alsIG2IFQoVpA2rGGoGta8w4TAVZV6xADLsS1lacQ+oKGBp20lSTTeGWAJYz5d+qjKUtrsAfesxARgDpkzmCxwm6w51uKc0mWnioF7BGa11g1QFdRH4qOK0FsNP/UWy9AoHiiNCSTC2K04ms4H/OxV5Ii7tmQFWKNSDEayYchWtfMZMhQ0XmOIw7ELErTiZW0AoumCCsijaOFyRszluWLRRKKfvWJdRFSaazJAC6lFxrTLBBKIAocYlAtsFpV6QSq1atGIolmsRl1lHQWXhbGw6oSw0xHzAYq29zzMHLuvW/3g0TzgtYAAUGD6jXQdodyiq/A+mms3VeP8RClyBOJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1OJ1AEgCF4/UEKCpeZxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpxOpVqq04nUApMCfWa/g/P6Zqpe1wYsCHm5hvEcygKzbRLqBe1xKwXtf+P636+tFAVaCHQILuCobJm4NbIaG/8RUS9jL2MCgGWW41qNRHxHT8P4+s1/B+f0Q4f9MBY4fzNgf3mQOT/fcA4IwwNPlgeU2M66/4/rfr636EG0F/BAKD4HiIumeV4PP+JlXzOKcUJMazPVpUb1jp+H8fWa/g/P8Anet+vrf5Hh8xKVL8S/ES1zy+Y6fh/H1tlguyW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6lt3qW3epbd6jYSxe/6lgLNbS271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUt3+p9/qff3Pv7n3+pbv8AULbJVH/SaBBS3Q3lioJZqfUBJY5P0xK7FQmbggsROITJQa/4yhVoXjMp8hpbX7JTxpBDs4l1cu2e0bYBZbtb5iwVJeTHr7Q8VQLNKKvWUqRCsWR945jDoBoCteZnaASmrjcxcobjeHlgy5mAB5ZaRchYNF8zW1XQDQFazIa6LOrcStVi0at2uKqWbG2TGlwlsFFrS3Jc5nwW1vfWWjlBtS04LjcgihW/tGrSbKMDioYzAIFPGsRDIaRrBx6llDFbX4qPOtKrX3aZjRAZ2qtEWWFvcbkaVFFBG/czPoDeCLtEWMGi8GxUIG8kF2Iq6sF23q1jkkIqNvGszLthVPhJApRWvMQFBvY0q941qgQbj9ioUaLNGZFpnXGsFAS1AwyljRZpxLLsZ1xrBaIbBUCJJopERMGgmkCiiA6Fm9PMp+6Y1gQgA4oIEVJopChQKKKPEBoBslz1YrEDoDZWJRd0XpcXSQc1UAUADwRuDL5SCUoKEuqlICbJAdNa9JR4zSy4PRHJctgGyQAKAA8ExKKNCorY26sxBKSyD0A+AqaIvgi14dlYitW1aY0ioTDQTEACgo/Ym2g1RLbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9S271LbvUtu9Qsot2fWa/g/P6CN0jUsurL2/UATR/TQA+X6BG6dP1UFqBuzRB+H6AtTo1+1un4fx9Zr+D8/orpyB4h5Cb/EQhYpedYFRoWC+I7RBk05ZYtABVukS9hVKgmSa9HOPEsYYLlukpuBUG3WGIrYvniBAMqDbrFCaGhGz4qanyfzAbQKUDdwTYzUuxTLFsqaPEEKNbmxTFQFi0XfiUowAecstQqji/wBpdPw/j6zX8H5/RVCYW2UyrNVP9DpAC0a6xUUwaZ0iKil1iNpncaig0DTiB3jUpzrEICYNJmUy6xazI04i/kawBSWfoOs0aZ0gC6NW2LWGTTOk4PPaKimTyNS1pV/tLp+H8fWpa4EnE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7nE7glpkD/tkWwCN0jbaNhunJ3a1l0HITR9opCyzjwxqwM89XCrVi1q3rWUMUUUr7R9EsRbCruaddCgcYiS0RwO7D5hqxw/fKYZamn5meWtScwzXVKy8QBvA0W0gC7zSXSYNmhv3cVOV2HEEbcai2k1o1VPtMAwLQvR4hskMX++FboLZew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuXsO5ew7l7DuC3SU/Wa/g/P/AAun4fx+7On4fx9Zr+D8zG90uAVbLscH2iqs73nlviBqiQa2K4zBlTHc37/RqBKHRhdAWGrHT8P4/RSk4v3l+LVGUyzc0b9XFsUONJb5e7biZPU1vfmXjtSqr3UQNlI3U+IXXS5oU1HUQrWlaaXBZHUXvzcWNWclTPxqtWkLWnMN7eLi2KHGn7K6fh/H1mv4PzEAiWOGVWhp3B8wIVawGWW6vfzj9UAiWMAABQR0/D+P0Usc3is9xVqeEuYFAnneAC63mtIpNN+EuNATsgixbhiZCxNMVFjymrWH7QQy1m6RTINUUVCwLQ3VZ7/RFqeEslgoEbveOlVrxX7K6fh/H1mv4P8AhrB4/dnT8P1oOspz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbKc9spz2ynPbADT/tkz7tIUkLpbpbmJXNoVn4RDtmFJAt2llKuDeSU6BClKV0bxBBzEaMvEyMU2hpqYxSFoXVHF9ceYhR5YKYFa0spVwVVo8eY+FrJS6OYJk0XfEuuWUpYMwSQtpdQdaGArKxDco0DBxgpoeSKRfILCCIJo/uC2qK6oIbFrB5mQhrtV/eZFQKLL92VAHyWl4zBLyrRZvChFUTCkjNks8BE+qoHmJALmaZqOEO3lMwmrQD8yoA+S1fGYgwFxRpcSoVAFkPO8deGi8yjBYzTNSoShspjFS0LYYkkZ4BqKKQc7XxHtkaqq/feWAK2sv/naV2Ctbf8AwGp6XDR4mEo1phXqKjrqtA5vmFJ6aNMOajnYEKFY3lo7unP/AIC4NrNER/EAALo3blNPRVzx+q6vm4qrq1y0/aKCaEDXwf8AgKt0V95W46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqVuOpW46lbjqC3TX2+s1/B+f390/D+PrNfwfn9F3QAapZYoKLDttFMiDLGALNm0ydarv8A+RLQaiUuFoSVjLS7fEFQSxePMdS2mugjXLQBL5iVOiZaQzRQ8Txgwx4gwWwOrNSha2Ex4gbiEOteJYw4PKTC4qNsEADITeKh3L/aHT8P4+s1/B+f0WLhHNVB1rQUccxsoClONZyG158ze+KqVhnQfiCphNMVCmACrqL8h+ZWo8k8PvKoK3yMQQba8BU1rfepay1XLg0V4rSFToEMLtgqoXFiHiqv5l6RV+Kz3LUaUFSkL1LKnVRX7Q6fh/H1+fJ+/wDjwfWg6lzidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidTidQA0K/wC2abK3wT+tJ/Wk/rSf1pP60n9aT+tJ/Wk/rSf1pP60n9aT+tJ/Wk/rSf1pP60n9aT+tJ/Wk/rSf1pP60n9aT+tJ/Wk/rSf1pP60n9aTKAdn9n/ANTl/wA/+T/H7P8A6nL9Wv1ghEi0RFIlJ/witQta1ERpKefr/k/x+z/6nL9RqhWA5+8NFKMLn7QyylAAPGsXTAumIEUsCYrdRUbiq0L2WIk/RUyzJBPDwiwqkAuKsmFFhSgpyrELaFqOkL4XUF1BRFkNsyYplbrExEuwKVHWzS7OWO0NUl3f1fyf4/Z/9Tl+pWQEHP2/9RUSAHH3/wDf6BASjRFpBK9uodGKpQFYDEAwWUZtDZEIFWIIUNs04vITEGFArKIzrVbxBhS8FMkCRBW6F5itGwrSOtAmCJiZAS7BNIsMBCtNZhDUUK+r+T/H7P8A6nL/AJ/8n+P2dMDFVf8AnsgMF2//AKD/AP/Z)}"]}),i})();const qW=["frm"];function e6e(i,o){if(1&i&&(n.TgZ(0,"div",54),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.erroAutenticacao3ds,"\n")}}function t6e(i,o){if(1&i&&(n.TgZ(0,"div",55),n._UZ(1,"div",56),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("hidden",t.erroAutenticacao3ds)}}function n6e(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"input",57)(2,"input",58)(3,"input",59)(4,"input",60),n.BQk()),2&i){const t=o.$implicit,r=n.oxw();n.xp6(1),n.s9C("value",t.produto.nome),n.xp6(1),n.s9C("value",t.produto.descricao),n.xp6(1),n.s9C("value",t.qtde),n.xp6(1),n.s9C("value",r.obtenhaValorUnitario(t))}}function i6e(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"input",61)(2,"input",62)(3,"input",63)(4,"input",64)(5,"input",65)(6,"input",66),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.s9C("value",t.obtenhaEndereco1(t.enderecoCobranca)),n.xp6(1),n.s9C("value",t.obtenhaEndereco2(t.enderecoCobranca)),n.xp6(1),n.s9C("value",t.enderecoCobranca.cidade.nome),n.xp6(1),n.s9C("value",t.enderecoCobranca.cidade.estado.sigla),n.xp6(1),n.s9C("value",t.enderecoCobranca.cep)}}function o6e(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"input",67)(2,"input",68)(3,"input",69)(4,"input",70)(5,"input",71)(6,"input",72),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.s9C("value",t.obtenhaEndereco1(t.enderecoEntrega)),n.xp6(1),n.s9C("value",t.obtenhaEndereco2(t.enderecoEntrega)),n.xp6(1),n.s9C("value",t.enderecoEntrega.cidade.nome),n.xp6(1),n.s9C("value",t.enderecoEntrega.cidade.estado.sigla),n.xp6(1),n.s9C("value",t.enderecoEntrega.cep)}}const r6e=function(i,o){return{"text-muted":i," text-success":o}};function a6e(i,o){if(1&i&&n._UZ(0,"i",73),2&i){const t=n.oxw();n.Q6J("ngClass",n.WLB(1,r6e,!t.cartao.bandeira,t.cartao.bandeira&&t.cartao.numeroValido))}}function s6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function l6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero do cart\xe3o de cr\xe9dito inv\xe1lido."),n.qZA())}function c6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function d6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function u6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function p6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function h6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function g6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function f6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function m6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",4)(1,"div",74)(2,"label",75),n._uU(3,"N\xfamero de parcelas"),n.qZA(),n.TgZ(4,"kendo-combobox",76,77),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.parcelamento=s)}),n.qZA(),n.TgZ(6,"div",34),n.YNc(7,f6e,2,0,"p",27),n.qZA()()()}if(2&i){const t=n.MAs(5),r=n.oxw();n.xp6(4),n.Q6J("ngModel",r.cartao.parcelamento)("data",r.parcelamento.parcelas),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function _6e(i,o){if(1&i&&(n.TgZ(0,"div",78),n._UZ(1,"i",79),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.mensagemSucesso," ")}}function b6e(i,o){if(1&i&&(n.TgZ(0,"div",80),n._UZ(1,"i",79),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.mensagemErro," ")}}const v6e=function(i,o){return{"needs-validation":i,"was-validated":o}};let y6e=(()=>{class i{constructor(t,r,s,l,u){this._renderer2=t,this.ngZone=r,this.http=s,this._document=l,this._ngZone=u,this.onCriou=new n.vpe,this.cartao=new Lc,this.bandeira=null,this.definiuSessaoPagSeguro=!1,this.contato={},this.cartao.numero="",this.cartao.cvv="",this.cartao.nome="",this.cartao.cpf="",this.cartao.email="",this.cartao.validade=null,this.cartao.dataNascimento=null,this.host=window.location.origin}ngOnInit(){this.gereTokenMpi(),this.contato=this.pedido.contato||this.pedido.cliente}onCarregou3ds(t){this.inicializouMdi3ds=!0}onAuntenticou3ds(t){this.autenticacao3ds=t.detail}onFalhouAutenticou3ds(t){this.inicializouMdi3ds?this.erroAutenticacao3ds=t.detail&&t.detail.erro?t.detail.erro:"N\xe3o foi poss\xedvel fazer autentica\xe7\xe3o do cart\xe3o":(this.erroAutenticacao3ds="N\xe3o foi possivel iniciar processo de autentica\xe7\xe3o do cart\xe3o",t.ReturnCode&&(this.erroAutenticacao3ds=String(`${this.erroAutenticacao3ds}: ${t.ReturnCode} - ${t.ReturnMessage}`)))}gereTokenMpi(){this.http.post("/cielo/mpi/token",{}).toPromise().then(t=>{this.token=t.data.token,localStorage.setItem("EnvironmentMpi",t.data.environment),this.pedido.guid=t.data.guid,this.addScriptConfigMpi(),this.addScriptMpi()}).catch(t=>{console.error(t),alert(t)})}addScriptConfigMpi(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.src="/assets/js/mpi.config.js?v=1",this._renderer2.appendChild(this._document.body,t)}addScriptMpi(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.src="/assets/js/BP.Mpi.3ds20.min.js",this._renderer2.appendChild(this._document.body,t)}ehValido(){this.frm.submitted=!0;const t=Y1.obtenhaControleInvalido(this.frm,this.frmElement);return t?{valido:!1,controle:t}:{valido:this.frm.valid,controle:null}}crieTokenCartao(t){var r=this;return this.cartao.mes=(this.cartao.validade.getMonth()+1).toString().padStart(2,"0"),this.cartao.ano=this.cartao.validade.getFullYear().toString(),this.enderecoCobranca=t,this.enderecoEntrega=this.pedido.entrega?this.pedido.entrega.endereco:this.pedido.endereco,delete this.erroAutenticacao3ds,this.autenticacao3ds=!1,new Promise(function(){var s=sn(function*(l,u){let p=yield r.valideBin();p&&u(p),r.inicializouMdi3ds||(yield r.aguardeInicializacao3ds()),setTimeout(()=>{window.bpmpi_authenticate()},100);let y=yield r.gereTokenCartao().catch(A=>u(A));if(yield r.aguardeRetorno3ds(),r.erroAutenticacao3ds)return u(r.erroAutenticacao3ds);y&&(r.cartao.autenticacao3ds=r.autenticacao3ds,l(r.cartao))});return function(l,u){return s.apply(this,arguments)}}())}valideBin(){return new Promise((t,r)=>{let s=this.cartao.numero.substr(0,6);this.http.get(String(`https://api.pagar.me/bin/v1/${s}?appId=pk_test_BQ0NVj8C47hbrNL5`),{}).toPromise().then(l=>{this.cartao.bandeira=l.brandName,t(null)}).catch(l=>{let u="Cart\xe3o inv\xe1lido";l.error&&l.error.errors&&l.error.errors["request.card"]&&(u+=":"+l.error.errors["request.card"][0]),t(u)})})}gereTokenCartao(){return new Promise((t,r)=>{let s={holder:this.cartao.nome,validade:this.cartao.validade,numero:this.cartao.numero,bandeira:this.cartao.bandeira,codigoSeguranca:this.cartao.cvv};this.pedido.cliente?(s.nome=this.pedido.cliente.nome,s.formaPagamento=this.pedido.pagamentos[0].formaDePagamento.id):(s.nome=this.pedido.contato.nome,s.formaPagamento=this.pedido.pagamento.formaDePagamento.id),this.http.post("/cielo/cartao/token",s).toPromise().then(l=>{if(l.erro)return r(l.erro);this.cartao.token=l.data,t(this.cartao)}).catch(()=>{r("N\xe3o foi poss\xedvel processar cart\xe3o")})})}aguarde(t){return sn(function*(){return new Promise(function(){var r=sn(function*(s){setTimeout(()=>{s("")},t)});return function(s){return r.apply(this,arguments)}}())})()}aguardeInicializacao3ds(t=1){var r=this;return sn(function*(){return new Promise(function(){var s=sn(function*(l){console.log("verificando inicializou 3ds:"+t),t+=1,r.inicializouMdi3ds||(yield r.aguarde(1e3),yield r.aguardeInicializacao3ds(t)),l(!0)});return function(l){return s.apply(this,arguments)}}())})()}aguardeRetorno3ds(t=1){var r=this;return sn(function*(){return new Promise(function(){var s=sn(function*(l){console.log("verificando retorno 3ds:"+t),t+=1,!r.autenticacao3ds&&!r.erroAutenticacao3ds&&(yield r.aguarde(1e3),yield r.aguardeRetorno3ds(t)),l(!0)});return function(l){return s.apply(this,arguments)}}())})()}exibaCartao(t){this.cartao=new Lc,Object.assign(this.cartao,t)}alterouNumeroCartao(){}fecheMensagemSucesso(){delete this.mensagemSucesso}fecheMensagemErro(){delete this.mensagemErro}obtenhaEndereco1(t){return String(`${t.logradouro||""} ${t.numero||""}`).trim()}obtenhaEndereco2(t){return String(`${t.complemento||""} ${t.bairro||""}`).trim()}obtenhaValorUnitario(t){return t.valor?100*this.convertaCentavos(t.valor):this.convertaCentavos(Number((t.total/t.qtde).toFixed(2)))}convertaCentavos(t){const r=null!=this.pedido.totalPagar?this.pedido.totalPagar:this.pedido.obtenhaValorAhPagar();return Number((100*r).toFixed(0))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(Wo),n.Y36(ie),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-cartao-cielo"]],viewQuery:function(t,r){if(1&t&&(n.Gf(qW,7),n.Gf(qW,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first)}},inputs:{parcelamento:"parcelamento",pedido:"pedido"},outputs:{onCriou:"onCriou"},decls:84,vars:40,consts:[["class","alert alert-danger",4,"ngIf"],["id","frm","novalidate","",3,"ngClass"],["frm","ngForm"],["class","bloqueio",4,"ngIf"],[1,"row"],["type","hidden","id","carregou3ds","value","false",3,"change"],["type","hidden","id","autenticou3ds","value","false",3,"change"],["type","hidden","id","erro3ds","value","false",3,"change"],["type","hidden","value","true",1,"bpmpi_auth"],["type","hidden",1,"bpmpi_accesstoken",3,"value"],["type","hidden","value","S",1,"bpmpi_transaction_mode"],["type","hidden","value","false",1,"bpmpi_order_recurrence"],["type","hidden",1,"bpmpi_ordernumber",3,"value"],["type","hidden","value","986",1,"bpmpi_currency"],["type","hidden",1,"bpmpi_totalamount",3,"value"],["type","hidden","value","1",1,"bpmpi_installments"],["type","hidden","value","Credit",1,"bpmpi_paymentmethod"],["type","hidden","value","PHY",1,"bpmpi_order_productcode"],["type","hidden",1,"bpmpi_cardnumber",3,"value"],["type","hidden",1,"bpmpi_cardexpirationmonth",3,"value"],["type","hidden",1,"bpmpi_cardexpirationyear",3,"value"],["type","hidden",1,"bpmpi_merchant_url",3,"value"],["type","hidden",1,"bpmpi_billto_contactname",3,"value"],["type","hidden",1,"bpmpi_billto_phonenumber",3,"value"],["type","hidden",1,"bpmpi_billto_email",3,"value"],["type","hidden",1,"bpmpi_billto_customerid",3,"value"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"col-12","col-sm-8"],[1,"form-group"],["for","numero"],["type","text","autocomplete","off","id","numero","name","numero","appAutoFocus","","required","",1,"form-control","input-background",2,"font-family","monospace",3,"mask","ngModel","ngModelChange"],["numero","ngModel","numeroElem",""],["class","fa fa-credit-card fa-2x",3,"ngClass",4,"ngIf"],[1,"invalid-feedback"],[1,"col-12","col-sm-4"],["for","validade"],["name","validade","id","validade","format","MM/yyyy","required","",1,"form-control",3,"ngModel","ngModelChange"],["validade","ngModel"],["for","nome"],["type","text","autocomplete","off","required","","id","nome","name","nome","placeholder","Nome impresso","value","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["for","cvv"],["type","text","autocomplete","off","id","cvv","name","cvv","required","",1,"form-control",3,"mask","ngModel","ngModelChange"],["cvv","ngModel"],[1,"col-12","col-sm-5"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["cpf","ngModel"],[1,"form-group","col-12","col-sm-7"],["kendoTextBox","","id","email","name","email","placeholder","Informe seu email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["class","row",4,"ngIf"],["class","alert alert-success alert-dismissible fade show mt-2","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show mt-2","role","alert",4,"ngIf"],[1,"alert","alert-danger"],[1,"bloqueio"],[1,"k-icon","k-i-loading","mt-5","centralizado","fa-2x",3,"hidden"],["type","hidden",1,"bpmpi_cart_1_name",3,"value"],["type","hidden",1,"bpmpi_cart_1_description",3,"value"],["type","hidden",1,"bpmpi_cart_1_quantity",3,"value"],["type","hidden",1,"bpmpi_cart_1_unitprice",3,"value"],["type","hidden",1,"bpmpi_billto_street1",3,"value"],["type","hidden",1,"bpmpi_billto_street2",3,"value"],["type","hidden",1,"bpmpi_billto_city",3,"value"],["type","hidden",1,"bpmpi_billto_state",3,"value"],["type","hidden",1,"bpmpi_billto_zipcode",3,"value"],["type","hidden","value","BR",1,"bpmpi_billto_country"],["type","hidden",1,"bpmpi_shipto_street1",3,"value"],["type","hidden",1,"bpmpi_shipto_street2",3,"value"],["type","hidden",1,"bpmpi_shipto_city",3,"value"],["type","hidden",1,"bpmpi_shipto_state",3,"value"],["type","hidden",1,"bpmpi_shipto_zipcode",3,"value"],["type","hidden","value","BR",1,"bpmpi_shipto_country"],[1,"fa","fa-credit-card","fa-2x",3,"ngClass"],[1,"col-12","mt-2","form-group"],["for","parcelamento"],["id","parcelamento","name","parcelamento","required","","textField","descricao","placeholder","Selecione a quantidade de parcelas",1,"form-control",3,"ngModel","data","ngModelChange"],["parcelamentoModel","ngModel"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show","mt-2"],[1,"mdi","mdi-check-all","mr-2"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2"]],template:function(t,r){if(1&t&&(n.YNc(0,e6e,2,1,"div",0),n.TgZ(1,"form",1,2),n.YNc(3,t6e,2,1,"div",3),n.TgZ(4,"div")(5,"div",4)(6,"input",5),n.NdJ("change",function(l){return r.onCarregou3ds(l)}),n.qZA(),n.TgZ(7,"input",6),n.NdJ("change",function(l){return r.onAuntenticou3ds(l)}),n.qZA(),n.TgZ(8,"input",7),n.NdJ("change",function(l){return r.onFalhouAutenticou3ds(l)}),n.qZA(),n._UZ(9,"input",8)(10,"input",9)(11,"input",10)(12,"input",11)(13,"input",12)(14,"input",13)(15,"input",14)(16,"input",15)(17,"input",16)(18,"input",17)(19,"input",18)(20,"input",19)(21,"input",20)(22,"input",21)(23,"input",22)(24,"input",23)(25,"input",24)(26,"input",25),n.YNc(27,n6e,5,4,"ng-container",26),n.YNc(28,i6e,7,5,"ng-container",27),n.YNc(29,o6e,7,5,"ng-container",27),n.TgZ(30,"div",28)(31,"div",29)(32,"label",30),n._uU(33,"N\xfamero do cart\xe3o"),n.qZA(),n.TgZ(34,"input",31,32),n.NdJ("ngModelChange",function(l){return r.cartao.numero=l})("ngModelChange",function(){return r.alterouNumeroCartao()}),n.qZA(),n.YNc(37,a6e,1,4,"i",33),n.TgZ(38,"div",34),n.YNc(39,s6e,2,0,"p",27),n.YNc(40,l6e,2,0,"p",27),n.qZA()()(),n.TgZ(41,"div",35)(42,"div",29)(43,"label",36),n._uU(44,"Data validade"),n.qZA(),n.TgZ(45,"kendo-dateinput",37,38),n.NdJ("ngModelChange",function(l){return r.cartao.validade=l}),n.qZA(),n.TgZ(47,"div",34),n.YNc(48,c6e,2,0,"p",27),n.qZA()()(),n.TgZ(49,"div",28)(50,"div",29)(51,"label",39),n._uU(52,"Nome do titular (como est\xe1 gravado no cart\xe3o)"),n.qZA(),n.TgZ(53,"input",40,41),n.NdJ("ngModelChange",function(l){return r.cartao.nome=l}),n.qZA(),n.TgZ(55,"div",34),n.YNc(56,d6e,2,0,"p",27),n.qZA()()(),n.TgZ(57,"div",35)(58,"div",29)(59,"label",42),n._uU(60,"C\xf3digo de seguran\xe7a"),n.qZA(),n.TgZ(61,"input",43,44),n.NdJ("ngModelChange",function(l){return r.cartao.cvv=l}),n.qZA(),n.TgZ(63,"div",34),n.YNc(64,u6e,2,0,"p",27),n.qZA()()(),n.TgZ(65,"div",45)(66,"div",29)(67,"label",39),n._uU(68,"CPF"),n.qZA(),n.TgZ(69,"input",46,47),n.NdJ("ngModelChange",function(l){return r.cartao.cpf=l}),n.qZA(),n.TgZ(71,"div",34),n.YNc(72,p6e,2,0,"p",27),n.YNc(73,h6e,2,0,"p",27),n.qZA()()(),n.TgZ(74,"div",48)(75,"label",39),n._uU(76,"Email"),n.qZA(),n.TgZ(77,"input",49,50),n.NdJ("ngModelChange",function(l){return r.cartao.email=l}),n.qZA(),n.TgZ(79,"div",34),n.YNc(80,g6e,2,0,"p",27),n.qZA()()(),n.YNc(81,m6e,8,3,"div",51),n.YNc(82,_6e,3,1,"div",52),n.YNc(83,b6e,3,1,"div",53),n.qZA()()),2&t){const s=n.MAs(2),l=n.MAs(35),u=n.MAs(46),p=n.MAs(54),y=n.MAs(62),A=n.MAs(70),w=n.MAs(78);n.Q6J("ngIf",r.erroAutenticacao3ds),n.xp6(1),n.Q6J("ngClass",n.WLB(37,v6e,!s.submitted,s.submitted)),n.xp6(2),n.Q6J("ngIf",r.carregandoScript||!r.inicializouMdi3ds),n.xp6(7),n.s9C("value",r.token),n.xp6(3),n.s9C("value",r.pedido.guid),n.xp6(2),n.s9C("value",r.convertaCentavos(r.pedido.total)),n.xp6(4),n.s9C("value",r.cartao.numero),n.xp6(1),n.s9C("value",r.cartao.mes),n.xp6(1),n.s9C("value",r.cartao.ano),n.xp6(1),n.s9C("value",r.host),n.xp6(1),n.s9C("value",r.contato.nome),n.xp6(1),n.s9C("value",r.contato.telefone),n.xp6(1),n.s9C("value",r.cartao.email),n.xp6(1),n.s9C("value",r.cartao.cpf),n.xp6(1),n.Q6J("ngForOf",r.pedido.itens),n.xp6(1),n.Q6J("ngIf",r.enderecoCobranca),n.xp6(1),n.Q6J("ngIf",r.enderecoEntrega),n.xp6(5),n.Q6J("mask","0000-0000-0000-0009")("ngModel",r.cartao.numero),n.xp6(3),n.Q6J("ngIf",!r.paymentMethod),n.xp6(2),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.mask),n.xp6(5),n.Q6J("ngModel",r.cartao.validade),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.nome),n.xp6(3),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(5),n.Q6J("mask","0009")("ngModel",r.cartao.cvv),n.xp6(3),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.cpf),n.xp6(3),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(1),n.Q6J("ngIf",null==A.errors?null:A.errors.cpfInvalido),n.xp6(4),n.Q6J("ngModel",r.cartao.email),n.xp6(3),n.Q6J("ngIf",null==w.errors?null:w.errors.required),n.xp6(1),n.Q6J("ngIf",r.parcelamento&&r.parcelamento.parcelas.length),n.xp6(1),n.Q6J("ngIf",r.mensagemSucesso),n.xp6(1),n.Q6J("ngIf",r.mensagemErro)}},dependencies:[gt,Bt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,nn,Er,Kn,io,Za,Yu],styles:[".form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:31px;right:20px}button[_ngcontent-%COMP%]{width:100%}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block}.bloqueio[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background:rgba(0,0,0,.1803921569)}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}@media (min-width: 576px){.logo-gateway[_ngcontent-%COMP%]{top:-70px;position:absolute;right:10px;float:none}}"]}),i})();const JW=["frm"];function C6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",30),n.NdJ("close",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheMensagemErro())}),n._UZ(1,"i",31),n._uU(2),n.TgZ(3,"button",32)(4,"span",33),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.mensagemErro," ")}}function A6e(i,o){1&i&&(n.TgZ(0,"div",34),n._UZ(1,"div",35),n.qZA())}const x6e=function(i,o){return{"text-muted":i," text-success":o}};function T6e(i,o){if(1&i&&n._UZ(0,"i",36),2&i){const t=n.oxw();n.Q6J("ngClass",n.WLB(1,x6e,!t.cartao.bandeira,t.cartao.bandeira&&t.cartao.numeroValido))}}function S6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function w6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero do cart\xe3o de cr\xe9dito inv\xe1lido."),n.qZA())}function M6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function D6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function k6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function I6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function E6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function P6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function O6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigatorio"),n.qZA())}function N6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",37)(1,"label"),n._uU(2,"N\xfamero de parcelas"),n.qZA(),n.TgZ(3,"kendo-combobox",38,39),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.parcela=s)}),n.qZA(),n.TgZ(5,"div",11),n.YNc(6,O6e,2,0,"p",12),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("textField","descricao")("valueField","id")("ngModel",r.parcela)("data",r.parcelasValores),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}const L6e=function(i,o){return{"needs-validation":i,"was-validated":o}};let R6e=(()=>{class i{constructor(t,r,s,l){this._renderer2=t,this.http=r,this.autorizacaoService=s,this._document=l,this.onCriou=new n.vpe,this.cartao=new Lc,this.bandeira=null,this.parcelasValores=[],this.carregando=!0,this.cartaoTeste={number:"4111111111111111",holder_name:"Comprador Teste",exp_month:"10",exp_year:((new Date).getFullYear()+2).toString().substr(2),cvv:"123"}}ngOnInit(){this.http.get(String(`/api/empresas/me/${this.gateway}/pk`)).toPromise().then(r=>{r.publicKey?(this.publicKey=r.publicKey,this.tokenizeCartao(this.cartaoTeste).then(s=>{this.carregando=!1}).catch(s=>{console.error(s),this.mensagemErro="N\xe3o ser\xe1 poss\xedvel validar o cart\xe3o, informe a loja para habilitar o dominio de compra",this.carregando=!1})):(this.mensagemErro=r.erro?r.erro:"N\xe3o foi possivel obter token da conta",this.carregando=!1)}).catch(r=>{this.carregando=!1,this.mensagemErro="Falha ou obter token"});let t=this.autorizacaoService.getUsuario();t&&t.cpf&&(this.cartao.cpf=t.cpf),t&&t.email&&(this.cartao.email=t.email)}setParcelamento(t){if(t){let r;r=this.pedido.cliente?this.pedido.total:this.pedido.obtenhaValorAhPagar();for(let s=1;s<=t;s++){let l=Number((r/s).toFixed(2));l=l.toFixed(2).replace(".",","),this.parcelasValores.push({id:s,descricao:String(`${s}x de R$ ${l} sem juros`)})}}}tokenizeCartao(t){let r={type:"card",card:t};return new Promise((s,l)=>{this.http.post("https://api.pagar.me/core/v5/tokens?appId="+this.publicKey,r).toPromise().then(u=>{console.log(u),s(u)}).catch(u=>{let p="Cart\xe3o inv\xe1lido";0===u.status&&(p="N\xe3o foi poss\xedvel criar token do cart\xe3o, informe a loja para habilitar o dominio de compra"),u.error&&u.error.errors&&u.error.errors["request.card"]&&(p+=":"+u.error.errors["request.card"][0]),l(p)})})}crieTokenCartao(t){return new Promise((r,s)=>{this.parcela&&(this.cartao.parcela=this.parcela.id);let l={number:this.cartao.numero,holder_name:this.cartao.nome,exp_month:this.cartao.validade.getMonth()+1,exp_year:this.cartao.validade.getFullYear().toString().substr(2),cvv:this.cartao.cvv};this.tokenizeCartao(l).then(u=>{let p={card:l};p.publicKey=this.publicKey,p.dataExpiracao=(new Date).setSeconds((new Date).getSeconds()+55),this.cartao.setRetornoTokenCartaoPagarme(u,p),r(this.cartao)}).catch(u=>{s(u)})})}ehValido(){this.frm.submitted=!0;const t=Y1.obtenhaControleInvalido(this.frm,this.frmElement);return t?{valido:!1,controle:t}:{valido:this.frm.valid,controle:null}}exibaCartao(t){}alterouNumeroCartao(){}fecheMensagemErro(){delete this.mensagemErro}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(Wo),n.Y36(Qi),n.Y36(ie))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-cartao-pagarme"]],viewQuery:function(t,r){if(1&t&&(n.Gf(JW,7),n.Gf(JW,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first)}},inputs:{parcelamento:"parcelamento",gateway:"gateway",pedido:"pedido"},outputs:{onCriou:"onCriou"},decls:57,vars:24,consts:[["class","alert alert-danger mt-2","role","alert","dismissible","",3,"close",4,"ngIf"],["id","frm","novalidate","","data-pagarmecheckout-form","",3,"ngClass"],["frm","ngForm"],["class","bloqueio",4,"ngIf"],[1,"row"],[1,"col-12","col-sm-8"],[1,"form-group"],["for","numero"],["type","text","autocomplete","off","id","numero","name","numero","appAutoFocus","","required","","data-pagarmecheckout-input","",1,"form-control","input-background",2,"font-family","monospace",3,"mask","ngModel","ngModelChange"],["numero","ngModel","numeroElem",""],["class","fa fa-credit-card fa-2x",3,"ngClass",4,"ngIf"],[1,"invalid-feedback"],[4,"ngIf"],[1,"col-12","col-sm-4"],["for","validade"],["name","validade","id","validade","format","MM/yyyy","required","","data-pagarmecheckout-input","",1,"form-control",3,"ngModel","ngModelChange"],["validade","ngModel"],["for","nome"],["type","text","autocomplete","off","required","","data-pagarmecheckout-input","","id","nome","name","nome","placeholder","Nome impresso","value","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["for","cvv"],["type","text","autocomplete","off","placeholder","cod. seguran\xe7a","id","cvv","name","cvv","data-pagarmecheckout-input","","required","",1,"form-control",3,"mask","ngModel","ngModelChange"],["cvv","ngModel"],[1,"col-12","col-sm-5"],["type","text","autocomplete","off","required","","data-pagarmecheckout-input","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["cpf","ngModel"],[1,"form-group","col-12","col-sm-7"],["kendoTextBox","","id","email","name","email","placeholder","Informe seu email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["class","form-group  col-12   ",4,"ngIf"],["role","alert","dismissible","",1,"alert","alert-danger","mt-2",3,"close"],[1,"k-icon","k-i-error"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close"],["aria-hidden","true"],[1,"bloqueio"],[1,"k-icon","k-i-loading","mt-5","centralizado","fa-2x"],[1,"fa","fa-credit-card","fa-2x",3,"ngClass"],[1,"form-group","col-12"],["name","parcelas","required","","placeholder","Selecione a quantidade de parcelas",1,"form-control",3,"textField","valueField","ngModel","data","ngModelChange"],["cboParcela","ngModel"]],template:function(t,r){if(1&t&&(n.YNc(0,C6e,6,1,"div",0),n.TgZ(1,"form",1,2),n.YNc(3,A6e,2,0,"div",3),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"label",7),n._uU(8,"N\xfamero do cart\xe3o"),n.qZA(),n.TgZ(9,"input",8,9),n.NdJ("ngModelChange",function(l){return r.cartao.numero=l})("ngModelChange",function(){return r.alterouNumeroCartao()}),n.qZA(),n.YNc(12,T6e,1,4,"i",10),n.TgZ(13,"div",11),n.YNc(14,S6e,2,0,"p",12),n.YNc(15,w6e,2,0,"p",12),n.qZA()()(),n.TgZ(16,"div",13)(17,"div",6)(18,"label",14),n._uU(19,"Data validade"),n.qZA(),n.TgZ(20,"kendo-dateinput",15,16),n.NdJ("ngModelChange",function(l){return r.cartao.validade=l}),n.qZA(),n.TgZ(22,"div",11),n.YNc(23,M6e,2,0,"p",12),n.qZA()()(),n.TgZ(24,"div",5)(25,"div",6)(26,"label",17),n._uU(27,"Nome do titular (como est\xe1 gravado no cart\xe3o)"),n.qZA(),n.TgZ(28,"input",18,19),n.NdJ("ngModelChange",function(l){return r.cartao.nome=l}),n.qZA(),n.TgZ(30,"div",11),n.YNc(31,D6e,2,0,"p",12),n.qZA()()(),n.TgZ(32,"div",13)(33,"div",6)(34,"label",20),n._uU(35,"C\xf3digo de seguran\xe7a"),n.qZA(),n.TgZ(36,"input",21,22),n.NdJ("ngModelChange",function(l){return r.cartao.cvv=l}),n.qZA(),n.TgZ(38,"div",11),n.YNc(39,k6e,2,0,"p",12),n.qZA()()(),n.TgZ(40,"div",23)(41,"div",6)(42,"label",17),n._uU(43,"CPF"),n.qZA(),n.TgZ(44,"input",24,25),n.NdJ("ngModelChange",function(l){return r.cartao.cpf=l}),n.qZA(),n.TgZ(46,"div",11),n.YNc(47,I6e,2,0,"p",12),n.YNc(48,E6e,2,0,"p",12),n.qZA()()(),n.TgZ(49,"div",26)(50,"label",17),n._uU(51,"Email"),n.qZA(),n.TgZ(52,"input",27,28),n.NdJ("ngModelChange",function(l){return r.cartao.email=l}),n.qZA(),n.TgZ(54,"div",11),n.YNc(55,P6e,2,0,"p",12),n.qZA()(),n.YNc(56,N6e,7,5,"div",29),n.qZA()()),2&t){const s=n.MAs(2),l=n.MAs(10),u=n.MAs(21),p=n.MAs(29),y=n.MAs(37),A=n.MAs(45),w=n.MAs(53);n.Q6J("ngIf",r.mensagemErro),n.xp6(1),n.Q6J("ngClass",n.WLB(21,L6e,!s.submitted,s.submitted)),n.xp6(2),n.Q6J("ngIf",r.carregando),n.xp6(6),n.Q6J("mask","0000-0000-0000-0009")("ngModel",r.cartao.numero),n.xp6(3),n.Q6J("ngIf",!r.paymentMethod),n.xp6(2),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.mask),n.xp6(5),n.Q6J("ngModel",r.cartao.validade),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.nome),n.xp6(3),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(5),n.Q6J("mask","0009")("ngModel",r.cartao.cvv),n.xp6(3),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.cpf),n.xp6(3),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(1),n.Q6J("ngIf",null==A.errors?null:A.errors.cpfInvalido),n.xp6(4),n.Q6J("ngModel",r.cartao.email),n.xp6(3),n.Q6J("ngIf",null==w.errors?null:w.errors.required),n.xp6(1),n.Q6J("ngIf",r.parcelasValores.length)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,nn,Er,Kn,io,Za,Yu],styles:[".form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:31px;right:20px}button[_ngcontent-%COMP%]{width:100%}.logo-cielo[_ngcontent-%COMP%]{float:right}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block}.bloqueio[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background:rgba(0,0,0,.1803921569)}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}@media (min-width: 576px){.logo-gateway[_ngcontent-%COMP%]{top:-74px;position:absolute;right:10px;height:40px;float:none}}"]}),i})(),QW=(()=>{class i{constructor(){}ehValido(t,r){t.submitted=!0;const s=Y1.obtenhaControleInvalido(t,r);return s?{valido:!1,controle:s}:{valido:t.valid,controle:null}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const WW=["frm"];function F6e(i,o){if(1&i&&(n.TgZ(0,"div",2),n._UZ(1,"i",3),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erroInicializacao,"\n")}}function B6e(i,o){if(1&i&&(n.TgZ(0,"div",2,4),n._UZ(2,"i",5),n._uU(3),n.qZA()),2&i){const t=n.oxw();n.xp6(3),n.hij(" ",t.msgErro,"\n")}}function H6e(i,o){1&i&&(n.TgZ(0,"div",41),n._UZ(1,"div",42),n.qZA())}function $6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function U6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero do cart\xe3o de cr\xe9dito inv\xe1lido."),n.qZA())}function Y6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function j6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function Z6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function V6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function z6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function G6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function q6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function J6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",43)(1,"label",44),n._uU(2,"N\xfamero de parcelas"),n.qZA(),n.TgZ(3,"kendo-combobox",45,46),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cartao.parcelamento=s)}),n.qZA(),n.TgZ(5,"div",16),n.YNc(6,q6e,2,0,"p",17),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.cartao.parcelamento)("data",r.parcelamento.parcelas),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function Q6e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function W6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",47),n._UZ(1,"i",48),n._uU(2),n.TgZ(3,"button",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheMensagemSucesso())}),n.TgZ(4,"span",50),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.mensagemSucesso," ")}}function K6e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",51),n._UZ(1,"i",48),n._uU(2),n.TgZ(3,"button",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.fecheMensagemErro())}),n.TgZ(4,"span",50),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.mensagemErro," ")}}const X6e=function(i,o){return{"needs-validation":i,"was-validated":o}},ePe=function(i,o){return{"text-muted":i," text-success":o}};function tPe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",6,7),n.YNc(2,H6e,2,0,"div",8),n.TgZ(3,"div")(4,"div",9)(5,"div",10)(6,"div",11)(7,"label",12),n._uU(8,"N\xfamero do Cart\xe3o "),n.qZA(),n.TgZ(9,"input",13,14),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.numero=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.alterouNumeroCartao())}),n.qZA(),n._UZ(11,"i",15),n.TgZ(12,"div",16),n.YNc(13,$6e,2,0,"p",17),n.YNc(14,U6e,2,0,"p",17),n.qZA()()(),n.TgZ(15,"div",18)(16,"div",11)(17,"label",19),n._uU(18,"Nome impresso"),n.qZA(),n.TgZ(19,"input",20,21),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.nome=s)}),n.qZA(),n.TgZ(21,"div",16),n.YNc(22,Y6e,2,0,"p",17),n.qZA()()(),n.TgZ(23,"div",22)(24,"div",11)(25,"label",23),n._uU(26,"CVV"),n.qZA(),n.TgZ(27,"input",24,25),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.cvv=s)}),n.qZA(),n.TgZ(29,"div",16),n.YNc(30,j6e,2,0,"p",17),n.qZA()()(),n.TgZ(31,"div",22)(32,"div",11)(33,"label",26),n._uU(34,"Data validade"),n.qZA(),n.TgZ(35,"kendo-dateinput",27,28),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.validade=s)}),n.qZA(),n.TgZ(37,"div",16),n.YNc(38,Z6e,2,0,"p",17),n.qZA()()(),n.TgZ(39,"div",29)(40,"div",11)(41,"label",19),n._uU(42,"CPF"),n.qZA(),n.TgZ(43,"input",30,31),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.cpf=s)}),n.qZA(),n.TgZ(45,"div",16),n.YNc(46,V6e,2,0,"p",17),n.YNc(47,z6e,2,0,"p",17),n.qZA()()(),n.TgZ(48,"div",29)(49,"div",11)(50,"label"),n._uU(51,"Tipo do Cart\xe3o"),n.qZA(),n.TgZ(52,"kendo-combobox",32,33),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.tipoDoCartao=s)}),n.qZA(),n.TgZ(54,"div",16),n.YNc(55,G6e,2,0,"p",17),n.qZA()()()(),n.TgZ(56,"div",9),n.YNc(57,J6e,7,3,"div",34),n.qZA(),n.TgZ(58,"div",9)(59,"div",35)(60,"label",19),n._uU(61,"Email"),n.qZA(),n.TgZ(62,"input",36,37),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cartao.email=s)}),n.qZA(),n.TgZ(64,"small",38),n._uU(65,"Voc\xea receber\xe1 notifica\xe7\xf5es e o comprovante de pagamento nesse email."),n.qZA(),n.TgZ(66,"div",16),n.YNc(67,Q6e,2,0,"p",17),n.qZA()()(),n.YNc(68,W6e,6,1,"div",39),n.YNc(69,K6e,6,1,"div",40),n.qZA()()}if(2&i){const t=n.MAs(1),r=n.MAs(10),s=n.MAs(20),l=n.MAs(28),u=n.MAs(36),p=n.MAs(44),y=n.MAs(53),A=n.MAs(63),w=n.oxw();n.Q6J("ngClass",n.WLB(27,X6e,!t.submitted,t.submitted)),n.xp6(2),n.Q6J("ngIf",w.carregandoScript||!w.definiuSessaoPagSeguro||w.carregando3ds),n.xp6(7),n.Q6J("mask","0000-0000-0000-0000")("ngModel",w.cartao.numero),n.xp6(2),n.Q6J("ngClass",n.WLB(30,ePe,!w.cartao.bandeira,w.cartao.bandeira&&w.cartao.numeroValido)),n.xp6(2),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(1),n.Q6J("ngIf",null==r.errors?null:r.errors.mask),n.xp6(5),n.Q6J("ngModel",w.cartao.nome),n.xp6(3),n.Q6J("ngIf",null==s.errors?null:s.errors.required),n.xp6(5),n.Q6J("mask","000")("ngModel",w.cartao.cvv),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(5),n.Q6J("ngModel",w.cartao.validade),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngModel",w.cartao.cpf),n.xp6(3),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(1),n.Q6J("ngIf",null==p.errors?null:p.errors.cpfInvalido),n.xp6(5),n.Q6J("ngModel",w.cartao.tipoDoCartao)("data",w.tiposCartao)("textField","nome")("valueField","id"),n.xp6(3),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(2),n.Q6J("ngIf",w.parcelamento&&w.parcelamento.parcelas.length),n.xp6(5),n.Q6J("ngModel",w.cartao.email),n.xp6(5),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(1),n.Q6J("ngIf",w.mensagemSucesso),n.xp6(1),n.Q6J("ngIf",w.mensagemErro)}}let nPe=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this._renderer2=t,this.ngZone=r,this.pagSeguroService=s,this.app=l,this.autorizacaoService=u,this.cadCartaoPadrao=p,this._document=y,this._ngZone=A,this.onCriou=new n.vpe,this.cartao=new Lc,this.carregandoScript=!0,this.bandeira=null,this.bancoEmissor=null,this.definiuSessaoPagSeguro=!1,this.tentativas=1,this.tiposCartao=[{id:"CREDIT_CARD",nome:"Cr\xe9dito"},{id:"DEBIT_CARD",nome:"Debito"}],this.setSessaoAtiva=function(w,I,P){this.definiuSessaoPagSeguro=!0,this.publicKey=I,PagSeguro.setUp({session:w,env:P?PagSeguro.env.SANDBOX:PagSeguro.env.PROD})},this.cartao.numero="",this.cartao.cvv="",this.cartao.nome="",this.cartao.cpf="",this.cartao.validade=null,this.cartao.dataNascimento=null}ngOnInit(){this.addScriptPagseguro()}ehValido(){return this.cadCartaoPadrao.ehValido(this.frm,this.frmElement)}fecheMensagemErro(){delete this.mensagemErro}addScriptPagseguro(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.src="https://assets.pagseguro.com.br/checkout-sdk-js/rc/dist/browser/pagseguro.min.js",this._renderer2.appendChild(this._document.body,t),setTimeout(()=>{this.inicializePagSeguro()},1e3)}inicializePagSeguro(){"object"==typeof PagSeguro?(this.carregandoScript=!1,this.crieSessaoPagSeguro()):this.tentativas<=10?(this.tentativas++,this.timeout=setTimeout(()=>{this.inicializePagSeguro()},1e3)):this.erroInicializacao="N\xe3o foi possivel carreguar os scripts do PagSeguro"}canceleProcessando(){this._ngZone.run(()=>{this.processando=!1})}fecheMensagemSucesso(){delete this.mensagemSucesso}alterouNumeroCartao(){}ativeAssinatura(){}obtenhaBandeira(){return this.bandeira?"string"==typeof this.bandeira?this.bandeira:this.bandeira.brand.name:null}crieTokenCartao(t){var r=this;return new Promise(function(){var s=sn(function*(l,u){const p=(r.cartao.validade.getMonth()+1).toString().padStart(2,"0"),y=PagSeguro.encryptCard({publicKey:r.publicKey,number:r.cartao.numero,securityCode:r.cartao.cvv,expMonth:p,expYear:r.cartao.validade.getFullYear(),holder:r.cartao.nome}),A=y.encryptedCard,I=y.errors;if(y.hasErrors){let F="Cart\xe3o inv\xe1lido";if("string"==typeof I&&(F=String(`${F}: ${I}`)),Array.isArray(I)){console.log(I[0]);let V=I.map(oe=>String(`${oe.code}: ${oe.message}`));F=String(`${F}: ${V}`)}return u(F)}r.setTokenCartao(A);let P=yield r.inicie3Ds(t);if(P)return u(P);l(r.cartao)});return function(l,u){return s.apply(this,arguments)}}())}calculeParcelas(){return new Promise((t,r)=>{PagSeguro.getInstallments({amount:this.pedido.total,maxInstallmentNoInterest:1,brand:this.obtenhaBandeira(),success:s=>{t(s)},error:s=>{r(s)},complete:s=>{}})})}setTokenCartao(t){this.cartao.token=t}crieSessaoPagSeguro(){if(this.pagSeguroService.crieSessaoConnect().then(t=>{this.setSessaoAtiva(t.session,t.publicKey,t.sandbox)}).catch(t=>{console.log(t),this.erroInicializacao="N\xe3o foi poss\xedvel criar sess\xe3o de pagamento.",this.app.tick()}),this.parcelamento){this.parcelamento.parcelas=[];for(let t=1;t<=this.parcelamento.numeroParcelas;t++){let r=this.parcelamento.total/t;r=r.toFixed(2).replace(".",","),this.parcelamento.parcelas.push({numeroParcelas:t,descricao:String(`${t}x de R$ ${r} sem juros`)})}}}exibaCartao(t){this.cartao=new Lc,this.cartao.tipoDoCartao=this.tiposCartao[0],Object.assign(this.cartao,t);let r=this.autorizacaoService.getUsuario();r&&r.cpf&&(this.cartao.cpf=r.cpf),r&&r.email&&(this.cartao.email=r.email)}inicie3Ds(t){var r=this;return sn(function*(){return new Promise(s=>{try{let l=r.pedido.contato||r.pedido.cliente,u=l.telefone,p=r.cartao.tipoDoCartao.id;if(!t)return s("Endere\xe7o de cobran\xe7a \xe9 obrigatorio");if(!t.complemento)return s("Complemento do endere\xe7o cobran\xe7a do cart\xe3o n\xe3o informado");if(!u)return s("Telefone de contato n\xe3o informado");const y=null!=r.pedido.totalPagar?r.pedido.totalPagar:r.pedido.obtenhaValorAhPagar();let A=(100*y).toFixed(2),w={beforeChallenge:I=>{console.log("chamou antes do desafio..."),console.log(I),r.bandeira=I.brand,r.bancoEmissor=I.issuer,I.open()},data:{customer:{name:l.nome,email:r.cartao.email,phones:[{country:"55",area:u.substring(0,2),number:u.substring(2),type:"MOBILE"}]},paymentMethod:{type:p,installments:1,card:{number:r.cartao.numero,expMonth:r.cartao.validade.getMonth()+1,expYear:r.cartao.validade.getFullYear(),holder:{name:r.cartao.nome}}},amount:{value:parseInt(A),currency:"BRL"},billingAddress:{street:t.logradouro,number:t.numero,complement:t.complemento||"",regionCode:t.cidade?t.cidade.estado.sigla:t.uf,country:"BRA",city:t.cidade?t.cidade.nome:t.nomeCidade,postalCode:t.cep},dataOnly:!1}};if(r.pedido.entrega&&r.pedido.entrega.endereco){const I=r.pedido.entrega.endereco;w.data.shippingAddress={street:I.logradouro,number:I.numero||"s/n",complement:I.complento||"complemento",regionCode:I.cidade?I.cidade.estado.sigla:I.uf,country:"BRA",city:I.cidade?I.cidade.nome:I.nomeCidade,postalCode:I.cep}}r.carregando3ds=!0,console.log(w.data),PagSeguro.authenticate3DS(w).then(I=>{let F,P=I.status;switch(r.carregando3ds=!1,P){case"AUTH_FLOW_COMPLETED":"NOT_AUTHENTICATED"===I.authenticationStatus?(F="Autentica\xe7\xe3o n\xe3o realizada, \xe9 preciso fazer autentica\xe7\xe3o do seu cartao ",r.bandeira&&(F+=r.bandeira.toUpperCase()),r.bancoEmissor&&(F+=" com o banco emissor: "+r.bancoEmissor)):(r.cartao.autenticacao3ds=I.id,r.cartao.valorPagamento=y);break;case"AUTH_NOT_SUPPORTED":let V=["mastercard","visa","elo"];r.cartao.tipoDoCartao.id===r.tiposCartao[1].id?F="Autentica\xe7\xe3o n\xe3o suportada: Cart\xe3o n\xe3o eleg\xedvel, tente outro cart\xe3o":V.indexOf(r.bandeira)>=0&&(F="Autentica\xe7\xe3o do cart\xe3o cr\xe9dito n\xe3o realizada, verifique os dados do cartao");break;case"CHANGE_PAYMENT_METHOD":F="Falha na Autentica\xe7\xe3o: Cart\xe3o n\xe3o aceito! escolha outra forma de pagamento"}s(F)}).catch(I=>{r.carregando3ds=!1;let P="Falha ao autenticar cart\xe3o: ";I instanceof PagSeguro.PagSeguroError?(console.log(I),console.log(I.detail),I.detail.errorMessages?P+=I.detail.errorMessages.map(V=>V.code+": "+V.description+(V.parameterName?String(`(${V.parameterName})`):"")).join(", "):I.detail.message&&(P+=I.detail.message),s(P)):s(P+(I.message||I))})}catch(l){console.error(l),s("Falha ao iniciar autentica\xe7\xe3o do Cart\xe3o: "+(l.message||l))}})})()}ngOnDestroy(){this.timeout&&clearTimeout(this.timeout)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(n.R0b),n.Y36(YR),n.Y36(n.z2F),n.Y36(Qi),n.Y36(QW),n.Y36(ie),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-cartao-pagseguro-connect"]],viewQuery:function(t,r){if(1&t&&(n.Gf(WW,5),n.Gf(WW,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first)}},inputs:{parcelamento:"parcelamento",pedido:"pedido"},outputs:{onCriou:"onCriou"},decls:3,vars:3,consts:[["class","alert alert-danger mb-2","role","alert",4,"ngIf"],["id","frm","novalidate","",3,"ngClass",4,"ngIf"],["role","alert",1,"alert","alert-danger","mb-2"],[1,"fas","fa-times"],["erroDiv",""],[1,"fas","fa-exclamation-triangle"],["id","frm","novalidate","",3,"ngClass"],["frm","ngForm"],["class","bloqueio",4,"ngIf"],[1,"row"],[1,"col-12","col-sm-9"],[1,"form-group"],["for","numero"],["type","text","autocomplete","cc-number","id","numero","name","numero","required","",1,"form-control",2,"font-family","monospace",3,"mask","ngModel","ngModelChange"],["numero","ngModel"],[1,"fa","fa-credit-card","fa-2x",3,"ngClass"],[1,"invalid-feedback"],[4,"ngIf"],[1,"col-12","col-sm-12"],["for","nome"],["type","text","required","","id","nome","name","nome","autocomplete","cc-name","placeholder","Nome impresso","value","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],[1,"col-6","col-sm-4"],["for","cvv"],["type","text","autocomplete","cc-csc","id","cvv","name","cvv","required","",1,"form-control",3,"mask","ngModel","ngModelChange"],["cvv","ngModel"],["for","validade"],["name","validade","autocomplete","cc-exp","id","validade","format","MM/yyyy","required","",1,"form-control",3,"ngModel","ngModelChange"],["validade","ngModel"],[1,"col-6"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["cpf","ngModel"],["name","tipoDoCartao","required","",1,"form-control",3,"ngModel","data","textField","valueField","ngModelChange"],["tipoDoCartao","ngModel"],["class","col-12 mt-2 form-group",4,"ngIf"],[1,"form-group","mb-2","col"],["kendoTextBox","","id","email","name","email","placeholder","Informe seu email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["id","emailHelp",1,"form-text","text-muted"],["class","alert alert-success alert-dismissible fade show mt-2","role","alert",4,"ngIf"],["class","alert alert-danger alert-dismissible fade show mt-2","role","alert",4,"ngIf"],[1,"bloqueio"],[1,"k-icon","k-i-loading","mt-5","centralizado","fa-2x"],[1,"col-12","mt-2","form-group"],["for","parcelamento"],["id","parcelamento","name","parcelamento","required","","textField","descricao","placeholder","Selecione a quantidade de parcelas",1,"form-control",3,"ngModel","data","ngModelChange"],["parcelamentoModel","ngModel"],["role","alert",1,"alert","alert-success","alert-dismissible","fade","show","mt-2"],[1,"mdi","mdi-check-all","mr-2"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close",3,"click"],["aria-hidden","true"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2"]],template:function(t,r){1&t&&(n.YNc(0,F6e,3,1,"div",0),n.YNc(1,B6e,4,1,"div",0),n.YNc(2,tPe,70,33,"form",1)),2&t&&(n.Q6J("ngIf",r.erroInicializacao),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",!r.erroInicializacao))},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,nn,Er,Kn,io,Yu],styles:[".form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:31px;right:20px}button[_ngcontent-%COMP%]{width:100%}.bloqueio[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background:rgba(0,0,0,.1803921569)}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}"]}),i})();const KW=["frm"];function iPe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",28),n.NdJ("close",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheMensagemErro())}),n._UZ(1,"i",29),n._uU(2),n.TgZ(3,"button",30)(4,"span",31),n._uU(5,"\xd7"),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.mensagemErro," ")}}function oPe(i,o){1&i&&(n.TgZ(0,"div",32),n._UZ(1,"div",33),n.qZA())}function rPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function aPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"N\xfamero do cart\xe3o de cr\xe9dito inv\xe1lido."),n.qZA())}function sPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function lPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function cPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function dPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function uPe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}const pPe=function(i,o){return{"needs-validation":i,"was-validated":o}},hPe=function(i,o){return{"text-muted":i," text-success":o}};let gPe=(()=>{class i{constructor(t,r,s){this.http=t,this.autorizacaoService=r,this.cadCartaoPadrao=s,this.cartao=new Lc,this.bandeira=null,this.tiposCartao=[{id:"credit",nome:"Cr\xe9dito"},{id:"debit",nome:"Debito"}]}ehValido(){return this.cadCartaoPadrao.ehValido(this.frm,this.frmElement)}fecheMensagemErro(){delete this.mensagemErro}ngOnInit(){let t=this.autorizacaoService.getUsuario();t&&t.cpf&&(this.cartao.cpf=t.cpf),t&&t.email&&(this.cartao.email=t.email),this.cartao.tipoDoCartao=this.tiposCartao[0]}crieTokenCartao(t){let r={number:this.cartao.numero,holder_name:this.cartao.nome,exp_month:(this.cartao.validade.getMonth()+1).toString().padStart(2,"0"),exp_year:this.cartao.validade.getFullYear(),email:this.cartao.email,cvv:this.cartao.cvv,kind:this.cartao.tipoDoCartao.id};return new Promise((s,l)=>{this.http.post("/erede/cartao/tokenize",r).toPromise().then(u=>{this.cartao.token=u,this.cartao.deviceInfo=this.getDeviceInfo(),s(this.cartao)}).catch(u=>{l(u.error&&u.error.erro?u.error.erro:u.erro||"Falha gerar token cart\xe3o")})})}getDeviceInfo(){return{colorDepth:window.screen.colorDepth,deviceType3ds:"BROWSER",javaEnabled:navigator.javaEnabled(),language:navigator.language||navigator.userLanguage,screenHeight:window.screen.height,screenWidth:window.screen.width,timeZoneOffset:(new Date).getTimezoneOffset()/60}}exibaCartao(t){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Wo),n.Y36(Qi),n.Y36(QW))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-cartao-erede"]],viewQuery:function(t,r){if(1&t&&(n.Gf(KW,5),n.Gf(KW,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmElement=s.first)}},inputs:{pedido:"pedido"},decls:55,vars:28,consts:[["class","alert alert-danger mt-2","role","alert","dismissible","",3,"close",4,"ngIf"],["id","frm","novalidate","",3,"ngClass"],["frm","ngForm"],["class","bloqueio",4,"ngIf"],[1,"row"],[1,"col-12","col-sm-8"],[1,"form-group"],["for","numero"],["type","text","autocomplete","off","id","numero","name","numero","appAutoFocus","","required","","data-pagarmecheckout-input","",1,"form-control","input-background",2,"font-family","monospace",3,"mask","ngModel","ngModelChange"],["numero","ngModel","numeroElem",""],[1,"fa","fa-credit-card","fa-2x",3,"ngClass"],[1,"invalid-feedback"],[4,"ngIf"],[1,"col-12","col-sm-4"],["for","validade"],["name","validade","id","validade","format","MM/yyyy","required","","data-pagarmecheckout-input","",1,"form-control",3,"ngModel","ngModelChange"],["validade","ngModel"],["for","nome"],["type","text","autocomplete","off","required","","data-pagarmecheckout-input","","id","nome","name","nome","placeholder","Nome impresso","value","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["for","cvv"],["type","text","autocomplete","off","placeholder","cod. seguran\xe7a","id","cvv","name","cvv","data-pagarmecheckout-input","","required","",1,"form-control",3,"mask","ngModel","ngModelChange"],["cvv","ngModel"],["name","tipoDoCartao","required","",1,"form-control",3,"ngModel","data","textField","valueField","ngModelChange"],["tipoDoCartao","ngModel"],[1,"form-group","col-12","col-sm-8"],["kendoTextBox","","id","email","name","email","placeholder","Informe seu email","required","",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["role","alert","dismissible","",1,"alert","alert-danger","mt-2",3,"close"],[1,"k-icon","k-i-error"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close"],["aria-hidden","true"],[1,"bloqueio"],[1,"k-icon","k-i-loading","mt-5","centralizado","fa-2x"]],template:function(t,r){if(1&t&&(n.YNc(0,iPe,6,1,"div",0),n.TgZ(1,"form",1,2),n.YNc(3,oPe,2,0,"div",3),n.TgZ(4,"div",4)(5,"div",5)(6,"div",6)(7,"label",7),n._uU(8,"N\xfamero do cart\xe3o"),n.qZA(),n.TgZ(9,"input",8,9),n.NdJ("ngModelChange",function(l){return r.cartao.numero=l}),n.qZA(),n._UZ(12,"i",10),n.TgZ(13,"div",11),n.YNc(14,rPe,2,0,"p",12),n.YNc(15,aPe,2,0,"p",12),n.qZA()()(),n.TgZ(16,"div",13)(17,"div",6)(18,"label",14),n._uU(19,"Data validade"),n.qZA(),n.TgZ(20,"kendo-dateinput",15,16),n.NdJ("ngModelChange",function(l){return r.cartao.validade=l}),n.qZA(),n.TgZ(22,"div",11),n.YNc(23,sPe,2,0,"p",12),n.qZA()()(),n.TgZ(24,"div",5)(25,"div",6)(26,"label",17),n._uU(27,"Nome do titular (como est\xe1 gravado no cart\xe3o)"),n.qZA(),n.TgZ(28,"input",18,19),n.NdJ("ngModelChange",function(l){return r.cartao.nome=l}),n.qZA(),n.TgZ(30,"div",11),n.YNc(31,lPe,2,0,"p",12),n.qZA()()(),n.TgZ(32,"div",13)(33,"div",6)(34,"label",20),n._uU(35,"C\xf3digo de seguran\xe7a"),n.qZA(),n.TgZ(36,"input",21,22),n.NdJ("ngModelChange",function(l){return r.cartao.cvv=l}),n.qZA(),n.TgZ(38,"div",11),n.YNc(39,cPe,2,0,"p",12),n.qZA()()(),n.TgZ(40,"div",13)(41,"div",6)(42,"label"),n._uU(43,"Tipo do Cart\xe3o"),n.qZA(),n.TgZ(44,"kendo-combobox",23,24),n.NdJ("ngModelChange",function(l){return r.cartao.tipoDoCartao=l}),n.qZA(),n.TgZ(46,"div",11),n.YNc(47,dPe,2,0,"p",12),n.qZA()()(),n.TgZ(48,"div",25)(49,"label",17),n._uU(50,"Email"),n.qZA(),n.TgZ(51,"input",26,27),n.NdJ("ngModelChange",function(l){return r.cartao.email=l}),n.qZA(),n.TgZ(53,"div",11),n.YNc(54,uPe,2,0,"p",12),n.qZA()()()()),2&t){const s=n.MAs(2),l=n.MAs(10),u=n.MAs(21),p=n.MAs(29),y=n.MAs(37),A=n.MAs(45),w=n.MAs(52);n.Q6J("ngIf",r.mensagemErro),n.xp6(1),n.Q6J("ngClass",n.WLB(22,pPe,!s.submitted,s.submitted)),n.xp6(2),n.Q6J("ngIf",r.carregando),n.xp6(6),n.Q6J("mask","0000-0000-0000-0009")("ngModel",r.cartao.numero),n.xp6(3),n.Q6J("ngClass",n.WLB(25,hPe,!r.cartao.bandeira,r.cartao.bandeira&&r.cartao.numeroValido)),n.xp6(2),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.mask),n.xp6(5),n.Q6J("ngModel",r.cartao.validade),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.nome),n.xp6(3),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(5),n.Q6J("mask","0009")("ngModel",r.cartao.cvv),n.xp6(3),n.Q6J("ngIf",null==y.errors?null:y.errors.required),n.xp6(5),n.Q6J("ngModel",r.cartao.tipoDoCartao)("data",r.tiposCartao)("textField","nome")("valueField","id"),n.xp6(3),n.Q6J("ngIf",null==A.errors?null:A.errors.required),n.xp6(4),n.Q6J("ngModel",r.cartao.email),n.xp6(3),n.Q6J("ngIf",null==w.errors?null:w.errors.required)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,nn,Er,Kn,io,Za],styles:[".form-group[_ngcontent-%COMP%]   .fa-credit-card[_ngcontent-%COMP%]{position:absolute;top:31px;right:20px}button[_ngcontent-%COMP%]{width:100%}.logo-cielo[_ngcontent-%COMP%]{float:right}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block}.bloqueio[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99;background:rgba(0,0,0,.1803921569)}@media (max-width: 950px){form[_ngcontent-%COMP%]{padding:12px}form[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]{font-size:16px;margin:0;font-stretch:100%;line-height:normal;font-family:Poppins,sans-serif;padding:20px 10px}}@media (min-width: 576px){.logo-gateway[_ngcontent-%COMP%]{top:-74px;position:absolute;right:10px;height:40px;float:none}}"]}),i})();const fPe=["dadosCartao"],mPe=["dadosCartaoPagaseguroConnect"],_Pe=["dadosCartaoMercadoPago"],bPe=["ctlDadosCartaoCielo"],vPe=["ctlDadosCartaoPagarme"],yPe=["ctlDadosCartaoRede"],CPe=["formEndereco"],APe=["erroDiv"];function xPe(i,o){if(1&i&&(n.TgZ(0,"div",12,13),n._UZ(2,"i",14),n._uU(3),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(" ",t.msgErro," ")}}function TPe(i,o){if(1&i&&(n.TgZ(0,"div",15),n._UZ(1,"i",16),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.mensagemAlerta," ")}}function SPe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-cad-cartao-mercadopago",17,18),n.NdJ("onGerouToken",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.gerouTokenCartao(s))}),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)}}function wPe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"cad-cartaocredito-pag-seguro",19,20),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)}}function MPe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-cad-cartao-pagseguro-connect",19,21),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)}}function DPe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-cad-cartao-cielo",19,22),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)}}function kPe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-cad-cartao-pagarme",23,24),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)("gateway",t.gateway)}}function IPe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-cad-cartao-erede",19,25),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("pedido",t.pedido)}}function EPe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",30)(1,"label"),n._uU(2,"Mesmo Endere\xe7o de Entrega?"),n.qZA(),n._uU(3,"\xa0 "),n.TgZ(4,"kendo-switch",31),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.usarEnderecoDeEntrega=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.alterouUsarEnderecoDeEntrega())}),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(4),n.Q6J("ngModel",t.usarEnderecoDeEntrega)("onLabel","Sim")("offLabel","N\xe3o")}}function PPe(i,o){1&i&&(n.TgZ(0,"div",30),n._UZ(1,"app-form-endereco",32,33),n.qZA()),2&i&&(n.xp6(1),n.Q6J("buscouUmEndereco",!0)("exibirBotao",!1)("exibirDepoisCep",!0)("pontoReferencia",!1)("ignorarConfigEmpresa",!0)("cepObrigatorio",!0))}function OPe(i,o){if(1&i&&(n.TgZ(0,"div",26)(1,"div",27)(2,"h4",28),n._uU(3,"Endere\xe7o Dono do Cart\xe3o"),n.qZA()(),n.YNc(4,EPe,5,3,"div",29),n.YNc(5,PPe,3,6,"div",29),n.qZA()),2&i){const t=n.oxw(2);n.xp6(4),n.Q6J("ngIf",!t.obrigarEndereco),n.xp6(1),n.Q6J("ngIf",!t.usarEnderecoDeEntrega)}}function NPe(i,o){1&i&&n._UZ(0,"i",34)}function LPe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",2)(1,"div",3)(2,"div",4),n.YNc(3,xPe,4,1,"div",5),n.YNc(4,TPe,3,1,"div",6),n.YNc(5,SPe,3,1,"ng-container",7),n.YNc(6,wPe,3,1,"ng-container",7),n.YNc(7,MPe,3,1,"ng-container",7),n.YNc(8,DPe,3,1,"ng-container",7),n.YNc(9,kPe,3,2,"ng-container",7),n.YNc(10,IPe,3,1,"ng-container",7),n.qZA()(),n.YNc(11,OPe,6,2,"div",8),n.TgZ(12,"footer",9)(13,"div")(14,"div",3)(15,"div",4)(16,"button",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.salvarCartao())}),n.YNc(17,NPe,1,0,"i",11),n._uU(18," Confirmar Cart\xe3o"),n.qZA()()()()()()}if(2&i){const t=n.oxw();n.xp6(3),n.Q6J("ngIf",t.msgErro),n.xp6(1),n.Q6J("ngIf",t.mensagemAlerta),n.xp6(1),n.Q6J("ngIf",t.gatewayMercadoPago()),n.xp6(1),n.Q6J("ngIf",t.gatewayPagSeguro()),n.xp6(1),n.Q6J("ngIf",t.gatewayPagSeguroConnect()),n.xp6(1),n.Q6J("ngIf",t.gatewayPagCielo()),n.xp6(1),n.Q6J("ngIf",t.gatewayPagarme()),n.xp6(1),n.Q6J("ngIf",t.gatewayERede()),n.xp6(1),n.Q6J("ngIf",t.gatewayPagSeguro()||t.gatewayPagarme()||t.gatewayPagCielo()||t.gatewayPagSeguroConnect()||t.gatewayERede()),n.xp6(5),n.Q6J("hidden",t.gatewayMercadoPago())("disabled",t.processandoDados),n.xp6(1),n.Q6J("ngIf",t.processandoDados)}}let ZF=(()=>{class i{constructor(t,r){this.app=t,this.ngZone=r,this.usarEnderecoDeEntrega=!0,this.processandoDados=!1}static abraComoPopup(t,r,s,l,u){let p=window.innerHeight-100;r&&(p="100%");let y="100%";window.innerWidth>600&&(y="calc(100% - "+(window.innerWidth-600)+"px)");let A={title:null,content:i,minWidth:250,width:y};r?A.height=p:A.maxHeight=p;const w=t.open(A),I=w.dialog.location.nativeElement;if(I){const F=I.getElementsByClassName("k-dialog-content");F.length>0&&F[0].classList.add("dialog-pagamento")}return w.content.instance.inicialize(w,s,l,u),w}ngOnInit(){}obtenhaCtlDados(){return this.gatewayPagSeguro()?this.ctlDadosCartao:this.gatewayPagSeguroConnect()?this.ctlDadosCartaoPagaseguroConnect:this.gatewayMercadoPago()?this.ctlDadosCartaoMercadoPago:this.gatewayPagCielo()?this.ctlDadosCartaoCielo:this.gatewayPagarme()?this.ctlDadosCartaoPagarme:this.gatewayERede()?this.ctlDadosCartaoRede:void 0}gatewayPagSeguro(){return"pagseguro"===this.gateway}gatewayPagSeguroConnect(){return"pagseguroconnect"===this.gateway}gatewayPagCielo(){return"cielocheckout"===this.gateway}gatewayPagarme(){return"pagarme"===this.gateway||"pagarmehub"===this.gateway}gatewayERede(){return"erede"===this.gateway}gatewayMercadoPago(){return"mercadopago"===this.gateway}inicialize(t,r,s,l){this.window=t,this.pedido=r,this.gateway=s.formaDePagamento.configMeioDePagamento.meioDePagamento,(r.retirar||r.entrega&&r.entrega.ehRetirada())&&(this.obrigarEndereco=!0,this.usarEnderecoDeEntrega=!1),setTimeout(()=>{this.gatewayPagarme()&&this.ctlDadosCartaoPagarme.setParcelamento(s.formaDePagamento.numeroParcelasFixas),this.obtenhaCtlDados().exibaCartao(l)},0)}fecheTela(){this.window.close(null)}alterouUsarEnderecoDeEntrega(){}obtenhaDadosSemDadosSensitivos(){}obtenhaEnderecoCobranca(){return this.usarEnderecoDeEntrega?this.pedido.entrega?this.pedido.entrega.endereco:this.pedido.endereco:this.formEndereco?this.formEndereco.obtenhaEndereco():null}completeDadosCartao(t){t.usarEnderecoDeEntrega=this.usarEnderecoDeEntrega,this.formEndereco&&(t.endereco=this.formEndereco.obtenhaEndereco())}getOffset(t){const r=t.getBoundingClientRect();return{left:r.left+window.scrollX,top:r.top+window.scrollY}}salvarCartao(){let t=!0;const r=this.obtenhaCtlDados().ehValido();if(!r.valido){const s=document.querySelector(".k-content");Y1.foqueInvalido(s,r.controle),t=!1}if(!this.usarEnderecoDeEntrega&&this.formEndereco){const s=this.formEndereco.ehValido();if(t&&!s.valido){const l=document.querySelector(".k-content");Y1.foqueInvalido(l,s.controle),t=!1}}!t||(this.processandoDados=!0,this.obtenhaCtlDados().crieTokenCartao(this.obtenhaEnderecoCobranca()).then(s=>{this.ngZone.run(()=>{this.processandoDados=!1}),this.gerouTokenCartao(s)}).catch(s=>{this.ngZone.run(()=>{this.processandoDados=!1,this.msgErro=s,setTimeout(()=>{this.scrollToErro()},0)})}))}scrollToErro(){this.erroDiv&&this.erroDiv.nativeElement&&this.erroDiv.nativeElement.scrollIntoView({behavior:"smooth",block:"center"})}gerouTokenCartao(t){this.completeDadosCartao(t),this.window.close(t),this.app.tick()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.z2F),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-cartao-de-credito"]],viewQuery:function(t,r){if(1&t&&(n.Gf(fPe,5),n.Gf(mPe,5),n.Gf(_Pe,5),n.Gf(bPe,5),n.Gf(vPe,5),n.Gf(yPe,5),n.Gf(CPe,5),n.Gf(APe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.ctlDadosCartao=s.first),n.iGM(s=n.CRH())&&(r.ctlDadosCartaoPagaseguroConnect=s.first),n.iGM(s=n.CRH())&&(r.ctlDadosCartaoMercadoPago=s.first),n.iGM(s=n.CRH())&&(r.ctlDadosCartaoCielo=s.first),n.iGM(s=n.CRH())&&(r.ctlDadosCartaoPagarme=s.first),n.iGM(s=n.CRH())&&(r.ctlDadosCartaoRede=s.first),n.iGM(s=n.CRH())&&(r.formEndereco=s.first),n.iGM(s=n.CRH())&&(r.erroDiv=s.first)}},decls:2,vars:2,consts:[["exibirFechar","true",3,"titulo","fechou"],["class","mt-3",4,"ngIf"],[1,"mt-3"],[1,"row"],[1,"col"],["class","alert alert-danger mb-2","role","alert",4,"ngIf"],["class","alert alert-warning mb-2","role","alert",4,"ngIf"],[4,"ngIf"],["class","row mt-1",4,"ngIf"],[1,"footer"],["type","submit","id","confimarCartao",1,"btn","btn-blue","btn-block",3,"hidden","disabled","click"],["class","k-icon k-i-loading",4,"ngIf"],["role","alert",1,"alert","alert-danger","mb-2"],["erroDiv",""],[1,"fas","fa-exclamation-triangle"],["role","alert",1,"alert","alert-warning","mb-2"],[1,"fas","fa-exclamation-triangle","mr-1"],[3,"pedido","onGerouToken"],["dadosCartaoMercadoPago",""],[3,"pedido"],["dadosCartao",""],["dadosCartaoPagaseguroConnect",""],["ctlDadosCartaoCielo",""],[3,"pedido","gateway"],["ctlDadosCartaoPagarme",""],["ctlDadosCartaoRede",""],[1,"row","mt-1"],[1,"col-12"],[1,"mb-2","mt-1"],["class","col-12 mt-1",4,"ngIf"],[1,"col-12","mt-1"],[3,"ngModel","onLabel","offLabel","ngModelChange"],[3,"buscouUmEndereco","exibirBotao","exibirDepoisCep","pontoReferencia","ignorarConfigEmpresa","cepObrigatorio"],["formEndereco",""],[1,"k-icon","k-i-loading"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.YNc(1,LPe,19,12,"div",1)),2&t&&(n.Q6J("titulo","Dados Cart\xe3o de Cr\xe9dito"),n.xp6(1),n.Q6J("ngIf",r.pedido))},dependencies:[Ge,ti,ni,Xo,Cs,nT,QEe,XEe,y6e,R6e,nPe,gPe],styles:[".dialog-pagamento{overflow-x:hidden;padding-top:0!important;position:static;position:initial}  .mobile .dialog-pagamento{padding:12px}  .k-dialog-wrapper{z-index:100001}.footer[_ngcontent-%COMP%]{background:#fff;padding:0;position:static;position:initial;margin-top:20px;z-index:2}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{margin-top:25px;position:static!important;position:initial!important}}"]}),i})();class VF{constructor(){}outroSemDadosSensitivos(){const o=new VF;return o.email=this.email,o}}let zF=(()=>{class i{constructor(t,r,s,l,u){this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u,this.pedido={},this.pagamento={formaDePagamento:null},this.formasDePagamento=[],this.formasDePagamentoOnline=[],this.formasDePagamentoPix=[],this.formasDePagamentoManual=[],this.tabSelect=0,this.TIPOMANUAL="MANUAL",this.isMobile=this.detectorDevice.isMobile(),this.constantsService.campoCpf$.subscribe(p=>{this.cpfObrigatorio=p&&!p.opcional})}setFormasPagamento(t,r,s,l){this.pedido=r,this.pagamento=s,this.frm=l,this.formasDePagamento=[],this.formasDePagamentoOnline=[],this.formasDePagamentoPix=[],this.formasDePagamentoManual=[],this.pagamento.tipoDePagamento||(this.pagamento.tipoDePagamento="offline"),t.formasDePagamento.forEach(u=>{const p=s.formaDePagamento;if(u.exibirCardapio||p&&p.id===u.id)if(p&&p.id===u.id&&(s.formaDePagamento=u),u.online)u.pix?this.formasDePagamentoPix.push(u):this.formasDePagamentoOnline.push(u);else if("dinheiro"===u.nome)this.formasDePagamento.splice(0,0,u);else if(u.formaDePagamentoPdv&&u.formaDePagamentoPdv.tipo===this.TIPOMANUAL)this.formasDePagamentoManual.push(u);else{if(u.formaDePagamentoPdv&&u.bandeira){let y=u.formaDePagamentoPdv.metodo.replace("_"," ");u.descricao=String(`${u.bandeira.nome} - ${this.capitalizeString(y)}`)}this.formasDePagamento.push(u)}}),this.pagamento&&this.meioOnlineExigeCartao(this.pagamento.formaDePagamento)&&(this.exigeCartao=!0),this.temPagamentoOnline()||(this.tabSelect=1),this.pagamento.formaDePagamento&&this.pagamento.formaDePagamento.id&&(this.tipoManualSelecionado()?this.tabSelect=2:this.pagamento.formaDePagamento.online||(this.tabSelect=1))}temPagamentoOnline(){return this.formasDePagamentoOnline.length||this.formasDePagamentoPix.length}tipoManualSelecionado(){return!(!this.pagamento.formaDePagamento||!this.pagamento.formaDePagamento.formaDePagamentoPdv)&&this.pagamento.formaDePagamento.formaDePagamentoPdv.tipo===this.TIPOMANUAL}capitalizeString(t){return 0===t.length?t:t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}meioOnlineExigeCartao(t){return!(!t||!t.configMeioDePagamento||t.pix)&&t.online}trocarCartao(t=null){if(this.exigeCartao=!0,!this.pedido.entrega.formaDeEntrega)return;let r=this.pedido.pagamento||this.pagamento;const l=ZF.abraComoPopup(this.dialogService,this.isMobile,this.pedido,r,this.dadosCartao?this.dadosCartao:r?r.dadosCartao:null);this.telaPagamento=l.content.instance,t&&(this.telaPagamento.mensagemAlerta=t),l.result.subscribe(u=>{u instanceof hm||u&&(this.dadosCartao=u,this.pagamento.dadosCartao=u.outroSemDadosSensitivos(),Object.keys(this.frm.controls).forEach(p=>{this.frm.controls[p].updateValueAndValidity()}))}),this.app.tick()}alterouTipoPagamento(t=null){"Pix (Chave)"===t.title&&this.escolheuFormaDePagamentoManual()}selecioneFormaPagamento(){this.escolheuFormaDePagamentoPresencial(this.pagamento.formaDePagamento)}escolheuFormaDePagamentoPresencial(t){this.exigeCartao=!1,this.pedido.calculeTotal(),this.mudouFormaPagamento(),typeof fbq<"u"&&fbq("track","AddPaymentInfo")}escolheuFormaDePagamentoManual(){this.tipoManualSelecionado()||this.pagamento.formaDePagamento&&this.pagamento.formaDePagamento.tipo&&(this.pagamento.formaDePagamento=null)}escolheuFormaDePagamentoOnline(t){this.pedido.calculeTotal(),typeof fbq<"u"&&fbq("track","AddPaymentInfo"),this.exigeCartao=this.meioOnlineExigeCartao(t),this.exigeCartao&&this.trocarCartao()}alterouFormaDePagamentoParaPix(){this.exigeCartao=!1,this.pagamento.dadosPix=new VF,this.alterouFormaDePagamento(),setTimeout(()=>{this.txtCpfPix?this.txtCpfPix.nativeElement.focus():this.txtEmailPix&&this.txtEmailPix.nativeElement.focus()},300)}alterouFormaDePagamento(){this.cashback&&this.cashback.usar&&(this.pedido.cashback=this.cashback),this.pedido.calculeTotal(),delete this.pedido.cashback}estaHabilitado(t,r){return r.entrega&&r.entrega.foiPreenchida()?!!(r.entrega?.ehDelivery()&&t.habilitarEntrega||r.entrega?.ehRetirada()&&t.habilitarRetirada):t.habilitarEntrega&&t.habilitarRetirada}mudouFormaPagamento(){this.carrinhoService.salvePedido(this.pedido)}obtenhaTotalPagar(){if(!this.cashback||!this.cashback.usar)return this.pedido.total;let t=this.pedido.total-this.cashback.valor;return t<=0&&(t=0,delete this.pagamento.formaDePagamento),Number(t.toFixed(2))}calculeTroco(t){setTimeout(()=>{this.pedido.calculeTroco()},0)}pedirCpfNoPix(){if(this.cpfObrigatorio||!this.pagamento||!this.pagamento.formaDePagamento)return!1;let t=this.pagamento.formaDePagamento.configMeioDePagamento;return t&&"pagarmehub"===t.meioDePagamento}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Na),n.LFG(zo),n.LFG(Oi),n.LFG(n.z2F),n.LFG(gi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),XW=(()=>{class i extends zF{constructor(t,r,s,l,u){super(t,r,s,l,u),this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u}setFormasPagamentoMobile(t,r,s,l){this.setFormasPagamento(r,s,t,l),this.pedido.pagamento&&(this.exigeCartao=this.formaDePagamentoExigeCartao(),this.habiliteTipoDinheiro())}habiliteTipoDinheiro(){this.pagamento.formaDePagamento&&"dinheiro"!==this.pagamento.formaDePagamento.nome&&(this.pagamento.trocoPara=0,this.pagamento.temTroco=""),setTimeout(()=>{},0)}alterouFormaDePagamento(){this.exigeCartao=this.formaDePagamentoExigeCartao(),this.cashback&&this.cashback.usar&&(this.pedido.cashback=this.cashback),this.pedido.calculeTotal(),delete this.pedido.cashback,this.habiliteTipoDinheiro()}escolheuFormaDePagamentoOnline(t){[zp.Pagseguro,zp.PagseguroConnect,zp.Pagarme,zp.PagarmeHub,zp.CieloCheckout,zp.MercadoPago].indexOf(t.configMeioDePagamento.meioDePagamento)>=0&&this.trocarCartao(),this.pedido.calculeTotal()}trocarCartao(t=null){if(this.exigeCartao=!0,!this.pedido.entrega.formaDeEntrega)return;this.pedido.totalPagar=this.obtenhaTotalPagar();let r=this.pedido.pagamento;const l=ZF.abraComoPopup(this.dialogService,!0,this.pedido,r,this.dadosCartao?this.dadosCartao:r?r.dadosCartao:null);this.telaPagamento=l.content.instance,t&&(this.telaPagamento.mensagemAlerta=t),l.result.subscribe(u=>{u instanceof hm||u&&(this.dadosCartao=u,this.pedido.pagamento.dadosCartao=u.outroSemDadosSensitivos(),Object.keys(this.frm.controls).forEach(p=>{this.frm.controls[p].updateValueAndValidity()}),this.carrinhoService.salvePedido(this.pedido))})}formaDePagamentoExigeCartao(){return!!this.pagamento&&this.meioOnlineExigeCartao(this.pagamento.formaDePagamento)}precisaDeTroco(t){t||(this.pagamento.trocoPara=null)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Na),n.LFG(zo),n.LFG(Oi),n.LFG(n.z2F),n.LFG(gi))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();function se(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function Us(i,o){return function(t,r){o(t,r,i)}}function Q(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const n4e=["header"],i4e=["contentWrapper"];function o4e(i,o){if(1&i&&n._UZ(0,"span",6),2&i){const t=n.oxw();n.Q6J("ngClass",t.iconClasses)}}function r4e(i,o){if(1&i&&n._UZ(0,"img",7),2&i){const t=n.oxw();n.Q6J("src",t.imageUrl,n.LSH)}}function a4e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"span",8),n._uU(2),n.qZA(),n.BQk()),2&i){const t=n.oxw();n.xp6(2),n.Oqu(t.title)}}function s4e(i,o){}const l4e=function(i,o,t,r,s,l,u,p,y,A){return{title:i,id:o,icon:t,iconClass:r,imageUrl:s,selected:l,expanded:u,disabled:p,focused:y,content:A}},c4e=function(i){return{item:i}};function d4e(i,o){if(1&i&&n.YNc(0,s4e,0,0,"ng-template",9),2&i){const t=n.oxw();n.Q6J("ngTemplateOutlet",t.titleTemplate)("ngTemplateOutletContext",n.VKq(13,c4e,n.rFY(2,l4e,[t.title,t.id,t.icon,t.iconClass,t.imageUrl,t.selected,t.expanded,t.disabled,t.focused,t.content])))}}const u4e=function(i,o){return{"k-i-arrow-chevron-up k-panelbar-collapse":i,"k-i-arrow-chevron-down k-panelbar-expand":o}};function p4e(i,o){if(1&i&&n._UZ(0,"span",10),2&i){const t=n.oxw();n.Q6J("ngClass",n.WLB(1,u4e,t.expanded,!t.expanded))}}function h4e(i,o){if(1&i&&(n.TgZ(0,"div",14),n.Hsn(1),n.qZA()),2&i){const t=n.oxw(2);n.Udp("overflow",t.contentOverflow)("height",t.contentHeight)}}function g4e(i,o){}const sK=function(i,o,t,r,s,l){return{title:i,id:o,icon:t,imageUrl:r,disabled:s,content:l}},WF=function(i){return{$implicit:i}};function f4e(i,o){if(1&i&&(n.TgZ(0,"div",15),n.YNc(1,g4e,0,0,"ng-template",9),n.qZA()),2&i){const t=n.oxw(2);n.Udp("overflow",t.contentOverflow)("height",t.contentHeight),n.xp6(1),n.Q6J("ngTemplateOutlet",t.contentTemplate.first.templateRef)("ngTemplateOutletContext",n.VKq(13,WF,n.HTZ(6,sK,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content)))}}function m4e(i,o){if(1&i&&n._UZ(0,"kendo-panelbar-item",18),2&i){const t=n.oxw().$implicit,r=n.oxw(3);n.Q6J("title",t.title)("id",t.id)("icon",t.icon)("iconClass",t.iconClass)("imageUrl",t.imageUrl)("selected",!!t.selected)("expanded",!!t.expanded)("disabled",!!t.disabled)("template",r.template)("items",t.children)("content",t.content)}}function _4e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,m4e,1,11,"kendo-panelbar-item",17),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.hidden)}}function b4e(i,o){if(1&i&&(n.TgZ(0,"div",14),n.YNc(1,_4e,2,1,"ng-container",16),n.qZA()),2&i){const t=n.oxw(2);n.Udp("overflow",t.contentOverflow)("height",t.contentHeight),n.xp6(1),n.Q6J("ngForOf",t.items)}}function v4e(i,o){}function y4e(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw(3);n.Oqu(t.content)}}function C4e(i,o){if(1&i&&(n.TgZ(0,"div",15),n.YNc(1,v4e,0,0,"ng-template",9),n.YNc(2,y4e,1,1,"ng-template",19),n.qZA()),2&i){const t=n.oxw(2);n.Udp("overflow",t.contentOverflow)("height",t.contentHeight),n.xp6(1),n.Q6J("ngTemplateOutlet",t.template)("ngTemplateOutletContext",n.VKq(14,WF,n.HTZ(7,sK,t.title,t.id,t.icon,t.imageUrl,t.disabled,t.content))),n.xp6(1),n.Q6J("ngIf",!t.template)}}function A4e(i,o){if(1&i&&(n.TgZ(0,"div",null,11),n.YNc(2,h4e,2,4,"div",12),n.YNc(3,f4e,2,15,"div",13),n.YNc(4,b4e,2,5,"div",12),n.YNc(5,C4e,3,16,"div",13),n.qZA()),2&i){const t=n.oxw();n.Q6J("@toggle",t.state),n.uIk("role","group")("aria-hidden",!t.disabled&&!t.expanded),n.xp6(2),n.Q6J("ngIf",t.hasChildItems&&!(null!=t.items&&t.items.length)),n.xp6(1),n.Q6J("ngIf",t.hasContent&&!t.content),n.xp6(1),n.Q6J("ngIf",t.hasItems),n.xp6(1),n.Q6J("ngIf",t.content)}}const lK=[[["kendo-panelbar-item"]]],O4e=["kendoTabStripScrollableButton",""],N4e=["tablist"],L4e=["prevScrollButton"],R4e=["nextScrollButton"],F4e=["tabHeaderContainer"];function B4e(i,o){1&i&&n.GkF(0)}function H4e(i,o){1&i&&n.GkF(0)}function $4e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,B4e,1,0,"ng-container",5),n.YNc(2,H4e,1,0,"ng-container",5),n.BQk()),2&i){n.oxw();const t=n.MAs(4),r=n.MAs(6);n.xp6(1),n.Q6J("ngTemplateOutlet",t),n.xp6(1),n.Q6J("ngTemplateOutlet",r)}}function U4e(i,o){1&i&&n.GkF(0)}function Y4e(i,o){1&i&&n.GkF(0)}function j4e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,U4e,1,0,"ng-container",5),n.YNc(2,Y4e,1,0,"ng-container",5),n.BQk()),2&i){n.oxw();const t=n.MAs(6),r=n.MAs(4);n.xp6(1),n.Q6J("ngTemplateOutlet",t),n.xp6(1),n.Q6J("ngTemplateOutlet",r)}}function Z4e(i,o){1&i&&n._UZ(0,"span",11,12),2&i&&n.Q6J("prev",!0)}function V4e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li",14,15),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw().index,u=n.oxw(2);return n.KtG(u.onTabClick(s,l))}),n.qZA()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw(2);n.Q6J("ngClass",r.cssClass)("ngStyle",r.cssStyle)("tab",r)("index",s)("tabStripClosable",l.closable)("tabStripCloseIcon",l.closeIcon)("id","k-tabstrip-tab-"+s),n.uIk("aria-controls","k-tabstrip-tabpanel-"+s)}}function z4e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,V4e,2,8,"li",13),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",!t.closed)}}function G4e(i,o){1&i&&n._UZ(0,"span",11,16),2&i&&n.Q6J("prev",!1)}function q4e(i,o){if(1&i&&(n.TgZ(0,"div",6),n.YNc(1,Z4e,2,1,"span",7),n.TgZ(2,"ul",8,9),n.YNc(4,z4e,2,1,"ng-container",10),n.qZA(),n.YNc(5,G4e,2,1,"span",7),n.qZA()),2&i){const t=n.oxw();n.Q6J("ngClass",t.itemsWrapperClass),n.xp6(1),n.Q6J("ngIf",t.hasScrollButtons),n.xp6(1),n.Udp("justify-content",t.tabsAlignmentStyles)("width",t.tabListWidth)("height",t.tabListHeight),n.xp6(2),n.Q6J("ngForOf",t.tabs),n.xp6(1),n.Q6J("ngIf",t.hasScrollButtons)}}function J4e(i,o){}function Q4e(i,o){if(1&i&&(n.TgZ(0,"div",19),n.YNc(1,J4e,0,0,"ng-template",20),n.qZA()),2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw(2);n.Q6J("@state",r.selected&&l.animate?"active":"inactive")("ngClass",!l.keepTabContent||r.selected?"k-content k-state-active":"k-content")("tabIndex",0)("id","k-tabstrip-tabpanel-"+s),n.uIk("aria-hidden",!r.selected)("aria-expanded",r.selected)("aria-labelledby","k-tabstrip-tab-"+s)("aria-disabled",r.disabled),n.xp6(1),n.Q6J("ngTemplateOutlet",null==r.tabContent?null:r.tabContent.templateRef)}}function W4e(i,o){if(1&i&&n.YNc(0,Q4e,2,9,"div",18),2&i){const t=o.$implicit,r=n.oxw(2);n.Q6J("ngIf",!t.closed&&(t.selected||r.keepTabContent))}}function K4e(i,o){if(1&i&&n.YNc(0,W4e,1,1,"ng-template",17),2&i){const t=n.oxw();n.Q6J("ngForOf",t.tabs)}}function X4e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-resize-sensor",21),n.NdJ("resize",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onResize())}),n.qZA()}}const r5e=["kendoTabStripTab",""];function a5e(i,o){if(1&i&&(n.TgZ(0,"span",2),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Oqu(t.tab.title)}}function s5e(i,o){}function l5e(i,o){if(1&i&&(n.TgZ(0,"span",2),n.YNc(1,s5e,0,0,"ng-template",3),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngTemplateOutlet",null==t.tab.tabTitle?null:t.tab.tabTitle.templateRef)}}function c5e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",4),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.closeTab(s.index))}),n._UZ(1,"span",5),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("title",t.closeButtonTitle),n.uIk("aria-label",t.closeButtonTitle),n.xp6(1),n.Q6J("ngClass",t.closeButtonClasses)}}const ju={name:"@progress/kendo-angular-layout",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1649340417,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};var Zu=(()=>(function(i){i[i.Single=0]="Single",i[i.Full=1]="Full",i[i.Multiple=2]="Multiple",i[i.Default=2]="Default"}(Zu||(Zu={})),Zu))();let d5e=0,zT=(()=>{let i=class{constructor(){this.parentSource=new Ht.xQ,this.keepContentSource=new Qn(!1),this.childSource=new Ht.xQ,this.parent$=this.parentSource.asObservable(),this.children$=this.childSource.asObservable(),this.keepContent$=this.keepContentSource.asObservable(),this.pbId=d5e++}onKeepContent(t){this.keepContentSource.next(t)}onSelect(t){this.childSource.next(t)}onFocus(){this.parentSource.next(!0)}onBlur(){this.parentSource.next(!1)}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=se([Q("design:paramtypes",[])],i),i})(),XF=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoPanelBarContent",""]]}),i=se([Q("design:paramtypes",[n.Rgc])],i),i})(),eB=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc,8))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoPanelBarItemTitle",""]]}),i=se([Us(0,(0,n.FiY)()),Q("design:paramtypes",[n.Rgc])],i),i})();const Ar=i=>null!=i,hK=i=>i===Ie.ArrowLeft||i===Ie.ArrowRight,gK=i=>i===Ie.ArrowUp||i===Ie.ArrowDown,fK=i=>i===Ie.PageUp||i===Ie.PageDown||i===Ie.Home||i===Ie.End,b5e=/^(?:a|input|select|option|textarea|button|object)$/i,k6=i=>{if(i.tagName){const o=i.tagName.toLowerCase(),t=i.getAttribute("tabIndex"),r="-1"===t;let s=null!==t&&!r;return b5e.test(o)&&(s=!i.disabled&&!r),s}return!1},I6=(i,o)=>Boolean((i=>String(i).trim().split(" "))(i.className).find(t=>t===o));var Zy;let C5e=0,si=Zy=class{constructor(o,t,r,s){this.parent=o,this.eventService=t,this.element=r,this.renderer=s,this.id="default-"+C5e++,this.icon="",this.iconClass="",this.imageUrl="",this.disabled=!1,this.selected=!1,this.keepContent=!1,this.hasChildItems=!1,this.hasItems=!1,this.hasContent=!1,this.state="inactive",this.role="treeitem",this.titleAttribute=null,this.kItemClass=!0,this.focused=!1,this.wrapperFocused=!1,this.subscriptions=new bn.w(()=>{}),this._expanded=!1,this.subscriptions.add(t.parent$.subscribe(l=>this.onWrapperFocusChange(l))),this.subscriptions.add(t.keepContent$.subscribe(l=>this.keepContent=l)),this.wrapperFocused=!!o&&o.focused,this.level=this.parent?this.parent.level+1:0}set expanded(o){this.state=o?this.animate?"active":"activeWithoutAnimation":"inactive",this.keepContent||this.toggleExpandedChildAnimations(o),this._expanded=o}get expanded(){return this._expanded}get animate(){return this.eventService.animate}get kStateDefaultClass(){return!this.disabled}get kStateDisabledClass(){return this.disabled}get kStateExpandedClass(){return!this.disabled&&this.expanded&&(this.hasChildItems||this.hasContent)}get itemId(){return"k-panelbar-"+this.eventService.pbId+"-item-"+this.id}get ariaExpanded(){return this.hasChildItems||this.hasContent?!this.disabled&&this.expanded:null}get ariaSelected(){return!this.disabled&&this.selected}get ariaDisabled(){return!!this.disabled||null}get headerClass(){return!this.parent||null}get childClass(){return!!this.parent||null}get titleTemplate(){return this.titleTemplates.length>0?this.titleTemplates.toArray()[0].templateRef:void 0}headerHeight(){return this.element.nativeElement.offsetHeight-(this.contentWrapper?this.contentWrapper.nativeElement.offsetHeight:0)}ngOnInit(){this.addLevelClass()}ngAfterContentChecked(){this.hasItems=this.items&&this.items.filter(o=>!o.hidden).length>0,this.hasChildItems=this.contentItems.filter(o=>o!==this).length>0||this.hasItems,this.hasContent=void 0!==this.contentTemplate&&this.contentTemplate.length>0||void 0!==this.content,this.validateConfiguration()}ngAfterViewChecked(){this.childrenItems=this.items?this.viewChildItems.toArray():this.contentItems.filter(o=>o!==this)}ngOnDestroy(){this.subscriptions.unsubscribe()}onItemAction(){this.disabled||this.eventService.onSelect(this)}onItemClick(o){k6(o.target)||this.onItemAction()}get iconClasses(){return{[(this.icon?"k-i-"+this.icon:null)||this.iconClass]:!0}}serialize(){return{content:this.content,disabled:this.disabled,expanded:this.expanded,focused:this.focused,icon:this.icon,iconClass:this.iconClass,id:this.id,imageUrl:this.imageUrl,selected:this.selected,title:this.title}}subTreeViewItems(){let o=[];return this.viewChildItems.forEach(t=>{o=o.concat(t.subTreeViewItems()),o.push(t)}),o}validateConfiguration(){if((0,n.X6Q)()&&this.content&&void 0!==this.contentTemplate&&this.contentTemplate.length>0)throw new Error("Invalid configuration: mixed template components and component property.")}toggleAnimationState(o){!this.animate||(this.state=o&&this.eventService.expandMode!==Zu.Single?"active":"activeWithoutAnimation")}toggleExpandedChildAnimations(o){this.childrenItems&&this.childrenItems.forEach(t=>{t.expanded&&(t.toggleAnimationState(o),t.toggleExpandedChildAnimations(o))})}addLevelClass(){this.level>=0&&this.renderer.addClass(this.element.nativeElement,`k-level-${this.level}`)}onWrapperFocusChange(o){this.wrapperFocused=o}};si.\u0275fac=function(o){return new(o||si)(n.Y36(si,13),n.Y36(zT),n.Y36(n.SBq),n.Y36(n.Qsj))},si.\u0275cmp=n.Xpm({type:si,selectors:[["kendo-panelbar-item"]],contentQueries:function(o,t,r){if(1&o&&(n.Suo(r,Zy,4),n.Suo(r,XF,4),n.Suo(r,eB,4)),2&o){let s;n.iGM(s=n.CRH())&&(t.contentItems=s),n.iGM(s=n.CRH())&&(t.contentTemplate=s),n.iGM(s=n.CRH())&&(t.titleTemplates=s)}},viewQuery:function(o,t){if(1&o&&(n.Gf(n4e,5),n.Gf(i4e,5),n.Gf(Zy,5)),2&o){let r;n.iGM(r=n.CRH())&&(t.header=r.first),n.iGM(r=n.CRH())&&(t.contentWrapper=r.first),n.iGM(r=n.CRH())&&(t.viewChildItems=r)}},hostVars:18,hostBindings:function(o,t){2&o&&(n.Ikx("id",t.itemId),n.uIk("role",t.role)("title",t.titleAttribute)("aria-expanded",t.ariaExpanded)("aria-selected",t.ariaSelected)("aria-disabled",t.ariaDisabled),n.ekj("k-item",t.kItemClass)("k-state-default",t.kStateDefaultClass)("k-state-disabled",t.kStateDisabledClass)("k-state-expanded",t.kStateExpandedClass)("k-panelbar-header",t.headerClass)("k-panelbar-item",t.childClass))},inputs:{id:"id",icon:"icon",iconClass:"iconClass",imageUrl:"imageUrl",disabled:"disabled",selected:"selected",expanded:"expanded",title:"title",content:"content",items:"items",template:"template"},exportAs:["kendoPanelbarItem"],ngContentSelectors:["kendo-panelbar-item"],decls:8,vars:12,consts:[[3,"click"],["header",""],["class","k-icon k-panelbar-item-icon",3,"ngClass",4,"ngIf"],["class","k-image k-panelbar-item-icon","alt","",3,"src",4,"ngIf"],[4,"ngIf"],["class","k-icon k-panelbar-toggle",3,"ngClass",4,"ngIf"],[1,"k-icon","k-panelbar-item-icon",3,"ngClass"],["alt","",1,"k-image","k-panelbar-item-icon",3,"src"],[1,"k-panelbar-item-text"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"k-icon","k-panelbar-toggle",3,"ngClass"],["contentWrapper",""],["class","k-panel k-group k-panelbar-group",3,"overflow","height",4,"ngIf"],["class","k-content k-panelbar-content",3,"overflow","height",4,"ngIf"],[1,"k-panel","k-group","k-panelbar-group"],[1,"k-content","k-panelbar-content"],[4,"ngFor","ngForOf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content",4,"ngIf"],[3,"title","id","icon","iconClass","imageUrl","selected","expanded","disabled","template","items","content"],[3,"ngIf"]],template:function(o,t){1&o&&(n.F$t(lK),n.TgZ(0,"span",0,1),n.NdJ("click",function(s){return t.onItemClick(s)}),n.YNc(2,o4e,1,1,"span",2),n.YNc(3,r4e,1,1,"img",3),n.YNc(4,a4e,3,1,"ng-container",4),n.YNc(5,d4e,1,15,null,4),n.YNc(6,p4e,1,4,"span",5),n.qZA(),n.YNc(7,A4e,6,7,"div",4)),2&o&&(n.ekj("k-link",!0)("k-state-selected",!t.disabled&&t.selected)("k-state-focused",t.focused&&t.wrapperFocused),n.xp6(2),n.Q6J("ngIf",t.icon||t.iconClass),n.xp6(1),n.Q6J("ngIf",t.imageUrl),n.xp6(1),n.Q6J("ngIf",!t.titleTemplate),n.xp6(1),n.Q6J("ngIf",t.titleTemplate),n.xp6(1),n.Q6J("ngIf",t.hasChildItems||t.hasContent),n.xp6(1),n.Q6J("ngIf",t.keepContent||!t.disabled&&t.expanded&&(t.hasChildItems||t.hasContent)))},dependencies:[gt,Bt,Ge,Pi,si],encapsulation:2,data:{animation:[Tp("toggle",[Ad("inactive",Kt({display:"none"})),Dc("* => active",[Kt({overflow:"hidden",display:"block",height:0}),Wi(200,Kt({height:xl}))]),Dc("active => *",[Kt({overflow:"hidden",height:xl}),Wi(200,Kt({height:0,display:"none"}))])])]}}),se([(0,n.IIB)(),Q("design:type",String)],si.prototype,"title",void 0),se([(0,n.IIB)(),Q("design:type",String)],si.prototype,"id",void 0),se([(0,n.IIB)(),Q("design:type",String)],si.prototype,"icon",void 0),se([(0,n.IIB)(),Q("design:type",String)],si.prototype,"iconClass",void 0),se([(0,n.IIB)(),Q("design:type",String)],si.prototype,"imageUrl",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],si.prototype,"disabled",void 0),se([(0,n.IIB)(),Q("design:type",Boolean),Q("design:paramtypes",[Boolean])],si.prototype,"expanded",null),se([(0,n.IIB)(),Q("design:type",Boolean)],si.prototype,"selected",void 0),se([(0,n.IIB)(),Q("design:type",Object)],si.prototype,"content",void 0),se([(0,n.IIB)(),Q("design:type",Array)],si.prototype,"items",void 0),se([(0,n.IIB)(),Q("design:type",n.Rgc)],si.prototype,"template",void 0),se([(0,n.i9L)("header",{static:!1}),Q("design:type",n.SBq)],si.prototype,"header",void 0),se([(0,n.i9L)("contentWrapper",{static:!1}),Q("design:type",n.SBq)],si.prototype,"contentWrapper",void 0),se([(0,n.pfw)("attr.role"),Q("design:type",String)],si.prototype,"role",void 0),se([(0,n.pfw)("attr.title"),Q("design:type",String)],si.prototype,"titleAttribute",void 0),se([(0,n.pfw)("class.k-item"),Q("design:type",Boolean)],si.prototype,"kItemClass",void 0),se([(0,n.pfw)("class.k-state-default"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"kStateDefaultClass",null),se([(0,n.pfw)("class.k-state-disabled"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"kStateDisabledClass",null),se([(0,n.pfw)("class.k-state-expanded"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"kStateExpandedClass",null),se([(0,n.pfw)("id"),Q("design:type",String),Q("design:paramtypes",[])],si.prototype,"itemId",null),se([(0,n.pfw)("attr.aria-expanded"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"ariaExpanded",null),se([(0,n.pfw)("attr.aria-selected"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"ariaSelected",null),se([(0,n.pfw)("attr.aria-disabled"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"ariaDisabled",null),se([(0,n.pfw)("class.k-panelbar-header"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"headerClass",null),se([(0,n.pfw)("class.k-panelbar-item"),Q("design:type",Boolean),Q("design:paramtypes",[])],si.prototype,"childClass",null),se([(0,n.vR)(Zy),Q("design:type",n.n_E)],si.prototype,"viewChildItems",void 0),se([(0,n.AcB)(Zy),Q("design:type",n.n_E)],si.prototype,"contentItems",void 0),se([(0,n.AcB)(XF,{descendants:!1}),Q("design:type",n.n_E)],si.prototype,"contentTemplate",void 0),se([(0,n.AcB)(eB,{descendants:!1}),Q("design:type",n.n_E)],si.prototype,"titleTemplates",void 0),si=Zy=se([Us(0,(0,n.tp0)()),Us(0,(0,n.AA_)()),Us(0,(0,n.FiY)()),Q("design:paramtypes",[si,zT,n.SBq,n.Qsj])],si);class T0{constructor(o){this.prevented=!1,Object.assign(this,o)}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}let S0=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTabContent",""]]}),i=se([Q("design:paramtypes",[n.Rgc])],i),i})(),iB=(()=>{let i=class{constructor(t){this.templateRef=t}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Rgc))},i.\u0275dir=n.lG2({type:i,selectors:[["","kendoTabTitle",""]]}),i=se([Q("design:paramtypes",[n.Rgc])],i),i})(),wm=(()=>{let i=class{constructor(){this.disabled=!1,this._tabContent=new n.n_E,this.focused=!1}get tabContent(){return this._tabContent.first}get tabTitle(){return this._tabTitleDirective.first}};return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-tabstrip-tab"]],contentQueries:function(t,r,s){if(1&t&&(n.Suo(s,S0,4),n.Suo(s,iB,4)),2&t){let l;n.iGM(l=n.CRH())&&(r._tabContent=l),n.iGM(l=n.CRH())&&(r._tabTitleDirective=l)}},inputs:{disabled:"disabled",title:"title",cssClass:"cssClass",cssStyle:"cssStyle",selected:"selected",closable:"closable",closeIcon:"closeIcon"},exportAs:["kendoTabStripTab"],decls:0,vars:0,template:function(t,r){},encapsulation:2}),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"title",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"disabled",void 0),se([(0,n.IIB)(),Q("design:type",Object)],i.prototype,"cssClass",void 0),se([(0,n.IIB)(),Q("design:type",Object)],i.prototype,"cssStyle",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"selected",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"closable",void 0),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"closeIcon",void 0),se([(0,n.AcB)(S0),Q("design:type",n.n_E)],i.prototype,"_tabContent",void 0),se([(0,n.AcB)(iB),Q("design:type",n.n_E)],i.prototype,"_tabTitleDirective",void 0),i})();class E5e{constructor(o,t){this.index=o,this.tab=t}}class P5e extends class use{constructor(){this.prevented=!1}preventDefault(){this.prevented=!0}isDefaultPrevented(){return this.prevented}}{constructor(o,t){super(),this.index=o,this.title=t}}const bK=i=>i.enabled&&i.mouseScroll,oB=i=>{let o,t,r=-1,s=-1;return i.forEach((l,u)=>{l.selected?(t=l,s=u):l.focused&&(o=l,r=u)}),r>=0?{tab:o,index:r}:{tab:t,index:s}},rB=(i,o)=>{const t=i.filter((r,s)=>s===o);return t.length>0?t[0]:null},dc=i=>"top"===i||"bottom"===i;let qT=(()=>{let i=class{constructor(t,r){this.localization=t,this.ngZone=r}onKeyDown(t){if(!(i=>{const o=i.getAttribute("id");return!!(Ar(o)||o.indexOf("k-tabstrip-tab-")>=0)})(t.target))return;const r=t.keyCode;this.shouldHandleKey(r)&&(t.preventDefault(),fK(r)||(i=>hK(i)||gK(i))(r)?this.onNavigate(r):r===Ie.Delete&&this.onDelete())}onTabSelect(t,r){const s=new P5e(r,t.title);if(this.owner.tabSelect.emit(s),!s.isDefaultPrevented()){if(t.selected)return void this.focusTabHeader(r);this.selectTab(t,r)}}selectTab(t,r){(i=>{this.owner.tabs.forEach(o=>{o.selected=!1})})(),this.focusTabHeader(r),t.selected=!0,this.owner.isScrollable&&this.owner.scrollToSelectedTab()}onTabClose(t,r){const s=new E5e(r,t);this.owner.tabClose.emit(s)}onNavigate(t){let{tab:r,index:s}=oB(this.owner.tabs);n.R0b.isInAngularZone()||this.ngZone.run(()=>{if(s<0)return void this.owner.selectTab(this.firstNavigatableIndex());r.focused=!1;const l=this.computeNextIndex(s,t);this.activateTab(l)})}onDelete(){let{tab:t,index:r}=oB(this.owner.tabs);((i,o)=>void 0!==i.closable?i.closable:this.owner.closable)(t)&&!t.disabled&&this.ngZone.run(()=>{this.onTabClose(t,r)})}activateTab(t){const r=rB(this.owner.tabs,t);r.disabled?(this.focusTabHeader(t),r.focused=!0):this.onTabSelect(r,t)}focusTabHeader(t){((i,o)=>{const t=this.owner.tabHeaderContainers.filter((r,s)=>s===o);return t.length>0?t[0]:null})(0,t).nativeElement.focus()}shouldHandleKey(t){return!!(fK(t)||dc(this.owner.tabPosition)&&hK(t)||!dc(this.owner.tabPosition)&&gK(t)||t===Ie.Delete)}computeNextIndex(t,r){switch(r){case this.invertKeys(Ie.ArrowLeft,Ie.ArrowRight):case this.invertKeys(Ie.ArrowUp,Ie.ArrowDown):return this.prevNavigatableIndex(t);case this.invertKeys(Ie.ArrowRight,Ie.ArrowLeft):case this.invertKeys(Ie.ArrowDown,Ie.ArrowUp):return this.nextNavigatableIndex(t);case Ie.Home:return this.firstNavigatableIndex();case Ie.End:return this.lastNavigatableIndex();default:return}}invertKeys(t,r){return this.localization.rtl?r:t}firstNavigatableIndex(){return 0}lastNavigatableIndex(){return this.owner.tabs.length-1}prevNavigatableIndex(t){return t-1<0?this.lastNavigatableIndex():t-1}nextNavigatableIndex(t){return t+1>=this.owner.tabs.length?this.firstNavigatableIndex():t+1}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(Te),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=se([Q("design:paramtypes",[Te,n.R0b])],i),i})();class Y5e extends T0{}let JT=(()=>{let i=class{constructor(t){this.ngZone=t,this.position=0,this.scrollButtonActiveStateChange=new Ht.xQ}get tablistElement(){return this.owner.tablist.nativeElement}get scrollButtonIconClass(){const t=this.owner,r=dc(t.tabPosition)?"k-i-arrow-60-left":"k-i-arrow-60-up",s=dc(t.tabPosition)?"k-i-arrow-60-right":"k-i-arrow-60-down";return"object"==typeof t.scrollable?{prevScrollButton:typeof t.scrollable.prevButtonIcon>"u"?r:t.scrollable.prevButtonIcon,nextScrollButton:typeof t.scrollable.nextButtonIcon>"u"?s:t.scrollable.nextButtonIcon}:{prevScrollButton:r,nextScrollButton:s}}get tabstripSize(){const t=this.owner.wrapper.nativeElement,r=parseFloat(getComputedStyle(t).width),s=parseFloat(getComputedStyle(t).height);return dc(this.owner.tabPosition)?r:s}get tablistOverflowSize(){if(!Dt())return 0;const t=dc(this.owner.tabPosition),r=Math.floor(this.tablistElement[t?"scrollWidth":"scrollHeight"]-this.tablistElement.getBoundingClientRect()[t?"width":"height"]);return r<0?0:r}get tabsOverflow(){return this.tablistOverflowSize>0}get scrollButtonsSize(){if(!this.owner.hasScrollButtons)return 0;const t=this.owner.prevScrollButton.hostBoundingClientRect,r=dc(this.owner.tabPosition)?t.width:t.height,s=this.owner.nextScrollButton.hostBoundingClientRect;return r+(dc(this.owner.tabPosition)?s.width:s.height)}toggleScrollButtonsState(){const t=this.owner;if(!t.hasScrollButtons)return;const s=!t.nextScrollButton.disabled,l=this.position>0&&this.tablistOverflowSize>0,u=this.position<this.tablistOverflowSize+this.scrollButtonsSize&&this.tablistOverflowSize>0;l!==!t.prevScrollButton.disabled&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",l)),u!==s&&this.ngZone.run(()=>this.toggleButtonActiveState("next",u))}scrollToSelectedTab(){if(!this.tabsOverflow)return;let{index:t}=oB(this.owner.tabs);if(-1===t)return;this.position+=this.getScrollOffset(t),dc(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState();const r=this.owner;if(!r.hasScrollButtons)return;const l=t===this.owner.tabs.length-1;0===t&&!r.prevScrollButton.disabled&&this.ngZone.run(()=>this.toggleButtonActiveState("prev",!1)),l&&!r.nextScrollButton.disabled&&this.ngZone.run(()=>this.toggleButtonActiveState("next",!1))}getScrollOffset(t){if(!Dt())return 0;const r=dc(this.owner.tabPosition);this.tablistElement["scroll"+(r?"Left":"Top")]=this.position;const s=this.tablistElement.children[t].getBoundingClientRect(),l=this.tablistElement.getBoundingClientRect(),u=r?"right":"bottom",p=r?"left":"top",y=s[p],A=s[u],w=l[p],I=l[u],P=A<=I,F=y>=w;return P&&F?0:P?F?void 0:y-w:A-I}onMouseScroll(t){t.preventDefault(),bK(this.owner.scrollable)&&(this.calculateListPosition(t.deltaY<0?"prev":"next",this.owner.scrollable.mouseScrollSpeed),dc(this.owner.tabPosition)?this.tablistElement.scrollLeft=this.position:this.tablistElement.scrollTop=this.position,this.toggleScrollButtonsState())}scrollTabs(t){this.calculateListPosition(t,this.owner.scrollable.buttonScrollSpeed),dc(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position,behavior:"smooth"}):this.tablistElement.scrollTo({top:this.position,behavior:"smooth"}),this.toggleScrollButtonsState()}calculateListPosition(t,r){const s=this.tablistOverflowSize+this.scrollButtonsSize;if("prev"===t&&this.position>0)this.position=this.position-r<=0?0:this.position-r;else if("next"===t&&this.position<s){if(this.position+r>s)return void(this.position=s);this.position+=r}}emitScrollEvent(t){const r=new Y5e({originalEvent:t});return Ut(this.owner.tabScroll)&&this.owner.tabScroll.emit(r),r}restoreScrollPosition(){dc(this.owner.tabPosition)?this.tablistElement.scrollTo({left:this.position}):this.tablistElement.scrollTo({top:this.position}),this.toggleScrollButtonsState()}toggleButtonActiveState(t,r){this.scrollButtonActiveStateChange.next({buttonType:t,active:r})}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=se([Q("design:paramtypes",[n.R0b])],i),i})();const yK=i=>(({enabled:i=!0,scrollButtons:o="auto",mouseScroll:t=!0,buttonScrollSpeed:r=100,mouseScrollSpeed:s=10,prevButtonIcon:l,nextButtonIcon:u})=>({enabled:i,scrollButtons:o,mouseScroll:t,buttonScrollSpeed:r,mouseScrollSpeed:s,prevButtonIcon:l,nextButtonIcon:u}))(!1===i?{enabled:!1}:i);let N6=(()=>{let i=class{constructor(t,r,s,l){this.host=t,this.scrollService=r,this.renderer=s,this.ngZone=l,this.btnClasses=!0,this.prev=!1,this._disabled=!1,this.subs=new bn.w,this.clickHandler=u=>{this.scrollService.emitScrollEvent(u).isDefaultPrevented()||this.scrollService.scrollTabs(this.prev?"prev":"next")},this.subs.add(this.scrollService.scrollButtonActiveStateChange.subscribe(u=>{(this.prev&&"prev"===u.buttonType||!this.prev&&"next"===u.buttonType)&&(this.disabled=!u.active)}))}get prevClass(){return this.prev}get nextClass(){return!this.prev}get disabled(){return this._disabled}get hostBoundingClientRect(){return this.host.nativeElement.getBoundingClientRect()}get iconClass(){return this.scrollService.scrollButtonIconClass[this.prev?"prevScrollButton":"nextScrollButton"]}set disabled(t){this._disabled=t}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.subs.add(this.renderer.listen(this.host.nativeElement,"click",this.clickHandler))})}ngOnDestroy(){this.subs.unsubscribe()}toggle(t){this.renderer[t?"removeClass":"addClass"](this.host.nativeElement,"k-hidden")}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(JT),n.Y36(n.Qsj),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoTabStripScrollableButton",""]],hostVars:18,hostBindings:function(t,r){2&t&&n.ekj("k-button",r.btnClasses)("k-button-md",r.btnClasses)("k-icon-button",r.btnClasses)("k-rounded-md",r.btnClasses)("k-button-flat",r.btnClasses)("k-button-flat-base",r.btnClasses)("k-disabled",r.disabled)("k-tabstrip-prev",r.prevClass)("k-tabstrip-next",r.nextClass)},inputs:{prev:"prev"},attrs:O4e,decls:1,vars:1,consts:[[1,"k-icon","k-button-icon",3,"ngClass"]],template:function(t,r){1&t&&n._UZ(0,"span",0),2&t&&n.Q6J("ngClass",r.iconClass)},dependencies:[gt],encapsulation:2}),se([(0,n.pfw)("class.k-button"),(0,n.pfw)("class.k-button-md"),(0,n.pfw)("class.k-icon-button"),(0,n.pfw)("class.k-rounded-md"),(0,n.pfw)("class.k-button-flat"),(0,n.pfw)("class.k-button-flat-base"),Q("design:type",Boolean)],i.prototype,"btnClasses",void 0),se([(0,n.pfw)("class.k-tabstrip-prev"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"prevClass",null),se([(0,n.pfw)("class.k-tabstrip-next"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"nextClass",null),se([(0,n.pfw)("class.k-disabled"),Q("design:type",Boolean),Q("design:paramtypes",[Boolean])],i.prototype,"disabled",null),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"prev",void 0),i=se([Q("design:paramtypes",[n.SBq,JT,n.Qsj,n.R0b])],i),i})(),QT=(()=>{let i=class{constructor(t,r,s,l,u,p){this.localization=t,this.renderer=r,this.wrapper=s,this.tabstripService=l,this.scrollService=u,this.ngZone=p,this.animate=!0,this.tabPosition="top",this.keepTabContent=!1,this.closable=!1,this.closeIcon="k-icon k-i-x",this.tabSelect=new n.vpe,this.tabClose=new n.vpe,this.tabScroll=new n.vpe,this.hostClasses=!0,this.tabs=new n.n_E,this._scrollableSettings=yK(!1),this.subscriptions=new bn.w,this.subscriptionsArePresent=!1,(0,mi.s)(ju),this.tabstripService.owner=this,this.scrollService.owner=this}set height(t){this._height=t,this.renderer.setStyle(this.wrapper.nativeElement,"height",t)}get height(){return this._height}set scrollable(t){this._scrollableSettings=yK(t),this.tablist&&(this.toggleScrollButtons(this.scrollService.tabsOverflow),this.attachWheelHandler(this.tablist.nativeElement))}get scrollable(){return this._scrollableSettings}get tabsAtTop(){return"top"===this.tabPosition}get tabsAtRight(){return"right"===this.tabPosition}get tabsAtBottom(){return"bottom"===this.tabPosition}get tabsAtLeft(){return"left"===this.tabPosition}get dir(){return this.localization.rtl?"rtl":"ltr"}get tabStripScrollable(){return this._scrollableSettings.enabled}ngAfterViewInit(){this.ngZone.runOutsideAngular(()=>{this.toggleScrollButtons(!!this.scrollService.tabsOverflow),setTimeout(()=>{this.scrollToSelectedTab()})}),this.initDomEvents()}ngOnChanges(t){const r=t.tabPosition;if(r){const s="bottom"===r.previousValue||"bottom"===r.currentValue;this.ngZone.onStable.pipe($i(1)).subscribe(()=>{s&&(this.subscriptionsArePresent&&(this.subscriptions.unsubscribe(),this.subscriptions=new bn.w,this.subscriptionsArePresent=!1),this.initDomEvents()),this.scrollService.restoreScrollPosition()})}}ngOnDestroy(){this.subscriptions&&this.subscriptions.unsubscribe()}get tabsAlignmentStyles(){return{start:"flex-start",end:"flex-end",center:"center",justify:"space-between"}[this.tabAlignment]}get tabListWidth(){return"top"===this.tabPosition||"bottom"===this.tabPosition?"100%":null}get tabListHeight(){return"left"===this.tabPosition||"right"===this.tabPosition?"100%":null}get isScrollable(){return this._scrollableSettings.enabled}get hasScrollButtons(){return(i=>i.enabled&&"hidden"!==i.scrollButtons)(this._scrollableSettings)}get mouseScrollEnabled(){return bK(this._scrollableSettings)}get itemsWrapperClass(){return dc(this.tabPosition)?"k-hstack":"k-vstack"}selectTab(t){const r=rB(this.tabs,t);!r||r.disabled||(this.tabstripService.selectTab(r,t),this.scrollToSelectedTab())}onTabClick(t,r){if(k6(t.target))return;const s=t.target;if(I6(s,"k-remove-tab")||I6(s.parentElement,"k-remove-tab"))return;const u=rB(this.tabs,r);this.tabstripService.onTabSelect(u,r),this.scrollToSelectedTab()}onResize(){this.toggleScrollButtons(!!this.scrollService.tabsOverflow),this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})}scrollToSelectedTab(){this._scrollableSettings.enabled&&this.scrollService.scrollToSelectedTab()}initDomEvents(){if(!this.wrapper||this.subscriptionsArePresent)return;const t=this.tablist.nativeElement;this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"keydown",r=>{this.tabstripService.onKeyDown(r)}))}),this.subscriptions.add(this.renderer.listen(t,"focusout",()=>{(i=>{this.tabs.forEach(o=>{o.focused=!1})})()})),this.isScrollable&&this.mouseScrollEnabled&&this.attachWheelHandler(t),this.subscriptionsArePresent=!0}toggleScrollButtons(t){this.ngZone.onStable.pipe($i(1)).subscribe(()=>{const r=this._scrollableSettings.scrollButtons,s=this.prevScrollButton&&this.nextScrollButton,l=s&&t,p="visible"===r;s&&!t&&"visible"!==r?(this.prevScrollButton.toggle(!1),this.nextScrollButton.toggle(!1)):(l||p)&&(this.prevScrollButton.toggle(!0),this.nextScrollButton.toggle(!0)),s&&p&&this.ngZone.runOutsideAngular(()=>{this.scrollService.toggleScrollButtonsState()})})}attachWheelHandler(t){this.ngZone.runOutsideAngular(()=>{this.subscriptions.add(this.renderer.listen(t,"wheel",r=>{this.scrollService.emitScrollEvent(r).isDefaultPrevented()||!this.scrollService.tabsOverflow||this.scrollService.onMouseScroll(r)}))})}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Te),n.Y36(n.Qsj),n.Y36(n.SBq),n.Y36(qT),n.Y36(JT),n.Y36(n.R0b))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-tabstrip"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,wm,4),2&t){let l;n.iGM(l=n.CRH())&&(r.tabs=l)}},viewQuery:function(t,r){if(1&t&&(n.Gf(N4e,5),n.Gf(L4e,5),n.Gf(R4e,5),n.Gf(F4e,5,n.SBq)),2&t){let s;n.iGM(s=n.CRH())&&(r.tablist=s.first),n.iGM(s=n.CRH())&&(r.prevScrollButton=s.first),n.iGM(s=n.CRH())&&(r.nextScrollButton=s.first),n.iGM(s=n.CRH())&&(r.tabHeaderContainers=s)}},hostVars:15,hostBindings:function(t,r){2&t&&(n.uIk("dir",r.dir),n.ekj("k-tabstrip",r.hostClasses)("k-floatwrap",r.hostClasses)("k-tabstrip-top",r.tabsAtTop)("k-tabstrip-right",r.tabsAtRight)("k-tabstrip-bottom",r.tabsAtBottom)("k-tabstrip-left",r.tabsAtLeft)("k-tabstrip-scrollable",r.tabStripScrollable))},inputs:{animate:"animate",tabPosition:"tabPosition",keepTabContent:"keepTabContent",closable:"closable",closeIcon:"closeIcon",height:"height",scrollable:"scrollable",tabAlignment:"tabAlignment"},outputs:{tabSelect:"tabSelect",tabClose:"tabClose",tabScroll:"tabScroll"},exportAs:["kendoTabStrip"],features:[n._Bn([qT,JT,Te,{provide:gn,useValue:"kendo.tabstrip"}]),n.TTD],decls:8,vars:3,consts:function(){let o;return o="Close",[["kendoTabStripLocalizedMessages","","closeTitle",o],[4,"ngIf"],["heading",""],["content",""],[3,"resize",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"k-tabstrip-items-wrapper",3,"ngClass"],["kendoTabStripScrollableButton","",3,"prev",4,"ngIf"],["role","tablist",1,"k-reset","k-tabstrip-items"],["tablist",""],[4,"ngFor","ngForOf"],["kendoTabStripScrollableButton","",3,"prev"],["prevScrollButton",""],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","click",4,"ngIf"],["kendoTabStripTab","","role","tab",3,"ngClass","ngStyle","tab","index","tabStripClosable","tabStripCloseIcon","id","click"],["tabHeaderContainer",""],["nextScrollButton",""],["ngFor","",3,"ngForOf"],["role","tabpanel",3,"ngClass","tabIndex","id",4,"ngIf"],["role","tabpanel",3,"ngClass","tabIndex","id"],[3,"ngTemplateOutlet"],[3,"resize"]]},template:function(t,r){1&t&&(n.GkF(0,0),n.YNc(1,$4e,3,2,"ng-container",1),n.YNc(2,j4e,3,2,"ng-container",1),n.YNc(3,q4e,6,10,"ng-template",null,2,n.W1O),n.YNc(5,K4e,1,1,"ng-template",null,3,n.W1O),n.YNc(7,X4e,1,0,"kendo-resize-sensor",4)),2&t&&(n.xp6(1),n.Q6J("ngIf",!r.tabsAtBottom),n.xp6(1),n.Q6J("ngIf",r.tabsAtBottom),n.xp6(5),n.Q6J("ngIf",r.isScrollable))},dependencies:function(){return[gt,Bt,Ge,Pi,uo,Bs,BK,Mm,N6]},encapsulation:2,data:{animation:[Tp("state",[Ad("active",Kt({opacity:1})),Dc("* => active",[Kt({opacity:0}),Wi("400ms ease-in")])])]}}),se([(0,n.IIB)(),Q("design:type",String),Q("design:paramtypes",[String])],i.prototype,"height",null),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"animate",void 0),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"tabAlignment",void 0),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"tabPosition",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"keepTabContent",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"closable",void 0),se([(0,n.IIB)(),Q("design:type",Object),Q("design:paramtypes",[Object])],i.prototype,"scrollable",null),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"closeIcon",void 0),se([(0,n.r_U)(),Q("design:type",n.vpe)],i.prototype,"tabSelect",void 0),se([(0,n.r_U)(),Q("design:type",n.vpe)],i.prototype,"tabClose",void 0),se([(0,n.r_U)(),Q("design:type",n.vpe)],i.prototype,"tabScroll",void 0),se([(0,n.pfw)("class.k-tabstrip"),(0,n.pfw)("class.k-floatwrap"),Q("design:type",Boolean)],i.prototype,"hostClasses",void 0),se([(0,n.pfw)("class.k-tabstrip-top"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"tabsAtTop",null),se([(0,n.pfw)("class.k-tabstrip-right"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"tabsAtRight",null),se([(0,n.pfw)("class.k-tabstrip-bottom"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"tabsAtBottom",null),se([(0,n.pfw)("class.k-tabstrip-left"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"tabsAtLeft",null),se([(0,n.pfw)("attr.dir"),Q("design:type",String),Q("design:paramtypes",[])],i.prototype,"dir",null),se([(0,n.pfw)("class.k-tabstrip-scrollable"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"tabStripScrollable",null),se([(0,n.AcB)(wm),Q("design:type",n.n_E)],i.prototype,"tabs",void 0),se([(0,n.i9L)("tablist",{static:!1}),Q("design:type",n.SBq)],i.prototype,"tablist",void 0),se([(0,n.vR)("tabHeaderContainer",{read:n.SBq}),Q("design:type",n.n_E)],i.prototype,"tabHeaderContainers",void 0),se([(0,n.i9L)("prevScrollButton",{static:!1}),Q("design:type",N6)],i.prototype,"prevScrollButton",void 0),se([(0,n.i9L)("nextScrollButton",{static:!1}),Q("design:type",N6)],i.prototype,"nextScrollButton",void 0),i=se([Q("design:paramtypes",[Te,n.Qsj,n.SBq,qT,JT,n.R0b])],i),i})(),L6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{closeTitle:"closeTitle"},features:[n.qOj]}),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"closeTitle",void 0),i})();var aB;let Mm=aB=class extends L6{constructor(o){super(),this.service=o}};var sB;Mm.\u0275fac=function(o){return new(o||Mm)(n.Y36(Te))},Mm.\u0275dir=n.lG2({type:Mm,selectors:[["","kendoTabStripLocalizedMessages",""]],features:[n._Bn([{provide:L6,useExisting:(0,n.Gpc)(()=>aB)}]),n.qOj]}),Mm=aB=se([Q("design:paramtypes",[Te])],Mm);let w0=sB=class extends L6{constructor(o){super(),this.service=o}get override(){return!0}};w0.\u0275fac=function(o){return new(o||w0)(n.Y36(Te))},w0.\u0275cmp=n.Xpm({type:w0,selectors:[["kendo-tabstrip-messages"]],features:[n._Bn([{provide:L6,useExisting:(0,n.Gpc)(()=>sB)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),w0=sB=se([Q("design:paramtypes",[Te])],w0);const eh={};eh[Ie.ArrowLeft]="left",eh[Ie.ArrowRight]="right",eh[Ie.ArrowUp]="up",eh[Ie.ArrowDown]="down",eh[Ie.Home]="home",eh[Ie.End]="end",eh[Ie.Enter]="enter",eh[Ie.Space]="enter";const lB=Object.assign({},eh);lB[Ie.ArrowLeft]="right",lB[Ie.ArrowRight]="left";let Z6=(()=>{class i extends Xa{}return i.\u0275fac=function(){let o;return function(r){return(o||(o=n.n5z(i)))(r||i)}}(),i.\u0275dir=n.lG2({type:i,inputs:{optional:"optional"},features:[n.qOj]}),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"optional",void 0),i})();var cB;let k0=cB=class extends Z6{constructor(o){super(),this.service=o}get override(){return!0}};var dB;k0.\u0275fac=function(o){return new(o||k0)(n.Y36(Te))},k0.\u0275cmp=n.Xpm({type:k0,selectors:[["kendo-stepper-messages"]],features:[n._Bn([{provide:Z6,useExisting:(0,n.Gpc)(()=>cB)}]),n.qOj],decls:0,vars:0,template:function(o,t){},encapsulation:2}),k0=cB=se([Q("design:paramtypes",[Te])],k0);let Dm=dB=class extends Z6{constructor(o){super(),this.service=o}};Dm.\u0275fac=function(o){return new(o||Dm)(n.Y36(Te))},Dm.\u0275dir=n.lG2({type:Dm,selectors:[["","kendoStepperLocalizedMessages",""]],features:[n._Bn([{provide:Z6,useExisting:(0,n.Gpc)(()=>dB)}]),n.qOj]}),Dm=dB=se([Q("design:paramtypes",[Te])],Dm);let BK=(()=>{let i=class{constructor(t,r){this.localization=t,this.tabstripService=r,this.hostClasses=!0}get activeClass(){return this.tab.selected}get disabledClass(){return this.tab.disabled}get focusedClass(){return this.tab.focused}get tabIndex(){return this.tab.selected||this.tab.focused?0:-1}get tabClosable(){return void 0!==this.tab.closable?this.tab.closable:this.tabStripClosable}get closeButtonClasses(){return Ar(this.tab.closeIcon)?this.tab.closeIcon:this.tabStripCloseIcon}get closeButtonTitle(){return this.localization.get("closeTitle")}closeTab(t){this.tabstripService.onTabClose(this.tab,t)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(Te),n.Y36(qT))},i.\u0275cmp=n.Xpm({type:i,selectors:[["","kendoTabStripTab",""]],hostVars:13,hostBindings:function(t,r){2&t&&(n.uIk("aria-selected",r.activeClass)("aria-disabled",r.disabledClass)("tabindex",r.tabIndex),n.ekj("k-item",r.hostClasses)("k-state-default",r.hostClasses)("k-state-active",r.activeClass)("k-state-disabled",r.disabledClass)("k-state-focused",r.focusedClass))},inputs:{tab:"tab",index:"index",tabStripClosable:"tabStripClosable",tabStripCloseIcon:"tabStripCloseIcon"},attrs:r5e,decls:3,vars:3,consts:[["class","k-link",4,"ngIf"],["class","k-remove-tab k-button k-icon-button k-flat","role","button",3,"title","click",4,"ngIf"],[1,"k-link"],[3,"ngTemplateOutlet"],["role","button",1,"k-remove-tab","k-button","k-icon-button","k-flat",3,"title","click"],[3,"ngClass"]],template:function(t,r){1&t&&(n.YNc(0,a5e,2,1,"span",0),n.YNc(1,l5e,2,1,"span",0),n.YNc(2,c5e,2,3,"span",1)),2&t&&(n.Q6J("ngIf",!r.tab.tabTitle),n.xp6(1),n.Q6J("ngIf",r.tab.tabTitle),n.xp6(1),n.Q6J("ngIf",r.tabClosable))},dependencies:[gt,Ge,Pi],encapsulation:2}),se([(0,n.IIB)(),Q("design:type",wm)],i.prototype,"tab",void 0),se([(0,n.IIB)(),Q("design:type",Number)],i.prototype,"index",void 0),se([(0,n.IIB)(),Q("design:type",Boolean)],i.prototype,"tabStripClosable",void 0),se([(0,n.IIB)(),Q("design:type",String)],i.prototype,"tabStripCloseIcon",void 0),se([(0,n.pfw)("class.k-item"),(0,n.pfw)("class.k-state-default"),Q("design:type",Boolean)],i.prototype,"hostClasses",void 0),se([(0,n.pfw)("attr.aria-selected]"),(0,n.pfw)("class.k-state-active"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"activeClass",null),se([(0,n.pfw)("attr.aria-disabled]"),(0,n.pfw)("class.k-state-disabled"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"disabledClass",null),se([(0,n.pfw)("class.k-state-focused"),Q("design:type",Boolean),Q("design:paramtypes",[])],i.prototype,"focusedClass",null),se([(0,n.pfw)("attr.tabindex"),Q("design:type",Number),Q("design:paramtypes",[])],i.prototype,"tabIndex",null),i=se([Q("design:paramtypes",[Te,qT])],i),i})(),HK=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt,cg]}),i})(),q6=(()=>{class i{constructor(t){this.el=t}validate(t){const r=this.pagseguro.pedido,s=this.pagseguro.exigeCartao;let y=null;if(s&&!r.pagamento.dadosCartao)y={dados_cartao_obrigatorio:"dados_cartao_obrigatorio"};else if(s&&r.entrega.formaDeEntrega){const A=r.pagamento.dadosCartao;this.pagseguro.exigeEndereco&&A&&r.entrega.formaDeEntrega===wo.RETIRAR&&!A.endereco&&(y={endereco_obrigatorio:"endereco_obrigatorio"})}return y}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","pagseguro","","ngModel",""]],inputs:{pagseguro:"pagseguro"},features:[n._Bn([{provide:Ui,useExisting:i,multi:!0}])]}),i})();function QNe(i,o){if(1&i&&(n.TgZ(0,"span",18)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}function WNe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",13),n._UZ(1,"img",14),n.TgZ(2,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.alterouFormaDePagamentoParaPix())}),n.qZA(),n.TgZ(3,"label",16),n._uU(4," PIX "),n.YNc(5,QNe,3,1,"span",17),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(2),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pedido.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(2),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa)}}function KNe(i,o){1&i&&(n.TgZ(0,"div",19)(1,"p"),n._uU(2,"Escolha a forma de pagamengo do seu pedido"),n.qZA()())}function XNe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function e8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function t8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",28)(1,"h5"),n._uU(2,"Informe seu Cpf"),n.qZA(),n.TgZ(3,"div",29)(4,"input",30,31),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.dadosPix.cpf=s)}),n.qZA(),n.TgZ(7,"div",19),n.YNc(8,XNe,2,0,"p",27),n.YNc(9,e8e,2,0,"p",27),n.qZA()()()}if(2&i){const t=n.MAs(6),r=n.oxw(5);n.xp6(4),n.Q6J("ngModel",r.pedido.pagamento.dadosPix.cpf),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.cpfInvalido)}}function n8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1," Para pagamentos pix voc\xea deve informar seu email. Caso aconte\xe7a algum problema, usaremos esse email para te contactar. "),n.qZA())}function i8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um email v\xe1lido."),n.qZA())}function o8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",20)(1,"div",21),n.YNc(2,t8e,10,3,"div",22),n.TgZ(3,"div",23)(4,"h5"),n._uU(5,"Informe seu Email"),n.qZA(),n.TgZ(6,"div",24)(7,"input",25,26),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.dadosPix.email=s)}),n.qZA(),n.TgZ(10,"div",19),n.YNc(11,n8e,2,0,"p",27),n.YNc(12,i8e,2,0,"p",27),n.qZA()()()()()}if(2&i){const t=n.MAs(9),r=n.oxw(4);n.xp6(2),n.Q6J("ngIf",r.pedirCpfNoPix()),n.xp6(5),n.Q6J("required",!0)("ngModel",r.pedido.pagamento.dadosPix.email),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.email)}}function r8e(i,o){if(1&i&&(n.TgZ(0,"div",9),n.YNc(1,WNe,6,6,"span",10),n.YNc(2,KNe,3,0,"div",11),n.YNc(3,o8e,13,5,"div",12),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoPix),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.formaDePagamento),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.formaDePagamento&&t.pedido.pagamento.formaDePagamento.pix)}}function a8e(i,o){if(1&i&&(n.TgZ(0,"span",37),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"% taxa)")}}function s8e(i,o){1&i&&(n.TgZ(0,"div",19)(1,"p"),n._uU(2,"Para retirada, voc\xea deve preencher o endere\xe7o do dono do cart\xe3o de cr\xe9dito"),n.qZA()())}function l8e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,s8e,3,0,"div",11),n.BQk()),2&i){n.oxw();const t=n.MAs(4);n.xp6(1),n.Q6J("ngIf",null==t||null==t.errors?null:t.errors.endereco_obrigatorio)}}function c8e(i,o){1&i&&(n.TgZ(0,"div",19)(1,"p"),n._uU(2,"Voc\xea deve informar os dados do cart\xe3o de cr\xe9dito para fazer o pedido."),n.qZA()())}const d8e=function(i){return{selecionado:i}},u8e=function(i,o,t){return{pedido:i,exigeCartao:o,dadosCartao:t}};function p8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"span",32),n._UZ(2,"i",33),n.TgZ(3,"input",34,35),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.escolheuFormaDePagamentoOnline(l))}),n.qZA(),n.TgZ(5,"label",16),n._uU(6),n.YNc(7,a8e,2,1,"span",36),n.qZA()(),n.YNc(8,l8e,2,1,"ng-container",27),n.YNc(9,c8e,3,0,"div",11),n.qZA()}if(2&i){const t=o.$implicit,r=n.MAs(4),s=n.oxw(3);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido))("ngClass",n.VKq(12,d8e,(null==s.pedido.pagamento||null==s.pedido.pagamento.formaDePagamento?null:s.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(2),n.MGl("id","formaPagamento",t.id,""),n.Q6J("ngModel",s.pedido.pagamento.formaDePagamento)("value",t)("required",!0)("pagseguro",n.kEZ(14,u8e,s.pedido,s.exigeCartao,s.dadosCartao)),n.xp6(2),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij("",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",r.errors),n.xp6(1),n.Q6J("ngIf",null==r||null==r.errors?null:r.errors.dados_cartao_obrigatorio)}}function h8e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n._UZ(1,"i",39),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"button",40),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.trocarCartao())}),n._UZ(5,"i",41),n._uU(6," Trocar Cart\xe3o"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(4);n.xp6(3),n.hij("\xa0 ************",t.pedido.pagamento.dadosCartao.ultimosNumeros,"")}}function g8e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",42),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.trocarCartao())}),n._UZ(2,"i",41),n._uU(3," Adicionar Cart\xe3o"),n.qZA(),n.BQk()}}function f8e(i,o){if(1&i&&(n.TgZ(0,"div",38),n.YNc(1,h8e,7,1,"ng-container",27),n.YNc(2,g8e,4,0,"ng-container",27),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.dadosCartao),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.dadosCartao&&t.pedido.entrega.formaDeEntrega)}}function m8e(i,o){if(1&i&&(n.TgZ(0,"div",4),n.YNc(1,r8e,4,3,"div",5),n.TgZ(2,"div",6),n.YNc(3,p8e,10,18,"div",7),n.YNc(4,f8e,3,2,"div",8),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.formasDePagamentoPix.length>0&&t.estaHabilitado(t.formasDePagamentoPix[0],t.pedido)),n.xp6(2),n.Q6J("ngForOf",t.formasDePagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento&&t.exigeCartao&&!t.pedido.pagamento.formaDePagamento.pix)}}function _8e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",2),n.YNc(1,m8e,5,3,"ng-template",3),n.qZA()),2&i){const t=n.oxw();n.Q6J("title","Pagar pelo site")("selected",0===t.tabSelect)}}function b8e(i,o){if(1&i&&(n.TgZ(0,"span",18)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}function v8e(i,o){if(1&i&&(n.TgZ(0,"span",18)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("-",t.desconto,"% de desconto")}}function y8e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",47)(2,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.alterouFormaDePagamento())}),n.qZA(),n.TgZ(3,"label",16),n._uU(4),n.YNc(5,b8e,3,1,"span",17),n.YNc(6,v8e,3,1,"span",17),n.qZA()(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(1),n.Q6J("hidden",!r.estaHabilitado(t,r.pedido)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij("",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0)}}function C8e(i,o){1&i&&(n.TgZ(0,"div",19)(1,"p"),n._uU(2,"Escolha a forma de pagamengo do seu pedido"),n.qZA()())}function A8e(i,o){1&i&&(n.TgZ(0,"div",19),n._uU(1," Informe se vai precisar de troco. "),n.qZA())}function x8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",48)(1,"h5",49),n._uU(2,"Vai precisar de troco? "),n.qZA(),n.TgZ(3,"div",50)(4,"input",51),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.pagamento.temTroco=s)}),n.qZA(),n.TgZ(5,"label",52),n._uU(6,"\xa0Sim"),n.qZA(),n.TgZ(7,"input",53),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.pagamento.temTroco=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.precisaDeTroco(!1))}),n.qZA(),n.TgZ(8,"label",54),n._uU(9,"\xa0N\xe3o"),n.qZA(),n.YNc(10,A8e,2,0,"div",11),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(4),n.Q6J("ngModel",t.pedido.pagamento.temTroco)("required","dinheiro"===(null==t.pedido.pagamento?null:t.pedido.pagamento.formaDePagamento.nome)),n.xp6(3),n.Q6J("ngModel",t.pedido.pagamento.temTroco)("required","dinheiro"===(null==t.pedido.pagamento?null:t.pedido.pagamento.formaDePagamento.nome)),n.xp6(3),n.Q6J("ngIf",!t.pedido.pagamento.temTroco)}}function T8e(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.hij(" A nota tem que ser maior que ",n.xi3(2,1,t.obtenhaTotalPagar(),"R$"),"")}}const S8e=function(){return{prefix:"R$ ",thousands:".",decimal:",",align:"left"}};function w8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",55)(1,"div",29)(2,"h5",56),n._uU(3,"Troco para quanto? "),n.qZA(),n.TgZ(4,"input",57,58),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.calculeTroco(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.pagamento.trocoPara=s)}),n.qZA(),n.TgZ(6,"div",19),n.YNc(7,T8e,3,4,"p",27),n.qZA()()()}if(2&i){const t=n.MAs(5),r=n.oxw(3);n.xp6(4),n.s9C("trocoMinimo",r.obtenhaTotalPagar()),n.Q6J("ngModel",r.pedido.pagamento.trocoPara)("options",n.DdM(4,S8e)),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.trocoMinimo)}}function M8e(i,o){if(1&i&&(n.TgZ(0,"div",66)(1,"div",61)(2,"h4",62)(3,"span"),n._uU(4,"Troco"),n.qZA()()(),n.TgZ(5,"h4",67),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(4);n.xp6(5),n.ekj("negativo",t.pedido.troco<0),n.xp6(1),n.Oqu(n.xi3(7,3,t.pedido.troco,"BRL"))}}function D8e(i,o){if(1&i&&(n.TgZ(0,"div",59)(1,"div",60)(2,"div",61)(3,"h5",62)(4,"span"),n._uU(5,"dinheiro"),n.qZA()()(),n.TgZ(6,"h5",63),n._uU(7),n.ALo(8,"currency"),n.qZA()(),n.YNc(9,M8e,8,6,"div",64),n._UZ(10,"hr",65),n.qZA()),2&i){const t=n.oxw(3);n.xp6(7),n.Oqu(n.xi3(8,2,t.pagamento.trocoPara,"BRL")),n.xp6(2),n.Q6J("ngIf",t.pagamento.trocoPara>0)}}function k8e(i,o){if(1&i&&(n.TgZ(0,"div",43),n.YNc(1,y8e,7,9,"ng-container",7),n.YNc(2,C8e,3,0,"div",11),n.qZA(),n.YNc(3,x8e,11,5,"div",44),n.YNc(4,w8e,8,5,"div",45),n.YNc(5,D8e,11,5,"div",46)),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamento),n.xp6(1),n.Q6J("ngIf",!t.pagamento.formaDePagamento),n.xp6(1),n.Q6J("ngIf","dinheiro"===(null==t.pedido.pagamento||null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.nome)),n.xp6(1),n.Q6J("ngIf","dinheiro"===(null==t.pedido.pagamento||null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.nome)&&"sim"===t.pedido.pagamento.temTroco),n.xp6(1),n.Q6J("ngIf",t.pedido.troco&&"dinheiro"===t.pagamento.formaDePagamento.nome)}}function I8e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",2),n.YNc(1,k8e,6,5,"ng-template",3),n.qZA()),2&i){const t=n.oxw();n.Q6J("title","Pagar na entrega")("selected",1===t.tabSelect)}}let E8e=(()=>{class i extends XW{constructor(t,r,s,l,u){super(t,r,s,l,u),this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Na),n.Y36(zo),n.Y36(Oi),n.Y36(n.z2F),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-formaspagamento-mobile"]],features:[n._Bn([],[{provide:fa,useExisting:Zo}]),n.qOj],decls:3,vars:2,consts:[["id","tabs","name","tabs",1,"nav-bordered",3,"tabSelect"],[3,"title","selected",4,"ngIf"],[3,"title","selected"],["kendoTabContent",""],[1,"row","escolher"],["class","form-group   mt-2  col-12",4,"ngIf"],[1,"form-group","col-12"],[4,"ngFor","ngForOf"],["class","col-12 mt-2 ",4,"ngIf"],[1,"form-group","mt-2","col-12"],["class","mr-3 radio radio-blue mb-1 auto",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["class","row mt-2",4,"ngIf"],[1,"mr-3","radio","radio-blue","mb-1","auto"],["src","https://user-images.githubusercontent.com/33992396/99478353-00e4d600-2933-11eb-8228-4bafe8571507.png",1,"mr-1",2,"width","32px"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","ngModelChange"],[1,"ml-1","d-inline",3,"for"],["class","text-muted float-right",4,"ngIf"],[1,"text-muted","float-right"],[1,"invalid-feedback"],[1,"row","mt-2"],[1,"ml-3","col"],["class","form-group","style","max-width: 200px",4,"ngIf"],[1,"form-group",2,"max-width","350px"],[1,"input-group"],["id","emailPix","name","emailPix","email","true","type","email","placeholder","Informe seu email",1,"form-control",3,"required","ngModel","ngModelChange"],["txtEmailPix","","emailPix","ngModel"],[4,"ngIf"],[1,"form-group",2,"max-width","200px"],[1,"form-group"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["txtCpfPix","","cpf","ngModel"],[1,"radio","radio-blue",3,"hidden","ngClass"],["aria-hidden","true",1,"fa","fa-credit-card","text-blue","fa-2x","mr-1",2,"top","5px","position","relative"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","pagseguro","ngModelChange"],["rdFormaDePagamento","ngModel"],["class","text-muted font-11 ml-1 d-inline",4,"ngIf"],[1,"text-muted","font-11","ml-1","d-inline"],[1,"col-12","mt-2"],[1,"fas","fa-credit-card","font-16"],["type","button",1,"btn","ml-1","btn-blue",3,"click"],[1,"far","fa-credit-card","mr-1","fa-lg"],["type","button",1,"btn","btn-blue",3,"click"],[1,"form-group","mb-2","mt-2","escolher"],["class","mt-2",4,"ngIf"],["id","divTroco",4,"ngIf"],["class","produto pt-0 pb-2",4,"ngIf"],[1,"radio","radio-blue","mb-2",3,"hidden"],[1,"mt-2"],[1,"d-inline"],[1,"form-group","mb-2","ml-3","mt-2","radio","radio-blue"],["id","trocoSim","name","temTroco","type","radio","kendoRadioButton","","value","sim",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoSim",1,"mr-4"],["id","trocoNao","name","temTroco","type","radio","kendoRadioButton","","value","nao",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoNao",1,"ml-1"],["id","divTroco"],["for","trocoParaM"],["id","trocoParaM","name","trocoParaM","type","text","inputmode","decimal","appSelecionarNoFoco","","currencyMask","",1,"form-control","troco",3,"trocoMinimo","ngModel","options","ngModelChange"],["txtTrocoM","ngModel"],[1,"produto","pt-0","pb-2"],[1,"media","mt-0"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"mt-0"],["class","media mt-1",4,"ngIf"],[1,"linha"],[1,"media","mt-1"],[1,"mt-0","preco"]],template:function(t,r){1&t&&(n.TgZ(0,"kendo-tabstrip",0),n.NdJ("tabSelect",function(l){return r.alterouTipoPagamento(l)}),n.YNc(1,_8e,2,2,"kendo-tabstrip-tab",1),n.YNc(2,I8e,2,2,"kendo-tabstrip-tab",1),n.qZA()),2&t&&(n.xp6(1),n.Q6J("ngIf",r.temPagamentoOnline()),n.xp6(1),n.Q6J("ngIf",r.formasDePagamento.length))},dependencies:[gt,Bt,Ge,wi,tc,ti,Lo,b1,ni,ja,Fu,aa,io,QT,wm,S0,jF,Yu,FE,q6,Jo],styles:[".mobile[_ngcontent-%COMP%]   .btn-block[_ngcontent-%COMP%]{padding:1em 0}.form-control[_ngcontent-%COMP%]{border-radius:2px}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}.radio.mb-1[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.preco[_ngcontent-%COMP%]{color:#6db31b}.negativo[_ngcontent-%COMP%]{color:#c40e34}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{top:3px;position:relative}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:30px}}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:75px;display:inline-block}.k-checkbox[_ngcontent-%COMP%]{width:22px;height:22px}.k-radio[_ngcontent-%COMP%]:checked, .k-checkbox[_ngcontent-%COMP%]:checked{border-color:#7e57c2;color:#fff;background-color:#7e57c2}.k-radio[_ngcontent-%COMP%]:checked:focus, .k-checkbox[_ngcontent-%COMP%]:checked:focus{box-shadow:0 0 0 2px #7e57c24d}.k-radio[_ngcontent-%COMP%]{width:22px;height:22px}.k-checkbox[_ngcontent-%COMP%]:before{width:18px;height:18px;font-size:18px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.borda-pontilhada[_ngcontent-%COMP%]{border-bottom:2px dashed #ccc}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}h5[_ngcontent-%COMP%]{font-size:1rem}.logo-plano[_ngcontent-%COMP%]{max-height:35px;top:5px;position:relative}.logo-plano.gendai[_ngcontent-%COMP%]{max-width:60px;top:14px}.formas[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{margin-bottom:.5rem!important;padding:10px 20px;border:1px solid #ccc;border-radius:6px}.chinainbox[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}"]}),i})();function P8e(i,o){1&i&&(n.TgZ(0,"div",12),n._uU(1," Informe se vai precisar de troco. "),n.qZA())}function O8e(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" A nota tem que ser maior que ",n.xi3(2,1,t.obtenhaTotalPagar(),"R$"),"")}}const N8e=function(){return{prefix:"R$ ",thousands:".",decimal:",",align:"left"}};function L8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",13)(1,"div",14)(2,"h5",15),n._uU(3,"Troco para quanto? "),n.qZA(),n.TgZ(4,"input",16,17),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.calculeTroco(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pagamento.trocoPara=s)}),n.qZA(),n.TgZ(6,"div",12),n.YNc(7,O8e,3,4,"p",18),n.qZA()()()}if(2&i){const t=n.MAs(5),r=n.oxw(2);n.xp6(4),n.s9C("trocoMinimo",r.obtenhaTotalPagar()),n.Q6J("ngModel",r.pagamento.trocoPara)("options",n.DdM(4,N8e)),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.trocoMinimo)}}function R8e(i,o){if(1&i&&(n.TgZ(0,"div",26)(1,"div",21)(2,"h4",22)(3,"span"),n._uU(4,"Troco"),n.qZA()()(),n.TgZ(5,"h4",27),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(5),n.ekj("negativo",t.pedido.troco<0),n.xp6(1),n.Oqu(n.xi3(7,3,t.pedido.troco,"BRL"))}}function F8e(i,o){if(1&i&&(n.TgZ(0,"div",19)(1,"div",20)(2,"div",21)(3,"h5",22)(4,"span"),n._uU(5,"dinheiro"),n.qZA()()(),n.TgZ(6,"h5",23),n._uU(7),n.ALo(8,"currency"),n.qZA()(),n.YNc(9,R8e,8,6,"div",24),n._UZ(10,"hr",25),n.qZA()),2&i){const t=n.oxw(2);n.xp6(7),n.Oqu(n.xi3(8,2,t.pagamento.trocoPara,"BRL")),n.xp6(2),n.Q6J("ngIf",t.pagamento.trocoPara>0)}}function B8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",1)(1,"div",2)(2,"h5",3),n._uU(3,"Vai precisar de troco? "),n.qZA(),n.TgZ(4,"div",4)(5,"input",5),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pagamento.temTroco=s)}),n.qZA(),n.TgZ(6,"label",6),n._uU(7,"\xa0Sim"),n.qZA(),n.TgZ(8,"input",7),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pagamento.temTroco=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.precisaDeTroco(!1))}),n.qZA(),n.TgZ(9,"label",8),n._uU(10,"\xa0N\xe3o"),n.qZA(),n.YNc(11,P8e,2,0,"div",9),n.qZA()(),n.YNc(12,L8e,8,5,"div",10),n.YNc(13,F8e,11,5,"div",11),n.qZA()}if(2&i){const t=n.oxw();n.xp6(5),n.Q6J("ngModel",t.pagamento.temTroco)("required",!0),n.xp6(3),n.Q6J("ngModel",t.pagamento.temTroco)("required",!0),n.xp6(3),n.Q6J("ngIf",!t.pagamento.temTroco),n.xp6(1),n.Q6J("ngIf","sim"===t.pagamento.temTroco),n.xp6(1),n.Q6J("ngIf",t.pedido.troco)}}let YK=(()=>{class i{constructor(){this.pagamento={},this.pedido={}}precisaDeTroco(t){t||(this.pagamento.trocoPara=null)}calculeTroco(t){this.pedido.pagamento=this.pagamento,setTimeout(()=>{this.pedido.calculeTroco()},0)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-troco-loja"]],inputs:{pagamento:"pagamento",pedido:"pedido",obtenhaTotalPagar:"obtenhaTotalPagar"},features:[n._Bn([],[{provide:fa,useExisting:Zo}])],decls:1,vars:1,consts:[["class","ml-2",4,"ngIf"],[1,"ml-2"],[1,"mt-2"],[1,"d-inline"],[1,"form-group","mb-2","ml-3","mt-2","radio","radio-blue"],["id","trocoSim","name","temTroco","type","radio","kendoRadioButton","","value","sim",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoSim",1,"mr-4"],["id","trocoNao","name","temTroco","type","radio","kendoRadioButton","","value","nao",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoNao",1,"ml-1"],["class","invalid-feedback",4,"ngIf"],["id","divTroco",4,"ngIf"],["class","produto pt-0 pb-2",4,"ngIf"],[1,"invalid-feedback"],["id","divTroco"],[1,"form-group"],["for","trocoParaM"],["id","trocoParaM","name","trocoParaM","type","text","inputmode","decimal","appSelecionarNoFoco","","currencyMask","",1,"form-control","troco",2,"width","160px",3,"trocoMinimo","ngModel","options","ngModelChange"],["txtTrocoM","ngModel"],[4,"ngIf"],[1,"produto","pt-0","pb-2"],[1,"media","mt-0"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"mt-0"],["class","media mt-1",4,"ngIf"],[1,"linha"],[1,"media","mt-1"],[1,"mt-0","preco"]],template:function(t,r){1&t&&n.YNc(0,B8e,14,7,"div",0),2&t&&n.Q6J("ngIf","dinheiro"===(null==r.pagamento.formaDePagamento?null:r.pagamento.formaDePagamento.nome))},dependencies:[Ge,wi,tc,ti,Lo,ni,Fu,aa,io,jF,FE,Jo],styles:["#divTroco[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}"]}),i})();const H8e=["svg"],$8e=["img"];function U8e(i,o){if(1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",3),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.s9C("alt",t.textoString),n.Q6J("src",t.bandeira.imagemUrl,n.LSH)}}let jK=(()=>{class i{constructor(t,r,s,l){this.el=t,this.app=r,this.cd=s,this.sanitizer=l}ngOnChanges(t){if(this.bandeira)if(this.textoString=this.descricao?this.descricao:this.bandeira.nome,this.bandeira.imagem&&this.bandeira.imagem.indexOf("svg")>=0){this.svg.nativeElement.innerHTML=this.bandeira.imagem;const r=this.el.nativeElement.querySelector("svg");r&&(r.style.maxWidth="30px",r.style.maxHeight="20px")}else this.bandeira.imagemUrl=this.bandeira.imagem}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.z2F),n.Y36(n.sBO),n.Y36(rd))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-bandeira-logo"]],viewQuery:function(t,r){if(1&t&&(n.Gf(H8e,7),n.Gf($8e,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.svg=s.first),n.iGM(s=n.CRH())&&(r.img=s.first)}},inputs:{bandeira:"bandeira",descricao:"descricao"},features:[n.TTD],decls:6,vars:2,consts:[["svg",""],[4,"ngIf"],[1,"ml-2","k-display-inline-block","cpointer"],[2,"max-width","30px","max-height","20px",3,"src","alt"]],template:function(t,r){1&t&&(n._UZ(0,"span",null,0),n.YNc(2,U8e,2,2,"span",1),n.TgZ(3,"span",2)(4,"b"),n._uU(5),n.qZA()()),2&t&&(n.xp6(2),n.Q6J("ngIf",r.bandeira.imagemUrl&&" "!=r.bandeira.imagemUrl),n.xp6(3),n.Oqu(r.textoString))},dependencies:[Ge],encapsulation:2,changeDetection:0}),i})();function Y8e(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}function j8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",14)(1,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.alterouFormaDePagamentoParaPix())}),n.qZA(),n._UZ(2,"img",16),n.TgZ(3,"label",17),n._uU(4," PIX "),n.YNc(5,Y8e,3,1,"span",18),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pedido.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(2),n.MGl("for","formaPagamento",t.id,""),n.xp6(2),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa)}}function Z8e(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Escolha a forma de pagamengo do seu pedido"),n.qZA()())}function V8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function z8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function G8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",29)(1,"h5"),n._uU(2,"Informe seu Cpf"),n.qZA(),n.TgZ(3,"div",30)(4,"input",31,32),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.dadosPix.cpf=s)}),n.qZA(),n.TgZ(7,"div",20),n.YNc(8,V8e,2,0,"p",28),n.YNc(9,z8e,2,0,"p",28),n.qZA()()()}if(2&i){const t=n.MAs(6),r=n.oxw(5);n.xp6(4),n.Q6J("ngModel",r.pedido.pagamento.dadosPix.cpf),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.cpfInvalido)}}function q8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1," Para pagamentos pix voc\xea deve informar seu email. Caso aconte\xe7a algum problema, usaremos esse email para te contactar. "),n.qZA())}function J8e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um email v\xe1lido."),n.qZA())}function Q8e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",21)(1,"div",22),n.YNc(2,G8e,10,3,"div",23),n.TgZ(3,"div",24)(4,"h5"),n._uU(5,"Informe seu Email"),n.qZA(),n.TgZ(6,"div",25)(7,"input",26,27),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.dadosPix.email=s)}),n.qZA(),n.TgZ(10,"div",20),n.YNc(11,q8e,2,0,"p",28),n.YNc(12,J8e,2,0,"p",28),n.qZA()()()()()}if(2&i){const t=n.MAs(9),r=n.oxw(4);n.xp6(2),n.Q6J("ngIf",r.pedirCpfNoPix()),n.xp6(5),n.Q6J("required",!0)("ngModel",r.pedido.pagamento.dadosPix.email),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.email)}}function W8e(i,o){if(1&i&&(n.TgZ(0,"div",10),n.YNc(1,j8e,6,6,"span",11),n.YNc(2,Z8e,3,0,"div",12),n.YNc(3,Q8e,13,5,"div",13),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoPix),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.formaDePagamento),n.xp6(1),n.Q6J("ngIf",null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.pix)}}function K8e(i,o){if(1&i&&(n.TgZ(0,"span",38),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"% taxa)")}}function X8e(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Para retirada, voc\xea deve preencher o endere\xe7o do dono do cart\xe3o de cr\xe9dito"),n.qZA()())}function e9e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,X8e,3,0,"div",12),n.BQk()),2&i){n.oxw();const t=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null==t||null==t.errors?null:t.errors.endereco_obrigatorio)}}function t9e(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Voc\xea deve informar os dados do cart\xe3o de cr\xe9dito para fazer o pedido."),n.qZA()())}const n9e=function(i){return{selecionado:i}},i9e=function(i,o,t){return{pedido:i,exigeCartao:o,dadosCartao:t}};function o9e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"span",33)(2,"input",34,35),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.escolheuFormaDePagamentoOnline(l))}),n.qZA(),n._UZ(4,"i",36),n.TgZ(5,"label",17),n._uU(6),n.YNc(7,K8e,2,1,"span",37),n.qZA()(),n.YNc(8,e9e,2,1,"ng-container",28),n.YNc(9,t9e,3,0,"div",12),n.qZA()}if(2&i){const t=o.$implicit,r=n.MAs(3),s=n.oxw(3);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido))("ngClass",n.VKq(12,n9e,(null==s.pedido.pagamento||null==s.pedido.pagamento.formaDePagamento?null:s.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.MGl("id","formaPagamento",t.id,""),n.Q6J("ngModel",s.pedido.pagamento.formaDePagamento)("value",t)("required",!0)("pagseguro",n.kEZ(14,i9e,s.pedido,s.exigeCartao,s.dadosCartao)),n.xp6(3),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij("",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",r.errors),n.xp6(1),n.Q6J("ngIf",null==r||null==r.errors?null:r.errors.dados_cartao_obrigatorio)}}function r9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n._UZ(1,"i",40),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"button",41),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.trocarCartao())}),n._UZ(5,"i",42),n._uU(6," Trocar Cart\xe3o"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(4);n.xp6(3),n.hij("\xa0 ************",t.pedido.pagamento.dadosCartao.ultimosNumeros,"")}}function a9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",43),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.trocarCartao())}),n._UZ(2,"i",42),n._uU(3," Adicionar Cart\xe3o"),n.qZA(),n.BQk()}}function s9e(i,o){if(1&i&&(n.TgZ(0,"div",39),n.YNc(1,r9e,7,1,"ng-container",28),n.YNc(2,a9e,4,0,"ng-container",28),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.dadosCartao),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.dadosCartao&&t.pedido.entrega.formaDeEntrega)}}function l9e(i,o){if(1&i&&(n.TgZ(0,"div",5),n.YNc(1,W8e,4,3,"div",6),n.TgZ(2,"div",7),n.YNc(3,o9e,10,18,"div",8),n.YNc(4,s9e,3,2,"div",9),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.formasDePagamentoPix.length>0&&t.estaHabilitado(t.formasDePagamentoPix[0],t.pedido)),n.xp6(2),n.Q6J("ngForOf",t.formasDePagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento&&t.exigeCartao&&!(null!=t.pedido.pagamento.formaDePagamento&&t.pedido.pagamento.formaDePagamento.pix))}}function c9e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",3),n.YNc(1,l9e,5,3,"ng-template",4),n.qZA()),2&i){const t=n.oxw();n.Q6J("title",null!=t.formasDePagamentoManual&&t.formasDePagamentoManual.length?"Pelo site":"Pagar pelo site")("selected",0===t.tabSelect)}}function d9e(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}function u9e(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("-",t.desconto,"% de desconto")}}function p9e(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-troco-loja",47),n.BQk()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("obtenhaTotalPagar",t.obtenhaTotalPagar)("pagamento",t.pagamento)("pedido",t.pedido)}}function h9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",45)(2,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.alterouFormaDePagamento())}),n.qZA(),n.TgZ(3,"label",17),n._UZ(4,"app-loja-bandeira-logo",46),n.YNc(5,d9e,3,1,"span",18),n.YNc(6,u9e,3,1,"span",18),n.qZA(),n.YNc(7,p9e,2,3,"ng-container",28),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(3);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",s.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.Q6J("bandeira",t.bandeira)("descricao",t.descricao),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0),n.xp6(1),n.Q6J("ngIf",0===r)}}function g9e(i,o){if(1&i&&(n.TgZ(0,"div",44),n.YNc(1,h9e,8,11,"ng-container",8),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamento)}}function f9e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",3),n.YNc(1,g9e,2,1,"ng-template",4),n.qZA()),2&i){const t=n.oxw();n.Q6J("title",null!=t.formasDePagamentoManual&&t.formasDePagamentoManual.length?"Na entrega":"Pagar na entrega")("selected",1===t.tabSelect)}}function m9e(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}function _9e(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("-",t.desconto,"% de desconto")}}function b9e(i,o){if(1&i&&(n.TgZ(0,"div",49),n._uU(1," Chave para transfer\xeancia do PIX: "),n.TgZ(2,"b"),n._uU(3),n.qZA(),n.TgZ(4,"div",50),n._uU(5," Ap\xf3s realizar o pedido, fa\xe7a o pagamento envie o comprovante para o lojista "),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.Oqu(t.chavePix)}}function v9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",45)(2,"input",15),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.alterouFormaDePagamento())}),n.qZA(),n.TgZ(3,"label",17),n._UZ(4,"app-loja-bandeira-logo",46),n.YNc(5,m9e,3,1,"span",18),n.YNc(6,_9e,3,1,"span",18),n.qZA(),n.YNc(7,b9e,6,1,"div",48),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(3);n.xp6(1),n.Q6J("hidden",!r.estaHabilitado(t,r.pedido)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.Q6J("bandeira",t.bandeira)("descricao",t.descricao),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0),n.xp6(1),n.Q6J("ngIf",t.chavePix)}}function y9e(i,o){if(1&i&&(n.TgZ(0,"div",44),n.YNc(1,v9e,8,11,"ng-container",8),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoManual)}}function C9e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",3),n.YNc(1,y9e,2,1,"ng-template",4),n.qZA()),2&i){const t=n.oxw();n.Q6J("title","Pix (Chave)")("selected",2===t.tabSelect)}}let A9e=(()=>{class i extends XW{constructor(t,r,s,l,u){super(t,r,s,l,u),this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Na),n.Y36(zo),n.Y36(Oi),n.Y36(n.z2F),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-formaspagamento-mobile-nova"]],features:[n._Bn([],[{provide:fa,useExisting:Zo}]),n.qOj],decls:5,vars:3,consts:[["id","tabs","name","tabs",1,"nav-bordered",3,"tabSelect"],["tabFormas",""],[3,"title","selected",4,"ngIf"],[3,"title","selected"],["kendoTabContent",""],[1,"row","escolher"],["class","form-group   mt-2  col-12",4,"ngIf"],[1,"form-group","col-12"],[4,"ngFor","ngForOf"],["class","col-12 mt-2 ",4,"ngIf"],[1,"form-group","mt-2","col-12"],["class","mr-3 radio radio-blue mb-1 auto",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],["class","row mt-2",4,"ngIf"],[1,"mr-3","radio","radio-blue","mb-1","auto"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","ngModelChange"],["src","https://user-images.githubusercontent.com/33992396/99478353-00e4d600-2933-11eb-8228-4bafe8571507.png",1,"ml-1",2,"width","32px"],[1,"ml-1","d-inline",3,"for"],["class","text-muted float-right",4,"ngIf"],[1,"text-muted","float-right"],[1,"invalid-feedback"],[1,"row","mt-2"],[1,"ml-3","col"],["class","form-group","style","max-width: 200px",4,"ngIf"],[1,"form-group",2,"max-width","350px"],[1,"input-group"],["id","emailPix","name","emailPix","email","true","type","email","placeholder","Informe seu email",1,"form-control",3,"required","ngModel","ngModelChange"],["txtEmailPix","","emailPix","ngModel"],[4,"ngIf"],[1,"form-group",2,"max-width","200px"],[1,"form-group"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["txtCpfPix","","cpf","ngModel"],[1,"radio","radio-blue",3,"hidden","ngClass"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","pagseguro","ngModelChange"],["rdFormaDePagamento","ngModel"],["aria-hidden","true",1,"fa","fa-credit-card","text-blue","fa-2x","ml-1",2,"top","5px","position","relative"],["class","text-muted font-11 ml-1 d-inline",4,"ngIf"],[1,"text-muted","font-11","ml-1","d-inline"],[1,"col-12","mt-2"],[1,"fas","fa-credit-card","font-16"],["type","button",1,"btn","ml-1","btn-blue",3,"click"],[1,"far","fa-credit-card","mr-1","fa-lg"],["type","button",1,"btn","btn-blue",3,"click"],[1,"form-group","mb-2","mt-2","escolher","formas"],[1,"mr-3","radio","radio-blue","mb-1",3,"hidden"],[3,"bandeira","descricao"],[3,"obtenhaTotalPagar","pagamento","pedido"],["class","ml-2 font-12 mt-1",4,"ngIf"],[1,"ml-2","font-12","mt-1"],[1,"alert","alert-info","mt-2"]],template:function(t,r){1&t&&(n.TgZ(0,"kendo-tabstrip",0,1),n.NdJ("tabSelect",function(l){return r.alterouTipoPagamento(l)}),n.YNc(2,c9e,2,2,"kendo-tabstrip-tab",2),n.YNc(3,f9e,2,2,"kendo-tabstrip-tab",2),n.YNc(4,C9e,2,2,"kendo-tabstrip-tab",2),n.qZA()),2&t&&(n.xp6(2),n.Q6J("ngIf",r.temPagamentoOnline()),n.xp6(1),n.Q6J("ngIf",r.formasDePagamento.length),n.xp6(1),n.Q6J("ngIf",r.formasDePagamentoManual.length))},dependencies:[gt,Bt,Ge,wi,tc,ti,Lo,b1,ni,ja,Fu,io,QT,wm,S0,YK,Yu,q6,jK],styles:[".mobile[_ngcontent-%COMP%]   .btn-block[_ngcontent-%COMP%]{padding:1em 0}.form-control[_ngcontent-%COMP%]{border-radius:2px}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}.radio.mb-1[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.preco[_ngcontent-%COMP%]{color:#6db31b}.negativo[_ngcontent-%COMP%]{color:#c40e34}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{top:3px;position:relative}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:30px}}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:75px;display:inline-block}.k-checkbox[_ngcontent-%COMP%]{width:22px;height:22px}.k-radio[_ngcontent-%COMP%]:checked, .k-checkbox[_ngcontent-%COMP%]:checked{border-color:#7e57c2;color:#fff;background-color:#7e57c2}.k-radio[_ngcontent-%COMP%]:checked:focus, .k-checkbox[_ngcontent-%COMP%]:checked:focus{box-shadow:0 0 0 2px #7e57c24d}.k-radio[_ngcontent-%COMP%]{width:22px;height:22px}.k-checkbox[_ngcontent-%COMP%]:before{width:18px;height:18px;font-size:18px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.borda-pontilhada[_ngcontent-%COMP%]{border-bottom:2px dashed #ccc}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}h5[_ngcontent-%COMP%]{font-size:1rem}.logo-plano[_ngcontent-%COMP%]{max-height:35px;top:5px;position:relative}.logo-plano.gendai[_ngcontent-%COMP%]{max-width:60px;top:14px}.formas[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{margin-bottom:.5rem!important;padding:10px 20px;border:1px solid #ccc;border-radius:6px}.chinainbox[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}"]}),i})();const x9e=["frm"],T9e=["formasPagamentoAntigas"],S9e=["formasPagamentoNova"];function w9e(i,o){if(1&i&&(n.TgZ(0,"div",19),n._UZ(1,"i",20),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msgErro," ")}}function M9e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",21)(2,"div",8)(3,"div",9)(4,"h5",10)(5,"span"),n._uU(6,"Sub-total"),n.qZA()()(),n.TgZ(7,"h4",22),n._uU(8),n.ALo(9,"currency"),n.qZA()()(),n.TgZ(10,"div",21)(11,"div",23)(12,"div",9)(13,"h5",10)(14,"span"),n._uU(15,"Taxa forma de pagamento"),n.qZA()()(),n.TgZ(16,"h4",22),n._uU(17),n.ALo(18,"currency"),n.qZA()()(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(8),n.Oqu(n.xi3(9,2,t.pedido.total-t.pedido.taxaFormaDePagamento,"BRL")),n.xp6(9),n.Oqu(n.xi3(18,5,t.pedido.taxaFormaDePagamento,"BRL"))}}function D9e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",35),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.irParaAtualizarCadastro())}),n.TgZ(1,"b"),n._uU(2,"Atualizar meu cadastro "),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"small",36),n._uU(5,"Atualize seu cadastro para utilizar seu cashback"),n.qZA()()}}function k9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"a",35),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.irParaLogin())}),n.TgZ(2,"b"),n._uU(3,"Identifique-se"),n.qZA(),n._UZ(4,"br"),n.TgZ(5,"small",36),n._uU(6,"Fa\xe7a login para utilizar seu cashback"),n.qZA()(),n._UZ(7,"br"),n.TgZ(8,"button",37),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.irParaVerSaldo())}),n._uU(9,"Ver meu saldo"),n.qZA(),n.BQk()}}function I9e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",35),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.irparaOptin())}),n.TgZ(1,"b"),n._uU(2,"Quero ganhar cashback"),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"small",36),n._uU(5,"Participe do plano fidelidade para ganhar at\xe9 20% de cashback"),n.qZA()()}}function E9e(i,o){if(1&i&&(n.TgZ(0,"p",38),n._UZ(1,"i",39),n._uU(2," Acumule "),n.TgZ(3,"span",40)(4,"b"),n._uU(5),n.ALo(6,"currency"),n.qZA()(),n._uU(7," de cashback e utilize como forma de pagamento."),n.qZA()),2&i){const t=n.oxw(3);n.xp6(5),n.Oqu(n.xi3(6,1,t.cashback.minimo,"BRL"))}}function P9e(i,o){if(1&i&&(n.TgZ(0,"p",38),n._UZ(1,"i",39),n._uU(2," Fa\xe7a um pedido a partir de "),n.TgZ(3,"span",40)(4,"b"),n._uU(5),n.ALo(6,"currency"),n.qZA()(),n._uU(7," e utilize seu saldo como forma de pagamento."),n.qZA()),2&i){const t=n.oxw(3);n.xp6(5),n.Oqu(n.xi3(6,1,t.cashback.minimoPedido,"BRL"))}}const O9e=function(i){return{gendai:i}};function N9e(i,o){if(1&i&&n._UZ(0,"img",41),2&i){const t=n.oxw(3);n.s9C("src",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo,n.LSH),n.Q6J("ngClass",n.VKq(2,O9e,2===t.empresa.idRede))}}function L9e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h5"),n._uU(2,"Usar meu "),n.TgZ(3,"b"),n._uU(4,"saldo de Cashback"),n.qZA(),n._uU(5," para pagar "),n.qZA(),n.TgZ(6,"div",24)(7,"div",25),n.YNc(8,D9e,6,0,"a",26),n.YNc(9,k9e,10,0,"ng-container",6),n.YNc(10,I9e,6,0,"a",26),n.TgZ(11,"div",27)(12,"input",28),n.NdJ("change",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.marcouUsarCashback())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cashback.usar=s)}),n.qZA(),n.TgZ(13,"label",29),n._uU(14," Cashback dispon\xedvel "),n.TgZ(15,"span",30)(16,"b"),n._uU(17),n.qZA()()(),n.YNc(18,E9e,8,4,"p",31),n.YNc(19,P9e,8,4,"p",31),n.qZA()(),n.TgZ(20,"div",25),n.YNc(21,N9e,1,4,"img",32),n.qZA()(),n.TgZ(22,"span",33),n._UZ(23,"hr",34),n.TgZ(24,"div",7)(25,"div",8)(26,"div",9)(27,"h5",10)(28,"span"),n._uU(29,"Total restante a pagar"),n.qZA()()(),n.TgZ(30,"h4",11),n._uU(31),n.ALo(32,"currency"),n.qZA()()()(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(8),n.Q6J("ngIf",t.cashback.atualizarCadastro),n.xp6(1),n.Q6J("ngIf",t.cashback.fazerLogin),n.xp6(1),n.Q6J("ngIf",t.cashback.fazerOptin||t.cashback.fazerOptinUsarSaldo),n.xp6(1),n.Q6J("hidden",t.cashback.atualizarCadastro||t.cashback.fazerLogin||t.cashback.fazerOptin||t.cashback.fazerOptinUsarSaldo),n.xp6(1),n.Q6J("ngModel",t.cashback.usar)("disabled",t.cashbackDesabilitado()),n.xp6(5),n.Oqu(t.obtenhaSaldo()),n.xp6(1),n.Q6J("ngIf",!t.cashback.podeUsar&&t.cashback.minimo),n.xp6(1),n.Q6J("ngIf",t.cashback.podeUsar&&!t.cashback.podeUsarNoPedido),n.xp6(2),n.Q6J("ngIf",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo),n.xp6(1),n.Q6J("hidden",0===t.obtenhaTotalPagar()),n.xp6(9),n.Oqu(n.xi3(32,12,t.obtenhaTotalPagar(),"BRL"))}}function R9e(i,o){1&i&&(n.TgZ(0,"div",4),n._UZ(1,"i",42),n.qZA())}function F9e(i,o){1&i&&n._UZ(0,"app-loja-formaspagamento-mobile",null,44)}function B9e(i,o){1&i&&n._UZ(0,"app-loja-formaspagamento-mobile-nova",null,45)}function H9e(i,o){if(1&i&&(n.TgZ(0,"span",33)(1,"h4",43),n._uU(2,"Forma de pagamento"),n.qZA(),n.YNc(3,F9e,2,0,"app-loja-formaspagamento-mobile",6),n.YNc(4,B9e,2,0,"app-loja-formaspagamento-mobile-nova",6),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("hidden",t.carregando),n.xp6(3),n.Q6J("ngIf",!t.empresa.exibirBandeiras),n.xp6(1),n.Q6J("ngIf",t.empresa.exibirBandeiras)}}const $9e=function(i,o){return{"needs-validation":i,"was-validated":o}};function U9e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",2,3),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onSubmit())}),n.TgZ(2,"div"),n._UZ(3,"div",4),n.YNc(4,w9e,3,1,"div",5),n.YNc(5,M9e,19,8,"ng-container",6),n.TgZ(6,"div",7)(7,"div",8)(8,"div",9)(9,"h4",10)(10,"span"),n._uU(11,"Total"),n.qZA()()(),n.TgZ(12,"h4",11),n._uU(13),n.ALo(14,"currency"),n.qZA()()(),n.YNc(15,L9e,33,15,"ng-container",6),n.YNc(16,R9e,2,0,"div",12),n.YNc(17,H9e,5,3,"span",13),n._UZ(18,"div",14),n.TgZ(19,"footer",15)(20,"div")(21,"div",16)(22,"div",17)(23,"button",18),n._uU(24,"Salvar Forma de Pagamento"),n.qZA()()()()()()()}if(2&i){const t=n.MAs(1),r=n.oxw();n.Q6J("ngClass",n.WLB(13,$9e,!t.submitted,t.submitted)),n.xp6(4),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",r.pedido.taxaFormaDePagamento>0),n.xp6(8),n.Oqu(n.xi3(14,10,r.pedido.total,"BRL")),n.xp6(2),n.Q6J("ngIf",r.cashback&&r.cashback.podeUsarNaLoja),n.xp6(1),n.Q6J("ngIf",r.carregando),n.xp6(1),n.Q6J("ngIf",r.obtenhaTotalPagar()>0),n.xp6(2),n.Tol(r.empresa.tema)}}let Y9e=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I){this.locale=t,this.clienteService=r,this.carrinhoService=s,this.route=l,this.router=u,this.location=p,this.dominiosService=y,this.autorizacao=A,this.dialogService=w,this.constantsService=I,this.formatOptions={style:"currency",currency:"BRL"},this.empresa={},this.usarSaldo=!1,this.carregando=!1,this.nomePagina=y.obtenhaRaizCardapio(),this.pagamento=new _d}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.pedido.pagamento&&(this.pagamento=this.pedido.pagamento),this.route.snapshot.queryParams.authct&&(this.abrirAutenticacaoCartao=!0),this.route.snapshot.queryParams.msg&&(this.mensagemAlerta=this.route.snapshot.queryParams.msg),this.constantsService.empresa$.subscribe(t=>{t&&(this.empresa=t,setTimeout(()=>{this.setFormasPagamentoExibir()},100),delete this.cashback,delete this.pedido.cashback,(this.empresa.integracaoPedidoFidelidade||this.empresa.integracaoFidelidade)&&(this.cashback={saldo:0,podeUsarNaLoja:null!=this.empresa.integracaoFidelidade},this.carregando=!0,this.clienteService.obtenhaSaldoCashback().then(r=>{if(this.cashback=r,this.cashback){let s=this.pedido.obtenhaTotalSemTaxaEntrega();this.setPodeUsarCashback(s),this.setCashbackDasFormas()}this.carregando=!1})))})}setPodeUsarCashback(t){!this.cashback||(this.cashback.podeUsarNoPedido=t>=this.cashback.minimoPedido,this.cashback.valor=this.cashback.saldo>t?t:this.cashback.saldo,this.cashback.usarPadrao&&this.cashback.saldo>0&&(this.cashback.usar=this.cashback.podeUsar&&this.cashback.podeUsarNoPedido),this.cashback.usar?(this.pedido.cashback=this.cashback,this.pagamento&&this.pagamento.formaDePagamento&&this.pedido.calculeTotal()):delete this.pedido.cashback)}setFormasPagamentoExibir(){let t=this.formasPagamentoNova?this.formasPagamentoNova:this.formasPagamentoAntigas;t&&(t.setFormasPagamentoMobile(this.pagamento,this.empresa,this.pedido,this.frm),this.abrirAutenticacaoCartao&&setTimeout(()=>{t.trocarCartao(this.mensagemAlerta)},1200))}setCashbackDasFormas(){this.formasPagamentoAntigas&&(this.formasPagamentoAntigas.cashback=this.cashback),this.formasPagamentoNova&&(this.formasPagamentoNova.cashback=this.cashback)}onSubmit(){if(this.frm.valid){if(this.pedido.troco<0)return void(this.msgErro="Valor para troco tem que ser maior do que o pedido");if(this.pedido.troco>100)return void(this.msgErro="O valor informado para o troco \xe9 inv\xe1lido. Por favor, revise o valor e tente novamente.");this.pedido.pagamento=this.pagamento,typeof fbq<"u"&&fbq("track","AddPaymentInfo"),this.cashback&&this.cashback.usar?this.pedido.cashback=this.cashback:delete this.pedido.cashback,this.pedido.calculeTotal(),this.carrinhoService.salvePedido(this.pedido),this.dominiosService.vaParaCarrinho()}}deveExibirTopo(){return!1}deveExibirMenu(){return!1}usarSaldoCartao(){}onSelectedChange(t){this.usarSaldo=t}obtenhaTotalPagar(){if(!this.cashback||!this.cashback.usar)return this.pedido.total;let t=this.pedido.total-this.cashback.valor;return t<=0&&(t=0,delete this.pagamento.formaDePagamento),Number(t.toFixed(2))}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}obtenhaSaldo(){let t=cs(this.cashback.saldo,this.locale,"R$");return this.empresa.integracaoFidelidade&&"gcom"===this.empresa.integracaoFidelidade.sistema&&(t=t.replace("R$",2===this.empresa.idRede?"R$G":"R$C")),t}cashbackDesabilitado(){return!(this.cashback.podeUsar&&this.cashback.podeUsarNoPedido&&!this.pedido.teveAutenticacaoPagamento())}irParaAtualizarCadastro(){return this.pedido.contato.atualizarCadastro=!0,this.dominiosService.vaParaCadastro(window.location.pathname,{contato:this.pedido.contato}),!1}irParaLogin(){return this.dominiosService.vaParaLogin(window.location.pathname,this.pedido.contato.telefone),!1}irParaVerSaldo(){return this.dominiosService.vaParaValidarLogin(window.location.pathname,this.pedido.contato),!1}irparaOptin(){return this.pedido.contato.fazerOptin=!0,this.dominiosService.vaParaCadastro(window.location.pathname,{contato:this.pedido.contato}),!1}marcouUsarCashback(){if(!this.cashback.saldo){let t=this.autorizacao.getUsuario();t?this.cashback.fazerOptin?this.irparaOptin():t.cpf||this.irParaAtualizarCadastro():this.pedido.contato.id?this.irParaLogin():this.dominiosService.vaParaCadastro(window.location.pathname,{contato:this.pedido.contato})}setTimeout(()=>{this.setFormasPagamentoExibir(),this.setCashbackDasFormas()},0)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.soG),n.Y36(ka),n.Y36(Oi),n.Y36(ci),n.Y36(Pn),n.Y36(_n),n.Y36(Eo),n.Y36(Qi),n.Y36(Na),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-pagamento"]],viewQuery:function(t,r){if(1&t&&(n.Gf(x9e,5),n.Gf(T9e,5),n.Gf(S9e,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.formasPagamentoAntigas=s.first),n.iGM(s=n.CRH())&&(r.formasPagamentoNova=s.first)}},decls:2,vars:1,consts:[["titulo","Pagamento","xmlns","http://www.w3.org/1999/html"],["id","form","novalidate","",3,"ngClass","ngSubmit",4,"ngIf"],["id","form","novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"mt-3"],["class","alert alert-danger mt-2","role","alert",4,"ngIf"],[4,"ngIf"],[1,"produto","pt-0","pb-2"],[1,"media","mt-2"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"mt-0","preco"],["class","mt-3",4,"ngIf"],[3,"hidden",4,"ngIf"],[2,"height","40px"],[1,"footer"],[1,"row",2,"padding","15px"],[1,"col"],[1,"btn","btn-primary","btn-block"],["role","alert",1,"alert","alert-danger","mt-2"],[1,"mdi","mdi-block-helper","mr-2"],[1,"pt-0"],[1,"mt-0"],[1,"media","borda-pontilhada"],[1,"k-display-inline-flex"],[1,"flex-row"],["href","",3,"click",4,"ngIf"],[1,"form-group","mb-2","mt-2",3,"hidden"],["id","usarSaldo","name","usarSaldo","type","checkbox","kendoCheckBox","",1,"k-checkbox",3,"ngModel","disabled","change","ngModelChange"],["for","usarSaldo",1,"ml-1"],[1,"preco"],["class","mt-1",4,"ngIf"],["class","ml-2 logo-plano",3,"src","ngClass",4,"ngIf"],[3,"hidden"],[1,"linha"],["href","",3,"click"],[1,"text-muted"],[1,"btn","btn-blue","btn-xs","mt-1",3,"click"],[1,"mt-1"],[1,"fa","fa-exclamation-circle","mr-1","text-warning"],[1,"text-blue"],[1,"ml-2","logo-plano",3,"src","ngClass"],[1,"k-i-loading","k-icon"],[1,"mb-3"],["formasPagamentoAntigas",""],["formasPagamentoNova",""]],template:function(t,r){1&t&&(n._UZ(0,"app-header-tela",0),n.YNc(1,U9e,25,16,"form",1)),2&t&&(n.xp6(1),n.Q6J("ngIf",r.pedido))},dependencies:[gt,Ge,Ia,wp,ti,ma,ni,Zo,eT,io,E8e,A9e,Cs,Jo],styles:[".mobile[_ngcontent-%COMP%]   .btn-block[_ngcontent-%COMP%]{padding:1em 0}.form-control[_ngcontent-%COMP%]{border-radius:2px}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}.radio.mb-1[_ngcontent-%COMP%]{margin-bottom:.5rem!important}.preco[_ngcontent-%COMP%]{color:#6db31b}.negativo[_ngcontent-%COMP%]{color:#c40e34}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff}.form-group[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{top:3px;position:relative}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:30px}}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{min-width:75px;display:inline-block}.k-checkbox[_ngcontent-%COMP%]{width:22px;height:22px}.k-radio[_ngcontent-%COMP%]:checked, .k-checkbox[_ngcontent-%COMP%]:checked{border-color:#7e57c2;color:#fff;background-color:#7e57c2}.k-radio[_ngcontent-%COMP%]:checked:focus, .k-checkbox[_ngcontent-%COMP%]:checked:focus{box-shadow:0 0 0 2px #7e57c24d}.k-radio[_ngcontent-%COMP%]{width:22px;height:22px}.k-checkbox[_ngcontent-%COMP%]:before{width:18px;height:18px;font-size:18px}.radio[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{margin-left:10px;position:relative;top:1px;display:inline-block}.borda-pontilhada[_ngcontent-%COMP%]{border-bottom:2px dashed #ccc}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}h5[_ngcontent-%COMP%]{font-size:1rem}.logo-plano[_ngcontent-%COMP%]{max-height:35px;top:5px;position:relative}.logo-plano.gendai[_ngcontent-%COMP%]{max-width:60px;top:14px}.formas[_ngcontent-%COMP%]   .radio[_ngcontent-%COMP%]{margin-bottom:.5rem!important;padding:10px 20px;border:1px solid #ccc;border-radius:6px}.chinainbox[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}"]}),i})(),j9e=(()=>{class i extends fs{constructor(t){super(t)}getCountries(){return this.http.get("/countries/",{}).toPromise()}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function Z9e(i,o){if(1&i&&(n.TgZ(0,"div",4),n._UZ(1,"img",5),n._uU(2),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.s9C("alt",t.alpha2),n.Q6J("src",t.flag,n.LSH),n.xp6(1),n.hij(" (",t.phone,") ")}}function V9e(i,o){1&i&&n.YNc(0,Z9e,3,3,"div",3),2&i&&n.Q6J("ngIf",o.$implicit)}function z9e(i,o){if(1&i&&(n.TgZ(0,"div",4),n._UZ(1,"img",5),n._uU(2),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.s9C("alt",t.alpha2),n.Q6J("src",t.flag,n.LSH),n.xp6(1),n.AsE(" ",t.alpha2," (",t.phone,") ")}}function G9e(i,o){1&i&&n.YNc(0,z9e,3,4,"div",3),2&i&&n.Q6J("ngIf",o.$implicit)}const q9e=function(){return{width:160,animate:!1}};let _B=(()=>{class i{constructor(t,r){this.app=t,this.countryService=r,this.selectedCountryCodeChange=new n.vpe,this.phoneMaskChange=new n.vpe,this.countries=[],this.selectedCountry={}}ngOnInit(){this.countryService.getCountries().then(t=>{this.countries=t.data,this.selectedCountryCode&&(this.selectedCountry=this.countries.find(r=>r.phone===this.selectedCountryCode),this.phoneMaskChange.emit(this.getPhoneMask(this.selectedCountry.alpha2)))})}onCountryChange(t){!t||(this.selectedCountryCodeChange.emit(t.phone),this.phoneMaskChange.emit(this.getPhoneMask(t.alpha2)))}getPhoneMask(t){const r=Ny.PhoneNumberUtil.getInstance(),s=r.getExampleNumberForType(t,Ny.PhoneNumberType.MOBILE);let l=r.format(s,Ny.PhoneNumberFormat.NATIONAL);return l&&(l=l.replace(/[0-9]/g,"0")),console.log("M\xe1scara telefone ("+t+"): "+l),l}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.z2F),n.Y36(j9e))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-seletor-codigo-pais"]],inputs:{selectedCountryCode:"selectedCountryCode"},outputs:{selectedCountryCodeChange:"selectedCountryCodeChange",phoneMaskChange:"phoneMaskChange"},decls:3,vars:6,consts:[[2,"width","115px",3,"data","textField","valueField","ngModel","popupSettings","ngModelChange","valueChange"],["kendoDropDownListValueTemplate",""],["kendoDropDownListItemTemplate",""],["class","country-item",4,"ngIf"],[1,"country-item"],["width","20","height","20",3,"src","alt"]],template:function(t,r){1&t&&(n.TgZ(0,"kendo-dropdownlist",0),n.NdJ("ngModelChange",function(l){return r.selectedCountry=l})("valueChange",function(l){return r.onCountryChange(l)}),n.YNc(1,V9e,1,1,"ng-template",1),n.YNc(2,G9e,1,1,"ng-template",2),n.qZA()),2&t&&n.Q6J("data",r.countries)("textField","alpha2")("valueField","phone")("ngModel",r.selectedCountry)("popupSettings",n.DdM(5,q9e))},dependencies:[Ge,ti,ni,Il,lm,Hn]}),i})();const J9e=["frm"],Q9e=["kendoMaskedTextBox"];function W9e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"WhatsApp \xe9 obrigat\xf3rio"),n.qZA())}function K9e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"WhatsApp inv\xe1lido"),n.qZA())}function X9e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome \xe9 obrigat\xf3rio"),n.qZA())}function eLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 obrigat\xf3rio"),n.qZA())}function tLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF inv\xe1lido"),n.qZA())}function nLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",5)(1,"label"),n._uU(2,"CPF"),n.qZA(),n.TgZ(3,"input",20,21),n.NdJ("change",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.informouCpf())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cliente.cpf=s)}),n.qZA(),n.TgZ(5,"div",11),n.YNc(6,eLe,2,0,"p",12),n.YNc(7,tLe,2,0,"p",12),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("ngModel",r.cliente.cpf)("required",r.cpfObrigatorio)("autoFocus",!r.cliente.cpf&&r.cliente.telefone),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",!(null!=t.errors&&t.errors.required)&&(null==t.errors?null:t.errors.cpfInvalido))}}function iLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Data de nascimento \xe9 obrigat\xf3ria"),n.qZA())}function oLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",5)(1,"label"),n._uU(2,"Data de nascimento"),n.qZA(),n.TgZ(3,"kendo-datepicker",22,23),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cliente.dataNascimento=s)}),n._UZ(5,"kendo-datepicker-messages",24),n.qZA(),n.TgZ(6,"div",11),n.YNc(7,iLe,2,0,"p",12),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw();n.xp6(3),n.Q6J("ngModel",r.cliente.dataNascimento)("required",r.dataNascimentoObrigatorio),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function rLe(i,o){if(1&i&&n._UZ(0,"img",30),2&i){const t=n.oxw(2);n.s9C("src",null==t.fidelidadeExterna?null:t.fidelidadeExterna.logo,n.LSH)}}const aLe=function(i){return{menor:i}};function sLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",25)(1,"input",26),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.fidelidadeExterna.optin=s)})("change",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.alterouOptinFidelidade())}),n.qZA(),n.TgZ(2,"label",27),n._uU(3),n.TgZ(4,"span"),n._UZ(5,"br"),n._uU(6,"Estou de acordo com o "),n.TgZ(7,"a",28),n._uU(8,"Regulamento"),n.qZA(),n._uU(9,"."),n.qZA()(),n.YNc(10,rLe,1,1,"img",29),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(5,aLe,2===(null==t.empresa?null:t.empresa.idRede))),n.xp6(1),n.Q6J("ngModel",t.fidelidadeExterna.optin),n.xp6(2),n.hij(" Quero ganhar cashback com ",1===t.empresa.idRede?"Meu China in Box":"Gendai Vip"," "),n.xp6(4),n.s9C("href",t.fidelidadeExterna.linkRegras,n.LSH),n.xp6(3),n.Q6J("ngIf",null==t.fidelidadeExterna?null:t.fidelidadeExterna.logo)}}function lLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function cLe(i,o){1&i&&n._UZ(0,"i",42)}function dLe(i,o){1&i&&(n.TgZ(0,"div",43)(1,"b"),n._uU(2,"Email j\xe1 est\xe1 em uso"),n.qZA()())}function uLe(i,o){1&i&&n._UZ(0,"i",44)}function pLe(i,o){1&i&&n._UZ(0,"i",45)}function hLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function gLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha deve ter no m\xednimo 5 caracteres"),n.qZA())}function fLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",46,47),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cliente.senha=s)}),n.qZA(),n.TgZ(3,"div",11),n.YNc(4,hLe,2,0,"p",12),n.YNc(5,gLe,2,0,"p",12),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(2);n.xp6(1),n.Q6J("ngModel",r.cliente.senha)("required",!0),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.minlength)}}function mLe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function _Le(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",48,49),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cliente.senha=s)}),n.qZA(),n.TgZ(3,"div",11),n.YNc(4,mLe,2,0,"p",12),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(2);n.xp6(1),n.Q6J("ngModel",r.cliente.senha)("required",!0),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function bLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",50),n._uU(2,"Salvar Meus dados"),n.qZA(),n.TgZ(3,"button",51),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.canceleCriarConta())}),n._uU(4,"Cancelar"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("disabled",t.validandoEmail||t.emailExistente),n.xp6(2),n.Q6J("disabled",t.validandoEmail||t.emailExistente)}}function vLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"p",52)(2,"b"),n._uU(3," J\xe1 existe uma conta com esse n\xfamero de telefone"),n.qZA()(),n.TgZ(4,"button",53),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.vaParaLogin())}),n._uU(5,"Entrar"),n.qZA(),n.BQk()}}function yLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"fieldset")(2,"legend"),n._uU(3,"Dados de acesso"),n.qZA(),n.TgZ(4,"div",5)(5,"label",31),n._uU(6,"E-mail"),n.qZA(),n.TgZ(7,"div",32)(8,"input",33,34),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.cliente.email=s)})("change",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.valideEmail())}),n.qZA(),n.TgZ(10,"div",11),n.YNc(11,lLe,2,0,"p",12),n.qZA(),n.YNc(12,cLe,1,0,"i",35),n.qZA(),n.YNc(13,dLe,3,0,"div",36),n.qZA(),n.TgZ(14,"div",5)(15,"label",37),n._uU(16,"Senha"),n.qZA(),n.TgZ(17,"label",38),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.exibirSenhaTela())}),n.YNc(18,uLe,1,0,"i",39),n.YNc(19,pLe,1,0,"i",40),n.qZA(),n.YNc(20,fLe,6,4,"span",12),n.YNc(21,_Le,5,3,"span",12),n.qZA()(),n.TgZ(22,"div",41),n.YNc(23,bLe,5,2,"ng-container",12),n.YNc(24,vLe,6,0,"ng-container",12),n.qZA(),n.BQk()}if(2&i){const t=n.MAs(9),r=n.oxw();n.xp6(8),n.Q6J("required",!0)("ngModel",r.cliente.email),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",r.validandoEmail),n.xp6(1),n.Q6J("ngIf",r.emailExistente),n.xp6(5),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(2),n.Q6J("ngIf",!r.cliente.temConta),n.xp6(1),n.Q6J("ngIf",r.cliente.temConta)}}function CLe(i,o){if(1&i&&(n.TgZ(0,"button",50),n._uU(1," Salvar"),n.qZA()),2&i){const t=n.oxw();n.Q6J("disabled",t.validandoEmail||t.emailExistente||t.buscando)}}function ALe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h4",55),n._uU(2,"J\xe1 tem uma conta?"),n.qZA(),n.TgZ(3,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.vaParaLogin())}),n._uU(4," Continuar com senha"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("disabled",t.buscando)}}function xLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h4",55),n._uU(2,"Primeira visita?"),n.qZA(),n.TgZ(3,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.exibirCriarConta())}),n._uU(4," Cadastrar senha"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("disabled",t.buscando)}}function TLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.exibirCriarConta())}),n._uU(2," Cadastrar uma senha"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("disabled",t.buscando)}}function SLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.vaParaLogin())}),n._uU(2," Entrar com minha senha"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("disabled",t.buscando)}}function wLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",54),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.continuarSemConta())}),n._uU(2," Continuar sem senha"),n.qZA(),n._UZ(3,"hr"),n.YNc(4,ALe,5,1,"ng-container",12),n.YNc(5,xLe,5,1,"ng-container",12),n.YNc(6,TLe,3,1,"ng-container",12),n.YNc(7,SLe,3,1,"ng-container",12),n.BQk()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("disabled",t.validandoEmail||t.emailExistente||t.buscando),n.xp6(3),n.Q6J("ngIf",!t.cliente.id&&!t.cliente.novo),n.xp6(1),n.Q6J("ngIf",t.cliente.novo),n.xp6(1),n.Q6J("ngIf",t.cliente.id&&!t.cliente.temConta),n.xp6(1),n.Q6J("ngIf",t.cliente.temConta)}}function MLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h4",57),n._uU(2," ou "),n.qZA(),n.TgZ(3,"button",58),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.escolheuNaoIndenficar())}),n._uU(4," N\xe3o quero me identificar"),n.qZA(),n.BQk()}}const DLe=function(i,o){return{"needs-validation":i,"was-validated":o}};let kLe=(()=>{class i{constructor(t,r,s,l,u,p,y){this.clienteService=t,this.carrinhoService=r,this.location=s,this.constantsService=l,this.autorizacao=u,this.activatedRoute=p,this.dominiosService=y,this.cliente={}}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.cliente=Object.assign({},this.pedido.contato),this.target=this.activatedRoute.snapshot.queryParams.target,this.cliente.naoIdentificado&&(this.cliente={}),this.constantsService.empresa$.subscribe(t=>{if(!t)return;this.empresa=t,this.empresa.integracaoFidelidade&&(this.fidelidadeExterna=Object.assign({},this.empresa.integracaoFidelidade),this.fidelidadeExterna.aceitarFidelidade=!0,this.fidelidadeExterna.optin=!1);let r=this.autorizacao.getUsuario();if(this.cliente.completarCadastro=r&&(r.completarCadastro||r.informarCpf||r.informarDataNascimento),r&&r.id){if(this.criarConta=!1,this.informarDados=this.cliente.completarCadastro||this.empresa.integracaoFidelidade&&!r.saldoFidelidade,!this.informarDados)return this.dominiosService.vaParaCarrinho();this.busqueContatoPeloTelefone()}else this.cliente.telefone&&this.busqueContatoPeloTelefone();this.cliente.id||(this.cliente.email&&this.cliente.senha?this.criarConta=!0:this.cliente.telefone&&(this.informarDados=!0))}),this.constantsService.campoCpf$.subscribe(t=>{this.informarCpf=null!=t,this.cpfObrigatorio=t&&!t.opcional}),this.constantsService.campoDataNascimento$.subscribe(t=>{this.informarDataNascimento=null!=t,this.dataNascimentoObrigatorio=t&&!t.opcional}),typeof fbq<"u"&&fbq("track","Lead")}atualizarMeuCadastro(){return!this.criarConta&&!!(this.cliente.completarCadastro||this.cliente.atualizarCadastro||this.cliente.id&&this.informarDados)}continuarSemConta(){var t=this;return sn(function*(){t.frm.onSubmit(null)})()}onSubmit(){var t=this;return sn(function*(){if(!t.frm.valid||t.validandoEmail)return;let r=t.autorizacao.getUsuario();r&&(t.cliente.completarCadastro||t.informarDados)&&(r.nome=t.cliente.nome,r.cpf=t.cliente.cpf,r.email=t.cliente.email,r.dataNascimento=t.cliente.dataNascimento,t.autorizacao.salveUsuario(r)),yield t.salveCliente()})()}salveCliente(){var t=this;return sn(function*(){if(t.pedido.contato=t.cliente,t.fidelidadeExterna&&(t.fidelidadeExterna.optin?t.pedido.fidelidadeGcom={id_cliente:t.fidelidadeExterna.id_cliente}:delete t.pedido.fidelidadeGcom),t.cliente.atualizarCadastro){let r;if(t.buscando=!0,yield t.autorizacao.atualizeConta(t.cliente).catch(s=>{r=s}),t.buscando=!1,r)return void(t.erro=r)}t.carrinhoService.salvePedido(t.pedido),t.target?t.dominiosService.navegueParaUrl(t.target):t.dominiosService.vaParaCarrinho()})()}informouCpf(){var t=this;return sn(function*(){if(t.cliente.id&&!t.cliente.completarCadastro)return;t.buscando=!0;let r=yield t.clienteService.obtenhaCadastroCompletarPeloCpf(t.cliente.cpf).catch(s=>{console.error(s)});t.buscando=!1,r&&r.id&&(t.cliente.id&&t.cliente.id!==r.id?t.erro="CPF j\xe1 est\xe1 em uso":(t.cliente.id=r.id,t.cliente.completarCadastro=!0,t.criarConta=!0))})()}busqueContatoPeloTelefone(){this.buscando=!0,delete this.emailExistente,delete this.cliente.novo,this.clienteService.obtenhaClientePorTelefone(this.cliente.telefone).then(t=>{this.buscando=!1,t.id?(Object.assign(this.cliente,t),this.cliente.dataNascimento&&(this.cliente.dataNascimento=new Date(this.cliente.dataNascimento)),this.informarCpf&&!this.cliente.cpf&&(this.cliente.atualizarCadastro=!0)):(this.cliente.atualizarCadastro=!1,this.cliente.novo=!0),t.fidelidadeExterna&&(this.fidelidadeExterna.aceitarFidelidade=t.fidelidadeExterna.aceitarFidelidade,t.fidelidadeExterna.id_cliente&&(this.fidelidadeExterna.id_cliente=t.fidelidadeExterna.id_cliente,this.fidelidadeExterna.aceitarFidelidade=!1,this.fidelidadeExterna.optin=!1))}).catch(()=>{this.buscando=!1})}informouTelefone(){this.cliente.id&&(this.cliente={telefone:this.cliente.telefone,nome:this.cliente.nome}),this.fidelidadeExterna&&delete this.fidelidadeExterna.id_cliente,this.busqueContatoPeloTelefone()}deveExibirTopo(){return!1}deveExibirMenu(){return!1}exibirCriarConta(){this.fidelidadeExterna&&(this.fidelidadeExterna.optin=!0),this.criarConta=!0}vaParaLogin(){this.dominiosService.vaParaLogin("cliente",this.cliente.telefone)}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}valideEmail(){this.validandoEmail=!0,this.clienteService.existeClienteComEmail(this.cliente.email).then(t=>{this.validandoEmail=!1,this.emailExistente=t}).catch(()=>{this.validandoEmail=!1})}canceleCriarConta(){this.criarConta=!1}escolheuNaoIndenficar(){this.cliente={telefone:"00000000000",codigoPais:"+55",nome:"Consumidor n\xe3o identificado",naoIdentificado:!0},this.salveCliente()}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}alterouOptinFidelidade(){this.atualizarMeuCadastro()||this.cliente.temConta||(this.criarConta=!!this.fidelidadeExterna.optin)}onPhoneMaskChange(t){this.phoneMask=t,this.txtTelefone&&this.txtTelefone.updateValue(this.txtTelefone.input.nativeElement.value)}onCountrySelected(t){this.cliente.codigoPais=t,console.log("setou c\xf3digo pa\xeds. Contato: ",this.cliente)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(Oi),n.Y36(_n),n.Y36(gi),n.Y36(Qi),n.Y36(ci),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-dados-cliente"]],viewQuery:function(t,r){if(1&t&&(n.Gf(J9e,5),n.Gf(Q9e,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.txtTelefone=s.first)}},decls:33,vars:25,consts:[[3,"titulo","retorno"],[2,"max-width","800px"],["novalidate","",1,"mt-2",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"mt-2","mb-1"],[1,"form-group","mb-3"],["for","telefone"],[1,"input-group"],[3,"selectedCountryCode","phoneMaskChange","selectedCountryCodeChange"],["id","telefone","name","telefone","required","",1,"form-control","ml-1",3,"mask","readonly","disabled","ngModel","change","ngModelChange"],["telefone","ngModel","kendoMaskedTextBox","kendoMaskedTextBox"],[1,"invalid-feedback"],[4,"ngIf"],["for","nome"],["kendoTextBox","","id","nome","name","nome","placeholder","Nome completo","required","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["class","form-group mb-3",4,"ngIf"],["class","form-group mb-3   ",4,"ngIf"],["class","form-group mb-3 aceite-fidelidade",3,"ngClass",4,"ngIf"],["class","btn btn-success btn-block ","type","submit",3,"disabled",4,"ngIf"],["type","text","autocomplete","off","name","cpf","mask","000.000.000-00","cpfValido","","appAutoFocus","","placeholder","___.___.___-__",1,"form-control",3,"ngModel","required","autoFocus","change","ngModelChange"],["cpf","ngModel"],["format","dd/MM/yyyy","name","dataNascimento",1,"form-control",3,"ngModel","required","ngModelChange"],["dataNascimento","ngModel"],["today","Hoje","toggle","Trocar calend\xe1rio"],[1,"form-group","mb-3","aceite-fidelidade",3,"ngClass"],["id","optin","name","optin","type","checkbox","kendoCheckBox","",1,"k-checkbox",3,"ngModel","ngModelChange","change"],["for","optin",1,"ml-1","usar-saldo"],["href","","target","_blank",3,"href"],["class","ml-2",3,"src",4,"ngIf"],[1,"ml-2",3,"src"],["for","email"],[1,"input-group",2,"position","relative"],["type","email","autocomplete","off","id","email","name","email","placeholder","Email do usu\xe1rio",1,"form-control",3,"required","ngModel","ngModelChange","change"],["email","ngModel"],["class","k-icone k-i-loading",4,"ngIf"],["class","text-danger   ",4,"ngIf"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],[1,"mt-2"],[1,"k-icone","k-i-loading"],[1,"text-danger"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","minlength","5","placeholder","Informe sua senha",1,"form-control",3,"ngModel","required","ngModelChange"],["senha","ngModel"],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha",1,"form-control",3,"ngModel","required","ngModelChange"],["senhaTexto","ngModel"],["type","submit",1,"btn","btn-success","btn-block",3,"disabled"],["type","button",1,"btn","btn-light","btn-block","mb-2","mt-2",3,"disabled","click"],[1,"text-danger","mb-2"],["type","button",1,"btn","btn-success","btn-block",3,"click"],["type","button",1,"btn","btn-success","btn-block",3,"disabled","click"],[1,"mb-0"],["type","button",1,"btn","btn-blue","btn-block","mt-2",3,"disabled","click"],[1,"text-center"],["type","button",1,"btn","btn-blue","btn-block",3,"click"]],template:function(t,r){if(1&t&&(n._UZ(0,"app-header-tela",0),n.TgZ(1,"div",1)(2,"form",2,3),n.NdJ("ngSubmit",function(){return r.onSubmit()}),n.TgZ(4,"h4",4),n._uU(5,"Bem vindo de volta!"),n.qZA(),n.TgZ(6,"p"),n._uU(7,"Para continuar, insira seus dados abaixo:"),n.qZA(),n.TgZ(8,"div",5)(9,"label",6),n._uU(10,"WhatsApp"),n.qZA(),n.TgZ(11,"div",7)(12,"app-seletor-codigo-pais",8),n.NdJ("phoneMaskChange",function(l){return r.onPhoneMaskChange(l)})("selectedCountryCodeChange",function(l){return r.onCountrySelected(l)}),n.qZA(),n.TgZ(13,"kendo-maskedtextbox",9,10),n.NdJ("change",function(){return r.informouTelefone()})("ngModelChange",function(l){return r.cliente.telefone=l}),n.qZA(),n.TgZ(16,"div",11),n.YNc(17,W9e,2,0,"p",12),n.YNc(18,K9e,2,0,"p",12),n.qZA()()(),n.TgZ(19,"div",5)(20,"label",13),n._uU(21,"Nome "),n.qZA(),n.TgZ(22,"input",14,15),n.NdJ("ngModelChange",function(l){return r.cliente.nome=l}),n.qZA(),n.TgZ(24,"div",11),n.YNc(25,X9e,2,0,"p",12),n.qZA()(),n.YNc(26,nLe,8,5,"div",16),n.YNc(27,oLe,8,3,"div",17),n.YNc(28,sLe,11,7,"div",18),n.YNc(29,yLe,25,11,"ng-container",12),n.YNc(30,CLe,2,1,"button",19),n.YNc(31,wLe,8,5,"ng-container",12),n.YNc(32,MLe,5,0,"ng-container",12),n.qZA()()),2&t){const s=n.MAs(3),l=n.MAs(14),u=n.MAs(23);n.s9C("titulo",r.cliente.id?"Complete seu cadastro":"Identifique-se"),n.Q6J("retorno","carrinho"),n.xp6(1),n.Tol(r.empresa.tema),n.xp6(1),n.Q6J("ngClass",n.WLB(22,DLe,!s.submitted,s.submitted)),n.xp6(10),n.Q6J("selectedCountryCode",r.cliente.codigoPais?r.cliente.codigoPais:"+55"),n.xp6(1),n.Q6J("mask",r.phoneMask)("readonly",r.cliente.informarCpf)("disabled",r.buscando)("ngModel",r.cliente.telefone),n.xp6(4),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.mask),n.xp6(4),n.Q6J("ngModel",r.cliente.nome),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(1),n.Q6J("ngIf",r.informarCpf),n.xp6(1),n.Q6J("ngIf",r.informarDataNascimento),n.xp6(1),n.Q6J("ngIf",r.fidelidadeExterna&&r.fidelidadeExterna.aceitarFidelidade),n.xp6(1),n.Q6J("ngIf",r.criarConta),n.xp6(1),n.Q6J("ngIf",r.atualizarMeuCadastro()),n.xp6(1),n.Q6J("ngIf",!r.atualizarMeuCadastro()&&!r.criarConta),n.xp6(1),n.Q6J("ngIf",r.empresa.pedidoMesaNaoIdentificado&&r.pedido.mesa)}},dependencies:[gt,Ge,Ia,wi,wp,ti,ma,Lo,zv,ni,Zo,ja,Er,po,eT,dn,Xp,io,Cs,Za,Yu,_B],styles:["h4[_ngcontent-%COMP%]{font-size:1.05em}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}fieldset[_ngcontent-%COMP%]{border:1px solid #ccc;padding:25px}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{width:140px;font-size:1em}.k-i-loading[_ngcontent-%COMP%]{position:absolute;right:15px;top:18px}  .k-input,   .k-textbox, input[_ngcontent-%COMP%]{color:#3e3e3e!important;border-color:#00000014}  .k-maskedtextbox.form-control .k-textbox{width:100%!important}.aceite-fidelidade[_ngcontent-%COMP%]{position:relative}.aceite-fidelidade[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%;font-size:12px}.aceite-fidelidade[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .aceite-fidelidade[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:-21px;position:relative}.aceite-fidelidade[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:30px;top:4px;position:absolute;right:0}.aceite-fidelidade.menor[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:18px;height:20px}.chinainbox[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}"]}),i})();const ILe={0:"Falha de conex\xe3o com servidor",404:"Falha ao invocar servidor, recurso n\xe3o encontrado",500:"Falha ao tentar realizar opera\xe7\xe3o, tente de novo mais tarde.",504:"Falha ao tentar realizar opera\xe7\xe3o, tente de novo mais tarde."};let ELe=(()=>{class i{constructor(t){this.http=t}salve(t,r){return r.id?this.http.put(t,r).toPromise().then(this.retorno).catch(this.handleError):this.http.post(t,r).toPromise().then(this.retorno).catch(this.handleError)}facaPost(t,r){return this.http.post(t,r).toPromise().then(this.retorno).catch(this.handleError)}facaPut(t,r){return this.http.put(t,r).toPromise().then(this.retorno).catch(this.handleError)}upload(t,r,s=null){let l=new FormData;return r&&l.append("file",r,r.name),l.append("data",JSON.stringify(s)),this.salve(t,l)}remova(t,r){return this.http.delete(t,r).toPromise().then(this.retorno).catch(this.handleError)}obtenha(t,r){return this.http.get(t,{params:r}).toPromise().then(this.retorno).catch(this.handleError)}retorno(t){return t.sucesso?Promise.resolve(t.data):(console.log("Houve um erro ao enviar"),Promise.reject(t.erro))}handleError(t){if(!t)return Promise.reject(t);let r=t&&null!=t.status?ILe[t.status]:t&&t.message||t;return!r&&t.url.indexOf("/login")>=0&&(r="Fa\xe7a login novamente para realizar essa opera\xe7\xe3o."),Promise.reject(r)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),PLe=(()=>{class i extends ELe{constructor(t){super(t),this.httpCliente=t}obtenhaDadosMapa(){return this.obtenha("/geo/dadosmapa",{})}apagueKML(){return this.facaPost("/geo/apagueKML",{})}obtenhaEndereco(t){return this.obtenha("/geo/geocodeEndereco?lat="+t.lat+"&lng="+t.lng,{})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),OLe=(()=>{class i{constructor(t){this.el=t,this.afterValueChanged=new n.vpe,this.valueChangeDelay=300,this.stream=new Ht.xQ,this.subscription=this.stream.pipe(xu(this.valueChangeDelay)).subscribe(r=>this.afterValueChanged.next(r))}ngOnDestroy(){this.subscription.unsubscribe()}onValueChange(t){this.stream.next(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq))},i.\u0275dir=n.lG2({type:i,selectors:[["","afterValueChanged",""]],hostBindings:function(t,r){1&t&&n.NdJ("valueChange",function(l){return r.onValueChange(l)})},inputs:{valueChangeDelay:"valueChangeDelay"},outputs:{afterValueChanged:"afterValueChanged"}}),i})();function NLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",3)(1,"label",4)(2,"input",5),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.agendarEntrega=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.clicouAgendarEntrega())}),n.qZA(),n._uU(3),n.qZA()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngModel",t.agendarEntrega),n.xp6(1),n.hij(" Agendar ",t.getLabel()," ")}}function LLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-combobox",12),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.horarioAgendado=s)})("selectionChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.alterouHorarioAgendado(s))}),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("ngModel",t.horarioAgendado)("data",t.horariosDisponiveis)("required",t.agendarEntrega)("itemDisabled",t.itemDisabled)("allowCustom",0==t.horariosDisponiveis.length)("clearButton",!1)("kendoDropDownFilter",t.filterSettings)("readonly",!t.pedido.dataEntrega||t.naoFunciona||t.naoDaTempo)}}function RLe(i,o){1&i&&(n.TgZ(0,"label",13),n._UZ(1,"i",14),n._uU(2," N\xe3o fazemos entrega na data selecionada."),n.qZA())}function FLe(i,o){1&i&&(n.TgZ(0,"label",13),n._UZ(1,"i",14),n._uU(2," N\xe3o h\xe1 tempo h\xe1bil para fazermos a entrega na data selecionada."),n.qZA())}function BLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",6)(1,"label"),n._uU(2),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"kendo-datepicker",7,8),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pedido.dataEntrega=s)})("afterValueChanged",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.alterouDataDeEntrega())}),n._UZ(6,"kendo-datepicker-messages",9),n.qZA(),n.YNc(7,LLe,1,8,"kendo-combobox",10),n.YNc(8,RLe,3,0,"label",11),n.YNc(9,FLe,3,0,"label",11),n.qZA()}if(2&i){const t=n.oxw(2);n.xp6(2),n.hij("Data ",t.getLabel(),": "),n.xp6(2),n.Q6J("ngModel",t.pedido.dataEntrega)("min",t.diaMiminio)("max",t.dataMaximaAgendamento)("disabledDates",t.disabledDates)("required",t.agendarEntrega),n.xp6(3),n.Q6J("ngIf",!t.pedido.naoInformarHorarioNoAgendamento(t.pedido.entrega.formaDeEntrega,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",t.naoFunciona),n.xp6(1),n.Q6J("ngIf",t.naoDaTempo)}}function HLe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,NLe,4,2,"div",1),n.YNc(2,BLe,10,9,"div",2),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.apenasAgendamento),n.xp6(1),n.Q6J("ngIf",t.agendarEntrega)}}let ZK=(()=>{class i{constructor(t,r){this.clienteService=t,this.app=r,this.naoFunciona=!1,this.naoDaTempo=!1,this.horariosDisponiveis=[],this.filterSettings={caseSensitive:!1,operator:"contains"},this.inicializouHorarios=!1,this.horariosCheios=[],this.disabledDates=s=>{let l=!1,u=s.getDay();if(!this.empresa.horariosFuncionamento)return;let p=[],y=s;y.setDate(y.getDate()-1);let A=y.getDay();for(let w of this.empresa.horariosFuncionamento)(w.diaDaSemana===u&&w.funciona||w.diaDaSemana===A&&w.funciona&&parseInt(w.horarioFechamento.split(":")[0],10)<parseInt(w.horarioAbertura.split(":")[0],10))&&p.push(w);return 0===p.length&&(l=!0),l},this.setDataMinima(new Date)}ngOnInit(){var t=this;return sn(function*(){yield t.executeCarregamentoDeHorarios()})()}setDataMinima(t){this.dataMinimaAgendamento=new Date(t),this.diaMiminio=new Date(t),this.setInicioDia(this.diaMiminio)}setInicioDia(t){t.setHours(0),t.setMinutes(0),t.setSeconds(0),t.setMilliseconds(0)}addHours(t,r){return t.setTime(t.getTime()+60*r*60*1e3),t}getLabel(){return this.pedido.obtenhaLabelFormaSelecionada()}ngOnChanges(){var t=this;return sn(function*(){t.formasDeEntrega&&t.formasDeEntrega.length&&t.setDatasMinimaseMaximas(),yield t.executeCarregamentoDeHorarios()})()}setDatasMinimaseMaximas(){let t=this.pedido.obtenhaFormaEscolhida(this.formasDeEntrega);if(!t)return;let r=new Date;t.naoPerguntarHorario&&this.setInicioDia(r),t.agendamentoLimiteMinimo&&this.setDataMinima(this.addHours(r,t.agendamentoLimiteMinimo)),t.agendamentoLimiteMaximo&&(this.dataMaximaAgendamento=this.addHours(r,t.agendamentoLimiteMaximo))}alterouDataDeEntrega(){var t=this;return sn(function*(){t.pedido.horarioEntrega=null,t.pedido.dataEntrega&&(yield t.carregueHorariosDisponiveis()),t.horarioAgendado&&(t.horariosDisponiveis.find(r=>r.valor===t.horarioAgendado.valor)||(t.horarioAgendado=null))})()}diferencaMaiorQueMinima(t,r,s){return Math.abs(r-t)/36e5>=s}obtenhaTempoFuncionamentoMinutos(t,r){const[s,l]=t.split(":").map(Number),[u,p]=r.split(":").map(Number),y=new Date,A=new Date(y.getFullYear(),y.getMonth(),y.getDate(),s,l),w=new Date(y.getFullYear(),y.getMonth(),y.getDate(),u,p);return w<=A&&w.setDate(w.getDate()+1),(w-A)/6e4}carregueHorariosDisponiveis(){var t=this;return sn(function*(){t.naoFunciona=!1,t.naoDaTempo=!1;let r=t.pedido.dataEntrega.getDay();if(!t.empresa.horariosFuncionamento)return;t.horariosDisponiveis=[];let s=[],l=new Date(t.pedido.dataEntrega);l.setDate(l.getDate()-1);let u=l.getDay();for(let A of t.empresa.horariosFuncionamento)A.tempoAbertoEmMinutos=t.obtenhaTempoFuncionamentoMinutos(A.horarioAbertura,A.horarioFechamento),A.diaDaSemana===r&&A.funciona?s.push(A):A.diaDaSemana===u&&A.funciona&&parseInt(A.horarioFechamento.split(":")[0],10)<parseInt(A.horarioAbertura.split(":")[0],10)&&(A.ehMadrugada=!0,s.push(A));let p=t.pedido.obtenhaFormaEscolhida(t.formasDeEntrega),y=t.obtenhaTempoMaximo(p);if(0===s.length)t.naoFunciona=!0;else{for(let A of s){let w=A.horarioAbertura.split(":"),I=A.horarioFechamento.split(":");if(A.diaDaSemana===u&&(w=["00","00"]),!(y>0&&A.tempoAbertoEmMinutos<=y))if(t.ehHoje(t.pedido.dataEntrega)){if(!t.empresa.fechadoTemporariamente){let P=t.adidioneTempoPreparo(new Date,p),F=t.adidioneTempoPreparo(new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),w[0],w[1],0),p),V=new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),I[0],I[1],0);V<F&&(V=new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),23,59)),P>F&&(F=P),F<V&&(yield t.gereIntervaloHorarios(F,V,t.pedido.obtenhaIntervaloAgendamento(t.pedido.entrega.formaDeEntrega,t.empresa.formasDeEntrega)))}}else{let P=new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),w[0],w[1],0,0);A.ehMadrugada||(P=t.adidioneTempoPreparo(P,p));let F=new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),I[0],I[1],0,0);F<P&&(F=new Date(t.pedido.dataEntrega.getFullYear(),t.pedido.dataEntrega.getMonth(),t.pedido.dataEntrega.getDate(),23,59)),yield t.gereIntervaloHorarios(P,F,t.pedido.obtenhaIntervaloAgendamento(t.pedido.entrega.formaDeEntrega,t.empresa.formasDeEntrega))}}console.log("Horarios dispon\xedveis calculados",t.horariosDisponiveis),0===t.horariosDisponiveis.length&&(t.naoDaTempo=!0),t.horariosDisponiveis.sort((A,w)=>t.converterParaMinutos(A.valor)-t.converterParaMinutos(w.valor))}})()}converterParaMinutos(t){const[r,s]=t.split(":").map(Number);return 60*r+s}ehMesmoDia(t,r){return t.getDate()===r.getDate()&&t.getMonth()===r.getMonth()&&t.getFullYear()===r.getFullYear()}ehHoje(t){const r=new Date;return this.ehMesmoDia(t,r)}ehAmanha(t){const r=new Date;return r.setTime(r.getTime()+864e5),this.ehMesmoDia(t,r)}clicouAgendarEntrega(){this.tela.agendarEntrega=this.agendarEntrega,this.setDatasMinimaseMaximas()}selecionouHorario(){}gereIntervaloHorarios(t,r,s=30){var l=this;return sn(function*(){let u=l.pedido.obtenhaFormaEscolhida(l.formasDeEntrega);if(u.limitePedidosAgendados){let y=l.pedido.dataEntrega,A=y.getFullYear(),w=y.getMonth()+1,I=y.getDate(),P=String(`${A}${w.toString().padStart(2,"0")}${I}`),F=yield l.clienteService.obtenhaHorariosIndisponiveis(u,P);l.horariosCheios=F||[]}for(;t.getMinutes()%s!=0;)t.setMinutes(t.getMinutes()+1);t.setSeconds(0);let p=t;for(;p.getTime()<=r.getTime();){if(l.estaDentroHorarioMaximoEMinino(p)){let y=p.toLocaleTimeString("pt-BR").substring(0,5),A={valor:y,descricao:y,bloqueado:l.horariosCheios.indexOf(y)>=0};A.bloqueado&&(A.descricao=String(`${y} (indispon\xedvel)`)),l.horariosDisponiveis.push(A)}p=new Date(p),p.setMinutes(p.getMinutes()+s)}})()}itemDisabled(t){return t.dataItem.bloqueado}estaDentroHorarioMaximoEMinino(t){let r=!0;return this.dataMinimaAgendamento&&(r=t.getTime()>=this.dataMinimaAgendamento.getTime()),this.dataMaximaAgendamento&&r&&(r=t.getTime()<=this.dataMaximaAgendamento.getTime()),r}alterouHorarioAgendado(t){t&&!t.bloqueado&&(this.pedido.horarioEntrega=t.valor)}obtenhaTempoMaximo(t){return t?t.tempoMaximo||t.tempoMaximoRetirada:null}adidioneTempoPreparo(t,r){let s=t,l=this.obtenhaTempoMaximo(r);return l&&s.setTime(s.getTime()+60*l*1e3),s.setSeconds(0),s.setMilliseconds(0),s}executeCarregamentoDeHorarios(){var t=this;return sn(function*(){t.empresa&&t.pedido&&t.pedido.dataEntrega&&t.formasDeEntrega&&(yield t.carregueHorariosDisponiveis(),t.inicializouHorarios=!0,t.horarioAgendado={valor:t.pedido.horarioEntrega,descricao:t.pedido.horarioEntrega,bloqueado:!1},t.app.tick(),console.log("Hor\xe1rios disponiveis",t.horariosDisponiveis))})()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(n.z2F))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-agendar-entrega"]],inputs:{pedido:"pedido",empresa:"empresa",formasDeEntrega:"formasDeEntrega",apenasAgendamento:"apenasAgendamento",tela:"tela",agendarEntrega:"agendarEntrega"},features:[n._Bn([],[{provide:fa,useExisting:Zo}]),n.TTD],decls:1,vars:1,consts:[[4,"ngIf"],["class","form-group mb-0 escolher ",4,"ngIf"],["class","form-group mt-2",4,"ngIf"],[1,"form-group","mb-0","escolher"],[1,"mt-2","k-checkbox-label"],["type","checkbox","id","agendarEntrega","name","agendarEntrega",1,"k-checkbox",3,"ngModel","ngModelChange"],[1,"form-group","mt-2"],["id","dataEntrega","format","dd/MM/yy","name","dataEntrega",1,"form-control","data_entrega","mr-2","k-display-inline-block",2,"border","none","width","160px",3,"ngModel","min","max","disabledDates","required","ngModelChange","afterValueChanged"],["dataEntrega","ngModel"],["today","Hoje","toggle","Trocar calend\xe1rio"],["id","horarioEntrega","name","horarioEntrega","textField","descricao","valueField","valor","placeholder","hh:mm","class","form-control","style","width: 150px; display: inline-block",3,"ngModel","data","required","itemDisabled","allowCustom","clearButton","kendoDropDownFilter","readonly","ngModelChange","selectionChange",4,"ngIf"],["class","mt-2 text-danger",4,"ngIf"],["id","horarioEntrega","name","horarioEntrega","textField","descricao","valueField","valor","placeholder","hh:mm",1,"form-control",2,"width","150px","display","inline-block",3,"ngModel","data","required","itemDisabled","allowCustom","clearButton","kendoDropDownFilter","readonly","ngModelChange","selectionChange"],[1,"mt-2","text-danger"],[1,"fas","fa-exclamation-triangle"]],template:function(t,r){1&t&&n.YNc(0,HLe,3,2,"div",0),2&t&&n.Q6J("ngIf",r.pedido.permiteAgendamento(r.pedido.entrega.formaDeEntrega,r.empresa.formasDeEntrega))},dependencies:[Ge,wp,ti,Lo,ni,bJ,nn,dn,Xp,OLe],styles:["span.k-widget.k-dropdown.k-header[aria-owns=horarioEntrega_listbox][_ngcontent-%COMP%]   span.k-icon.k-i-arrow-s[_ngcontent-%COMP%]{background-image:url(http://www.dimi.eu/fileadmin/templates/media/layout/icon_double_arrow.gif);background-position:0 0;background-size:16px 16px}@media (min-width: 768px){.data_entrega[_ngcontent-%COMP%]{margin-left:12px}}"]}),i})();const $Le=["frm"];function ULe(i,o){1&i&&(n.ynx(0),n._uU(1," (apenas agendamento)"),n.BQk())}function YLe(i,o){1&i&&(n.TgZ(0,"p",21),n._uU(1,"Nenhuma forma de entrega est\xe1 dispon\xedvel no momento"),n.qZA())}const jLe=function(i){return{selecionado:i}};function ZLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",23)(1,"input",24),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.entrega.formaDeEntrega=s)})("change",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(3);return n.KtG(l.alterouFormaDeEntrega(s))}),n.qZA(),n.TgZ(2,"label",25),n._uU(3),n.qZA()()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw(3);n.Q6J("ngClass",n.VKq(7,jLe,l.entrega.formaDeEntrega&&l.entrega.formaDeEntrega===r.nome)),n.xp6(1),n.MGl("id","formaDeEntrega",s,""),n.Q6J("ngModel",l.entrega.formaDeEntrega)("value",r.nome)("required",!0),n.xp6(1),n.MGl("for","formaDeEntrega",s,""),n.xp6(1),n.Oqu(r.nome)}}function VLe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,ZLe,4,9,"span",22),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t.ativa)}}function zLe(i,o){1&i&&(n.TgZ(0,"div",26)(1,"p"),n._uU(2,"Escolha a forma de retirada do seu pedido"),n.qZA()())}function GLe(i,o){if(1&i&&(n.TgZ(0,"div",15)(1,"h4",16),n._uU(2,"Entrega "),n.YNc(3,ULe,2,0,"ng-container",17),n.qZA(),n.YNc(4,YLe,2,0,"p",18),n.TgZ(5,"div",19),n.YNc(6,VLe,2,1,"ng-container",20),n.YNc(7,zLe,3,0,"div",8),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",t.apenasAgendamento),n.xp6(1),n.Q6J("ngIf",t.empresa.id&&!(null!=t.formasDeEntrega&&t.formasDeEntrega.length)),n.xp6(2),n.Q6J("ngForOf",t.formasDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.entrega.formaDeEntrega)}}function qLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.alterarEndereco())}),n._uU(1,"Trocar Endere\xe7o "),n.qZA()}}function JLe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,qLe,2,0,"button",29),n.BQk()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngIf",t.entrega.endereco)}}function QLe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.pegueLocalizacao())}),n._UZ(2,"i",32),n._uU(3," Usar Minha Localiza\xe7\xe3o "),n.qZA(),n.TgZ(4,"div",33)(5,"span",34),n._uU(6,"\xa0ou\xa0"),n.qZA()(),n.BQk()}}function WLe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.informarEndereco())}),n._uU(1,"Informar Endere\xe7o "),n.qZA()}}function KLe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"p")(2,"strong"),n._uU(3,"O que voc\xea prefere?"),n.qZA()(),n.YNc(4,QLe,7,0,"ng-container",17),n.YNc(5,WLe,2,0,"button",29),n.BQk()),2&i){const t=n.oxw(4);n.xp6(4),n.Q6J("ngIf",t.possuiLocalizacao),n.xp6(1),n.Q6J("ngIf",t.entrega.endereco)}}function XLe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h5",21),n._UZ(2,"i",28),n._uU(3," Endere\xe7o Escolhido"),n.qZA(),n.TgZ(4,"h5",16),n._uU(5),n.qZA(),n.YNc(6,JLe,2,1,"ng-container",17),n.YNc(7,KLe,6,2,"ng-container",17),n.BQk()),2&i){const t=n.oxw(3);n.xp6(5),n.hij(" ",t.entrega.endereco.obtenhaEnderecoCompleto()," "),n.xp6(1),n.Q6J("ngIf",!t.escolherTipo),n.xp6(1),n.Q6J("ngIf",t.escolherTipo)}}function e7e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",36),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.pegueLocalizacao())}),n._UZ(2,"i",32),n._uU(3," Usar Minha Localiza\xe7\xe3o "),n.qZA(),n.BQk()}}function t7e(i,o){if(1&i&&(n.TgZ(0,"p",37)(1,"b"),n._UZ(2,"i",38),n._uU(3),n.qZA()()),2&i){const t=n.oxw(5);n.xp6(3),n.hij(" ",t.msgErroLocalizacao," ")}}function n7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.informarEndereco())}),n._uU(1," Informar Endere\xe7o "),n.qZA()}}function i7e(i,o){if(1&i&&(n.TgZ(0,"div",35),n.ynx(1),n.TgZ(2,"p")(3,"strong"),n._uU(4,"Ative sua localiza\xe7\xe3o para informar seu endere\xe7o"),n.qZA()(),n.YNc(5,e7e,4,0,"ng-container",17),n.YNc(6,t7e,4,1,"p",9),n.YNc(7,n7e,2,0,"button",29),n.BQk(),n.qZA()),2&i){const t=n.oxw(4);n.xp6(5),n.Q6J("ngIf",t.possuiLocalizacao),n.xp6(1),n.Q6J("ngIf",t.msgErroLocalizacao),n.xp6(1),n.Q6J("ngIf",t.erroLocalizacao)}}function o7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(6);return n.KtG(s.alterarEndereco())}),n._uU(1,"Escolher Endere\xe7o "),n.qZA()}}function r7e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,o7e,2,0,"button",29),n.BQk()),2&i){const t=n.oxw(5);n.xp6(1),n.Q6J("ngIf",!t.entrega.endereco)}}function a7e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(6);return n.KtG(s.pegueLocalizacao())}),n._UZ(2,"i",32),n._uU(3," Usar Minha Localiza\xe7\xe3o "),n.qZA(),n.TgZ(4,"div",33)(5,"span",34),n._uU(6,"\xa0ou\xa0"),n.qZA()(),n.BQk()}}function s7e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"p")(2,"strong"),n._uU(3,"O que voc\xea prefere?"),n.qZA()(),n.YNc(4,a7e,7,0,"ng-container",17),n.TgZ(5,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.informarEndereco())}),n._uU(6,"Informar Endere\xe7o "),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(5);n.xp6(4),n.Q6J("ngIf",t.possuiLocalizacao)}}function l7e(i,o){if(1&i&&(n.TgZ(0,"div",35),n.YNc(1,r7e,2,1,"ng-container",17),n.YNc(2,s7e,7,1,"ng-container",17),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngIf",!t.escolherTipo),n.xp6(1),n.Q6J("ngIf",t.escolherTipo)}}function c7e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,i7e,8,3,"div",6),n.YNc(2,l7e,3,2,"div",6),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.entrega.ehDelivery()&&t.formaDelivery.priorizarLocalizacao),n.xp6(1),n.Q6J("ngIf",t.entrega.ehDelivery()&&!t.formaDelivery.priorizarLocalizacao)}}function d7e(i,o){if(1&i&&(n.TgZ(0,"div",27),n.YNc(1,XLe,8,3,"ng-container",17),n.YNc(2,c7e,3,2,"ng-container",17),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.entrega.endereco),n.xp6(1),n.Q6J("ngIf",!t.entrega.endereco)}}function u7e(i,o){if(1&i&&(n.TgZ(0,"h5",41),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,t.entrega.taxaDeEntrega,"BRL")," ")}}function p7e(i,o){1&i&&(n.TgZ(0,"h5",41),n._uU(1," A Informar "),n.qZA())}function h7e(i,o){if(1&i&&(n.TgZ(0,"div",35)(1,"p",39),n._uU(2," Taxa de Entrega "),n.qZA(),n.YNc(3,u7e,3,4,"h5",40),n.YNc(4,p7e,2,0,"h5",40),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",-1!==t.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("ngIf",-1===t.entrega.taxaDeEntrega)}}function g7e(i,o){1&i&&(n.TgZ(0,"div",26)(1,"p"),n._uU(2,"\xc9 necess\xe1rio escolher o dia e hor\xe1rio da entrega"),n.qZA()())}function f7e(i,o){if(1&i&&(n.TgZ(0,"p",37)(1,"b"),n._UZ(2,"i",38),n._uU(3),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(" ",t.msgErro," ")}}const m7e=function(i,o){return{"needs-validation":i,"was-validated":o}};function _7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",2,3),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onSubmit())}),n.YNc(2,GLe,8,4,"div",4),n.YNc(3,d7e,3,2,"div",5),n.YNc(4,h7e,5,2,"div",6),n._UZ(5,"app-agendar-entrega",7),n.YNc(6,g7e,3,0,"div",8),n.YNc(7,f7e,4,1,"p",9),n._UZ(8,"div",10),n.TgZ(9,"footer",11)(10,"div")(11,"div",12)(12,"div",13)(13,"button",14),n._uU(14,"Salvar Forma de Entrega"),n.qZA()()()()()()}if(2&i){const t=n.MAs(1),r=n.oxw();n.Q6J("ngClass",n.WLB(16,m7e,!t.submitted,t.submitted)),n.xp6(2),n.Q6J("ngIf",r.pedido),n.xp6(1),n.Q6J("ngIf",r.entrega.ehDelivery()),n.xp6(1),n.Q6J("ngIf",r.entrega&&null!=r.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("empresa",r.empresa)("pedido",r.pedido)("formasDeEntrega",r.formasDeEntrega)("agendarEntrega",r.agendouEntrega||r.apenasAgendamento)("apenasAgendamento",r.apenasAgendamento)("tela",r),n.xp6(1),n.Q6J("ngIf",r.agendarEntrega&&(!r.pedido.dataEntrega||!r.pedido.horarioEntrega)),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(2),n.Tol(r.empresa.tema),n.xp6(3),n.Q6J("hidden",!r.entrega.foiPreenchida()&&r.entrega.ehDelivery())}}let b7e=(()=>{class i{constructor(t,r,s,l,u,p,y){this.clienteService=t,this.carrinhoService=r,this.router=s,this.location=l,this.constantsService=u,this.dominiosService=p,this.geoService=y,this.entrega=new ga,this.empresa={},this.msgErro="",this.formasDeEntrega=[],this.escolherTipo=!1,this.possuiLocalizacao=!1,this.entregaPorZona=!1,this.enderecoAntigo=null,this.formaDelivery=null,this.erroLocalizacao=!1,this.msgErroLocalizacao="",this.nomePagina=p.obtenhaRaizCardapio(),this.entrega=new ga,"geolocation"in navigator&&(this.possuiLocalizacao=!0)}ngOnInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.entrega=this.pedido.entrega,this.formasDeEntrega=[],this.taxaAntiga=this.entrega?this.entrega.taxaDeEntrega:null,this.enderecoAntigo=this.entrega.endereco&&void 0!==this.entrega.endereco.taxaDeEntrega?this.entrega.endereco:null,this.entrega&&this.entrega.endereco&&void 0===this.entrega.endereco.taxaDeEntrega&&(this.entrega.endereco=this.enderecoAntigo,this.entrega.taxaDeEntrega=this.entrega.endereco?this.entrega.endereco.taxaDeEntrega:null),this.constantsService.empresa$.subscribe(t=>{t&&(this.empresa=t,this.apenasAgendamento=!this.empresa.estaRecebendoPedidos&&this.empresa.permiteAgendamento,this.apenasAgendamento&&(this.agendarEntrega=!0),this.empresa.apenasAgendamento=this.apenasAgendamento,this.empresa.formasDeEntrega.forEach(r=>{if(r.ativa&&(r.formaDeEntrega.nome===wo.RECEBER_EM_CASA&&(this.formaDelivery=r),this.formasDeEntrega.push(Object.assign({},r)),r.permiteComerNoLocal)){let s=Object.assign({},r);s.comerNoLocal=!0,s.nome="Comer no local",this.formasDeEntrega.push(s)}this.empresa.apenasAgendamento||this.pedido.entrega.formaDeEntrega===r.formaDeEntrega.nome&&(this.agendarEntrega=r.agendamentoObrigatorio,this.apenasAgendamento=r.agendamentoObrigatorio)}),this.pedido.dataEntrega&&(this.agendouEntrega=!0,this.agendarEntrega=!0))})}onSubmit(){var t=this;return sn(function*(){if(t.frm.valid)if(t.agendarEntrega||(t.pedido.dataEntrega=null,t.pedido.horarioEntrega=null),t.pedido.temValorMinimo(t.entrega.formaDeEntrega,t.formasDeEntrega))if(t.pedido.ultrapassouValorMaximo(t.entrega.formaDeEntrega,t.formasDeEntrega))t.exibaErroValorMaximo();else{t.pedido.entrega=t.entrega,t.taxaAntiga&&t.taxaAntiga!==t.pedido.entrega.taxaDeEntrega&&t.pedido.setNovoPagamento(),t.pedido.calculeTotal(),t.carrinhoService.salvePedido(t.pedido);let r=t.pedido.cupom?t.pedido.cupom.codigo:null;r&&(yield t.carrinhoService.atualizeValorDesconto(r,t.empresa)),t.entrega.ehDelivery()&&!t.entrega.foiPreenchida()?t.router.navigate(["/"+t.nomePagina+"/criar-endereco"],{queryParamsHandling:"merge"}):t.router.navigate(["/"+t.nomePagina+"/carrinho"],{queryParamsHandling:"merge"})}else t.exibaErroValorMinimo()})()}exibaErroValorMinimo(){let t=this.pedido.obtenhaValorMinimoParaEntrega(this.entrega.formaDeEntrega,this.formasDeEntrega);t=" R$"+t.toFixed("2").replace(".",","),this.msgErro=this.entrega.ehRetirada()?"Para fazer retiradas , o valor m\xednimo do pedido \xe9 de "+t:"Para receber em casa,  o valor m\xednimo do pedido \xe9 de "+t}exibaErroValorMaximo(){let t=this.pedido.obtenhaValorMaximoParaEntrega(this.entrega.formaDeEntrega,this.formasDeEntrega);t=" R$"+t.toFixed("2").replace(".",","),this.msgErro=this.entrega.ehRetirada()?"Para fazer retiradas , o valor m\xe1ximo do pedido \xe9 de "+t:"Para receber em casa,  o valor m\xe1ximo do pedido \xe9 de "+t}obtenhaFormaDoPedido(){for(let t=0;t<this.empresa.formasDeEntrega.length;t++){const r=this.empresa.formasDeEntrega[t];if(r.nome===wo.RECEBER_EM_CASA)return r}return{}}alterarEndereco(){if(this.pedido.temValorMinimoDaFormaEscolhida(this.formasDeEntrega))if(this.pedido.ultrapassouValorMaximoDaFormaEscolhida(this.formasDeEntrega))this.exibaErroValorMaximo();else{this.pedido.entrega=this.entrega,this.carrinhoService.salvePedido(this.pedido);const t=this.obtenhaFormaDoPedido();t&&"zona"===t.tipoDeCobranca||!t.permiteUsarGps?this.router.navigate(["/"+this.nomePagina+"/criar-endereco"],{queryParamsHandling:"merge"}):this.escolherTipo=!0}else this.exibaErroValorMinimo()}informarEndereco(){this.router.navigate(["/"+this.nomePagina+"/criar-endereco"],{queryParamsHandling:"merge"})}deveExibirTopo(){return!1}deveExibirMenu(){return!1}alterouFormaDeEntrega(t){delete this.msgErro,this.entrega.ehRetirada()?this.entrega.taxaDeEntrega=0:this.entrega.endereco&&(this.entrega.taxaDeEntrega=this.entrega.endereco.taxaDeEntrega),this.empresa.apenasAgendamento||(this.agendarEntrega=t.agendamentoObrigatorio,this.apenasAgendamento=t.agendamentoObrigatorio)}pegueLocalizacao(){navigator.geolocation.getCurrentPosition(t=>{const r={lat:t.coords.latitude,lng:t.coords.longitude};this.geoService.obtenhaEndereco(r).then(s=>{const l=Xr.novo();Object.assign(l,s),this.router.navigateByUrl("/"+this.nomePagina+`/criar-endereco?endereco=1&gps=1&lat=${r.lat}&lng=${r.lng}`).then(u=>{})})},t=>{this.msgErroLocalizacao="Voc\xea precisa ativar a geolocaliza\xe7\xe3o para poder utilizar essa funcionalidade. Motivo: "+t.message,this.erroLocalizacao=!0},{enableHighAccuracy:!0})}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(Oi),n.Y36(Pn),n.Y36(_n),n.Y36(gi),n.Y36(Eo),n.Y36(PLe))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-entrega"]],viewQuery:function(t,r){if(1&t&&n.Gf($Le,5),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first)}},decls:2,vars:1,consts:[["titulo","Entrega"],["novalidate","",3,"ngClass","ngSubmit",4,"ngIf"],["novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],["class","produto pt-2 pb-0",4,"ngIf"],["class","produto pt-2 pb-2",4,"ngIf"],["class","col",4,"ngIf"],[3,"empresa","pedido","formasDeEntrega","agendarEntrega","apenasAgendamento","tela"],["class","invalid-feedback",4,"ngIf"],["class","alert alert-danger mt-2",4,"ngIf"],[2,"height","40px"],[1,"footer"],[1,"row",2,"padding","15px"],[1,"col",3,"hidden"],[1,"btn","btn-primary","btn-block","btn-tema"],[1,"produto","pt-2","pb-0"],[1,"titulo"],[4,"ngIf"],["class","text-muted",4,"ngIf"],[1,"form-group","mb-2","mt-3","escolher"],[4,"ngFor","ngForOf"],[1,"text-muted"],["class","mr-1 radio radio-blue mb-1 k-display-block",3,"ngClass",4,"ngIf"],[1,"mr-1","radio","radio-blue","mb-1","k-display-block",3,"ngClass"],["name","formaDeEntrega","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","ngModelChange","change"],[1,"ml-1",3,"for"],[1,"invalid-feedback"],[1,"produto","pt-2","pb-2"],[1,"fas","fa-map-marker-alt"],["class","btn btn-blue btn-block","type","button",3,"click",4,"ngIf"],["type","button",1,"btn","btn-blue","btn-block",3,"click"],["type","button",1,"btn","btn-outline-primary","btn-block",3,"click"],[1,"fas","fa-search-location"],[1,"mt-2","mb-2"],[1,"ou"],[1,"col"],["type","button",1,"btn","btn-primary","btn-block",3,"click"],[1,"alert","alert-danger","mt-2"],[1,"fas","fa-exclamation-triangle"],[1,"mt-2","mb-0"],["class","mt-1",4,"ngIf"],[1,"mt-1"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-tela",0),n.YNc(1,_7e,15,19,"form",1)),2&t&&(n.xp6(1),n.Q6J("ngIf",r.pedido))},dependencies:[gt,Bt,Ge,Ia,wi,tc,ti,ma,Lo,ni,Zo,Fu,io,Cs,ZK,Jo],styles:['.mobile[_ngcontent-%COMP%]   .btn-block[_ngcontent-%COMP%]{padding:1em 0}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background:#fff;padding:0;position:fixed}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important}}.ou[_ngcontent-%COMP%]{display:flex;flex-direction:row;color:#b6b6b6}.ou[_ngcontent-%COMP%]:before, .ou[_ngcontent-%COMP%]:after{content:"";flex:1 1;border-bottom:1px solid #eeecec;margin:auto}  .black_friday_2022 .footer{background:#0e0e0e}  .black_friday_2022 h4.titulo{color:#676767}  .black_friday_2022 .btn-tema{color:#b57e2b;border-color:#b57e2b}  .black_friday_2022 .btn-tema{background:#b57e2b;color:#0e0e0e;font-weight:700;border-color:#986716}  .black_friday_2022 .btn-tema:active{background:#774e09;color:#2d1c00;border-color:#986716}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .btn-secondary[_ngcontent-%COMP%]{background-color:#ff9800d6!important;border-color:#e79e406e!important}']}),i})();const v7e=["header"];function y7e(i,o){if(1&i&&(n.TgZ(0,"span")(1,"b"),n._uU(2),n.TgZ(3,"span",8),n._uU(4,"| "),n.qZA()()()),2&i){const t=o.$implicit,r=o.last,s=n.oxw(2);n.xp6(2),n.AsE(" ",s.obtenhaHorario(t.horarioAbertura)," \xe1s ",s.obtenhaHorario(t.horarioFechamento)," "),n.xp6(1),n.Q6J("hidden",r)}}function C7e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",5)(2,"div",6),n._uU(3),n.qZA(),n.TgZ(4,"div",7),n.YNc(5,y7e,5,3,"span",4),n.qZA()(),n.BQk()),2&i){const t=o.$implicit,r=o.index,s=n.oxw();n.xp6(1),n.ekj("hoje",s.ehHoje(r)),n.xp6(2),n.hij(" ",t," "),n.xp6(2),n.Q6J("ngForOf",s.obtenhaHorariosDia(r))}}let VK=(()=>{class i{constructor(){this.horarioDoServico={},this.abriuComoModal=!1,this.empresa={},this.diasDaSemana=["Domingo","Segunda","Ter\xe7a","Quarta","Quinta","Sexta","S\xe1bado"]}static abraComoPopup(t,r,s,l,u,p){let y=La.calculeAlturaLargura(!1);const A=l.open({title:null,content:i,minWidth:200,width:y.largura,height:500});let w=A.content.instance;w.empresa=u,w.horarioDoServico=p,w.setModal(A),La.abraJanela(t,r,s,A,{},null)}ngOnInit(){}obtenhaHorariosDia(t){return this.horarioDoServico.horarios.filter(s=>s.diaDaSemana===t)}ehHoje(t){let r=!1;return this.obtenhaHorariosDia(t).forEach(s=>{s.hoje&&(r=!0)}),r}obtenhadDiaSemana(t){return this.diasDaSemana[t]}obtenhaHorario(t){return t.substring(0,5)}setModal(t,r=null){this.window=t,this.abriuComoModal=!0}fecheTela(){this.window.close()}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-painel-horarios"]],viewQuery:function(t,r){if(1&t&&n.Gf(v7e,5),2&t){let s;n.iGM(s=n.CRH())&&(r.header=s.first)}},decls:8,vars:7,consts:[["exibirFechar","true",3,"titulo","fechou"],[1,"mt-3"],["kendoTooltip","",3,"title"],[1,"calendario"],[4,"ngFor","ngForOf"],[1,"row"],[1,"col-3"],[1,"col-9"],[3,"hidden"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.TgZ(1,"h5",1),n._UZ(2,"i",2),n._uU(3," Hor\xe1rios "),n.TgZ(4,"b"),n._uU(5),n.qZA()(),n.TgZ(6,"div",3),n.YNc(7,C7e,6,4,"ng-container",4),n.qZA()),2&t&&(n.Q6J("titulo",r.empresa.nome),n.xp6(2),n.Tol(r.horarioDoServico.icone),n.s9C("title",r.horarioDoServico.descricao),n.xp6(3),n.Oqu(r.horarioDoServico.descricao),n.xp6(2),n.Q6J("ngForOf",r.diasDaSemana))},dependencies:[Bt,Cs],styles:[".row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-bottom:15px;padding-top:10px}.calendario[_ngcontent-%COMP%]{max-width:400px;border:1px solid #ccc;padding:10px 30px}.hoje[_ngcontent-%COMP%]{background:rgb(241,245,247);border:1px solid #ddd}"]}),i})();const A7e=["slideshow"];function x7e(i,o){1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",3),n.qZA())}function T7e(i,o){if(1&i&&(n.TgZ(0,"span",19),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.empresa.nome," ")}}function S7e(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp,"(99) 9-9999-9999")," ")}}function w7e(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,1,null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp,"(99) 9999-9999")," ")}}const M7e=function(i){return{fechado:i}};function D7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",20),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.verHorarios(l))}),n.TgZ(1,"div",21),n._UZ(2,"i",22),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.TgZ(5,"span"),n._uU(6),n.qZA()()()}if(2&i){const t=o.$implicit;n.xp6(2),n.Gre("",t.icone," status"),n.s9C("title",t.descricao),n.Q6J("ngClass",n.VKq(7,M7e,!t.estaAberta)),n.xp6(2),n.hij(" ",t.label,":"),n.xp6(2),n.hij(" ",t.descricaoHorario,"")}}function k7e(i,o){if(1&i&&(n.TgZ(0,"a",23),n._UZ(1,"i",24),n._uU(2,"\xa0\xa0 "),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("href","https://instagram.com/"+t.empresa.instagram,n.LSH)}}function I7e(i,o){if(1&i&&(n.TgZ(0,"a",23),n._UZ(1,"i",25),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("href","https://facebook.com/"+t.empresa.facebook,n.LSH)}}function E7e(i,o){if(1&i&&(n.TgZ(0,"span",30),n._UZ(1,"i",31),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("",t.empresa.descricaoTempoEntrega," ")}}function P7e(i,o){if(1&i&&(n.TgZ(0,"span",32),n._UZ(1,"i",33),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("",t.empresa.descricaoTempoRetirada," ")}}function O7e(i,o){if(1&i&&(n.TgZ(0,"div",26)(1,"div",27),n.YNc(2,E7e,3,1,"span",28),n.YNc(3,P7e,3,1,"span",29),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngIf",t.empresa.descricaoTempoEntrega),n.xp6(1),n.Q6J("ngIf",t.empresa.descricaoTempoRetirada)}}function N7e(i,o){1&i&&(n.TgZ(0,"div",37)(1,"div",38),n._UZ(2,"i",39),n._uU(3," Retirar Na Loja \xa0 "),n.qZA(),n._UZ(4,"i",40),n.qZA())}function L7e(i,o){if(1&i&&(n.TgZ(0,"div",37)(1,"div",41),n._UZ(2,"i",39),n._uU(3),n.qZA(),n._UZ(4,"i",40),n.qZA()),2&i){const t=n.oxw(3);n.xp6(3),n.hij(" ",t.pedido.entrega.endereco.obtenhaEnderecoCompleto()," \xa0 ")}}function R7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",34)(1,"div",35),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.mudarFormaDeEntrega())}),n.YNc(2,N7e,5,0,"div",36),n.YNc(3,L7e,5,1,"div",36),n.qZA()()}if(2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("ngIf","Retirar"===t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf","Receber em casa"===t.pedido.entrega.formaDeEntrega)}}function F7e(i,o){if(1&i&&(n.TgZ(0,"div",42),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.empresa.descricao," ")}}function B7e(i,o){1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",43),n.qZA())}function H7e(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",4)(2,"div",5),n._UZ(3,"img",6),n.TgZ(4,"div",7),n.YNc(5,T7e,2,1,"span",8),n.TgZ(6,"span",9),n._uU(7),n.qZA(),n.TgZ(8,"a",10),n._UZ(9,"i",11),n.YNc(10,S7e,3,4,"ng-container",0),n.YNc(11,w7e,3,4,"ng-container",0),n.qZA(),n.TgZ(12,"div",12),n.YNc(13,D7e,7,9,"div",13),n._uU(14," \xa0 "),n.TgZ(15,"div",14),n.YNc(16,k7e,3,1,"a",15),n.YNc(17,I7e,2,1,"a",15),n.qZA()(),n.YNc(18,O7e,4,2,"div",16),n.qZA(),n.YNc(19,R7e,4,2,"div",17),n.qZA(),n.YNc(20,F7e,2,1,"div",18),n.qZA(),n.YNc(21,B7e,2,0,"div",0),n.qZA()),2&i){const t=n.oxw();n.Gre("container_total ",t.empresa.tema,""),n.xp6(3),n.MGl("src","https://promokit.com.br/images/empresa/",t.empresa.logo,"",n.LSH),n.xp6(2),n.Q6J("ngIf",t.exibirTitulo),n.xp6(1),n.ekj("font-14",!t.exibirTitulo),n.xp6(1),n.hij(" ",t.empresa.descricaoEndereco?t.empresa.descricaoEndereco:t.empresa.endereco," "),n.xp6(1),n.Q6J("href","http://wa.me/55"+(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp),n.LSH)("hidden",!(null!=t.empresa&&t.empresa.numeroWhatsapp)||(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.ocultar)),n.xp6(2),n.Q6J("ngIf",t.empresa&&(null==t.empresa?null:t.empresa.numeroWhatsapp)&&11===(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp.length)),n.xp6(1),n.Q6J("ngIf",t.empresa&&(null==t.empresa?null:t.empresa.numeroWhatsapp)&&10===(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp.length)),n.xp6(2),n.Q6J("ngForOf",t.empresa.horariosDoServico),n.xp6(3),n.Q6J("ngIf",t.empresa.instagram),n.xp6(1),n.Q6J("ngIf",t.empresa.facebook),n.xp6(1),n.Q6J("ngIf",t.empresa.descricaoTempoEntrega||t.empresa.descricaoTempoRetirada),n.xp6(1),n.Q6J("ngIf",t.exibirFormaDeEntrega()&&t.pedido.entrega&&t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.topoReduzido&&t.empresa.descricao),n.xp6(1),n.Q6J("ngIf",t.exibirBannerTema&&t.empresa.tema&&"black_friday_2022"===t.empresa.tema)}}function $7e(i,o){if(1&i&&n._UZ(0,"div"),2&i){const t=n.oxw();n.Gre("tema_",t.empresa.tema,"")}}function U7e(i,o){if(1&i&&(n.TgZ(0,"div",44)(1,"div")(2,"h5",45)(3,"b"),n._uU(4,"Cashback "),n.qZA(),n.TgZ(5,"span",46),n._uU(6),n.qZA()()()()),2&i){const t=n.oxw();n.Tol(t.empresa.tema),n.Q6J("hidden",!t.exibirTopo),n.xp6(6),n.hij(" ",t.usuario.saldoDescricao,"")}}let Y7e=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.produtoService=t,this.deviceDetectorModule=r,this.router=s,this.location=l,this.activatedRoute=u,this.dialogService=p,this.carrinhoService=y,this.constantsService=A,this.autorizacao=w,this.empresa={},this.exibirTopo=!0,this.exibirBannerTema=!1,this.exibirTitulo=!0,this.carregou=!1,this.topoReduzido=!1,this.formaReceberEmCasa={},this.isDesktop=this.deviceDetectorModule.isDesktop(),this.pedido=this.carrinhoService.obtenhaPedido(),this.usuario=w.getUsuario()||{}}ngOnInit(){this.autorizacao.usuario$.subscribe(t=>{!t||(this.usuario=t)})}ngAfterViewInit(){this.constantsService.empresa$.subscribe(t=>{!t||(this.carregou=!0,this.empresa=t,this.formaReceberEmCasa=this.obtenhaFormaDeEntregaReceberEmCasa(this.empresa))})}carregueDados(){this.carregou=!0}exibirFormaDeEntrega(){return this.formaReceberEmCasa&&this.formaReceberEmCasa.perguntarEnderecoInicio}mudarFormaDeEntrega(){fm.abraPedindoEndereco(null,this.router,this.location,this.activatedRoute,this.dialogService,!0)}obtenhaFormaDeEntregaReceberEmCasa(t){return t.formasDeEntrega.find(r=>"Receber em casa"===r.formaDeEntrega.nome)}verHorarios(t){VK.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.empresa,t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Cl),n.Y36(zo),n.Y36(Pn),n.Y36(_n),n.Y36(ci),n.Y36(Na),n.Y36(Oi),n.Y36(gi),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-topo"]],viewQuery:function(t,r){if(1&t&&n.Gf(A7e,5),2&t){let s;n.iGM(s=n.CRH())&&(r.slideshow=s.first)}},inputs:{empresa:"empresa",exibirTopo:"exibirTopo",exibirBannerTema:"exibirBannerTema",exibirTitulo:"exibirTitulo",topoReduzido:"topoReduzido"},decls:4,vars:4,consts:[[4,"ngIf"],[3,"class",4,"ngIf"],["class","fidelidade saldo",3,"class","hidden",4,"ngIf"],["src","/assets/fidelidade/alsultan-tela-totem-horizontal.jpg",2,"width","100%"],[1,"cartao","conteudo","topo","pb-1"],[1,"dados_empresa"],[1,"imagem_empresa",3,"src"],[1,"detalhes_empresa"],["class","nome_empresa",4,"ngIf"],[1,"endereco","abreviar","mb-1"],[1,"whatsapp",3,"href","hidden"],[1,"fab","fa-whatsapp","fa-lg","mr-1","icone","tam1","icone-whatsapp"],[1,"horario",2,"line-height","12px"],["class","  cpointer","style","display: inline-block;",3,"click",4,"ngFor","ngForOf"],[2,"display","inline-block","top","-5px","float","right","margin-right","5px","position","relative"],["target","_blank",3,"href",4,"ngIf"],["class","horario mt-1",4,"ngIf"],["class","",4,"ngIf"],["class","descricao_empresa",4,"ngIf"],[1,"nome_empresa"],[1,"cpointer",2,"display","inline-block",3,"click"],[1,"descricao","float-left"],["kendoTooltip","",3,"title","ngClass"],["target","_blank",3,"href"],[1,"fab","fa-instagram","font-24"],[1,"fab","fa-facebook-f","font-24"],[1,"horario","mt-1"],[1,"descricao"],["class"," ml-0  mt-1",4,"ngIf"],["class","  mt-1",4,"ngIf"],[1,"ml-0","mt-1"],[1,"fas","fa-motorcycle","mr-1","fa-lg"],[1,"mt-1"],[1,"ml-1","fas","fa-store","mr-1"],[1,""],[1,"cpointer",3,"click"],["class","mt-1","style","color: #3e3e3e;",4,"ngIf"],[1,"mt-1",2,"color","#3e3e3e"],[1,"ml-0","d-inline-block","abreviar",2,"max-width","170px"],[1,"fas","fa-map-marker-alt"],[1,"fas","fa-chevron-down",2,"top","-5px","position","relative"],[1,"ml-0","d-inline-block","abreviar",2,"max-width","calc(100% - 45px)"],[1,"descricao_empresa"],["src","/assets/images/banner_blackfriday2022_mobile.png",2,"width","100%"],[1,"fidelidade","saldo",3,"hidden"],[1,"font-16"],[1,"font-16","ml-2"]],template:function(t,r){1&t&&(n.YNc(0,x7e,2,0,"div",0),n.YNc(1,H7e,22,19,"div",1),n.YNc(2,$7e,1,3,"div",1),n.YNc(3,U7e,7,5,"div",2)),2&t&&(n.Q6J("ngIf",r.exibirTopo&&"quiosque"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.exibirTopo&&"quiosque"!==r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.exibirBannerTema&&r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa&&r.usuario.saldoFidelidade>=0&&!r.usuario.idCartao))},dependencies:[gt,Bt,Ge,xk],styles:['.badge-dark[_ngcontent-%COMP%]{margin-left:-15px;margin-right:-15px;line-height:15px;background:rgba(38,38,38,.8)}.container_total[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.container_total[_ngcontent-%COMP%]   .fundo-fechado[_ngcontent-%COMP%]{position:absolute;background:rgba(38,38,38,.8);top:0;height:100%;width:100%;z-index:1000;text-align:center;color:#fff;font-size:20px;padding-top:15%}.container_total[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#b92468}.container_total[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#0d8bf1}.container_total.carnaval[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .dados_empresa[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .cartao.conteudo[_ngcontent-%COMP%], .container_total.carnaval.fidelidade[_ngcontent-%COMP%]{background:#5b1da6!important}.container_total.carnaval[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .container_total.carnaval[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fce101!important}.container_total.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fce101!important;color:#fce101}.container_total.tema-personalizado[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .dados_empresa[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .cartao.conteudo[_ngcontent-%COMP%], .container_total.tema-personalizado.fidelidade[_ngcontent-%COMP%]{background:#5b1da6!important;background:var(--cor-fundo, #5b1da6)!important}.container_total.tema-personalizado[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]   span[_ngcontent-%COMP%], .container_total.tema-personalizado[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fce101!important;color:var(--cor-texto, #fce101)!important}.container_total.tema-personalizado[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fce101!important;border-color:var(--cor-botao, #fce101)!important;color:#fce101;color:var(--cor-texto-botao, #fce101)}.container_total.black_friday_2022[_ngcontent-%COMP%]{background:#000;box-shadow:inset 0 -1px #000}.container_total.black_friday_2022[_ngcontent-%COMP%]   .cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:none}.container_total.black_friday_2022[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#000;border-radius:0}.container_total.black_friday_2022[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%]{color:#f6a844}.container_total.black_friday_2022[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%], .container_total.black_friday_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%], .container_total.black_friday_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#999}.container_total.black_friday_2022[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#999!important}.container_total.black_friday_2022[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#999}.container_total.black_friday_2022[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.black_friday_2022[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.black_friday_2022[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#999;color:#fff}.container_total.black_friday_2022[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.black_friday_2022[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#999}.container_total.black_friday[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#000;border-radius:0}.container_total.black_friday[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.black_friday[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%]{color:#fff}.container_total.black_friday[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.black_friday[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.black_friday[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#e3e3e3}.container_total.black_friday[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.black_friday[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.black_friday[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], .container_total.black[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.copa_2022[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#1a7200;border-radius:0}.container_total.copa_2022[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #ffd80e}.container_total.copa_2022[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.copa_2022[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.copa_2022[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#ffd80e}.container_total.natal[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#7e0101;border-radius:0}.container_total.natal[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #7e0101}.container_total.natal[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.natal[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.natal[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#f5cb89}.container_total.arraia[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#CE2400;border-radius:0}.container_total.arraia[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #CE2400}.container_total.arraia[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.arraia[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.arraia[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.ano_novo[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#030303;border-radius:0}.container_total.ano_novo[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #362900}.container_total.ano_novo[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.ano_novo[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.ano_novo[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#f1dfa5}.container_total.pascoa[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#775748;border-radius:0}.container_total.pascoa[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #7e0101}.container_total.pascoa[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.pascoa[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.pascoa[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.dia_maes[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#BD3C37;border-radius:0}.container_total.dia_maes[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #7e0101}.container_total.dia_maes[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.dia_maes[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.dia_maes[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.dia_maes[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.dia_maes[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.dia_maes[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}.container_total.dia_maes[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.container_total.dia_maes[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.dia_maes[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.dia_pais[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#0000dd;border-radius:0}.container_total.dia_pais[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #7e0101}.container_total.dia_pais[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.dia_pais[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.dia_pais[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.dia_pais[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.dia_pais[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.dia_pais[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}.container_total.dia_pais[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.container_total.dia_pais[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.dia_pais[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.chinainbox[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#e52f26;color:#fff;box-shadow:none!important}.container_total.chinainbox[_ngcontent-%COMP%]   .bolinha.fechado[_ngcontent-%COMP%]{background:#FF9800}.container_total.chinainbox[_ngcontent-%COMP%]   .status.fechado[_ngcontent-%COMP%]{color:#ff9800}.container_total.chinainbox[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.chinainbox[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.container_total.chinainbox[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.container_total.dia_namorados[_ngcontent-%COMP%]   .conteudo.topo[_ngcontent-%COMP%]{background:#b264da;border-radius:0}.container_total.dia_namorados[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]{border-bottom:solid 1px #b264da}.container_total.dia_namorados[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{box-shadow:inherit!important}.container_total.dia_namorados[_ngcontent-%COMP%]   .nome_empresa[_ngcontent-%COMP%], .container_total.dia_namorados[_ngcontent-%COMP%]   .descricao_empresa[_ngcontent-%COMP%], .container_total.dia_namorados[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], .container_total.dia_namorados[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], .container_total.dia_namorados[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}.container_total.dia_namorados[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%]{filter:brightness(0) invert(1)}.container_total.dia_namorados[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], .container_total.dia_namorados[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}.chinainbox.fidelidade.saldo[_ngcontent-%COMP%]{border-top:1px solid #fff}.preco[_ngcontent-%COMP%]{color:#6db31b}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.capa_empresa[_ngcontent-%COMP%]{height:250px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:0 -1px 5px 4px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%;position:relative;z-index:1000}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:120px;height:120px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 130px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px;display:block;width:100%}.whatsapp[_ngcontent-%COMP%]{display:inline-block;margin-bottom:5px;font-size:.815rem}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px 10px 0 0;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.container_selo[_ngcontent-%COMP%]{position:relative}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.faltam_selos[_ngcontent-%COMP%]{color:#3e48bc;margin-bottom:10px}.container-scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;margin-right:-20px}.container-scroll[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.container-scroll[_ngcontent-%COMP%]   .caixa_brinde[_ngcontent-%COMP%]{border-radius:5px;margin-bottom:10px;height:250px!important;margin-left:-3px;margin-right:-3px;padding-top:5px;background:white}.container-scroll[_ngcontent-%COMP%]   .foto_brinde[_ngcontent-%COMP%]{width:initial;width:100%}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.container-scroll[_ngcontent-%COMP%]   .preco_troca[_ngcontent-%COMP%]{font-size:11px;font-weight:400;line-height:1em}.container-scroll[_ngcontent-%COMP%]   .preco_troca.nao_atingiu[_ngcontent-%COMP%]{color:#f67682}.container-scroll[_ngcontent-%COMP%]   .preco_troca.atingiu[_ngcontent-%COMP%]{color:#6db31b;margin-right:-20px}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.container_imagem[_ngcontent-%COMP%]{overflow:hidden;display:flex;max-width:100%}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{color:#6db31b}.horario[_ngcontent-%COMP%]{width:100%!important}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .status.fechado[_ngcontent-%COMP%]{color:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.container-fotos[_ngcontent-%COMP%]{background:black}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.container-scroll[_ngcontent-%COMP%]{overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial;white-space:inherit;-webkit-overflow-scrolling:touch;margin-right:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:90%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:350px;max-width:100%}@media (max-width: 992px){.cartao.conteudo.topo[_ngcontent-%COMP%]{z-index:10000}.fundo-fechado[_ngcontent-%COMP%]{padding-top:10%!important;font-size:15px!important}.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.detalhes_empresa[_ngcontent-%COMP%]   .endereco.abreviar[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;white-space:inherit}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}}.tema_natal[_ngcontent-%COMP%]{background:#7e0101;text-align:center;background-image:url(/assets/images/banner_natal.png);background-size:cover;height:98px;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.tema_carnaval[_ngcontent-%COMP%]{background:#fce101;text-align:center;height:68px;background-size:cover;background-image:url(/assets/images/banner_carnaval.jpeg);z-index:999999999999;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0}.tema_dia_maes[_ngcontent-%COMP%]{background:#FB6C66;text-align:center;background-image:url(/assets/images/banner_mobile_dia_maes.png?v=2);background-size:cover;height:98px;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.tema_dia_maes[_ngcontent-%COMP%]{background:#FB6C66;text-align:center;background-image:url(/assets/images/banner_mobile_dia_maes.png?v=2);background-size:cover;height:98px;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_pascoa[_ngcontent-%COMP%]{background:#593F33;text-align:center;background-image:url(/assets/images/banner_pascoa.png);background-size:cover;height:98px;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_ano_novo[_ngcontent-%COMP%]{background:#1c1c1c;text-align:center;background-image:url(/assets/images/banner_ano_novo.png?v=4);background-size:cover;height:75px;background-position:50%;margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.tema_blackfriday[_ngcontent-%COMP%]{background:#000015;text-align:center;background-image:url(/assets/images/banner-blackfriday.jpg);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_dia_pais[_ngcontent-%COMP%]{background:#10b3e9;text-align:center;background-image:url(/assets/images/banner_dia_dos_pais_mobile.png);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_dia_namorados[_ngcontent-%COMP%]{background:#d64860;text-align:center;background-image:url(/assets/images/banner_dia_namorados_mobile.png);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_arraia[_ngcontent-%COMP%]{background:#d64860;text-align:center;background-image:url(/assets/images/banner_arraia_mobile.png);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.banner_tema[_ngcontent-%COMP%]{background:#000;text-align:center;background-image:url(/assets/images/banner_blackfriday2022_mobile.png);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.tema_copa_2022[_ngcontent-%COMP%]{background:#1a7200;text-align:center;background-image:url(/assets/images/banner_copa_2022_mobile.png);background-size:cover;height:98px;background-position:calc(50% + 10px);margin-left:-12px;margin-right:-12px;margin-top:0;z-index:999999999999}.fidelidade[_ngcontent-%COMP%]{height:52px;margin:0 -12px;box-shadow:inset 0 0 0 2000px #00000040;border-bottom-left-radius:10px;border-bottom-right-radius:10px}.fidelidade[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{font-family:Avenir LT Std,sans-serif;font-size:14px;font-style:normal;font-weight:600;line-height:18px;letter-spacing:-.9px;text-align:left;display:flex;align-items:center;justify-content:center;background:#343a40;border-radius:0 0 8px 8px;color:#fff;overflow:hidden;position:relative;transition:.3s;margin:0;width:100%;height:100%}.fidelidade[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff}.fidelidade.chinainbox[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#e9232b}.fidelidade.carnaval[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#5b1da6}.fidelidade.carnaval[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fce101}.fidelidade.dia_pais[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#0000dd}.fidelidade.copa_2022[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#1a7200}.fidelidade.dia_namorados[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#b264da}.fidelidade.arraia[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#CE2400}.fidelidade.natal[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#7e0101}.fidelidade.black_friday_2022[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#b57f33}.fidelidade.black_friday[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .fidelidade.black[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], .fidelidade.ano_novo[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#343a40}.fidelidade.pascoa[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background:#775748}']}),i})();function j7e(i,o){1&i&&(n.TgZ(0,"div",4),n._uU(1," Perfil "),n.qZA())}function Z7e(i,o){1&i&&(n.TgZ(0,"div",4),n._uU(1," Entrar "),n.qZA())}const KT=function(i){return{ativo:i}};function V7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",5),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.naveguePara("perfil"))}),n.TgZ(1,"div",2),n._UZ(2,"i",11),n.qZA(),n.YNc(3,j7e,2,0,"div",12),n.YNc(4,Z7e,2,0,"div",12),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(3,KT,"perfil"===t.url||t.url.indexOf("cadastro")>=0||"login"===t.url)),n.xp6(3),n.Q6J("ngIf",null==t.usuario?null:t.usuario.telefone),n.xp6(1),n.Q6J("ngIf",!t.usuario||!t.usuario.telefone)}}function z7e(i,o){1&i&&(n.TgZ(0,"a",13)(1,"div",2),n._UZ(2,"img",14),n.qZA(),n.TgZ(3,"div",15),n._uU(4," Powered By "),n.qZA()())}let G7e=(()=>{class i{constructor(t,r,s,l,u){this.dominiosService=t,this.constantsService=r,this.router=s,this.sharedDataService=l,this.autorizacao=u,this.exibirMenu=!0,this.onBuscarProdutos=new n.vpe,this.url="index",this.estaNoHome=!0,this.estaNaBuscaPorCategoria=!1,this.exibirMenuCategorias=!1,this.urlCardapio="",this.exibirPoweredBy=!1,this.usuario={}}ngOnInit(){this.usuario=this.autorizacao.getUsuario()||{},this.autorizacao.usuario$.subscribe(r=>{!r||(this.usuario=r)}),this.evtEmpresa=this.constantsService.empresa$.subscribe(r=>{!r||(this.empresa=r)});let t=this.dominiosService.obtenhaUrlAtiva();""!==t&&(this.url=t),this.urlCardapio=location.hostname,(-1!==this.urlCardapio.indexOf("meucardapio.ai")||-1!==this.urlCardapio.indexOf("localhost"))&&(this.exibirPoweredBy=!0),this.constantsService.empresa$.subscribe(r=>{!r||this.exibirPoweredBy||(this.exibirPoweredBy="chinainbox"===r.rede)}),this.router.events.subscribe(r=>{if(r instanceof Ac){const l=r.urlAfterRedirects.match(/\/([^\/?]+)(?:\?.*)?$/);console.log(l),this.url=l[1],this.veriqueMenuAtivo()}}),this.veriqueMenuAtivo()}naveguePara(t){this.url=t,this.veriqueMenuAtivo(),this.dominiosService.navegueParaUrl(t)}veriqueMenuAtivo(){this.estaNoHome="index"===this.url||"loja"===this.url||"/"===this.url,this.estaNaBuscaPorCategoria=this.url.indexOf("busca")>=0&&this.url.indexOf("ecommerce"),this.estaNoLocal=this.url.indexOf("local")>=0}clicouExibirMenuCategorias(){this.sharedDataService.notifiqueExibirMenu()}busqueProdutos(){this.onBuscarProdutos.emit({})}ngOnDestroy(){this.evtEmpresa&&this.evtEmpresa.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Eo),n.Y36(gi),n.Y36(Pn),n.Y36(ZE),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-menu"]],inputs:{exibirMenu:"exibirMenu"},outputs:{onBuscarProdutos:"onBuscarProdutos"},decls:23,vars:16,consts:[[1,"tab-bar",3,"hidden"],[1,"tab-item",3,"ngClass","hidden","click"],[1,"tab-icon"],[1,"fe-filter"],[1,"tab-title"],[1,"tab-item",3,"ngClass","click"],[1,"fe-home"],[1,"fe-search"],[1,"fe-shopping-bag"],["class","tab-item ",3,"ngClass","click",4,"ngIf"],["class","tab-item ","href","https://meucardapio.ai","target","_blank",4,"ngIf"],[1,"fe-user"],["class","tab-title",4,"ngIf"],["href","https://meucardapio.ai","target","_blank",1,"tab-item"],["src","https://fibo.promokit.com.br/lp/cardapio/images/logo-meucardapio.png",2,"width","45px"],[1,"tab-title",2,"font-size","11px"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"a",1),n.NdJ("click",function(){return r.clicouExibirMenuCategorias()}),n.TgZ(2,"div",2),n._UZ(3,"i",3),n.qZA(),n.TgZ(4,"div",4),n._uU(5," Categorias "),n.qZA()(),n.TgZ(6,"a",5),n.NdJ("click",function(){return r.naveguePara("/")}),n.TgZ(7,"div",2),n._UZ(8,"i",6),n.qZA(),n.TgZ(9,"div",4),n._uU(10," Home"),n.qZA()(),n.TgZ(11,"a",5),n.NdJ("click",function(){return r.busqueProdutos()}),n.TgZ(12,"div",2),n._UZ(13,"i",7),n.qZA(),n.TgZ(14,"div",4),n._uU(15," Busca "),n.qZA()(),n.TgZ(16,"a",5),n.NdJ("click",function(){return r.naveguePara("meusPedidos")}),n.TgZ(17,"div",2),n._UZ(18,"i",8),n.qZA(),n.TgZ(19,"div",4),n._uU(20," Pedidos "),n.qZA()(),n.YNc(21,V7e,5,5,"a",9),n.YNc(22,z7e,5,0,"a",10),n.qZA()),2&t&&(n.Q6J("hidden",!r.exibirMenu),n.xp6(1),n.Q6J("ngClass",n.VKq(8,KT,r.estaNaBuscaPorCategoria))("hidden",!r.exibirMenuCategorias),n.xp6(5),n.Q6J("ngClass",n.VKq(10,KT,r.estaNoHome)),n.xp6(5),n.Q6J("ngClass",n.VKq(12,KT,r.url.startsWith("busca"))),n.xp6(5),n.Q6J("ngClass",n.VKq(14,KT,"meusPedidos"===r.url)),n.xp6(5),n.Q6J("ngIf",r.empresa&&"quiosque"!==r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.exibirPoweredBy))},dependencies:[gt,Ge],styles:[".tab-bar[_ngcontent-%COMP%]{position:fixed;bottom:0;height:60px;display:flex;justify-content:space-around;background:#fff;left:0;right:0;box-shadow:0 1px 3px #0000003d;z-index:9998}.tab-bar[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]{position:relative;overflow:hidden;padding:8px 0;width:70px;display:flex;flex-direction:column;justify-content:center;align-items:center;color:#3f3e3e73;text-decoration:none;border:none;background:none}.tab-bar[_ngcontent-%COMP%]   .tab-item.ativo[_ngcontent-%COMP%]{color:#3f3e3e}.tab-bar[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]   .tab-icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:24px;text-align:center;display:block}.tab-bar[_ngcontent-%COMP%]   .tab-item[_ngcontent-%COMP%]   .tab-title[_ngcontent-%COMP%]{font-size:12px}  .natal .tab-bar{color:#ff0!important}  .natal .tab-item .tab-title{color:#d39797!important}  .natal .tab-item i{color:#d39797!important}  .natal .tab-item.ativo .tab-title{color:#710101!important}  .natal .tab-item.ativo i{color:#710101!important}  .tema-personalizado .tab-bar{background:#5b1da6;background:var(--cor-fundo, #5b1da6);border-top:solid 1px #999;border-top:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .tab-bar .tab-item{color:#999!important;color:var(--cor-texto, #999)!important}  .tema-personalizado .tab-bar .tab-item .tab-title{color:#fce101!important;color:var(--cor-texto, #fce101)!important}  .tema-personalizado .tab-bar .tab-item i{color:#fce101!important;color:var(--cor-texto, #fce101)!important}  .tema-personalizado .tab-bar .tab-item.ativo{color:#fce101!important;color:var(--cor-texto, #fce101)!important}  .tema-personalizado .tab-bar .tab-item.ativo .tab-title{color:#fce101!important;color:var(--cor-texto, #fce101)!important}  .tema-personalizado .tab-bar .tab-item.ativo i{color:#fce101!important;color:var(--cor-texto, #fce101)!important}  .carnaval .tab-bar{background:#5b1da6;border-top:solid 1px #999}  .carnaval .tab-bar .tab-item{color:#999!important}  .carnaval .tab-bar .tab-item.ativo{color:#fce101!important}  .black_friday_2022 .tab-bar{background:#000;border-top:solid 1px #999}  .black_friday_2022 .tab-bar .tab-item{color:#999!important}  .black_friday_2022 .tab-bar .tab-item.ativo{color:#f6a844!important}  .copa_2022 .tab-bar{background:#1a7200;border-top:solid 1px #9abe90}  .copa_2022 .tab-bar .tab-item{color:#9abe90!important}  .copa_2022 .tab-bar .tab-item.ativo{color:#ffd80e!important}  .tema-personalizado .tab-bar{background:#fff;background:var(--cor-fundo-site, #fff);border-top:solid 1px #999;border-top:solid 1px var(--cor-texto-secundaria, #999)}  .tema-personalizado .tab-bar .tab-item{color:#999!important;color:var(--cor-texto-secundaria, #999)!important}  .tema-personalizado .tab-bar .tab-item.ativo{color:#333!important;color:var(--cor-texto, #333)!important}"]}),i})();function q7e(i,o){if(1&i&&(n.TgZ(0,"h4"),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.titulo," ")}}function J7e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.limpe())}),n._UZ(1,"i",11),n.qZA()}}function Q7e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"input",8),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.query=s)})("keyup",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.onValueChange(s))}),n.qZA(),n.YNc(2,J7e,2,0,"div",9),n.BQk()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngModel",t.query)("autoFocus",t.focarBusca),n.xp6(1),n.Q6J("ngIf",t.query)}}function W7e(i,o){1&i&&n._UZ(0,"div",12)}const K7e=function(i){return{"fixed-top":i}};let Vu=(()=>{class i{constructor(t,r,s){this.router=t,this.deviceService=r,this.dominiosService=s,this.focarBusca=!0,this.retorno="index",this.evtVoltar=new n.vpe,this.mudouValorBusca=new n.vpe,this.valueChangeDelay=300,this.stream=new Ht.xQ,this.query="",this.isMobile=!1,this.isMobile=this.deviceService.isMobile()||this.deviceService.isTablet(),this.nomePagina=s.obtenhaRaizCardapio(),this.subscription=this.stream.pipe(xu(this.valueChangeDelay)).subscribe(l=>{this.mudouValorBusca.next(l)})}ngOnInit(){window.tema&&(this.tema=window.tema)}voltar(){this.evtVoltar.observers.length>0?this.evtVoltar.emit():this.dominiosService.navegueParaUrl(this.retorno)}limpe(){this.query="",this.mudouValorBusca.next("")}onValueChange(t){this.stream.next(this.query)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(zo),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-header-loja"]],inputs:{titulo:"titulo",tema:"tema",busca:"busca",focarBusca:"focarBusca",retorno:"retorno",valueChangeDelay:"valueChangeDelay"},outputs:{evtVoltar:"evtVoltar",mudouValorBusca:"mudouValorBusca"},decls:10,vars:9,consts:[[1,"navbar","navbar-expand-lg","navbar-light","bg-light","shadow",3,"ngClass"],[1,"row",2,"flex-grow","1"],[1,"pl-2","span3","text-left",2,"margin-top","0px","margin-left","5px"],[1,"btn","btn-outline-blue","btn-rounded",2,"margin-right","5px",3,"click"],[1,"fa","fa-arrow-left","ct-point"],[1,"col","pl-1",2,"position","relative"],[4,"ngIf"],["style","height: 54px;width: 100%",4,"ngIf"],["kendoTextBox","","type","text","name","query","placeholder","Busque produto","appAutoFocus","",1,"form-control",3,"ngModel","autoFocus","ngModelChange","keyup"],["style","position: absolute;right: 20px;top: 2px;padding: 8px 12px;",3,"click",4,"ngIf"],[2,"position","absolute","right","20px","top","2px","padding","8px 12px",3,"click"],[1,"fas","fa-times","font-18","text-muted"],[2,"height","54px","width","100%"]],template:function(t,r){1&t&&(n.TgZ(0,"div")(1,"nav",0)(2,"div",1)(3,"div",2)(4,"button",3),n.NdJ("click",function(){return r.voltar()}),n._UZ(5,"i",4),n.qZA()(),n.TgZ(6,"div",5),n.YNc(7,q7e,2,1,"h4",6),n.YNc(8,Q7e,3,3,"ng-container",6),n.qZA()()()(),n.YNc(9,W7e,1,0,"div",7)),2&t&&(n.Gre("remova_padding topo ",r.tema,""),n.xp6(1),n.Q6J("ngClass",n.VKq(7,K7e,r.isMobile)),n.xp6(6),n.Q6J("ngIf",r.titulo),n.xp6(1),n.Q6J("ngIf",r.busca),n.xp6(1),n.Q6J("ngIf",r.isMobile))},dependencies:[gt,Ge,wi,ti,ni,Er,Za],styles:[".remova_padding[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.bg-light[_ngcontent-%COMP%]{background-color:#f7f8f8}@media (min-width: 1025px){.remova_padding[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}}.topo-acoes-desktop[_ngcontent-%COMP%]{position:relative;height:45px;width:100%;top:10px}.chinainbox[_ngcontent-%COMP%]   .bg-light[_ngcontent-%COMP%]{background-color:#e52f26!important}.chinainbox[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%], .chinainbox[_ngcontent-%COMP%]   .fa-times[_ngcontent-%COMP%]{color:#fff!important;border-color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover{background-color:#fff!important}.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:red!important}.chinainbox[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#e3ae6a!important}.carnaval[_ngcontent-%COMP%]   .bg-light[_ngcontent-%COMP%]{background-color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .fa-times[_ngcontent-%COMP%]{color:#fff!important;border-color:#fff!important}.carnaval[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover{background-color:#fff!important}.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fce101!important}"]}),i})();const X7e=["frm"],eRe=["frmv"],tRe=["frms"],nRe=["codigoEle"],iRe=["senhaEle"];function oRe(i,o){1&i&&n._UZ(0,"app-header-loja",6),2&i&&n.Q6J("titulo","Recuperar Senha")("retorno","login")}function rRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"app-header-tela",7),n.NdJ("fechou",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n.qZA()}2&i&&n.Q6J("titulo","Recuperar Senha")}function aRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone \xe9 obrigat\xf3rio"),n.qZA())}function sRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone inv\xe1lido"),n.qZA())}function lRe(i,o){1&i&&n._UZ(0,"i",21)}function cRe(i,o){if(1&i&&(n.TgZ(0,"div",22)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.erro,"")}}const bB=function(i,o){return{"needs-validation":i,"was-validated":o}};function dRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",8,9),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onEnviarVerificacao())}),n.TgZ(2,"div",10)(3,"label",11),n._uU(4,"Telefone do cadastro"),n.qZA(),n.TgZ(5,"div",12)(6,"input",13,14),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.model.telefone=s)}),n.qZA(),n.TgZ(8,"div",15),n.YNc(9,aRe,2,0,"p",16),n.YNc(10,sRe,2,0,"p",16),n.qZA()()(),n.TgZ(11,"div",17)(12,"button",18),n.YNc(13,lRe,1,0,"i",19),n._uU(14," Avan\xe7ar "),n.qZA(),n.YNc(15,cRe,3,1,"div",20),n.qZA()()}if(2&i){const t=n.MAs(1),r=n.MAs(7),s=n.oxw();n.Q6J("ngClass",n.WLB(8,bB,!t.submitted,t.submitted)),n.xp6(6),n.Q6J("required",!0)("ngModel",s.model.telefone),n.xp6(3),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(1),n.Q6J("ngIf",null==r.errors?null:r.errors.mask),n.xp6(2),n.Q6J("disabled",s.aguardeProcessar),n.xp6(1),n.Q6J("ngIf",s.aguardeProcessar),n.xp6(2),n.Q6J("ngIf",s.erro)}}function uRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe o c\xf3digo de valida\xe7\xe3o de 5 digitos"),n.qZA())}function pRe(i,o){if(1&i&&(n.TgZ(0,"div",22)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.erro,"")}}function hRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",23,24)(2,"h5",25),n._uU(3,"Insira o c\xf3digo enviado para o email: "),n.TgZ(4,"b"),n._uU(5),n.qZA()(),n.TgZ(6,"div",10)(7,"label",26),n._uU(8,"C\xf3digo de confirma\xe7\xe3o "),n.qZA(),n.TgZ(9,"div",27)(10,"input",28,29),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.alterouCodigo(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.model.codigo=s)}),n.qZA(),n.TgZ(13,"div",15),n.YNc(14,uRe,2,0,"p",16),n.qZA()()(),n.TgZ(15,"div",17),n.YNc(16,pRe,3,1,"div",20),n.qZA()()}if(2&i){const t=n.MAs(1),r=n.MAs(11),s=n.oxw();n.Q6J("ngClass",n.WLB(5,bB,!t.submitted,t.submitted)),n.xp6(5),n.Oqu(s.model.email),n.xp6(5),n.Q6J("ngModel",s.model.codigo),n.xp6(4),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(2),n.Q6J("ngIf",s.erro)}}function gRe(i,o){1&i&&n._UZ(0,"i",36)}function fRe(i,o){1&i&&n._UZ(0,"i",37)}function mRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Insira a nova senha"),n.qZA())}function _Re(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",38,39),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.model.senha=s)}),n.qZA(),n.TgZ(4,"div",15),n.YNc(5,mRe,2,0,"p",16),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(2);n.xp6(1),n.Q6J("ngModel",r.model.senha),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function bRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Insira a nova senha"),n.qZA())}function vRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",40,41),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.model.senha=s)}),n.qZA(),n.TgZ(3,"div",15),n.YNc(4,bRe,2,0,"p",16),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(2);n.xp6(1),n.Q6J("ngModel",r.model.senha),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function yRe(i,o){if(1&i&&(n.TgZ(0,"div",22)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.erro,"")}}function CRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",8,30),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onRedefinir())}),n.TgZ(2,"h5",25),n._uU(3,"Insira sua nova senha"),n.qZA(),n.TgZ(4,"div",10)(5,"label",31),n._uU(6,"Nova Senha"),n.qZA(),n.TgZ(7,"label",32),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.exibirSenhaTela())}),n.YNc(8,gRe,1,0,"i",33),n.YNc(9,fRe,1,0,"i",34),n.qZA(),n.YNc(10,_Re,6,2,"span",16),n.YNc(11,vRe,5,2,"span",16),n.qZA(),n.TgZ(12,"div",17)(13,"button",35),n._uU(14," Redefinir senha "),n.qZA(),n.YNc(15,yRe,3,1,"div",20),n.qZA()()}if(2&i){const t=n.MAs(1),r=n.oxw();n.Q6J("ngClass",n.WLB(7,bB,!t.submitted,t.submitted)),n.xp6(8),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(2),n.Q6J("disabled",r.aguardeProcessar),n.xp6(2),n.Q6J("ngIf",r.erro)}}let vB=(()=>{class i{constructor(t,r,s,l){this.autorizacao=t,this.router=r,this.dominiosService=s,this.activatedRoute=l,this.model={},this.abriuComoModal=!1}static abraComoPopup(t,r,s,l){let u=La.calculeAlturaLargura(!1);const p=l.open({title:null,content:i,minWidth:200,width:u.largura,height:500});p.content.instance.setModal(p),La.abraJanela(t,r,s,p,{})}ngOnInit(){this.model.telefone=window.history.state.telefone;let t=this.activatedRoute.snapshot.params.token;t?this.autorizacao.obtenhaToken(t).then(r=>{this.model.email=r.email,this.informarCodigo(t)}).catch(r=>{this.informarTelefone(),this.erro=r}):this.informarTelefone()}informarTelefone(){this.model.passo="telefone"}informarCodigo(t){this.model.passo="codigo",this.model.token=t,setTimeout(()=>{this.codigoEle.nativeElement.focus()},500)}redefinirSenha(){this.model.passo="senha",setTimeout(()=>{this.senhaEle.nativeElement.focus()},500)}onEnviarVerificacao(){delete this.erro,this.frm.valid&&(this.aguardeProcessar=!0,this.autorizacao.envieEmailRecuperacao(this.model.telefone).then(t=>{let r=t.token;this.model.email=this.mascareEmail(t.email),this.aguardeProcessar=!1,this.informarCodigo(r)}).catch(t=>{this.aguardeProcessar=!1,this.erro=t}))}mascareEmail(t){let r,s;return r=t.slice(t.length<18?-6:-12),s="*".repeat(t.length<18?t.length-6:t.length-12),s+r}alterouCodigo(t){this.frmv.controls.codigo.valid&&(delete this.erro,this.aguardeProcessar=!0,this.autorizacao.verifiqueCodigoConfirmacao(this.model.token,t).then(r=>{this.aguardeProcessar=!1,this.redefinirSenha()}).catch(r=>{this.aguardeProcessar=!1,this.erro=r}))}onRedefinir(){delete this.erro,this.frms.valid?this.autorizacao.troqueSenha(this.model.token,this.model.senha).then(t=>{this.abriuComoModal?this.fecheTela():this.dominiosService.navegueParaUrl("login",{telefone:this.model.telefone})}).catch(t=>{this.aguardeProcessar=!1,this.erro=t}):(alert("Formulario invalido"),console.log(this.frms))}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}setModal(t){this.window=t,this.abriuComoModal=!0}fecheTela(){this.window.close()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(Pn),n.Y36(Eo),n.Y36(ci))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-recuperar"]],viewQuery:function(t,r){if(1&t&&(n.Gf(X7e,5),n.Gf(eRe,5),n.Gf(tRe,5),n.Gf(nRe,5),n.Gf(iRe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmv=s.first),n.iGM(s=n.CRH())&&(r.frms=s.first),n.iGM(s=n.CRH())&&(r.codigoEle=s.first),n.iGM(s=n.CRH())&&(r.senhaEle=s.first)}},decls:7,vars:5,consts:[[3,"titulo","retorno",4,"ngIf"],["exibirFechar","true",3,"titulo","fechou",4,"ngIf"],[1,"card","mt-3"],[1,"card-body"],["novalidate","",3,"ngClass","ngSubmit",4,"ngIf"],["novalidate","",3,"ngClass",4,"ngIf"],[3,"titulo","retorno"],["exibirFechar","true",3,"titulo","fechou"],["novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"form-group","mb-2","col"],["for","telefone"],[1,"input-group"],["kendoTextBox","","id","telefone","name","telefone","mask","(00)0-0000-0000","appAutoFocus","","type","text","autocomplete","off","placeholder","Informe o telefone de cadastro com DDD","required","",1,"form-control",3,"required","ngModel","ngModelChange"],["telefone","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],[1,"form-group","mb-0","text-center","col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading",4,"ngIf"],["class","text-danger mt-2","role","alert",4,"ngIf"],[1,"k-icon","k-i-loading"],["role","alert",1,"text-danger","mt-2"],["novalidate","",3,"ngClass"],["frmv","ngForm"],[1,"mb-4","text-center"],["for","codigo"],[1,"input-group","mb-2"],["type","text","minlength","5","mask","0-0-0-0-0","id","codigo","name","codigo","placeholder","0-0-0-0-0","required","","appAutoFocus","",1,"form-control","codigo-validacao","text-center",3,"ngModel","ngModelChange"],["codigo","ngModel","codigoEle",""],["frms","ngForm"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],["type","submit",1,"btn","btn-success","btn-block",3,"disabled"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senha","ngModel","senhaEle",""],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senhaTexto","ngModel"]],template:function(t,r){1&t&&(n.YNc(0,oRe,1,2,"app-header-loja",0),n.YNc(1,rRe,1,1,"app-header-tela",1),n.TgZ(2,"div",2)(3,"div",3),n.YNc(4,dRe,16,11,"form",4),n.YNc(5,hRe,17,8,"form",5),n.YNc(6,CRe,16,10,"form",4),n.qZA()()),2&t&&(n.Q6J("ngIf",!r.abriuComoModal),n.xp6(1),n.Q6J("ngIf",r.abriuComoModal),n.xp6(3),n.Q6J("ngIf","telefone"==r.model.passo),n.xp6(1),n.Q6J("ngIf","codigo"==r.model.passo),n.xp6(1),n.Q6J("ngIf","senha"==r.model.passo))},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,zv,ni,Zo,ja,Er,io,Cs,Za,Vu],styles:[".card[_ngcontent-%COMP%]{max-width:425px;max-height:500px;margin:0 auto}input.codigo-validacao[_ngcontent-%COMP%]{font-family:monospace;font-size:18px;text-align:center}.card[_ngcontent-%COMP%]{margin:0 auto;box-shadow:none;position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:0 solid #f7f7f7;border-radius:10px;width:100%;max-width:425px;max-height:500px}"]}),i})();const ARe=["frm"],xRe=["frmt"],TRe=["headerLoja"];function SRe(i,o){1&i&&n._UZ(0,"app-header-loja",3,4),2&i&&n.Q6J("titulo","Cadastro")("retorno","login")}function wRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"app-header-tela",5),n.NdJ("fechou",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n.qZA()}2&i&&n.Q6J("titulo","Cadastro")}function MRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone \xe9 obrigat\xf3rio"),n.qZA())}function DRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone inv\xe1lido"),n.qZA())}function kRe(i,o){if(1&i&&(n.TgZ(0,"div",20)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.erro,"")}}function IRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",21),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.vaParaLogin())}),n._uU(1," Fazer login "),n.qZA()}}function ERe(i,o){1&i&&n._UZ(0,"i",22)}const zK=function(i,o){return{"needs-validation":i,"was-validated":o}};function PRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",6,7),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.MAs(1),l=n.oxw();return n.KtG(l.validarTelefone(s))}),n.TgZ(2,"div",8)(3,"label",9),n._uU(4,"Telefone com DDD"),n.qZA(),n.TgZ(5,"div",10)(6,"input",11,12),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.telefone=s)}),n.qZA(),n.TgZ(8,"div",13),n.YNc(9,MRe,2,0,"p",14),n.YNc(10,DRe,2,0,"p",14),n.qZA()()(),n.YNc(11,kRe,3,1,"div",15),n.TgZ(12,"div",16),n.YNc(13,IRe,2,0,"button",17),n.TgZ(14,"button",18),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(1),l=n.oxw();return n.KtG(l.validarTelefone(s))}),n.YNc(15,ERe,1,0,"i",19),n._uU(16," Continuar "),n.qZA()()()}if(2&i){const t=n.MAs(1),r=n.MAs(7),s=n.oxw();n.Q6J("ngClass",n.WLB(9,zK,!t.submitted,t.submitted)),n.xp6(6),n.Q6J("disabled",s.buscando)("ngModel",s.contato.telefone),n.xp6(3),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(1),n.Q6J("ngIf",null==r.errors?null:r.errors.mask),n.xp6(1),n.Q6J("ngIf",s.erro),n.xp6(2),n.Q6J("ngIf",s.exibirLogin),n.xp6(1),n.Q6J("disabled",s.aguardeProcessar),n.xp6(1),n.Q6J("ngIf",s.aguardeProcessar)}}function ORe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone \xe9 obrigat\xf3rio"),n.qZA())}function NRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone inv\xe1lido"),n.qZA())}function LRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome \xe9 obrigat\xf3rio"),n.qZA())}function RRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe seu nome completo"),n.qZA())}function FRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um nome v\xe1lido"),n.qZA())}function BRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 obrigat\xf3rio"),n.qZA())}function HRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF inv\xe1lido"),n.qZA())}function $Re(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",8)(1,"label"),n._uU(2,"CPF"),n.qZA(),n.TgZ(3,"input",33,34),n.NdJ("change",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.informouCpf())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.contato.cpf=s)}),n.qZA(),n.TgZ(5,"div",13),n.YNc(6,BRe,2,0,"p",14),n.YNc(7,HRe,2,0,"p",14),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.contato.cpf)("required",r.cpfObrigatorio),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",!(null!=t.errors&&t.errors.required)&&(null==t.errors?null:t.errors.cpfInvalido))}}function URe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Data de nascimento \xe9 obrigat\xf3ria"),n.qZA())}function YRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",8)(1,"label"),n._uU(2,"Data Nascimento"),n.qZA(),n.TgZ(3,"kendo-datepicker",35,36),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.contato.dataNascimento=s)}),n._UZ(5,"kendo-datepicker-messages",37),n.qZA(),n.TgZ(6,"div",13),n.YNc(7,URe,2,0,"p",14),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.contato.dataNascimento)("required",r.dataNascimentoObrigatorio),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function jRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function ZRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",8)(1,"label",38),n._uU(2,"E-mail "),n.qZA(),n.TgZ(3,"input",39,40),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.contato.email=s)}),n.qZA(),n.TgZ(5,"div",13),n.YNc(6,jRe,2,0,"p",14),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.contato.email),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function VRe(i,o){if(1&i&&n._UZ(0,"img",46),2&i){const t=n.oxw(3);n.s9C("src",null==t.fidelidadeExterna?null:t.fidelidadeExterna.logo,n.LSH)}}const zRe=function(i){return{menor:i}};function GRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",41)(1,"input",42),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.fidelidadeExterna.optin=s)}),n.qZA(),n.TgZ(2,"label",43),n._uU(3),n.YNc(4,VRe,1,1,"img",44),n._UZ(5,"br"),n.TgZ(6,"span"),n._uU(7," Estou de acordo com o "),n.TgZ(8,"a",45),n._uU(9,"Regulamento"),n.qZA(),n._uU(10,"."),n.qZA()()()}if(2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(5,zRe,2===(null==t.empresa?null:t.empresa.idRede))),n.xp6(1),n.Q6J("ngModel",t.fidelidadeExterna.optin),n.xp6(2),n.hij(" Quero ganhar cashback com ",1===t.empresa.idRede?"Meu China in Box":"Gendai Vip"," "),n.xp6(1),n.Q6J("ngIf",null==t.fidelidadeExterna?null:t.fidelidadeExterna.logo),n.xp6(4),n.s9C("href",t.fidelidadeExterna.linkRegras,n.LSH)}}function qRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function JRe(i,o){1&i&&n._UZ(0,"i",52)}function QRe(i,o){1&i&&n._UZ(0,"i",53)}function WRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function KRe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",54,55),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",13),n.YNc(4,WRe,2,0,"p",14),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(3);n.xp6(1),n.Q6J("ngModel",r.contato.senha),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function XRe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function eFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",56,57),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",13),n.YNc(4,XRe,2,0,"p",14),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(3);n.xp6(1),n.Q6J("ngModel",r.contato.senha),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function tFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"fieldset")(1,"legend"),n._uU(2,"Dados de acesso"),n.qZA(),n.TgZ(3,"div",8)(4,"label",38),n._uU(5,"E-mail "),n.qZA(),n.TgZ(6,"input",47,40),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.contato.email=s)}),n.qZA(),n.TgZ(8,"div",13),n.YNc(9,qRe,2,0,"p",14),n.qZA()(),n.TgZ(10,"div",8)(11,"label",48),n._uU(12,"Senha"),n.qZA(),n.TgZ(13,"label",49),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.exibirSenhaTela())}),n.YNc(14,JRe,1,0,"i",50),n.YNc(15,QRe,1,0,"i",51),n.qZA(),n.YNc(16,KRe,5,2,"span",14),n.YNc(17,eFe,5,2,"span",14),n.qZA()()}if(2&i){const t=n.MAs(7),r=n.oxw(2);n.xp6(6),n.Q6J("ngModel",r.contato.email),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(5),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha)}}function nFe(i,o){if(1&i&&(n.TgZ(0,"div",20)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.erro,"")}}function iFe(i,o){1&i&&n._UZ(0,"i",22)}function oFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"form",6,23),n.NdJ("ngSubmit",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.submitForm())}),n.TgZ(2,"div",8)(3,"label",9),n._uU(4,"Telefone"),n.qZA(),n.TgZ(5,"div",10)(6,"input",24,12),n.NdJ("change",function(){n.CHM(t);const s=n.MAs(1),l=n.oxw();return n.KtG(l.validarTelefone(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.telefone=s)}),n.qZA(),n.TgZ(8,"div",13),n.YNc(9,ORe,2,0,"p",14),n.YNc(10,NRe,2,0,"p",14),n.qZA()()(),n.TgZ(11,"div",8)(12,"label",25),n._uU(13,"Nome "),n.qZA(),n.TgZ(14,"input",26,27),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.nome=s)}),n.qZA(),n.TgZ(16,"div",13),n.YNc(17,LRe,2,0,"p",14),n.YNc(18,RRe,2,0,"p",14),n.YNc(19,FRe,2,0,"p",14),n.qZA()(),n.YNc(20,$Re,8,4,"div",28),n.YNc(21,YRe,8,3,"div",29),n.YNc(22,ZRe,7,2,"div",28),n.YNc(23,GRe,11,7,"div",30),n.YNc(24,tFe,18,6,"fieldset",14),n.YNc(25,nFe,3,1,"div",31),n.TgZ(26,"div",16)(27,"button",32),n.YNc(28,iFe,1,0,"i",19),n._uU(29),n.qZA()()()}if(2&i){const t=n.MAs(1),r=n.MAs(7),s=n.MAs(15),l=n.oxw();n.Q6J("ngClass",n.WLB(19,zK,!t.submitted,t.submitted)),n.xp6(6),n.Q6J("readonly",l.contato.fazerOptin||l.contato.atualizarCadastro)("disabled",l.buscando)("ngModel",l.contato.telefone),n.xp6(3),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(1),n.Q6J("ngIf",null==r.errors?null:r.errors.mask),n.xp6(4),n.Q6J("ngModel",l.contato.nome),n.xp6(3),n.Q6J("ngIf",null==s.errors?null:s.errors.required),n.xp6(1),n.Q6J("ngIf",null==s.errors?null:s.errors.nomeCompleto),n.xp6(1),n.Q6J("ngIf",null==s.errors?null:s.errors.nomeValido),n.xp6(1),n.Q6J("ngIf",l.informarCpf),n.xp6(1),n.Q6J("ngIf",l.informarDataNascimento),n.xp6(1),n.Q6J("ngIf",l.contato.fazerOptin),n.xp6(1),n.Q6J("ngIf",null==l.fidelidadeExterna?null:l.fidelidadeExterna.aceitarFidelidade),n.xp6(1),n.Q6J("ngIf",!l.contato.fazerOptin&&!l.contato.atualizarCadastro),n.xp6(1),n.Q6J("ngIf",l.erro),n.xp6(2),n.Q6J("disabled",l.aguardeProcessar),n.xp6(1),n.Q6J("ngIf",l.aguardeProcessar),n.xp6(1),n.hij(" ",l.contato.fazerOptin?"Quero Participar":l.contato.atualizarCadastro?"Atualizar Cadastro":"Cadastrar"," ")}}let qy=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.router=t,this.route=r,this.clienteService=s,this.activatedRoute=l,this._location=u,this.dialogService=p,this.dominiosService=y,this.constantsService=A,this.autorizacao=w,this.cadastrou=new n.vpe,this.contato={},this.validouTelefone=!1,this.abriuComoModal=!1}static abraComoPopup(t,r,s,l,u=null,p=null){let y=La.calculeAlturaLargura(!1);const A=l.open({title:null,content:i,minWidth:300,width:y.largura,height:y.altura});A.content.instance.setModal(A,u),La.abraJanela(t,r,s,A,{},p)}ngOnInit(){this.validouTelefone=!1,this.novoContato=!1,this.urlDestino=this.dominiosService.obtenhaRaizCardapio(),this.route.snapshot.queryParams.t&&(this.urlDestino=this.route.snapshot.queryParams.t,setTimeout(()=>{this.headerLoja.retorno=this.urlDestino})),this.constantsService.campoCpf$.subscribe(t=>{this.informarCpf=null!=t,this.cpfObrigatorio=t&&!t.opcional}),this.constantsService.campoDataNascimento$.subscribe(t=>{this.informarDataNascimento=null!=t,this.dataNascimentoObrigatorio=t&&!t.opcional}),this.constantsService.empresa$.subscribe(t=>{!t||(this.empresa=t,this.empresa.integracaoFidelidade&&(this.fidelidadeExterna=Object.assign({},this.empresa.integracaoFidelidade),this.fidelidadeExterna.optin=!0,window.history.state&&window.history.state.contato&&(this.contato=window.history.state.contato),this.contato.fazerOptinUsarSaldo&&(this.contato.fazerOptin=!0),this.contato.id&&this.contato.fazerOptin?(this.validouTelefone=!0,this.fidelidadeExterna.aceitarFidelidade=!0):this.verifiqueContatoPeloTelefone()))})}submitForm(){delete this.erro,this.frm.valid&&this.validouTelefone&&(this.aguardeProcessar=!0,this.fidelidadeExterna&&this.fidelidadeExterna.optin&&(this.contato.adicionarFidelidadeGcom=!0,this.contato.idCliente=this.fidelidadeExterna.id_cliente),this.contato.fazerOptin?this.facaOptinFidelidade():this.contato.atualizarCadastro?this.atualizeCadastro():this.crieConta())}crieConta(){this.autorizacao.crieConta(this.contato).then(t=>{this.autorizacao.login(this.contato.telefone,this.contato.senha).then(()=>{this.aguardeProcessar=!1,this.finalizouSubmit()})}).catch(t=>{this.aguardeProcessar=!1,this.erro=t})}atualizeCadastro(){var t=this;this.autorizacao.atualizeConta(this.contato).then(function(){var r=sn(function*(s){t.finalizouSubmit()});return function(s){return r.apply(this,arguments)}}()).catch(r=>{this.aguardeProcessar=!1,this.erro=r})}facaOptinFidelidade(){if(!this.fidelidadeExterna.optin)return this.erro='Marque e op\xe7\xe3o "Quero ganhar cashback"',void(this.aguardeProcessar=!1);this.clienteService.facaOptinFidelidade(this.contato).then(t=>{localStorage.recarregarSaldo=!0,this.finalizouSubmit()}).catch(t=>{this.aguardeProcessar=!1,this.erro=t})}finalizouSubmit(){this.aguardeProcessar=!1,this.abriuComoModal?this.fecheTela():this.router.navigateByUrl(this.urlDestino)}verifiqueContatoPeloTelefone(){!this.contato.telefone||(this.aguardeProcessar=!0,this.exibirLogin=!1,this.autorizacao.verifiqueContato(this.contato.telefone).then(t=>{this.aguardeProcessar=!1,t.tokenValidacao?(this.fecheTela(),this.dominiosService.navegueParaUrl("cadastro/validar/"+t.tokenValidacao)):t.existente?(this.exibirLogin=!0,this.erro="J\xe1 existe um usu\xe1rio com esse numero de telefone"):(t.id&&(this.contato.id=t.id,this.contato.nome=t.nome,this.contato.cpf=t.cpf,this.contato.email=t.email),this.validouTelefone=!0,t.fidelidadeExterna&&(t.fidelidadeExterna.aceitarFidelidade?(this.fidelidadeExterna.aceitarFidelidade=!0,this.fidelidadeExterna.optin=!0,this.fidelidadeExterna.id_cliente=t.fidelidadeExterna.id_cliente):(this.fidelidadeExterna.aceitarFidelidade=!1,this.fidelidadeExterna.optin=!1)))}).catch(t=>{this.aguardeProcessar=!1,this.erro=t}))}validarTelefone(t){this.aguardeProcessar||(delete this.erro,this.contato.id&&(this.validouTelefone=!1,this.contato={telefone:this.contato.telefone}),t.controls.telefone.valid&&this.verifiqueContatoPeloTelefone())}vaParaLogin(){return this.abriuComoModal?(this.fecheTela(),J6.abraComoPopup(this.router,this._location,this.activatedRoute,this.dialogService)):this.dominiosService.vaParaLogin(this.urlDestino,this.contato.telefone),!1}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}alterouTelefone(){this.frm.controls.telefone.invalid&&(this.validouTelefone=!1)}informouCpf(){var t=this;return sn(function*(){if(t.contato.id&&!t.contato.completarCadastro)return;t.buscando=!0;let r=yield t.clienteService.obtenhaCadastroCompletarPeloCpf(t.contato.cpf).catch(s=>{console.error(s)});t.buscando=!1,r&&r.id!==t.contato.id&&(t.erro="CPF j\xe1 est\xe1 em uso")})()}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}setModal(t,r=null){this.window=t,this.abriuComoModal=!0,r&&(this.contato=r)}fecheTela(){this.window&&this.window.close(this.contato)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(ci),n.Y36(ka),n.Y36(ci),n.Y36(_n),n.Y36(Na),n.Y36(Eo),n.Y36(gi),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-cad-usuario"]],viewQuery:function(t,r){if(1&t&&(n.Gf(ARe,5),n.Gf(xRe,5),n.Gf(TRe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.frmt=s.first),n.iGM(s=n.CRH())&&(r.headerLoja=s.first)}},outputs:{cadastrou:"cadastrou"},decls:4,vars:4,consts:[[3,"titulo","retorno",4,"ngIf"],["exibirFechar","true",3,"titulo","fechou",4,"ngIf"],["novalidate","","class","mt-3",3,"ngClass","ngSubmit",4,"ngIf"],[3,"titulo","retorno"],["headerLoja",""],["exibirFechar","true",3,"titulo","fechou"],["novalidate","",1,"mt-3",3,"ngClass","ngSubmit"],["frmt","ngForm"],[1,"form-group","mb-2","col"],["for","telefone"],[1,"input-group"],["kendoTextBox","","name","telefone","mask","(00)0-0000-0000","appAutoFocus","","type","text","autocomplete","off","placeholder","Informe seu telefone com DDD","required","",1,"form-control",3,"disabled","ngModel","ngModelChange"],["telefone","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],["class","text-danger mt-2 mb-2   text-center","role","alert",4,"ngIf"],[1,"mt-3","mb-3","col"],["class","btn btn-block mb-1 btn-success ","type","button",3,"click",4,"ngIf"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled","click"],["class","k-icon k-i-loading mr-1",4,"ngIf"],["role","alert",1,"text-danger","mt-2","mb-2","text-center"],["type","button",1,"btn","btn-block","mb-1","btn-success",3,"click"],[1,"k-icon","k-i-loading","mr-1"],["frm","ngForm"],["kendoTextBox","","id","telefone","name","telefone","mask","(00)0-0000-0000","type","text","autocomplete","off","placeholder","Telefone com DDD","required","",1,"form-control",3,"readonly","disabled","ngModel","change","ngModelChange"],["for","nome"],["kendoTextBox","","id","nome","name","nome","placeholder","Nome completo","nomeCompleto","","nomeValido","","appAutoFocus","","required","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["class","form-group mb-2 col",4,"ngIf"],["class","form-group mb-2 col ",4,"ngIf"],["class","form-group mb-2 col aceite-fidelidade",3,"ngClass",4,"ngIf"],["class","text-danger mt-2 mb-2 text-center","role","alert",4,"ngIf"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["type","text","autocomplete","off","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__",1,"form-control",3,"ngModel","required","change","ngModelChange"],["cpf","ngModel"],["format","dd/MM/yyyy","name","dataNascimento","activeView","decade",1,"form-control",3,"ngModel","required","ngModelChange"],["dataNascimento","ngModel"],["today","Hoje","toggle","Trocar calend\xe1rio"],["for","email"],["type","email","autocomplete","off","required","","name","email","placeholder","Email do usu\xe1rio",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],[1,"form-group","mb-2","col","aceite-fidelidade",3,"ngClass"],["id","optin","name","optin","type","checkbox","kendoCheckBox","",1,"k-checkbox",3,"ngModel","ngModelChange"],["for","optin",1,"ml-1","usar-saldo"],["class","ml-2",3,"src",4,"ngIf"],["target","_blank",3,"href"],[1,"ml-2",3,"src"],["type","email","autocomplete","off","required","","id","email","name","email","placeholder","Email do usu\xe1rio",1,"form-control",3,"ngModel","ngModelChange"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senha","ngModel"],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senhaTexto","ngModel"]],template:function(t,r){1&t&&(n.YNc(0,SRe,2,2,"app-header-loja",0),n.YNc(1,wRe,1,1,"app-header-tela",1),n.YNc(2,PRe,17,12,"form",2),n.YNc(3,oFe,30,22,"form",2)),2&t&&(n.Q6J("ngIf",!r.abriuComoModal),n.xp6(1),n.Q6J("ngIf",r.abriuComoModal),n.xp6(1),n.Q6J("ngIf",!r.validouTelefone),n.xp6(1),n.Q6J("ngIf",r.validouTelefone))},dependencies:[gt,Ge,Ia,wi,wp,ti,ma,Lo,ni,Zo,ja,Er,eT,dn,Xp,io,Cs,Za,Yu,ZW,VW,Vu],styles:["form[_ngcontent-%COMP%]{max-width:425px;margin:0 auto}fieldset[_ngcontent-%COMP%]{border:1px solid #ccc;padding:10px}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{width:140px;font-size:1em}.aceite-fidelidade[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{max-width:80%;font-size:12px}.aceite-fidelidade[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{top:-10px;position:relative}.aceite-fidelidade[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;right:0;top:-5px;max-height:40px}.aceite-fidelidade.menor[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:4px}@media (max-width: 992px){.aceite-fidelidade[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:30px;top:15px}.aceite-fidelidade.menor[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:15px;top:20px}}"]}),i})();const rFe=["frm"],aFe=["header"],sFe=["senhaInput"];function lFe(i,o){if(1&i&&n._UZ(0,"app-header-loja",24,25),2&i){const t=n.oxw();n.Q6J("titulo","Identifique-se")("retorno",t.urlDestino)}}function cFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"app-header-tela",26),n.NdJ("fechou",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n.qZA()}2&i&&n.Q6J("titulo","Identifique-se")}function dFe(i,o){if(1&i&&(n.TgZ(0,"div",27),n._UZ(1,"img",28),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.MGl("src","/images/empresa/",t.empresa.logo,"",n.LSH)}}function uFe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um telefone com DDD"),n.qZA())}function pFe(i,o){1&i&&n._UZ(0,"i",29)}function hFe(i,o){1&i&&n._UZ(0,"i",30)}function gFe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe uma senha"),n.qZA())}function fFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",31,32),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.login.senha=s)}),n.qZA(),n.TgZ(4,"div",9),n.YNc(5,gFe,2,0,"p",10),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("ngModel",r.login.senha),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function mFe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function _Fe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",33,34),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.login.senha=s)}),n.qZA(),n.TgZ(4,"div",9),n.YNc(5,mFe,2,0,"p",10),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("ngModel",r.login.senha),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function bFe(i,o){if(1&i&&(n.TgZ(0,"div",35)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erro,"")}}const vFe=function(i,o){return{"needs-validation":i,"was-validated":o}};let J6=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I){this.autorizacao=t,this.router=r,this.detectorDevice=s,this.dominiosService=l,this.carrinhoService=u,this.activatedRoute=p,this._location=y,this.dialogService=A,this.constantsService=w,this.route=I,this.login={},this.empresa={},this.abriuComoModal=!1}static abraComoPopup(t,r,s,l,u=null,p=null){let y=La.calculeAlturaLargura(!1);const A=l.open({title:null,content:i,minWidth:200,width:y.largura,height:500});A.content.instance.setModal(A,u),La.abraJanela(t,r,s,A,{},p)}ngOnInit(){let t=window.history.state;t&&t.email&&(this.login.email=t.email),(this.route.snapshot.queryParams.tel||t.telefone)&&(this.login.telefone=this.route.snapshot.queryParams.tel||t.telefone),t&&t.erro&&(this.erro=t.erro),this.constantsService.empresa$.subscribe(r=>this.empresa=r||{}),this.urlDestino=this.dominiosService.obtenhaRaizCardapio(),this.route.snapshot.queryParams.t?this.urlDestino=this.route.snapshot.queryParams.t:this.carrinhoService.temPedidoNoCarrinho()&&(this.urlDestino=this.dominiosService.obtenhaUrlCompleta(this.detectorDevice.isMobile()?"carrinho":"pedido")),setTimeout(()=>{this.login.telefone&&this.senhaInput.nativeElement.focus()},100),this.autorizacao.clearCookies()}onLogin(){delete this.erro,this.frm.valid&&(this.logando=!0,this.autorizacao.login(this.login.telefone,this.login.senha).then(t=>{this.logando=!1,t?this.erro=t:this.abriuComoModal?this.window.close({login:!0}):this.router.navigate([this.urlDestino],{state:{fezLogin:1}})}))}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}deveExibirTopo(){return!1}deveExibirMenu(){return!0}vaParaRecuperarSenha(){if(this.abriuComoModal)vB.abraComoPopup(this.router,this._location,this.activatedRoute,this.dialogService);else{let t=this.dominiosService.obtenhaUrlCompleta("recuperar");t=t+"?t="+this.urlDestino,this.router.navigateByUrl(t).then(()=>{})}return!1}vaParaCadastro(){if(this.abriuComoModal)this.fecheTela(),qy.abraComoPopup(this.router,this._location,this.activatedRoute,this.dialogService);else{let t=this.dominiosService.obtenhaUrlCompleta("cadastro");t=t+"?t="+this.urlDestino,this.router.navigateByUrl(t).then(()=>{})}return!1}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}setModal(t,r=null){this.window=t,this.abriuComoModal=!0,r&&(this.login.telefone=r)}fecheTela(){this.window.close()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(Pn),n.Y36(zo),n.Y36(Eo),n.Y36(Oi),n.Y36(ci),n.Y36(_n),n.Y36(Na),n.Y36(gi),n.Y36(ci))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-painel-login"]],viewQuery:function(t,r){if(1&t&&(n.Gf(rFe,5),n.Gf(aFe,5),n.Gf(sFe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.header=s.first),n.iGM(s=n.CRH())&&(r.senhaInput=s.first)}},decls:39,vars:19,consts:[[3,"titulo","retorno",4,"ngIf"],["exibirFechar","true",3,"titulo","fechou",4,"ngIf"],[1,""],["class","text-center w-75 mx-auto",4,"ngIf"],["novalidate","",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"form-group","mb-2","col"],["kendoTextBox","","name","telefone","mask","(00)0-0000-0000","appAutoFocus","","autocomplete","off","type","text","autocomplete","off","placeholder","Informe seu telefone com DDD",1,"form-control",3,"required","ngModel","ngModelChange"],["telefone","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],[1,"form-group","mb-0","text-center","col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","text-danger mt-2","role","alert",4,"ngIf"],[1,"text-center"],[1,"col-12","text-center","mt-3"],["href","#",1,"text-dark","mb-1",2,"cursor","pointer",3,"click"],[1,"ml-1","text-blue"],[2,"height","10px"],["href","#",1,"text-dark","mb-1",3,"click"],[3,"titulo","retorno"],["header",""],["exibirFechar","true",3,"titulo","fechou"],[1,"text-center","w-75","mx-auto"],[1,"imagem_empresa",3,"src"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senha","ngModel","senhaInput",""],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senhaTexto","ngModel","senhaInput",""],["role","alert",1,"text-danger","mt-2"]],template:function(t,r){if(1&t&&(n.YNc(0,lFe,2,2,"app-header-loja",0),n.YNc(1,cFe,1,1,"app-header-tela",1),n.TgZ(2,"div")(3,"div",2),n.YNc(4,dFe,2,1,"div",3),n.TgZ(5,"form",4,5),n.NdJ("ngSubmit",function(){return r.onLogin()}),n.TgZ(7,"div",6)(8,"label"),n._uU(9,"Telefone com DDD"),n.qZA(),n.TgZ(10,"input",7,8),n.NdJ("ngModelChange",function(l){return r.login.telefone=l}),n.qZA(),n.TgZ(12,"div",9),n.YNc(13,uFe,2,0,"p",10),n.qZA()(),n.TgZ(14,"div",6)(15,"label",11),n._uU(16,"Senha"),n.qZA(),n.TgZ(17,"label",12),n.NdJ("click",function(){return r.exibirSenhaTela()}),n.YNc(18,pFe,1,0,"i",13),n.YNc(19,hFe,1,0,"i",14),n.qZA(),n.YNc(20,fFe,6,2,"span",10),n.YNc(21,_Fe,6,2,"span",10),n.qZA(),n.TgZ(22,"div",15)(23,"button",16),n._uU(24," Acessar "),n.qZA(),n.YNc(25,bFe,3,1,"div",17),n.qZA(),n.TgZ(26,"div",18)(27,"div",19)(28,"a",20),n.NdJ("click",function(){return r.vaParaRecuperarSenha()}),n._uU(29,"Esqueceu sua "),n.TgZ(30,"span",21)(31,"b"),n._uU(32,"senha?"),n.qZA()()(),n._UZ(33,"div",22),n.TgZ(34,"a",23),n.NdJ("click",function(){return r.vaParaCadastro()}),n._uU(35,"\xc9 novo? Fa\xe7a seu "),n.TgZ(36,"span",21)(37,"b"),n._uU(38,"cadastro"),n.qZA()()()()()()()()),2&t){const s=n.MAs(6),l=n.MAs(11);n.Q6J("ngIf",!r.abriuComoModal),n.xp6(1),n.Q6J("ngIf",r.abriuComoModal),n.xp6(1),n.Gre("card caixa_login  mt-3 ",r.empresa.tema,""),n.xp6(2),n.Q6J("ngIf",r.empresa.logo),n.xp6(1),n.Q6J("ngClass",n.WLB(16,vFe,!s.submitted,s.submitted)),n.xp6(5),n.Q6J("required",!0)("ngModel",r.login.telefone),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(5),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(2),n.Q6J("disabled",r.logando),n.xp6(2),n.Q6J("ngIf",r.erro)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,Er,io,Cs,Za,Vu],styles:[".was-validated[_ngcontent-%COMP%]   .form-control[_ngcontent-%COMP%]:valid, .form-control.is-valid[_ngcontent-%COMP%]{border-color:#ced4da!important;background-image:none!important}.caixa_login[_ngcontent-%COMP%]{margin:0 auto;box-shadow:none;position:relative;display:flex;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:0 solid #f7f7f7;border-radius:10px;width:100%;max-width:425px;max-height:500px}.imagem_empresa[_ngcontent-%COMP%]{height:60px}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.chinainbox[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#e3ae6a!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]{background-color:#5b1da6!important;border-color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fce101!important}"]}),i})();const yFe=["header"];function CFe(i,o){1&i&&(n.TgZ(0,"div"),n._UZ(1,"img",15,16),n.qZA())}function AFe(i,o){if(1&i&&(n.TgZ(0,"span",36),n._UZ(1,"i",37),n._uU(2),n.qZA()),2&i){const t=n.oxw(4);n.xp6(2),n.hij("",t.empresa.descricaoTempoEntrega," ")}}function xFe(i,o){if(1&i&&(n.TgZ(0,"span",36),n._UZ(1,"i",38),n._uU(2),n.qZA()),2&i){const t=n.oxw(4);n.xp6(2),n.hij("",t.empresa.descricaoTempoRetirada," ")}}function TFe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,AFe,3,1,"span",35),n.YNc(2,xFe,3,1,"span",35),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.empresa.descricaoTempoEntrega),n.xp6(1),n.Q6J("ngIf",t.empresa.descricaoTempoRetirada)}}function SFe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp,"(99) 9-9999-9999")," ")}}function wFe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.ALo(2,"mask"),n.BQk()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp,"(99) 9999-9999")," ")}}const MFe=function(i){return{fechado:i}};function DFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",39),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.verHorarios(l))}),n.TgZ(1,"div",40),n._UZ(2,"i",41),n.TgZ(3,"span"),n._uU(4),n.qZA(),n.TgZ(5,"span"),n._uU(6),n.qZA()()()}if(2&i){const t=o.$implicit;n.xp6(1),n.ekj("font11",t.turnos),n.xp6(1),n.Gre("",t.icone," status"),n.s9C("title",t.descricao),n.Q6J("ngClass",n.VKq(9,MFe,!t.estaAberta)),n.xp6(2),n.hij(" ",t.label,":"),n.xp6(2),n.hij(" ",t.descricaoHorario,"")}}function kFe(i,o){1&i&&(n.TgZ(0,"p",45),n._uU(1,"NOSSAS REDES"),n.qZA())}function IFe(i,o){if(1&i&&(n.TgZ(0,"a",46),n._UZ(1,"i",47),n._uU(2,"\xa0\xa0 "),n.qZA()),2&i){const t=n.oxw(4);n.Q6J("href","https://instagram.com/"+t.empresa.instagram,n.LSH)}}function EFe(i,o){if(1&i&&(n.TgZ(0,"a",46),n._UZ(1,"i",48),n.qZA()),2&i){const t=n.oxw(4);n.Q6J("href","https://facebook.com/"+t.empresa.facebook,n.LSH)}}function PFe(i,o){if(1&i&&(n.TgZ(0,"div",42),n.YNc(1,kFe,2,0,"p",43),n.YNc(2,IFe,3,1,"a",44),n.YNc(3,EFe,2,1,"a",44),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngIf",t.empresa.instagram),n.xp6(1),n.Q6J("ngIf",t.empresa.facebook)}}function OFe(i,o){1&i&&(n.TgZ(0,"div",54)(1,"div",55),n._UZ(2,"i",56),n._uU(3," Retirar Na Loja \xa0 "),n.qZA(),n._UZ(4,"i",57),n.qZA())}function NFe(i,o){if(1&i&&(n.TgZ(0,"div",58)(1,"div",59),n._UZ(2,"i",56),n._uU(3),n.qZA(),n._UZ(4,"i",57),n.qZA()),2&i){const t=n.oxw(4);n.xp6(3),n.hij(" ",t.pedido.entrega.endereco.obtenhaEnderecoCompleto()," \xa0 ")}}function LFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",49)(1,"div",50),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.mudarFormaDeEntrega())}),n.TgZ(2,"p",51),n._uU(3,"FORMA DE ENTREGA"),n.qZA(),n.YNc(4,OFe,5,0,"div",52),n.YNc(5,NFe,5,1,"div",53),n.qZA()()}if(2&i){const t=n.oxw(3);n.xp6(4),n.Q6J("ngIf","Retirar"===t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf","Receber em casa"===t.pedido.entrega.formaDeEntrega)}}function RFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",60),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.abraModaLogin(s))}),n._uU(1," Entrar"),n.qZA()}}function FFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"i",91),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(6);return n.KtG(l.recarregueSaldo(l.usuario,s))}),n.qZA()}if(2&i){const t=n.oxw(6);n.Q6J("hidden",t.carregandoSaldo)}}function BFe(i,o){1&i&&n._UZ(0,"i",92)}function HFe(i,o){if(1&i&&n._UZ(0,"i",93),2&i){const t=n.oxw(6);n.s9C("title",t.usuario.erroFidelidade)}}function $Fe(i,o){1&i&&(n.TgZ(0,"button",94),n._uU(1,"extrato"),n.qZA())}function UFe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.TgZ(2,"span",85)(3,"b"),n._uU(4),n.qZA()(),n.TgZ(5,"span",86),n.YNc(6,FFe,1,1,"i",87),n.YNc(7,BFe,1,0,"i",88),n.YNc(8,HFe,1,1,"i",89),n.qZA(),n.YNc(9,$Fe,2,0,"button",90),n.BQk()),2&i){const t=n.oxw(5);n.xp6(1),n.hij(" ",t.usuario.idCartao?"Saldo":"Cashback"," "),n.xp6(3),n.hij(" ",t.usuario.saldoDescricao,""),n.xp6(2),n.Q6J("ngIf",!t.usuario.erroFidelidade),n.xp6(1),n.Q6J("ngIf",t.carregandoSaldo),n.xp6(1),n.Q6J("ngIf",t.usuario.erroFidelidade),n.xp6(1),n.Q6J("ngIf",t.usuario.idCartao)}}function YFe(i,o){1&i&&(n.TgZ(0,"span",95)(1,"b"),n._uU(2,"Atualize seu cadastro"),n.qZA()())}function jFe(i,o){1&i&&(n.TgZ(0,"span",95)(1,"b"),n._uU(2,"Quero ganhar cashback"),n.qZA()())}function ZFe(i,o){if(1&i&&n._UZ(0,"img",96),2&i){const t=n.oxw(5);n.s9C("src",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo,n.LSH)}}const VFe=function(i){return{menor:i}};function zFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",79)(1,"a",80),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.verDetalhesSaldo(s.usuario))}),n.TgZ(2,"h5",81),n.YNc(3,UFe,10,6,"ng-container",13),n.YNc(4,YFe,3,0,"span",82),n.YNc(5,jFe,3,0,"span",82),n.TgZ(6,"small",83),n._uU(7),n.qZA(),n.YNc(8,ZFe,1,1,"img",84),n.qZA()()()}if(2&i){const t=n.oxw(4);n.Q6J("ngClass",n.VKq(6,VFe,2===t.empresa.idRede)),n.xp6(3),n.Q6J("ngIf",!t.usuario.atualizarCadastro&&!t.usuario.fazerOptinUsarSaldo&&!t.usuario.fazerOptin),n.xp6(1),n.Q6J("ngIf",t.usuario.atualizarCadastro),n.xp6(1),n.Q6J("ngIf",t.usuario.fazerOptinUsarSaldo||t.usuario.fazerOptin),n.xp6(2),n.hij(" ",t.usuario.descricaoProgramaFidelidade,""),n.xp6(1),n.Q6J("ngIf",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo)}}function GFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"ul",61)(1,"li",62)(2,"a",63),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.clicouDropDown())}),n._UZ(3,"i",64),n.TgZ(4,"span",65),n._uU(5),n._UZ(6,"i",66),n.qZA()(),n.TgZ(7,"div",67)(8,"div",68)(9,"h5",69),n._uU(10,"Ol\xe1, "),n.qZA(),n.TgZ(11,"h5",70)(12,"b"),n._uU(13),n.qZA()(),n.YNc(14,zFe,9,8,"div",71),n.qZA(),n.TgZ(15,"a",72),n._UZ(16,"i",73),n.TgZ(17,"span"),n._uU(18," Pedidos "),n.qZA()(),n._UZ(19,"div",74),n.TgZ(20,"a",75),n._UZ(21,"i",76),n.TgZ(22,"span"),n._uU(23,"Meu dados"),n.qZA()(),n._UZ(24,"div",74),n.TgZ(25,"a",77),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.logout(s))}),n._UZ(26,"i",78),n.TgZ(27,"span"),n._uU(28,"Sair"),n.qZA()()()()()}if(2&i){const t=n.oxw(3);n.xp6(5),n.hij(" ",t.usuario.nome?null==t.usuario.nome?null:t.usuario.nome.split(" ")[0]:"Cliente"," "),n.xp6(8),n.Oqu(t.usuario.nome?t.usuario.nome.split(" ")[0]:""),n.xp6(1),n.Q6J("ngIf",t.usuario.saldoFidelidade>=0)}}function qFe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",17)(1,"div",18)(2,"div",19)(3,"div",20),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.dominiosService.vaParaHome())}),n._UZ(4,"img",21),n.TgZ(5,"h1",22),n._uU(6),n.qZA(),n.TgZ(7,"p",23),n._uU(8),n.qZA(),n.YNc(9,TFe,3,2,"div",13),n.qZA(),n.TgZ(10,"div",24)(11,"div",25)(12,"a",26),n._UZ(13,"i",27),n.TgZ(14,"span"),n.YNc(15,SFe,3,4,"ng-container",13),n.YNc(16,wFe,3,4,"ng-container",13),n.qZA()(),n.YNc(17,DFe,7,11,"div",28),n.qZA()(),n.TgZ(18,"div",24),n.YNc(19,PFe,4,2,"div",29),n.qZA(),n.YNc(20,LFe,6,2,"div",30),n.TgZ(21,"div",31)(22,"div",32),n.YNc(23,RFe,2,0,"a",33),n.YNc(24,GFe,29,3,"ul",34),n.qZA()()()()()}if(2&i){const t=n.oxw(2);n.xp6(4),n.Q6J("src","https://promokit.com.br/images/empresa/"+(null==t.empresa?null:t.empresa.logo),n.LSH),n.xp6(2),n.hij(" ",t.empresa.nome,""),n.xp6(2),n.hij(" ",t.empresa.descricaoEndereco?t.empresa.descricaoEndereco:t.empresa.endereco," "),n.xp6(1),n.Q6J("ngIf",t.empresa.descricaoTempoEntrega||t.empresa.descricaoTempoRetirada),n.xp6(3),n.Q6J("href","http://wa.me/55"+(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp),n.LSH)("hidden",!(null!=t.empresa&&t.empresa.numeroWhatsapp)||(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.ocultar)),n.xp6(3),n.Q6J("ngIf",t.empresa&&t.empresa.numeroWhatsapp&&11===(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp.length)),n.xp6(1),n.Q6J("ngIf",t.empresa&&(null==t.empresa?null:t.empresa.numeroWhatsapp)&&10===(null==t.empresa||null==t.empresa.numeroWhatsapp?null:t.empresa.numeroWhatsapp.whatsapp.length)),n.xp6(1),n.Q6J("ngForOf",t.empresa.horariosDoServico),n.xp6(2),n.Q6J("ngIf",t.empresa.instagram||t.empresa.facebook),n.xp6(1),n.Q6J("ngIf",t.exibirFormaDeEntrega()&&t.pedido.entrega&&t.pedido.entrega.formaDeEntrega),n.xp6(3),n.Q6J("ngIf",!t.usuario),n.xp6(1),n.Q6J("ngIf",t.usuario)}}function JFe(i,o){if(1&i&&(n.TgZ(0,"header",null,11)(2,"div",12),n.YNc(3,CFe,3,0,"div",13),n.YNc(4,qFe,25,13,"div",14),n.qZA()()),2&i){const t=n.oxw();n.Tol(t.empresa.tema),n.xp6(3),n.Q6J("ngIf","quiosque"===t.empresa.tema),n.xp6(1),n.Q6J("ngIf","quiosque"!==t.empresa.tema)}}function QFe(i,o){1&i&&(n.TgZ(0,"div",97),n._UZ(1,"img",98),n.qZA())}function WFe(i,o){1&i&&(n.TgZ(0,"div",99),n._UZ(1,"img",100),n.qZA())}function KFe(i,o){1&i&&(n.TgZ(0,"div",99),n._UZ(1,"img",101),n.qZA())}function XFe(i,o){1&i&&(n.TgZ(0,"div",102),n._UZ(1,"img",103),n.qZA())}function eBe(i,o){1&i&&(n.TgZ(0,"div",104),n._UZ(1,"img",105),n.qZA())}function tBe(i,o){1&i&&(n.TgZ(0,"div",106),n._UZ(1,"img",107),n.qZA())}function nBe(i,o){1&i&&(n.TgZ(0,"div",108),n._UZ(1,"img",109),n.qZA())}function iBe(i,o){1&i&&(n.TgZ(0,"div",110),n._UZ(1,"img",111),n.qZA())}function oBe(i,o){1&i&&n._UZ(0,"div",112)}function rBe(i,o){1&i&&(n.TgZ(0,"div",113),n._UZ(1,"img",114),n.qZA())}function aBe(i,o){1&i&&(n.TgZ(0,"div",115),n._UZ(1,"img",116),n.qZA())}let sBe=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.constantsService=t,this.dominiosService=r,this.carrinhoService=s,this.autorizacao=l,this.clienteService=u,this.router=p,this.location=y,this.activatedRoute=A,this.dialogService=w,this.empresa={},this.carregou=!1,this.formaReceberEmCasa={},this.carregandoSaldo=!1,this.carregaDados(),this.pedido=this.carrinhoService.obtenhaPedido()}ngOnInit(){this.constantsService.empresa$.subscribe(t=>{!t||(this.carregou=!0,this.empresa=t,this.formaReceberEmCasa=this.obtenhaFormaDeEntregaReceberEmCasa(this.empresa))}),this.autorizacao.usuario$.subscribe(t=>{!t||this.usuario||this.carregaDados()})}carregaDados(){this.autorizacao.estaLogado().then(t=>{t.logado&&(this.usuario=this.autorizacao.getUsuario())})}obtenhaAltura(){return this.header.nativeElement.offsetHeight}logout(t){t.stopPropagation(),t.preventDefault(),this.autorizacao.logout().then(r=>{r?alert(r):(delete this.usuario,this.carrinhoService.limpeContatoPedido(),this.dominiosService.vaParaHome())})}exibirFormaDeEntrega(){return this.formaReceberEmCasa&&this.formaReceberEmCasa.perguntarEnderecoInicio}mudarFormaDeEntrega(){fm.abraPedindoEndereco(null,this.router,this.location,this.activatedRoute,this.dialogService,!1)}obtenhaFormaDeEntregaReceberEmCasa(t){return t.formasDeEntrega.find(r=>"Receber em casa"===r.formaDeEntrega.nome)}verDetalhesSaldo(t){return t.atualizarCadastro||t.fazerOptinUsarSaldo||t.fazerOptin?qy.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,t,r=>{}):t.idCartao&&window.open(String(`/cliente/${t.telefone}/extrato/${t.token}`)),!1}recarregueSaldo(t,r=null){var s=this;return sn(function*(){r&&(r.stopPropagation(),r.preventDefault()),s.carregandoSaldo=!0,yield s.autorizacao.atualizeSaldoFidelidade(t),s.carregandoSaldo=!1})()}clicouDropDown(){var t=this;return sn(function*(){localStorage.recarregarSaldo&&(yield t.recarregueSaldo(t.usuario),delete localStorage.recarregarSaldo)})()}abraModaLogin(t){return J6.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService),!1}verHorarios(t){VK.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.empresa,t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(gi),n.Y36(Eo),n.Y36(Oi),n.Y36(Qi),n.Y36(ka),n.Y36(Pn),n.Y36(_n),n.Y36(ci),n.Y36(Na))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-topo-desktop"]],viewQuery:function(t,r){if(1&t&&n.Gf(yFe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.header=s.first)}},decls:12,vars:12,consts:[[3,"class",4,"ngIf"],["style","background: #593F33;text-align: center;",4,"ngIf"],["style","background: #000015;text-align: center;",4,"ngIf"],["style","background: #fde436;text-align: center;",4,"ngIf"],["class","div_natal",4,"ngIf"],["class","div_ano_novo",4,"ngIf"],["class","div_dia_maes",4,"ngIf"],["class","div_dia_pais",4,"ngIf"],["class","div_arraia",4,"ngIf"],["class","div_dia_namorados",4,"ngIf"],["class","div_copa_2022",4,"ngIf"],["header",""],[1,"conteudo"],[4,"ngIf"],["class","coluna-principal",4,"ngIf"],["id","imagemPrincipal","name","imagemPrincipal","src","/assets/fidelidade/alsultan-tela-totem-horizontal.jpg",2,"width","100%"],["imagemPrincipal",""],[1,"coluna-principal"],[1,"descricao-empresa"],[1,"row"],[1,"col","cpointer",3,"click"],[1,"logo-empresa",3,"src"],[1,"abreviar","mb-0",2,"line-height","40px"],[1,"enderecos"],[1,"col-auto","d-flex","align-items-center"],[1,"info","d-none","d-lg-block",2,"min-height","45px"],[1,"whatsapp",3,"href","hidden"],[1,"fab","fa-whatsapp","fa-2x","mr-1"],["class","horario cpointer","style","display: table;",3,"click",4,"ngFor","ngForOf"],["class","d-none d-lg-block","style","max-height: 45px;",4,"ngIf"],["class","forma_entrega col-auto d-flex align-items-center",4,"ngIf"],[1,"col-auto"],[1,"mt-2"],["class","btn btn-outline-blue float-right mr-5 mt-2",3,"click",4,"ngIf"],["class","list-unstyled topnav-menu float-right  mt-2",4,"ngIf"],["class","tempos_entrega  mt-1",4,"ngIf"],[1,"tempos_entrega","mt-1"],[1,"fas","fa-motorcycle","mr-1","fa-lg"],[1,"ml-1","fas","fa-store","mr-1"],[1,"horario","cpointer",2,"display","table",3,"click"],[1,"descricao","float-left"],["kendoTooltip","",3,"title","ngClass"],[1,"d-none","d-lg-block",2,"max-height","45px"],["class","text-black-50 font-14 d-none d-xl-block",4,"n"],["target","_blank",3,"href",4,"ngIf"],[1,"text-black-50","font-14","d-none","d-xl-block"],["target","_blank",3,"href"],[1,"fab","fa-instagram","font-24"],[1,"fab","fa-facebook-f","font-24"],[1,"forma_entrega","col-auto","d-flex","align-items-center"],[1,"cpointer",2,"height","45px",3,"click"],[1,"font-14"],["class","mt-1 font-14",4,"ngIf"],["class","mt-1 font-14 endereco",4,"ngIf"],[1,"mt-1","font-14"],[1,"ml-0","d-inline-block","abreviar",2,"max-width","170px"],[1,"fas","fa-map-marker-alt"],[1,"fas","fa-chevron-down",2,"top","-5px","position","relative"],[1,"mt-1","font-14","endereco"],[1,"ml-0","d-inline-block","abreviar",2,"max-width","150px"],[1,"btn","btn-outline-blue","float-right","mr-5","mt-2",3,"click"],[1,"list-unstyled","topnav-menu","float-right","mt-2"],[1,"dropdown","notification-list"],["data-toggle","dropdown","href","#","role","button","aria-haspopup","false","aria-expanded","false",1,"nav-link","dropdown-toggle","nav-user","mr-0","waves-effect","waves-light","text-blue",3,"click"],["alt","user-image",1,"fe-user","fa-2x"],[1,"pro-user-name","ml-1"],[1,"k-icon","k-i-chevron-down"],[1,"dropdown-menu","dropdown-menu-right","profile-dropdown",2,"min-width","350px"],[1,"dropdown-header","noti-title"],[1,"text-overflow","m-0"],[1,"text-overflow"],["class","saldo-info",3,"ngClass",4,"ngIf"],["routerLink","/loja/meusPedidos",1,"dropdown-item","notify-item"],[1,"fe-shopping-bag","fa-lg"],[1,"dropdown-divider"],["routerLink","/loja/meus-dados",1,"dropdown-item","notify-item"],[1,"fe-settings","fa-lg"],["href","",1,"dropdown-item","notify-item",3,"click"],[1,"fe-log-out","fa-lg"],[1,"saldo-info",3,"ngClass"],["href","",3,"click"],[1,""],["class","text-primary",4,"ngIf"],[1,"text-muted","mt-1","d-block"],["class","ml-2",3,"src",4,"ngIf"],[1,"font-18"],[1,"ml-1",2,"top","-4px","position","relative"],["class","k-icon k-i-reload   cpointer","kendoTooltip","","title","atualizar saldo",3,"hidden","click",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["class","fas fa-exclamation-triangle text-warning","kendoTooltip","",3,"title",4,"ngIf"],["class","btn btn-blue btn-sm btn-small ml-1",4,"ngIf"],["kendoTooltip","","title","atualizar saldo",1,"k-icon","k-i-reload","cpointer",3,"hidden","click"],[1,"k-icon","k-i-loading"],["kendoTooltip","",1,"fas","fa-exclamation-triangle","text-warning",3,"title"],[1,"btn","btn-blue","btn-sm","btn-small","ml-1"],[1,"text-primary"],[1,"ml-2",3,"src"],[2,"background","#593F33","text-align","center"],["src","/assets/images/banner_pascoa.png"],[2,"background","#000015","text-align","center"],["src","/assets/images/banner-blackfriday.jpg"],["src","/assets/images/banner_blackfriday2022.jpg"],[2,"background","#fde436","text-align","center"],["src","/assets/images/banner_carnaval.jpeg"],[1,"div_natal"],["src","/assets/images/banner_natal.png"],[1,"div_ano_novo"],["src","/assets/images/banner_ano_novo.png?v=4"],[1,"div_dia_maes"],["src","/assets/images/banner_dia_maes.png"],[1,"div_dia_pais"],["src","/assets/images/banner_dia_dos_pais.png"],[1,"div_arraia"],[1,"div_dia_namorados"],["src","/assets/images/banner_dia_namorados.png?v=1"],[1,"div_copa_2022"],["src","/assets/images/banner_copa_2022.png"]],template:function(t,r){1&t&&(n.YNc(0,JFe,5,5,"header",0),n.YNc(1,QFe,2,0,"div",1),n.YNc(2,WFe,2,0,"div",2),n.YNc(3,KFe,2,0,"div",2),n.YNc(4,XFe,2,0,"div",3),n.YNc(5,eBe,2,0,"div",4),n.YNc(6,tBe,2,0,"div",5),n.YNc(7,nBe,2,0,"div",6),n.YNc(8,iBe,2,0,"div",7),n.YNc(9,oBe,1,0,"div",8),n.YNc(10,rBe,2,0,"div",9),n.YNc(11,aBe,2,0,"div",10)),2&t&&(n.Q6J("ngIf",r.carregou),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"pascoa"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"black_friday"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"black_friday_2022"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"carnaval"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"natal"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"ano_novo"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"dia_maes"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"dia_pais"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"arraia"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"dia_namorados"===r.empresa.tema),n.xp6(1),n.Q6J("ngIf",r.empresa.tema&&"copa_2022"===r.empresa.tema))},dependencies:[gt,Bt,Ge,P_,xk],styles:["header[_ngcontent-%COMP%]{display:flex;position:relative;height:92px;flex-direction:column;width:100vw;background-color:#fff;box-shadow:inset 0 -1px #dcdcdc;top:0;z-index:1001;padding:0}header.quiosque[_ngcontent-%COMP%]{height:auto}header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{flex-grow:1;justify-content:space-between;align-items:center;width:100%;margin:auto}header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .coluna-principal[_ngcontent-%COMP%]{padding-right:0;position:relative;max-width:1300px!important;margin:0 auto}header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .coluna-links[_ngcontent-%COMP%]{max-width:400px;height:80%;display:inline-block}header[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#00000080}header[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#3e3e3e}header[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#b92468}header[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#0d8bf1}header.tema-personalizado[_ngcontent-%COMP%]{background:var(--cor-fundo)!important}header.tema-personalizado[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], header.tema-personalizado[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:var(--cor-texto)!important}header.tema-personalizado[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:var(--cor-texto)!important}header.tema-personalizado[_ngcontent-%COMP%]   .descricao-empresa[_ngcontent-%COMP%]{color:var(--cor-texto)!important}header.tema-personalizado[_ngcontent-%COMP%]   .descricao-empresa[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{color:var(--cor-texto)!important}header.tema-personalizado[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:var(--cor-botao)!important;color:var(--cor-texto-botao)!important}header.carnaval[_ngcontent-%COMP%]{background:#5b1da6}header.carnaval[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], header.carnaval[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#fce101!important}header.carnaval[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fce101!important}header.carnaval[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fce101!important;color:#fce101}header.black_friday_2022[_ngcontent-%COMP%]{background:#000;box-shadow:inset 0 -1px #000}header.black_friday_2022[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#f6a844}header.black_friday_2022[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#999}header.black_friday_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#999}header.black_friday_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#999}header.black_friday_2022[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#999!important}header.black_friday_2022[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#999}header.black_friday_2022[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.black_friday_2022[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.black_friday_2022[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#999;color:#fff}header.black_friday_2022[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#999}header.black_friday_2022[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#999}header.black_friday[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]{background:#000;box-shadow:inset 0 -1px #333}header.black_friday[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}header.black_friday[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#e5e5e5}header.black_friday[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#e5e5e5}header.black_friday[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#e5e5e5}header.black_friday[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fff!important}header.black_friday[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#e5e5e5}header.black_friday[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.black_friday[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.black_friday[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.black_friday[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.black_friday[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%], header.black[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#e5e5e5}header.arraia[_ngcontent-%COMP%]{background:#730101;box-shadow:none}header.arraia[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fff!important}header.arraia[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.arraia[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.arraia[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.natal[_ngcontent-%COMP%]{background:#730101;box-shadow:none}header.natal[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#f5cb89!important}header.natal[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#f5cb89}header.natal[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#f5cb89}header.natal[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#f5cb89}header.chinainbox[_ngcontent-%COMP%]{background:#e52f26;color:#fff;box-shadow:none!important}header.chinainbox[_ngcontent-%COMP%]   .bolinha.fechado[_ngcontent-%COMP%]{background:#FF9800!important}header.chinainbox[_ngcontent-%COMP%]   .status.fechado[_ngcontent-%COMP%]{color:#ff9800!important}header.chinainbox[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff!important}header.chinainbox[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .icone-whatsapp[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%], header.chinainbox[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#fff}header.chinainbox[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.chinainbox[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.dia_namorados[_ngcontent-%COMP%]{background:#b264da;box-shadow:none}header.dia_namorados[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fff!important}header.dia_namorados[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.dia_namorados[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.dia_maes[_ngcontent-%COMP%]{background:#BD3C37;box-shadow:none}header.dia_maes[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#f5cb89!important}header.dia_maes[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#f5cb89}header.dia_maes[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.dia_maes[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]{background:#0000dd;box-shadow:none}header.dia_pais[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fff!important}header.dia_pais[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.dia_pais[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.dia_pais[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.ano_novo[_ngcontent-%COMP%]{background:#030303;box-shadow:none}header.ano_novo[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#f1dfa5!important}header.ano_novo[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#f6d888;color:#f1dfa5}header.ano_novo[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#f1dfa5}header.pascoa[_ngcontent-%COMP%]{background:#775748;box-shadow:none}header.pascoa[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#fff!important}header.pascoa[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#fff}header.pascoa[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#fff;color:#fff}header.pascoa[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#fff}header.copa_2022[_ngcontent-%COMP%]{background:#1a7200;box-shadow:none}header.copa_2022[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .enderecos[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .forma_entrega[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .tempos_entrega[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .text-blue[_ngcontent-%COMP%]{color:#ffd80e!important}header.copa_2022[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .fa-instagram[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .fa-facebook-f[_ngcontent-%COMP%]{color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .btn-outline-blue[_ngcontent-%COMP%]{border-color:#ffd80e;color:#ffd80e}header.copa_2022[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{color:#ffd80e}.saldo-info[_ngcontent-%COMP%]{border:1px solid rgba(204,204,204,.3607843137);background:#f7f7f7;margin-left:-25px;padding-left:25px;margin-right:-25px;border-left:none;border-right:none;padding-top:5px;padding-bottom:5px;position:relative}.saldo-info[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:35px;position:absolute;right:15px;top:15px}.saldo-info.menor[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:20px;top:25px}.descricao-empresa[_ngcontent-%COMP%]{display:block;width:100%}.descricao-empresa[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin-bottom:0}.descricao-empresa[_ngcontent-%COMP%]   .logo-empresa[_ngcontent-%COMP%]{width:70px;height:70px;float:left;margin-right:20px;display:inline-block;margin-top:10px}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{right:15px;max-width:230px;position:relative}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .whatsapp[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f;padding-bottom:5px;display:block}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]{padding-left:0;width:100%!important}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]   .bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6db31b;border-radius:100px;float:left}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]   .status[_ngcontent-%COMP%]{color:#6db31b}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]   .bolinha.fechado[_ngcontent-%COMP%]{background:red}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]   .status.fechado[_ngcontent-%COMP%]{color:red}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .fa-whatsapp[_ngcontent-%COMP%], .nav-user[_ngcontent-%COMP%]   .fe-user[_ngcontent-%COMP%]{top:3px;position:relative}h1[_ngcontent-%COMP%], .h1[_ngcontent-%COMP%]{font-size:2rem!important}@media (min-width: 1600px){header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{margin:0 auto}}@media (max-width: 1560px){header[_ngcontent-%COMP%]   .logo-empresa[_ngcontent-%COMP%]{margin-left:20px}}@media (max-width: 1250px){header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .coluna-links[_ngcontent-%COMP%]{width:250px}}@media (max-width: 1050px){header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .coluna-links[_ngcontent-%COMP%]{width:130px}header[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]   .coluna-links[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{margin-right:25px!important}}@media (max-width: 900px){.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]{top:0;min-width:165px;text-align:center}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .horario[_ngcontent-%COMP%]   .bolinha[_ngcontent-%COMP%]{position:relative;left:20px}.descricao-empresa[_ngcontent-%COMP%]   .info[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:block}a.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:none}}.div_natal[_ngcontent-%COMP%]{background:#7e0101;text-align:center;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.div_arraia[_ngcontent-%COMP%]{background:url(/assets/images/banner_arraia.png);height:100px;text-align:center;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.div_dia_maes[_ngcontent-%COMP%]{background:#FB6C66;text-align:center;border-top:solid 2px #e0bd6c;border-bottom:solid 2px #e0bd6c}.div_dia_pais[_ngcontent-%COMP%]{background:#10b3e9;text-align:center;border-top:solid 2px #10b3e9;border-bottom:solid 2px #10b3e9}.div_dia_namorados[_ngcontent-%COMP%]{background:#d64860;text-align:center;border-top:solid 2px transparent;border-bottom:solid 2px transparent}.div_ano_novo[_ngcontent-%COMP%]{background:#1c1c1c;text-align:center;border-top:solid 1px #f1dfa5;border-bottom:solid 2px #f1dfa5}.div_copa_2022[_ngcontent-%COMP%]{background:#ffd80e;text-align:center;border-top:solid 1px #ffd80e;border-bottom:solid 2px #ffd80e}  .quiosque header{height:605px}.font11[_ngcontent-%COMP%]{font-size:11px!important}"]}),i})();const lBe=["carrinho"],cBe=["lojaMenu"],dBe=["topo"],uBe=["topoDesktop"],pBe=["stickyCarrinho"];function hBe(i,o){1&i&&n._UZ(0,"app-topo-desktop",null,15)}function gBe(i,o){if(1&i&&n._UZ(0,"app-topo",16,17),2&i){const t=n.oxw();n.Q6J("empresa",t.empresa)("exibirTopo",t.exibirTopo)("topoReduzido",t.topoReduzido)("exibirBannerTema",t.exibirBannerTema)("exibirTitulo",t.exibirTitulo)}}function fBe(i,o){if(1&i&&(n.TgZ(0,"span",18),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.empresa.mensagemAbrirPedidos," ")}}function mBe(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"a",20),n._uU(2," Para fazer seus pedidos entre em contato pelo Whatsapp "),n._UZ(3,"app-exibir-whatsapp",21),n.qZA()()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("href","http://wa.me/55"+(null==t.empresa?null:t.empresa.whatsapp),n.LSH),n.xp6(2),n.Q6J("empresa",t.empresa)("light",!0)}}function _Be(i,o){1&i&&(n.TgZ(0,"span",19),n._uU(1," Card\xe1pio Digital para Visualiza\xe7\xe3o "),n.qZA())}function bBe(i,o){1&i&&(n.TgZ(0,"div",22)(1,"div",23,24)(3,"div",25),n._UZ(4,"app-loja-carrinho",26),n.qZA()()()),2&i&&(n.xp6(4),n.Q6J("desktop",!0))}function vBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",27)(1,"div",28)(2,"div",29),n._uU(3," Este website est\xe1 em conformidade com a lei Geral de Prote\xe7\xe3o de Dados (LGPD) e utiliza cookies para oferecer uma melhor experi\xeancia ao visitante. "),n.qZA(),n.TgZ(4,"div",30)(5,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.concordoCookies())}),n._uU(6,"Concordo"),n.qZA(),n._uU(7,"\xa0\xa0 "),n.qZA()()()}}const yBe=function(i,o){return{finalizar:i,"remover-padding":o}},CBe=function(i,o){return{"mt-2":i,"overflow-x-hidden":o}};let GK,Q6=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.clienteService=t,this.activatedRoute=r,this.deviceService=s,this.dominiosService=l,this.sanitizer=u,this.constantsService=p,this.carrinhoService=y,this.router=A,this.empresa={},this.carregou=!1,this.exibirTopo=!0,this.telaMultiLoja=!1,this.exibirMenu=!0,this.finalizarPedido=!1,this.tipoCardapio="",this.aceitouCookies=!1,this.temBordas=!0,this.exibirBannerTema=!1,this.topoReduzido=!1,this.exibirTitulo=!0,this.nomePagina=l.obtenhaRaizCardapio(),this.exibirTitulo=!window.telaMultiLoja||-1===this.router.url.indexOf("/loja"),this.telaMultiLoja=window.telaMultiLoja,this.telaMultiLoja&&this.constantsService.recarregueEmpresa(),this.carrinhoService.setContexto(window.multipedido),this.activatedRoute.queryParams.subscribe(w=>{w.op&&localStorage.setItem("operador",w.op)}),this.aceitouCookies="true"===localStorage.aceitouCookies,(window.Flutter||window.flutter_inappwebview)&&(this.aceitouCookies=!0)}setDesktop(){this.router.url.indexOf("3ds/retorno")>=0?this.isDesktop=!1:"quiosque"!==this.empresa.tema&&(this.deviceService.isMobile()||this.deviceService.isTablet())?(this.isDesktop=!1,document.body.classList.add("mobile")):(document.body.classList.add("desktop"),this.isDesktop=!0)}ngOnInit(){this.constantsService.empresa$.subscribe(t=>{t&&(this.empresa=t,this.setDesktop(),this.adicioneTemaNoBody(t),this.lojaMenu.exibirMenuCategorias=this.empresa&&this.empresa.layoutEcommerce,this.hashMesa=this.activatedRoute.firstChild.snapshot.params.hm,this.inicializePedido().then(()=>{this.tipoCardapio=this.hashMesa||this.pedido&&this.pedido.mesa?"MESA":"DELIVERY"}),this.isDesktop?window.onscroll=()=>{GK=this.topoDesktop.obtenhaAltura(),this.setDesktop(),this.stickyCarrinho&&(window.pageYOffset>GK+150?this.stickyCarrinho.nativeElement.classList.add("is-sticky"):this.stickyCarrinho.nativeElement.classList.remove("is-sticky"))}:setTimeout(()=>{this.topo.carregueDados()},0),this.urlMaps=this.sanitizer.bypassSecurityTrustResourceUrl(this.empresa.linkMaps))})}inicializePedido(){let t=this.carrinhoService.obtenhaPedido();return t.mesa&&t.mesa.expirada?this.mesaExpirada=!0:this.pedido=t,Promise.resolve()}onActivate(t){this.exibirTopo=t.deveExibirTopo(),this.exibirMenu=t.deveExibirMenu(),this.temBordas=t.deveTerBordas(),this.finalizarPedido=this.exibirCarrinhoDesktop(),this.exibirBannerTema=t.deveExibirBannerTema(),t.topoDeveSerReduzido&&(this.topoReduzido=t.topoDeveSerReduzido()),window.scrollTo(0,0),setTimeout(()=>{this.topoDesktop&&this.topoDesktop.carregaDados(),this.lojaMenu&&this.lojaMenu.veriqueMenuAtivo(),this.carrinho&&this.carrinho.verifiqueDeveExibir()},0)}exibirCarrinhoDesktop(){return location.pathname.endsWith("/pedido")||location.pathname.indexOf("/pedido/acompanhar")>=0||location.pathname.indexOf("pedido-totem")>=0}concordoCookies(){localStorage.aceitouCookies=!0,this.aceitouCookies=!0}adicioneTemaNoBody(t){t.tema&&document.body.classList.add(window.tema)}abraTelaDeBusca(t){const r={state:{ehMesa:this.hashMesa}};let s=String(`/${this.nomePagina}/busca`);this.empresa.layoutEcommerce&&(s+="/ecommerce/todos"),this.router.navigateByUrl(s,r).then(()=>{})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ka),n.Y36(ci),n.Y36(zo),n.Y36(Eo),n.Y36(rd),n.Y36(gi),n.Y36(Oi),n.Y36(Pn))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-pagina"]],viewQuery:function(t,r){if(1&t&&(n.Gf(lBe,5),n.Gf(cBe,5),n.Gf(dBe,5),n.Gf(uBe,5),n.Gf(pBe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.carrinho=s.first),n.iGM(s=n.CRH())&&(r.lojaMenu=s.first),n.iGM(s=n.CRH())&&(r.topo=s.first),n.iGM(s=n.CRH())&&(r.topoDesktop=s.first),n.iGM(s=n.CRH())&&(r.stickyCarrinho=s.first)}},decls:17,vars:23,consts:[[4,"ngIf"],[3,"ngClass"],[1,"coluna","principal"],[3,"empresa","exibirTopo","topoReduzido","exibirBannerTema","exibirTitulo",4,"ngIf"],[1,"conteudo","ribbon-box",3,"ngClass"],["class","ribbon ribbon-dark aviso-abertura",4,"ngIf"],["class","ribbon ribbon-success aviso-abertura",4,"ngIf"],[3,"activate"],["class","coluna carrinho_desktop",4,"ngIf"],["class","barra-cookies p-1",4,"ngIf"],[3,"exibindoMenu"],["carrinho",""],[3,"exibirMenu","onBuscarProdutos"],["lojaMenu",""],["kendoDialogContainer",""],["topoDesktop",""],[3,"empresa","exibirTopo","topoReduzido","exibirBannerTema","exibirTitulo"],["topo",""],[1,"ribbon","ribbon-dark","aviso-abertura"],[1,"ribbon","ribbon-success","aviso-abertura"],[1,"whatsapp",3,"href"],[3,"empresa","light"],[1,"coluna","carrinho_desktop"],[1,"sticky"],["stickyCarrinho",""],[1,"carrinho"],[3,"desktop"],[1,"barra-cookies","p-1"],[1,"row","d-flex","justify-content-center","align-items-center",2,"max-width","800px","margin","0 auto"],[1,"col"],[1,"col-auto"],[1,"btn","btn-sm","btn-primary",3,"click"]],template:function(t,r){if(1&t&&(n.YNc(0,hBe,2,0,"app-topo-desktop",0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,gBe,2,5,"app-topo",3),n.TgZ(4,"div",4),n.YNc(5,fBe,2,1,"span",5),n.YNc(6,mBe,4,3,"span",6),n.YNc(7,_Be,2,0,"span",6),n.TgZ(8,"router-outlet",7),n.NdJ("activate",function(l){return r.onActivate(l)}),n.qZA()()(),n.YNc(9,bBe,5,1,"div",8),n.qZA(),n.YNc(10,vBe,8,0,"div",9),n.TgZ(11,"footer"),n._UZ(12,"app-carrinho",10,11),n.TgZ(14,"app-loja-menu",12,13),n.NdJ("onBuscarProdutos",function(l){return r.abraTelaDeBusca(l)}),n.qZA()(),n._UZ(16,"div",14)),2&t){const s=n.MAs(15);n.Q6J("ngIf",r.isDesktop),n.xp6(1),n.Gre("container ",null==r.empresa?null:r.empresa.tema,""),n.Q6J("ngClass",n.WLB(17,yBe,r.finalizarPedido,!r.temBordas)),n.xp6(2),n.Q6J("ngIf",!r.isDesktop),n.xp6(1),n.Q6J("ngClass",n.WLB(20,CBe,(!r.empresa.estaRecebendoPedidos&&r.empresa.mensagemAbrirPedidos||(null==r.empresa.cardapio?null:r.empresa.cardapio.modoVisualizacao)||(null==r.empresa.cardapio?null:r.empresa.cardapio.modoVisualizacaoQRcode))&&r.exibirTopo,s.exibirMenuCategorias)),n.xp6(1),n.Q6J("ngIf",!r.empresa.estaRecebendoPedidos&&r.empresa.mensagemAbrirPedidos&&r.exibirTopo),n.xp6(1),n.Q6J("ngIf",null==r.empresa.cardapio?null:r.empresa.cardapio.modoVisualizacao),n.xp6(1),n.Q6J("ngIf",((null==r.empresa.cardapio?null:r.empresa.cardapio.modoVisualizacaoQRcode)||r.pedido&&r.pedido.mesa&&r.pedido.mesa.somenteLeitura)&&"MESA"===r.tipoCardapio),n.xp6(2),n.Q6J("ngIf",!r.finalizarPedido),n.xp6(1),n.Q6J("ngIf",!r.aceitouCookies),n.xp6(1),n.Gre("footer ",r.empresa.tema,""),n.xp6(1),n.Q6J("exibindoMenu",r.exibirMenu),n.xp6(2),n.Q6J("exibirMenu",r.exibirMenu)}},dependencies:[gt,Ge,$b,jJ,Y7e,sQ,jE,G7e,sBe,NR],styles:[".barra-cookies[_ngcontent-%COMP%]{position:fixed;bottom:0;background:#333;z-index:9999;color:#fff;width:100%}.desktop[_ngcontent-%COMP%]   .barra-cookies[_ngcontent-%COMP%]{font-size:16px}.container[_ngcontent-%COMP%]{position:relative;max-width:100%;display:flex}.container.remover-padding[_ngcontent-%COMP%]{padding:0}.container[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]{width:100%;background:#fff}.container.mobile[_ngcontent-%COMP%]{display:block;max-width:none;position:relative;width:100%}.container.mobile[_ngcontent-%COMP%]   .aviso-abertura[_ngcontent-%COMP%]{margin-top:10px;max-width:500px}.container[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]{display:none;height:100%;right:0;flex-basis:452px;z-index:1000}.black_friday_2022[_ngcontent-%COMP%], .black_friday_2022[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]{background:#0e0e0e!important}.carnaval[_ngcontent-%COMP%]   .aviso-abertura[_ngcontent-%COMP%]{background:#4ab8b8!important;color:#fce335!important}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;padding:0;position:fixed;z-index:99999;background:#f1f5f7;z-index:10;left:0!important}.footer.carnaval[_ngcontent-%COMP%]     .carrinho{background:#4bb8b8!important}.footer.chinainbox[_ngcontent-%COMP%]     .carrinho{background:#e52f26!important}.footer.quiosque[_ngcontent-%COMP%]{display:block}.footer.quiosque[_ngcontent-%COMP%]     .carrinho{background:#3E9920!important}.aviso-abertura[_ngcontent-%COMP%]{position:relative;width:100%;border-radius:0;margin-top:10px;max-width:250px;padding:0 30px!important}@media (min-width: 1024px){.container[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]{max-width:calc(100% - 442px);flex-basis:100%;width:100%}.container[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%]{max-width:1080px;width:100%;float:right;min-height:calc(100vh - 240px);padding-right:15px;padding-left:15px}.container[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]   .conteudo.overflow-x-hidden[_ngcontent-%COMP%]{overflow-x:hidden;padding-left:0}.container.finalizar[_ngcontent-%COMP%]{padding-left:0!important}.container.finalizar[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]{max-width:1100px;margin:0 auto}.container[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]{display:flex!important;background-color:#f7f8f8;z-index:0}.container[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]   .sticky[_ngcontent-%COMP%]{right:0;background-color:#f7f8f8;border-right:solid 1px #efefef;border-left:solid 1px #e2e2e2;position:absolute}.container[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]   .sticky.is-sticky[_ngcontent-%COMP%]{position:fixed;top:0;background-color:#f7f8f8;border-left:solid 1px #e2e2e2}.container[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]   .carrinho[_ngcontent-%COMP%]{height:100vh;width:452px;padding:0 20px}.container.quiosque[_ngcontent-%COMP%]   .conteudo[_ngcontent-%COMP%], .container.quiosque[_ngcontent-%COMP%]   .principal[_ngcontent-%COMP%]{max-width:100%!important}.container.quiosque[_ngcontent-%COMP%]   .carrinho_desktop[_ngcontent-%COMP%]{display:none!important}.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:30px;display:none}.footer.quiosque[_ngcontent-%COMP%]{position:fixed!important}}a[_ngcontent-%COMP%]{color:#fff}  body.black_friday_2022{background-color:#0e0e0e!important}  body.black_friday_2022 .container .carrinho_desktop{background-color:#0e0e0e!important}  body.black_friday_2022 .container .carrinho_desktop .sticky,   body.black_friday_2022 .container .carrinho_desktop .is-sticky{background-color:#0e0e0e!important;border-right:solid 1px #1a1a1a!important;border-left:solid 1px #1a1a1a!important}  .dialog-produto{overflow-x:hidden;padding-bottom:80px!important;padding-top:0!important;position:static;position:initial}  .mobile .dialog-produto{padding:12px}  .k-dialog-wrapper{z-index:100001}  .ng-image-fullscreen-view{z-index:99999!important}  .black_friday_2022 .dialog-produto{background-color:#0e0e0e!important}  .black_friday_2022.desktop .dialog-produto{box-shadow:0 10px 20px #00000040;border:solid 1px hsla(0deg,0%,100%,.12)!important}@media (min-width: 1024px){  .quiosque .container .principal{max-width:calc(100% - 342px)!important}  .quiosque .container .carrinho{width:352px!important;padding:0 10px!important}  .quiosque .container .carrinho_desktop{flex-basis:352px!important}}  .tema-personalizado{background:#fff!important;background:var(--cor-fundo-site, #fff)!important}  .tema-personalizado .principal{background:#fff!important;background:var(--cor-fundo-site, #fff)!important}  .tema-personalizado header{box-shadow:0 1px 0 color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important}  .tema-personalizado .container .carrinho_desktop{background-color:#fff!important;background-color:var(--cor-fundo-site, #fff)!important}  .tema-personalizado .container .carrinho_desktop .sticky,   .tema-personalizado .container .carrinho_desktop .is-sticky{background-color:#fff!important;background-color:var(--cor-fundo-site, #fff)!important;border-right:solid 1px color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important;border-left:solid 1px color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important}  .tema-personalizado .dialog-produto{background-color:var(--cor-fundo-site)!important}  .tema-personalizado.desktop .dialog-produto{box-shadow:0 10px 20px #fff!important;box-shadow:0 10px 20px 0 var(--cor-fundo-site, #fff)!important;border:solid 1px color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important}"]}),i})(),qK=(()=>{class i extends fs{constructor(t){super(t),this.httpCliente=t}obtenhaEndereco(t){return this.obtenha("/geo/geocodeEndereco?lat="+t.lat+"&lng="+t.lng,{})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const ABe=["telaEndereco"];function xBe(i,o){if(1&i&&(n.TgZ(0,"div",19),n._uU(1),n.TgZ(2,"button",20)(3,"span",21),n._uU(4,"\xd7"),n.qZA()()()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.msgErro," ")}}function TBe(i,o){1&i&&n._UZ(0,"i",22)}function SBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",13)(1,"button",23),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.editarEndereco())}),n._uU(2," Alterar endere\xe7o"),n.qZA()()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("disabled",t.calculandoTaxa)}}function wBe(i,o){1&i&&n._UZ(0,"i",22)}function MBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",13)(1,"button",24),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.usarLocalizacao())}),n.YNc(2,wBe,1,0,"i",15),n._UZ(3,"i",25),n._uU(4," Minha Localiza\xe7\xe3o "),n.qZA()()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("disabled",t.calculandoLocalizacao),n.xp6(1),n.Q6J("ngIf",t.calculandoLocalizacao)}}function DBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",7)(2,"label",8),n._uU(3,"Selecione o endere\xe7o de entrega "),n.qZA(),n.TgZ(4,"kendo-combobox",9),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco=s)}),n.qZA()(),n.YNc(5,xBe,5,1,"div",10),n.TgZ(6,"div",11)(7,"div",12)(8,"div",13)(9,"button",14),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.calculeTaxaEntrega())}),n.YNc(10,TBe,1,0,"i",15),n._uU(11," Entregar nesse "),n.qZA()(),n.YNc(12,SBe,3,1,"div",16),n.qZA(),n.TgZ(13,"div",17)(14,"div",13)(15,"button",18),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.cadastrarNovo())}),n._uU(16,"Cadastrar Novo "),n.qZA()(),n.YNc(17,MBe,5,2,"div",16),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(4),n.Q6J("data",t.enderecos)("autoFocus",!0)("allowCustom",!1)("ngModel",t.endereco)("valueField","id")("textField","descricaoCompleta"),n.xp6(1),n.Q6J("ngIf",t.msgErro),n.xp6(4),n.Q6J("disabled",!t.endereco||t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa),n.xp6(2),n.Q6J("ngIf",null==t.endereco?null:t.endereco.id),n.xp6(5),n.Q6J("ngIf",!t.entregaPorZona&&t.formaReceberEmCasa.permiteUsarGps)}}let kBe=(()=>{class i{constructor(t,r,s,l){this.autorizacao=t,this.enderecoService=r,this.constantsService=s,this.geoService=l,this.carregando=!1,this.carregou=!1,this.enderecos=[],this.calculandoTaxa=!1,this.msgErro="",this.entregaPorZona=!1,this.calculandoLocalizacao=!1}ngOnInit(){let t=this.pedido&&this.pedido.entrega?this.pedido.entrega.endereco:{};this.enderecoEscolhido=null!=this.endereco,this.constantsService.empresa$.subscribe(r=>{!r||(this.empresa=r,this.formaReceberEmCasa=this.empresa.formasDeEntrega.find(s=>s.nome===wo.RECEBER_EM_CASA),this.formaReceberEmCasa&&"zona"===this.formaReceberEmCasa.tipoDeCobranca&&(this.entregaPorZona=!0),setTimeout(()=>{this.empresa.enderecoCompleto&&!this.formaReceberEmCasa.naoUsarCidadePadrao&&this.telaEndereco.setCidadePadrao(this.empresa.enderecoCompleto.cidade)},0))}),this.autorizacao.obtenhaEnderecos().then(r=>{this.carregando=!1,this.carregou=!0,t&&!t.id&&r.unshift(t),this.setEnderecos(r)}).catch(r=>{this.carregou=!0})}cadastrarNovo(){this.enderecoEscolhido=!0}salveEndereco(t){t.calculouTaxaDeEntrega()&&this.window.close(t)}setEnderecos(t=[]){this.enderecos=[],t.forEach(r=>{let s=Xr.novo();Object.assign(s,r),r.cidade&&(s.cidade=r.cidade,s.estado=r.cidade.estado),s.descricaoCompleta||(s.descricaoCompleta=s.obtenhaEnderecoCompleto()),this.enderecos.push(s)}),this.enderecos.length&&!this.enderecoEscolhido?this.endereco=this.enderecos[0]:!this.enderecos.length&&!this.enderecoEscolhido&&(this.enderecoEscolhido=!0)}calculeTaxaEntrega(){if(this.endereco.faltamInformacoes)return this.enderecoEscolhido=!0,void this.telaEndereco.exibaEndereco(this.endereco);this.calculandoTaxa=!0,this.enderecoService.calculeTaxaDeEntrega("Receber em casa",this.endereco,this.pedido.obtenhaSubTotal()).then(t=>{this.calculandoTaxa=!1,Object.assign(this.endereco,t),this.salveEndereco(this.endereco),this.window.close(this.endereco)}).catch(t=>{this.calculandoTaxa=!1,this.msgErro=t})}editarEndereco(){this.telaEndereco.exibaEndereco(this.endereco),this.enderecoEscolhido=!0}usarLocalizacao(){this.calculandoLocalizacao=!0,navigator.geolocation.getCurrentPosition(t=>{const r={lat:t.coords.latitude,lng:t.coords.longitude};this.geoService.obtenhaEndereco(r).then(s=>{this.calculandoLocalizacao=!1;const l=Xr.novo();Object.assign(l,s),l.localizacao=null,this.pedido.entrega.formaDeEntrega=wo.RECEBER_EM_CASA,l.gps=!0,this.pedido.entrega.endereco=l,this.endereco=l,this.telaEndereco.exibaEndereco(this.endereco),this.enderecoEscolhido=!0,this.telaEndereco.exibaMapa(r)})},t=>{this.msgErro="Voc\xea precisa ativar a geolocaliza\xe7\xe3o para poder utilizar essa funcionalidade."},{maximumAge:0,enableHighAccuracy:!0,timeout:5e3})}voltarDoCadastro(){this.enderecoEscolhido=!1,this.telaEndereco&&this.telaEndereco.volteEndereco()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(wc),n.Y36(gi),n.Y36(qK))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-modal-escolher-endereco"]],viewQuery:function(t,r){if(1&t&&n.Gf(ABe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.telaEndereco=s.first)}},decls:8,vars:5,consts:[[1,"modal-content"],[4,"ngIf"],[3,"hidden"],[1,"btn","btn-sm","btn-outline-blue","mb-2",3,"click"],[1,"fas","fa-chevron-left"],[3,"pedido","cepObrigatorio","complementoObrigatorio","submit"],["telaEndereco",""],[1,"form-group"],["for","descricao"],["id","descricao","name","descricao","placeholder","selecionar","appAutoFocus","",1,"form-control",3,"data","autoFocus","allowCustom","ngModel","valueField","textField","ngModelChange"],["class","alert alert-danger alert-dismissible fade show mt-2 mb-2","role","alert",4,"ngIf"],[1,"mt-2","text-center"],[1,"row"],[1,"col"],["type","button",1,"btn","btn-lg","btn-blue","btn-block",3,"disabled","click"],["class","k-icon k-i-loading  ",4,"ngIf"],["class","col",4,"ngIf"],[1,"mt-2","row"],["type","button",1,"btn","btn-lg","btn-primary","btn-block",3,"click"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2","mb-2"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close"],["aria-hidden","true"],[1,"k-icon","k-i-loading"],["type","button",1,"btn","btn-lg","btn-warning","btn-block",3,"disabled","click"],["type","button",1,"btnUsarLocalizacao","btn","btn-lg","btn-block","btn-outline-primary",3,"disabled","click"],[1,"fas","fa-location-arrow"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div"),n.YNc(2,DBe,18,11,"div",1),n.TgZ(3,"div",2)(4,"button",3),n.NdJ("click",function(){return r.voltarDoCadastro()}),n._UZ(5,"i",4),n.qZA(),n.TgZ(6,"app-form-endereco",5,6),n.NdJ("submit",function(l){return r.salveEndereco(l)}),n.qZA()()()()),2&t&&(n.xp6(2),n.Q6J("ngIf",!r.enderecoEscolhido),n.xp6(1),n.Q6J("hidden",!r.enderecoEscolhido),n.xp6(3),n.Q6J("pedido",r.pedido)("cepObrigatorio",r.pedido.entrega.cepObrigatorio)("complementoObrigatorio",r.pedido.entrega.complementoObrigatorio))},dependencies:[Ge,ti,ni,nn,io,Za,nT],styles:[".ou[_ngcontent-%COMP%]{text-align:center;color:#b6b6b6}"]}),i})();const IBe=["frm"],EBe=["kendoMaskedTextBox"];function PBe(i,o){if(1&i&&n._UZ(0,"app-header-loja",17),2&i){const t=n.oxw();n.Q6J("titulo","C\xf3digo Valida\xe7\xe3o")("retorno",t.retorno)}}function OBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"app-header-tela",18),n.NdJ("fechou",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheTela())}),n.qZA()}2&i&&n.Q6J("titulo","C\xf3digo Valida\xe7\xe3o")}function NBe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe o n\xfamero do telefone"),n.qZA())}function LBe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe o c\xf3digo de valida\xe7\xe3o de 5 digitos"),n.qZA())}function RBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"p",19),n._uU(2,"Digite o c\xf3digo de 5 digitos enviado para o "),n.TgZ(3,"b"),n._uU(4,"WhastApp"),n.qZA()(),n.TgZ(5,"div",20)(6,"input",21,22),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.alterouCodigo(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.codigo=s)}),n.qZA(),n.TgZ(8,"div",11),n.YNc(9,LBe,2,0,"p",12),n.qZA()()()}if(2&i){const t=n.MAs(7),r=n.oxw();n.xp6(6),n.Q6J("disabled",r.processando)("ngModel",r.contato.codigo),n.xp6(3),n.Q6J("ngIf",(null==t.errors?null:t.errors.required)&&r.contato.codigo)}}function FBe(i,o){if(1&i&&(n.TgZ(0,"div",23)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erro,"")}}function BBe(i,o){1&i&&(n.TgZ(0,"div",24)(1,"b"),n._uU(2," Codigo validado!"),n.qZA()())}function HBe(i,o){1&i&&n._UZ(0,"i",28)}function $Be(i,o){if(1&i&&(n.TgZ(0,"div",25)(1,"button",26),n.YNc(2,HBe,1,0,"i",27),n._uU(3," Validar Telefone "),n.qZA()()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("disabled",t.processando),n.xp6(1),n.Q6J("ngIf",t.processando)}}function UBe(i,o){1&i&&n._UZ(0,"i",28)}function YBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",25)(1,"button",31),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.falarComLoja(s))}),n._uU(2," N\xe3o recebi codigo, falar com a loja "),n._UZ(3,"i",32),n.qZA()()}}function jBe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",25)(2,"button",26),n.YNc(3,UBe,1,0,"i",27),n._uU(4," Gerar novo codigo "),n.qZA()(),n.YNc(5,YBe,4,0,"div",15),n.BQk()),2&i){const t=n.oxw(2);n.xp6(2),n.Q6J("disabled",t.processando||t.countdownSeconds>0),n.xp6(1),n.Q6J("ngIf",t.processando),n.xp6(2),n.Q6J("ngIf",null==t.empresa?null:t.empresa.numeroWhatsapp)}}function ZBe(i,o){if(1&i&&(n.ynx(0,29),n.TgZ(1,"div",30)(2,"h1"),n._uU(3),n.qZA()(),n.YNc(4,jBe,6,3,"ng-container",12),n.BQk()),2&i){const t=n.oxw();n.Q6J("hidden",0===t.countdownSeconds),n.xp6(3),n.Oqu(t.formattedTime),n.xp6(1),n.Q6J("ngIf",0===t.countdownSeconds&&t.validarCodigo)}}const VBe=function(i,o){return{"needs-validation":i,"was-validated":o}};let JK=(()=>{class i{constructor(t,r,s,l,u,p){this.router=t,this.dominiosService=r,this.carrinhoService=s,this.activatedRoute=l,this.constantsService=u,this.autorizacao=p,this.paisPadrao="+55",this.contato={codigoPais:this.paisPadrao},this.processando=!1,this.validarCodigo=!1,this.empresa={},this.countdownSeconds=60,this.formattedTime="01:00",this.phoneMask="(00) 00000-0000",this.modal=!1,this.encodedText=encodeURIComponent("N\xe3o recebi meu codigo de login pelo whatsApp")}static abraComoPopup(t,r,s,l,u=null,p=null){let y=La.calculeAlturaLargura(!1);const A=l.open({title:null,content:i,minWidth:200,width:y.largura,height:500});A.content.instance.setModal(A,u?u.telefone:null),La.abraJanela(t,r,s,A,{},p)}ngOnInit(){if(window.history.state.contato)this.contato=window.history.state.contato;else{let t=this.activatedRoute.snapshot.queryParams.tel;t&&(this.contato.telefone=t)}this.retorno=this.activatedRoute.snapshot.queryParams.t,this.contato.codigoPais||(this.contato.codigoPais=this.paisPadrao),this.constantsService.empresa$.subscribe(t=>{!t||(this.empresa=t)})}setModal(t,r=null){this.window=t,this.modal=!0,r&&(this.contato.telefone=r)}informarNovoTelefone(t){return this.contato.telefone=null,this.validarCodigo=!1,this.timerSubscription&&this.timerSubscription.unsubscribe(),t&&t.stopPropagation(),t&&t.preventDefault(),!1}startTimer(){const t=wx(1e3);this.countdownSeconds=60,this.timerSubscription=t.subscribe(()=>{this.countdownSeconds>0?(this.countdownSeconds--,this.updateFormattedTime()):this.timerSubscription.unsubscribe()})}gereCodigoValidacaoWhatsapp(){delete this.erro,this.frm.valid&&(this.processando=!0,this.autorizacao.gereCodigoValidacao(this.contato).then(t=>{this.processando=!1,this.validarCodigo=!0,this.startTimer(),this.contato.id=t.id,this.frm.resetForm({telefone:this.contato.telefone})}).catch(t=>{this.processando=!1,this.erro=t}))}alterouCodigo(t){this.frm.controls.codigo.valid&&(delete this.erro,this.processando=!0,this.autorizacao.valideContatoWhatsapp(this.contato,t).then(r=>{this.codigoValido=!0,this.autorizacao.salveUsuario(r);let s=this.carrinhoService.obtenhaPedido();s.contato=r,this.carrinhoService.salvePedido(s),this.modal?this.window.close({login:!0}):setTimeout(()=>{this.dominiosService.navegueParaUrl(this.retorno)},1500)}).catch(r=>{this.processando=!1,this.erro=r}))}falarComLoja(t){window.open("http://wa.me/55"+this.empresa.numeroWhatsapp?.whatsapp+"?text="+this.encodedText)}updateFormattedTime(){const t=Math.floor(this.countdownSeconds/60),r=this.countdownSeconds%60,s=t.toString().padStart(2,"0"),l=r.toString().padStart(2,"0");this.formattedTime=`${s}:${l}`}onPhoneMaskChange(t){this.phoneMask=t,this.txtTelefone&&this.txtTelefone.updateValue(this.txtTelefone.input.nativeElement.value)}onCountrySelected(t){this.contato.codigoPais=t}fecheTela(){this.window.close()}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}ngOnDestroy(){this.timerSubscription&&this.timerSubscription.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Eo),n.Y36(Oi),n.Y36(ci),n.Y36(gi),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-validar-contato-zap"]],viewQuery:function(t,r){if(1&t&&(n.Gf(IBe,5),n.Gf(EBe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.txtTelefone=s.first)}},decls:20,vars:16,consts:[[3,"titulo","retorno",4,"ngIf"],["exibirFechar","true",3,"titulo","fechou",4,"ngIf"],["novalidate","",1,"mt-3",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"form-group","mb-2","col"],["for","telefone",1,"label-disabled"],[1,"input-group"],[2,"display","flex"],[3,"selectedCountryCode","phoneMaskChange","selectedCountryCodeChange"],["id","telefone","name","telefone","placeholder","Telefone com DDD","autocomplete","off","required","",1,"form-control","my-custom-maskedtextbox",3,"mask","disabled","ngModel","ngModelChange"],["telefone","ngModel","kendoMaskedTextBox","kendoMaskedTextBox"],[1,"invalid-feedback"],[4,"ngIf"],["class","text-danger mt-2 mb-2  text-center","role","alert",4,"ngIf"],["class","text-success mt-2 mb-2  text-center","role","alert",4,"ngIf"],["class","mt-3 mb-3 col",4,"ngIf"],[3,"hidden",4,"ngIf"],[3,"titulo","retorno"],["exibirFechar","true",3,"titulo","fechou"],[1,"text-center","text-dark"],[1,"input-group","mb-2","col"],["type","text","minlength","5","mask","0-0-0-0-0","id","codigo","name","codigo","placeholder","0-0-0-0-0","required","","appAutoFocus","",1,"form-control","codigo-validacao",3,"disabled","ngModel","ngModelChange"],["codigo","ngModel"],["role","alert",1,"text-danger","mt-2","mb-2","text-center"],["role","alert",1,"text-success","mt-2","mb-2","text-center"],[1,"mt-3","mb-3","col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading mr-1",4,"ngIf"],[1,"k-icon","k-i-loading","mr-1"],[3,"hidden"],[1,"timer","mt-2"],[1,"btn","btn-success","waves-effect","btn-block",3,"click"],[1,"fab","fa-whatsapp","fa-lg","ml-1"]],template:function(t,r){if(1&t&&(n.YNc(0,PBe,1,2,"app-header-loja",0),n.YNc(1,OBe,1,1,"app-header-tela",1),n.TgZ(2,"form",2,3),n.NdJ("ngSubmit",function(){return r.gereCodigoValidacaoWhatsapp()}),n.TgZ(4,"div",4)(5,"label",5),n._uU(6," Telefone"),n.qZA(),n.TgZ(7,"div",6)(8,"div",7)(9,"app-seletor-codigo-pais",8),n.NdJ("phoneMaskChange",function(l){return r.onPhoneMaskChange(l)})("selectedCountryCodeChange",function(l){return r.onCountrySelected(l)}),n.qZA(),n.TgZ(10,"kendo-maskedtextbox",9,10),n.NdJ("ngModelChange",function(l){return r.contato.telefone=l}),n.qZA()(),n.TgZ(13,"div",11),n.YNc(14,NBe,2,0,"p",12),n.qZA()()(),n.YNc(15,RBe,10,3,"div",12),n.YNc(16,FBe,3,1,"div",13),n.YNc(17,BBe,3,0,"div",14),n.YNc(18,$Be,4,2,"div",15),n.YNc(19,ZBe,5,3,"ng-container",16),n.qZA()),2&t){const s=n.MAs(3),l=n.MAs(11);n.Q6J("ngIf",!r.modal),n.xp6(1),n.Q6J("ngIf",r.modal),n.xp6(1),n.Q6J("ngClass",n.WLB(13,VBe,!s.submitted,s.submitted)),n.xp6(7),n.Q6J("selectedCountryCode",r.contato.codigoPais),n.xp6(1),n.Q6J("mask",r.phoneMask)("disabled",r.validarCodigo)("ngModel",r.contato.telefone),n.xp6(4),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",r.validarCodigo),n.xp6(1),n.Q6J("ngIf",r.erro),n.xp6(1),n.Q6J("ngIf",r.codigoValido),n.xp6(1),n.Q6J("ngIf",!r.validarCodigo),n.xp6(1),n.Q6J("ngIf",r.validarCodigo)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,zv,ni,Zo,ja,po,io,Cs,Za,Vu,_B],styles:["form[_ngcontent-%COMP%]{max-width:440px;margin:0 auto}p[_ngcontent-%COMP%]{font-size:15px}.preto[_ngcontent-%COMP%]{color:#000}input.codigo-validacao[_ngcontent-%COMP%]{font-family:monospace;font-size:18px;text-align:center}.timer[_ngcontent-%COMP%]{text-align:center;margin-top:50px}.timer[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font-size:20px!important}  .my-custom-maskedtextbox input{width:100%!important}button[_ngcontent-%COMP%], input[_ngcontent-%COMP%]{max-width:400px!important}"]}),i})();function zBe(i,o){if(1&i&&(n.TgZ(0,"span",19)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}const XT=function(i){return{selecionado:i}};function GBe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",14),n._UZ(1,"img",15),n.TgZ(2,"input",16),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.alterouFormaDePagamentoParaPix())}),n.qZA(),n.TgZ(3,"label",17),n._uU(4," PIX "),n.YNc(5,zBe,3,1,"span",18),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(5);n.Q6J("ngClass",n.VKq(7,XT,(null==r.pedido.pagamento||null==r.pedido.pagamento.formaDePagamento?null:r.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(2),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pedido.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(2),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa)}}function qBe(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Escolha a forma de pagamengo do seu pedido"),n.qZA()())}function JBe(i,o){if(1&i&&(n.TgZ(0,"div",11),n.YNc(1,GBe,6,9,"span",12),n.YNc(2,qBe,3,0,"div",13),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoPix),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.formaDePagamento)}}function QBe(i,o){if(1&i&&(n.TgZ(0,"span",27),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"% taxa)")}}function WBe(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Para retirada, voc\xea deve preencher o endere\xe7o do dono do cart\xe3o de cr\xe9dito"),n.qZA()())}function KBe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,WBe,3,0,"div",13),n.BQk()),2&i){n.oxw();const t=n.MAs(4);n.xp6(1),n.Q6J("ngIf",null==t||null==t.errors?null:t.errors.endereco_obrigatorio)}}function XBe(i,o){1&i&&(n.TgZ(0,"div",20)(1,"p"),n._uU(2,"Voc\xea deve informar os dados do cart\xe3o de cr\xe9dito para fazer o pedido."),n.qZA()())}const eHe=function(i,o,t){return{pedido:i,exigeCartao:o,dadosCartao:t}};function tHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"span",21),n._UZ(2,"i",22),n.TgZ(3,"input",23,24),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.escolheuFormaDePagamentoOnline(l))}),n.qZA(),n.TgZ(5,"label",17),n._uU(6),n.YNc(7,QBe,2,1,"span",25),n.qZA()(),n.YNc(8,KBe,2,1,"ng-container",26),n.YNc(9,XBe,3,0,"div",13),n.qZA()}if(2&i){const t=o.$implicit,r=n.MAs(4),s=n.oxw(4);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido))("ngClass",n.VKq(12,XT,(null==s.pedido.pagamento||null==s.pedido.pagamento.formaDePagamento?null:s.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(2),n.MGl("id","formaPagamento",t.id,""),n.Q6J("ngModel",s.pedido.pagamento.formaDePagamento)("value",t)("required",!0)("pagseguro",n.kEZ(14,eHe,s.pedido,s.exigeCartao,s.dadosCartao)),n.xp6(2),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij("",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",r.errors),n.xp6(1),n.Q6J("ngIf",null==r||null==r.errors?null:r.errors.dados_cartao_obrigatorio)}}function nHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n._UZ(1,"i",29),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.trocarCartao())}),n._UZ(5,"i",31),n._uU(6," Trocar Cart\xe3o"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(5);n.xp6(3),n.hij("\xa0 ************",t.pedido.pagamento.dadosCartao.ultimosNumeros,"")}}function iHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",32),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.trocarCartao())}),n._UZ(2,"i",31),n._uU(3," Adicionar Cart\xe3o"),n.qZA(),n.BQk()}}function oHe(i,o){if(1&i&&(n.TgZ(0,"div",28),n.YNc(1,nHe,7,1,"ng-container",26),n.YNc(2,iHe,4,0,"ng-container",26),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.dadosCartao),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.dadosCartao&&t.pedido.entrega.formaDeEntrega)}}function rHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function aHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function sHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",40)(1,"h5"),n._uU(2,"Informe seu Cpf"),n.qZA(),n.TgZ(3,"div",41)(4,"input",42,43),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.dadosPix.cpf=s)}),n.qZA(),n.TgZ(7,"div",20),n.YNc(8,rHe,2,0,"p",26),n.YNc(9,aHe,2,0,"p",26),n.qZA()()()}if(2&i){const t=n.MAs(6),r=n.oxw(5);n.xp6(4),n.Q6J("ngModel",r.pedido.pagamento.dadosPix.cpf),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.cpfInvalido)}}function lHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1," Para pagamentos pix voc\xea deve informar seu email. Caso aconte\xe7a algum problema, usaremos esse email para te contactar. "),n.qZA())}function cHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um email v\xe1lido."),n.qZA())}function dHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",33)(1,"div",34),n.YNc(2,sHe,10,3,"div",35),n.TgZ(3,"div",36)(4,"h5"),n._uU(5,"Informe seu Email"),n.qZA(),n.TgZ(6,"div",37)(7,"input",38,39),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.dadosPix.email=s)}),n.qZA(),n.TgZ(10,"div",20),n.YNc(11,lHe,2,0,"p",26),n.YNc(12,cHe,2,0,"p",26),n.qZA()()()()()}if(2&i){const t=n.MAs(9),r=n.oxw(4);n.xp6(2),n.Q6J("ngIf",r.pedirCpfNoPix()),n.xp6(5),n.Q6J("required",!0)("ngModel",r.pedido.pagamento.dadosPix.email),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.email)}}function uHe(i,o){if(1&i&&(n.TgZ(0,"div",5),n.YNc(1,JBe,3,2,"div",6),n.TgZ(2,"div",7),n.YNc(3,tHe,10,18,"div",8),n.YNc(4,oHe,3,2,"div",9),n.qZA()(),n.YNc(5,dHe,13,5,"div",10)),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.formasDePagamentoPix.length>0&&t.estaHabilitado(t.formasDePagamentoPix[0],t.pedido)),n.xp6(2),n.Q6J("ngForOf",t.formasDePagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento&&t.exigeCartao&&!t.pedido.pagamento.formaDePagamento.pix),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.formaDePagamento&&t.pedido.pagamento.formaDePagamento.pix)}}function pHe(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",3),n.YNc(1,uHe,6,4,"ng-template",4),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("title","Pagar pelo site")("selected",0===t.tabSelect)}}function hHe(i,o){if(1&i&&(n.TgZ(0,"label",27),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"%)")}}function gHe(i,o){if(1&i&&(n.TgZ(0,"label",27),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(-",t.desconto,"% taxa)")}}function fHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",46)(2,"span",47)(3,"input",16,48),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.escolheuFormaDePagamentoPresencial(l))}),n.qZA(),n.TgZ(5,"label",17),n._uU(6),n.qZA(),n.YNc(7,hHe,2,1,"label",25),n.YNc(8,gHe,2,1,"label",25),n.qZA()(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("hidden",!r.estaHabilitado(t,r.pedido)),n.xp6(1),n.Q6J("ngClass",n.VKq(10,XT,(null==r.pedido.pagamento||null==r.pedido.pagamento.formaDePagamento?null:r.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pedido.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(2),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij(" ",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0)}}function mHe(i,o){1&i&&(n.TgZ(0,"div",20),n._uU(1," informe se vai precisar de troco. "),n.qZA())}function _He(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(6);n.xp6(1),n.hij(" A nota tem que ser maior que ",n.xi3(2,1,t.obtenhaTotalPagar(),"R$"),"")}}const bHe=function(){return{prefix:"R$ ",thousands:".",decimal:",",align:"left"}};function vHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",57)(1,"h6",58),n._uU(2,"Troco para quanto?"),n.qZA(),n.TgZ(3,"input",59,60),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.calculeTroco(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.trocoPara=s)}),n.qZA(),n.TgZ(5,"div",20),n.YNc(6,_He,3,4,"p",26),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(5);n.xp6(3),n.s9C("trocoMinimo",r.obtenhaTotalPagar()),n.Q6J("ngModel",r.pedido.pagamento.trocoPara)("options",n.DdM(4,bHe)),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.trocoMinimo)}}function yHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",49)(2,"h6",50),n._uU(3,"Vai precisar de troco? "),n.qZA(),n.TgZ(4,"div",51)(5,"span",47)(6,"input",52),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.temTroco=s)}),n.qZA(),n.TgZ(7,"label",53),n._uU(8,"\xa0Sim"),n.qZA()(),n.TgZ(9,"span",47)(10,"input",54),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.temTroco=s)}),n.qZA(),n.TgZ(11,"label",55),n._uU(12,"\xa0N\xe3o"),n.qZA()(),n.YNc(13,mHe,2,0,"div",13),n.qZA()(),n.YNc(14,vHe,7,5,"div",56),n.BQk()}if(2&i){const t=n.oxw(4);n.xp6(5),n.Q6J("ngClass",n.VKq(8,XT,"sim"===t.pedido.pagamento.temTroco)),n.xp6(1),n.Q6J("ngModel",t.pedido.pagamento.temTroco)("required","dinheiro"===(null==t.pedido.pagamento||null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.nome)),n.xp6(3),n.Q6J("ngClass",n.VKq(10,XT,"nao"===t.pedido.pagamento.temTroco)),n.xp6(1),n.Q6J("ngModel",t.pedido.pagamento.temTroco)("required","dinheiro"===(null==t.pedido.pagamento||null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.nome)),n.xp6(3),n.Q6J("ngIf",!t.pedido.pagamento.temTroco),n.xp6(1),n.Q6J("ngIf","sim"===t.pedido.pagamento.temTroco)}}function CHe(i,o){if(1&i&&(n.TgZ(0,"div",44)(1,"div",45),n.YNc(2,fHe,9,12,"ng-container",8),n.qZA(),n.YNc(3,yHe,15,12,"ng-container",26),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngForOf",t.formasDePagamento),n.xp6(1),n.Q6J("ngIf","dinheiro"===(null==t.pedido.pagamento||null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.nome))}}function AHe(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",3),n.YNc(1,CHe,4,2,"ng-template",4),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("title","Pagar na entrega")("selected",1===t.tabSelect)}}function xHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-tabstrip",1),n.NdJ("tabSelect",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.alterouTipoPagamento(s))}),n.YNc(1,pHe,2,2,"kendo-tabstrip-tab",2),n.YNc(2,AHe,2,2,"kendo-tabstrip-tab",2),n.qZA()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.temPagamentoOnline()),n.xp6(1),n.Q6J("ngIf",t.formasDePagamento.length)}}let THe=(()=>{class i extends zF{constructor(t,r,s,l,u){super(t,r,s,l,u),this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Na),n.Y36(zo),n.Y36(Oi),n.Y36(n.z2F),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-formaspagamento-antigo"]],features:[n._Bn([],[{provide:fa,useExisting:Zo}]),n.qOj],decls:1,vars:1,consts:[["class","nav-bordered","id","tabs","name","tabs",3,"tabSelect",4,"ngIf"],["id","tabs","name","tabs",1,"nav-bordered",3,"tabSelect"],[3,"title","selected",4,"ngIf"],[3,"title","selected"],["kendoTabContent",""],[1,"row","escolher","row"],["class","form-group   mt-2  col-4",4,"ngIf"],[1,"form-group","mt-2","col-7","ml-1"],[4,"ngFor","ngForOf"],["class","col-12 mt-2 ",4,"ngIf"],["class","row",4,"ngIf"],[1,"form-group","mt-2","col-4"],["class","mr-3 radio radio-blue mb-1 auto",3,"ngClass",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],[1,"mr-3","radio","radio-blue","mb-1","auto",3,"ngClass"],["src","https://user-images.githubusercontent.com/33992396/99478353-00e4d600-2933-11eb-8228-4bafe8571507.png",1,"mr-1",2,"width","32px"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","ngModelChange"],[1,"ml-1","d-inline",3,"for"],["class","text-muted float-right",4,"ngIf"],[1,"text-muted","float-right"],[1,"invalid-feedback"],[1,"radio","radio-blue",3,"hidden","ngClass"],["aria-hidden","true",1,"fa","fa-credit-card","text-blue","fa-2x","mr-1",2,"top","5px","position","relative"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","pagseguro","ngModelChange"],["rdFormaDePagamento","ngModel"],["class","text-muted font-11 ml-1 d-inline",4,"ngIf"],[4,"ngIf"],[1,"text-muted","font-11","ml-1","d-inline"],[1,"col-12","mt-2"],[1,"fas","fa-credit-card","font-16"],["type","button",1,"btn","ml-1","btn-blue",3,"click"],[1,"far","fa-credit-card","mr-1","fa-lg"],["type","button",1,"btn","btn-blue",3,"click"],[1,"row"],[1,"ml-3","col"],["class","form-group","style","max-width: 200px",4,"ngIf"],[1,"form-group",2,"max-width","350px"],[1,"input-group"],["id","emailPix","name","emailPix","email","true","type","email","placeholder","Informe seu email",1,"form-control",3,"required","ngModel","ngModelChange"],["txtEmailPix","","emailPix","ngModel"],[1,"form-group",2,"max-width","200px"],[1,"form-group"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["txtCpfPix","","cpf","ngModel"],[1,""],[1,"form-group","mb-2","mt-2","escolher","row"],[1,"col-6","radio","radio-blue","mt-1",3,"hidden"],[1,"radio","radio-blue",3,"ngClass"],["formaDePagamento","ngModel"],[1,"col","ml-3"],[1,"mt-3"],[1,"form-group","escolher","troco"],["id","trocoSim","name","temTroco","type","radio","kendoRadioButton","","value","sim",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoSim",1,"ml-1"],["id","trocoNao","name","temTroco","type","radio","kendoRadioButton","","value","nao",1,"k-radio",3,"ngModel","required","ngModelChange"],["for","trocoNao",1,"ml-1"],["class","form-group col  ml-3",4,"ngIf"],[1,"form-group","col","ml-3"],["for","trocoParaM"],["id","trocoParaM","name","trocoParaM","type","text","inputmode","decimal","appSelecionarNoFoco","","currencyMask","",1,"form-control","troco",3,"trocoMinimo","ngModel","options","ngModelChange"],["txtTrocoM","ngModel"]],template:function(t,r){1&t&&n.YNc(0,xHe,3,2,"kendo-tabstrip",0),2&t&&n.Q6J("ngIf",r.pedido.pagamento)},dependencies:[gt,Bt,Ge,wi,tc,ti,Lo,b1,ni,ja,Fu,aa,io,QT,wm,S0,jF,Yu,FE,q6,Jo],styles:['.pedido-finalizado[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:25px}.pedido-finalizado[_ngcontent-%COMP%]   .alert-success[_ngcontent-%COMP%]{background:#fff;font-size:20px}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}.usar-saldo[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.k-form[_ngcontent-%COMP%]   .k-label[_ngcontent-%COMP%]{display:inline!important}.panel-finalizar[_ngcontent-%COMP%]{background:#fff;min-height:700px;border-top-left-radius:15px;border-top-right-radius:15px}.panel-finalizar[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:600px}.panel-pedido[_ngcontent-%COMP%]{position:absolute;right:15px;top:30px;max-width:400px;background:#f7f8f8;border:1px solid rgba(204,204,204,.2)}  body{background-color:#f7f8f8!important}input.troco[_ngcontent-%COMP%]{max-width:215px}.k-dateinput-wrap[_ngcontent-%COMP%]{padding:0!important}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;min-width:230px;display:inline-block;min-height:40px;padding:10px;background:#f7f8f8;margin-left:10px}.escolher[_ngcontent-%COMP%]   span.auto[_ngcontent-%COMP%]{min-width:inherit}.escolher.cartoes[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;background:rgba(247,248,248,.4392156863)}.escolher.cartoes[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]{background:#f7f8f8!important}.escolher.menor[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:190px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:120px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.escolher[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]:before{border-left:5px solid #3483fa;content:"";position:absolute;top:0;bottom:0;left:0}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;vertical-align:middle}fieldset[_ngcontent-%COMP%]{border:1px solid #ccc;padding:10px 20px 20px;margin-top:20px;margin-left:12px;margin-right:12px}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{max-width:140px;font-size:1em}  .k-dialog-titlebar{background:#3A44B9}.preco[_ngcontent-%COMP%]{color:#6db31b}h5[_ngcontent-%COMP%]{font-size:1em!important}.pagarfidelidade[_ngcontent-%COMP%]{background:#f7f8f8;padding:10px;border-left:5px solid #367ef6;margin-left:10px}.pagarfidelidade.gendai[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:13px;position:relative}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#5b1da6!important;border-color:#5b1da6!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}  .k-tabstrip>.k-content{overflow:hidden!important}']}),i})();function SHe(i,o){if(1&i&&(n.TgZ(0,"span",20)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(2),n.hij("+",t.taxaCobranca.percentual,"% taxa")}}const W6=function(i){return{selecionado:i}};function wHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",15)(1,"input",16),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.alterouFormaDePagamentoParaPix())}),n.qZA(),n._UZ(2,"img",17),n.TgZ(3,"label",18),n._uU(4," PIX "),n.YNc(5,SHe,3,1,"span",19),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(5);n.Q6J("ngClass",n.VKq(7,W6,(null==r.pedido.pagamento||null==r.pedido.pagamento.formaDePagamento?null:r.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pedido.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(2),n.MGl("for","formaPagamento",t.id,""),n.xp6(2),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa)}}function MHe(i,o){1&i&&(n.TgZ(0,"div",21)(1,"p"),n._uU(2,"Escolha a forma de pagamengo do seu pedido"),n.qZA()())}function DHe(i,o){if(1&i&&(n.TgZ(0,"div",12),n.YNc(1,wHe,6,9,"span",13),n.YNc(2,MHe,3,0,"div",14),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoPix),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.formaDePagamento)}}function kHe(i,o){if(1&i&&(n.TgZ(0,"span",28),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"% taxa)")}}function IHe(i,o){1&i&&(n.TgZ(0,"div",21)(1,"p"),n._uU(2,"Para retirada, voc\xea deve preencher o endere\xe7o do dono do cart\xe3o de cr\xe9dito"),n.qZA()())}function EHe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,IHe,3,0,"div",14),n.BQk()),2&i){n.oxw();const t=n.MAs(3);n.xp6(1),n.Q6J("ngIf",null==t||null==t.errors?null:t.errors.endereco_obrigatorio)}}function PHe(i,o){1&i&&(n.TgZ(0,"div",21)(1,"p"),n._uU(2,"Voc\xea deve informar os dados do cart\xe3o de cr\xe9dito para fazer o pedido."),n.qZA()())}const OHe=function(i,o,t){return{pedido:i,exigeCartao:o,dadosCartao:t}};function NHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"span",22)(2,"input",23,24),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.formaDePagamento=s)})("ngModelChange",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.escolheuFormaDePagamentoOnline(l))}),n.qZA(),n._UZ(4,"i",25),n.TgZ(5,"label",18),n._uU(6),n.YNc(7,kHe,2,1,"span",26),n.qZA()(),n.YNc(8,EHe,2,1,"ng-container",27),n.YNc(9,PHe,3,0,"div",14),n.qZA()}if(2&i){const t=o.$implicit,r=n.MAs(3),s=n.oxw(4);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido))("ngClass",n.VKq(12,W6,(null==s.pedido.pagamento||null==s.pedido.pagamento.formaDePagamento?null:s.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.MGl("id","formaPagamento",t.id,""),n.Q6J("ngModel",s.pedido.pagamento.formaDePagamento)("value",t)("required",!0)("pagseguro",n.kEZ(14,OHe,s.pedido,s.exigeCartao,s.dadosCartao)),n.xp6(3),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.hij("",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",r.errors),n.xp6(1),n.Q6J("ngIf",null==r||null==r.errors?null:r.errors.dados_cartao_obrigatorio)}}function LHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n._UZ(1,"i",30),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.TgZ(4,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.trocarCartao())}),n._UZ(5,"i",32),n._uU(6," Trocar Cart\xe3o"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw(5);n.xp6(3),n.hij("\xa0 ************",t.pedido.pagamento.dadosCartao.ultimosNumeros,"")}}function RHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"button",33),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(5);return n.KtG(s.trocarCartao())}),n._UZ(2,"i",32),n._uU(3," Adicionar Cart\xe3o"),n.qZA(),n.BQk()}}function FHe(i,o){if(1&i&&(n.TgZ(0,"div",29),n.YNc(1,LHe,7,1,"ng-container",27),n.YNc(2,RHe,4,0,"ng-container",27),n.qZA()),2&i){const t=n.oxw(4);n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento.dadosCartao),n.xp6(1),n.Q6J("ngIf",!t.pedido.pagamento.dadosCartao&&t.pedido.entrega.formaDeEntrega)}}function BHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Obrigat\xf3rio"),n.qZA())}function HHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 invalido"),n.qZA())}function $He(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",41)(1,"h5"),n._uU(2,"Informe seu Cpf"),n.qZA(),n.TgZ(3,"div",42)(4,"input",43,44),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.pedido.pagamento.dadosPix.cpf=s)}),n.qZA(),n.TgZ(7,"div",21),n.YNc(8,BHe,2,0,"p",27),n.YNc(9,HHe,2,0,"p",27),n.qZA()()()}if(2&i){const t=n.MAs(6),r=n.oxw(5);n.xp6(4),n.Q6J("ngModel",r.pedido.pagamento.dadosPix.cpf),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.cpfInvalido)}}function UHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1," Para pagamentos pix voc\xea deve informar seu email. Caso aconte\xe7a algum problema, usaremos esse email para te contactar. "),n.qZA())}function YHe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um email v\xe1lido."),n.qZA())}function jHe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",34)(1,"div",35),n.YNc(2,$He,10,3,"div",36),n.TgZ(3,"div",37)(4,"h5"),n._uU(5,"Informe seu Email"),n.qZA(),n.TgZ(6,"div",38)(7,"input",39,40),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pedido.pagamento.dadosPix.email=s)}),n.qZA(),n.TgZ(10,"div",21),n.YNc(11,UHe,2,0,"p",27),n.YNc(12,YHe,2,0,"p",27),n.qZA()()()()()}if(2&i){const t=n.MAs(9),r=n.oxw(4);n.xp6(2),n.Q6J("ngIf",r.pedirCpfNoPix()),n.xp6(5),n.Q6J("required",!0)("ngModel",r.pedido.pagamento.dadosPix.email),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.email)}}function ZHe(i,o){if(1&i&&(n.TgZ(0,"div",6),n.YNc(1,DHe,3,2,"div",7),n.TgZ(2,"div",8),n.YNc(3,NHe,10,18,"div",9),n.YNc(4,FHe,3,2,"div",10),n.qZA()(),n.YNc(5,jHe,13,5,"div",11)),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.formasDePagamentoPix.length>0&&t.estaHabilitado(t.formasDePagamentoPix[0],t.pedido)),n.xp6(2),n.Q6J("ngForOf",t.formasDePagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento&&t.exigeCartao&&!(null!=t.pedido.pagamento.formaDePagamento&&t.pedido.pagamento.formaDePagamento.pix)),n.xp6(1),n.Q6J("ngIf",null==t.pedido.pagamento.formaDePagamento?null:t.pedido.pagamento.formaDePagamento.pix)}}function VHe(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",4),n.YNc(1,ZHe,6,4,"ng-template",5),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("title","Pagar pelo site")("selected",0===t.tabSelect)}}function zHe(i,o){if(1&i&&(n.TgZ(0,"label",28),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"%)")}}function GHe(i,o){if(1&i&&(n.TgZ(0,"label",28),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(-",t.desconto,"% taxa)")}}function qHe(i,o){if(1&i&&(n.TgZ(0,"div",50),n._UZ(1,"app-troco-loja",51),n.qZA()),2&i){const t=n.oxw(5);n.xp6(1),n.Q6J("obtenhaTotalPagar",t.obtenhaTotalPagar)("pagamento",t.pagamento)("pedido",t.pedido)}}function JHe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",46)(2,"span",47)(3,"input",16),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.selecioneFormaPagamento())}),n.qZA(),n.TgZ(4,"label",18),n._UZ(5,"app-loja-bandeira-logo",48),n.qZA(),n.YNc(6,zHe,2,1,"label",26),n.YNc(7,GHe,2,1,"label",26),n.qZA()(),n.YNc(8,qHe,2,3,"div",49),n.BQk()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw(4);n.xp6(1),n.Q6J("hidden",!s.estaHabilitado(t,s.pedido)),n.xp6(1),n.Q6J("ngClass",n.VKq(12,W6,(null==s.pedido.pagamento||null==s.pedido.pagamento.formaDePagamento?null:s.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",s.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.Q6J("bandeira",t.bandeira)("descricao",t.descricao),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0),n.xp6(1),n.Q6J("ngIf",0===r)}}function QHe(i,o){if(1&i&&(n.TgZ(0,"div",45),n.YNc(1,JHe,9,14,"ng-container",9),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamento)}}function WHe(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",4),n.YNc(1,QHe,2,1,"ng-template",5),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("title","Pagar na entrega")("selected",1===t.tabSelect)}}function KHe(i,o){if(1&i&&(n.TgZ(0,"label",28),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(+",t.taxaCobranca.percentual,"%)")}}function XHe(i,o){if(1&i&&(n.TgZ(0,"label",28),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij("(-",t.desconto,"% taxa)")}}function e$e(i,o){if(1&i&&(n.TgZ(0,"div",54),n._uU(1," Chave para transfer\xeancia do PIX: "),n.TgZ(2,"b"),n._uU(3),n.qZA(),n.TgZ(4,"div",55),n._UZ(5,"i",56),n._uU(6," Ap\xf3s realizar o pedido, fa\xe7a o pagamento envie o comprovante para o lojista "),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.Oqu(t.chavePix)}}function t$e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",52)(2,"span",47)(3,"input",16),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(4);return n.KtG(l.pagamento.formaDePagamento=s)})("ngModelChange",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.selecioneFormaPagamento())}),n.qZA(),n.TgZ(4,"label",18),n._UZ(5,"app-loja-bandeira-logo",48),n.qZA(),n.YNc(6,KHe,2,1,"label",26),n.YNc(7,XHe,2,1,"label",26),n.qZA(),n.YNc(8,e$e,7,1,"div",53),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("hidden",!r.estaHabilitado(t,r.pedido)),n.xp6(1),n.Q6J("ngClass",n.VKq(12,W6,(null==r.pedido.pagamento||null==r.pedido.pagamento.formaDePagamento?null:r.pedido.pagamento.formaDePagamento.id)===t.id)),n.xp6(1),n.Q6J("id","formaPagamento"+t.id)("ngModel",r.pagamento.formaDePagamento)("value",t)("required",!0),n.xp6(1),n.MGl("for","formaPagamento",t.id,""),n.xp6(1),n.Q6J("bandeira",t.bandeira)("descricao",t.descricao),n.xp6(1),n.Q6J("ngIf",t.taxaCobranca&&t.taxaCobranca.ativa),n.xp6(1),n.Q6J("ngIf",t.possuiDesconto&&t.desconto>0),n.xp6(1),n.Q6J("ngIf",t.chavePix)}}function n$e(i,o){if(1&i&&(n.TgZ(0,"div",45),n.YNc(1,t$e,9,14,"ng-container",9),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngForOf",t.formasDePagamentoManual)}}function i$e(i,o){if(1&i&&(n.TgZ(0,"kendo-tabstrip-tab",4),n.YNc(1,n$e,2,1,"ng-template",5),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("title","Pix (Chave)")("selected",2===t.tabSelect)}}function o$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"kendo-tabstrip",1,2),n.NdJ("tabSelect",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.alterouTipoPagamento(s))}),n.YNc(2,VHe,2,2,"kendo-tabstrip-tab",3),n.YNc(3,WHe,2,2,"kendo-tabstrip-tab",3),n.YNc(4,i$e,2,2,"kendo-tabstrip-tab",3),n.qZA()}if(2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf",t.temPagamentoOnline()),n.xp6(1),n.Q6J("ngIf",t.formasDePagamento.length),n.xp6(1),n.Q6J("ngIf",t.formasDePagamentoManual.length)}}let r$e=(()=>{class i extends zF{constructor(t,r,s,l,u){super(t,r,s,l,u),this.dialogService=t,this.detectorDevice=r,this.carrinhoService=s,this.app=l,this.constantsService=u}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Na),n.Y36(zo),n.Y36(Oi),n.Y36(n.z2F),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-formaspagamento-nova"]],features:[n._Bn([],[{provide:fa,useExisting:Zo}]),n.qOj],decls:1,vars:1,consts:[["class","nav-bordered","id","tabs","name","tabs",3,"tabSelect",4,"ngIf"],["id","tabs","name","tabs",1,"nav-bordered",3,"tabSelect"],["tabFormas",""],[3,"title","selected",4,"ngIf"],[3,"title","selected"],["kendoTabContent",""],[1,"row","escolher","row"],["class","form-group   mt-2  col-4",4,"ngIf"],[1,"form-group","mt-2","col-7","ml-1"],[4,"ngFor","ngForOf"],["class","col-12 mt-2 ",4,"ngIf"],["class","row",4,"ngIf"],[1,"form-group","mt-2","col-4"],["class","mr-3 radio radio-blue mb-1 auto",3,"ngClass",4,"ngFor","ngForOf"],["class","invalid-feedback",4,"ngIf"],[1,"mr-3","radio","radio-blue","mb-1","auto",3,"ngClass"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","ngModelChange"],["src","https://user-images.githubusercontent.com/33992396/99478353-00e4d600-2933-11eb-8228-4bafe8571507.png",1,"ml-1",2,"width","32px"],[1,"ml-1","d-inline",3,"for"],["class","text-muted float-right",4,"ngIf"],[1,"text-muted","float-right"],[1,"invalid-feedback"],[1,"radio","radio-blue",3,"hidden","ngClass"],["name","formaDePagamento","type","radio","kendoRadioButton","",1,"k-radio",3,"id","ngModel","value","required","pagseguro","ngModelChange"],["rdFormaDePagamento","ngModel"],["aria-hidden","true",1,"fa","fa-credit-card","text-blue","fa-2x","ml-1",2,"top","5px","position","relative"],["class","text-muted font-11 ml-1 d-inline",4,"ngIf"],[4,"ngIf"],[1,"text-muted","font-11","ml-1","d-inline"],[1,"col-12","mt-2"],[1,"fas","fa-credit-card","font-16"],["type","button",1,"btn","ml-1","btn-blue",3,"click"],[1,"far","fa-credit-card","mr-1","fa-lg"],["type","button",1,"btn","btn-blue",3,"click"],[1,"row"],[1,"ml-3","col"],["class","form-group","style","max-width: 200px",4,"ngIf"],[1,"form-group",2,"max-width","350px"],[1,"input-group"],["id","emailPix","name","emailPix","email","true","type","email","placeholder","Informe seu email",1,"form-control",3,"required","ngModel","ngModelChange"],["txtEmailPix","","emailPix","ngModel"],[1,"form-group",2,"max-width","200px"],[1,"form-group"],["type","text","autocomplete","off","required","","id","cpf","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__","value","",1,"form-control",3,"ngModel","ngModelChange"],["txtCpfPix","","cpf","ngModel"],[1,"form-group","mb-2","mt-2","escolher","row","cartoes"],[1,"col-6","radio","radio-blue","mt-1","cpointer",3,"hidden"],[1,"radio","radio-blue","cpointer",3,"ngClass"],[3,"bandeira","descricao"],["class","col-12",4,"ngIf"],[1,"col-12"],[3,"obtenhaTotalPagar","pagamento","pedido"],[1,"col-12","radio","radio-blue","mt-1","cpointer",3,"hidden"],["class","ml-2 font-12 mt-1",4,"ngIf"],[1,"ml-2","font-12","mt-1"],[1,"alert","alert-info","mt-2"],[1,"k-icon","k-i-information","mr-1","text-blue"]],template:function(t,r){1&t&&n.YNc(0,o$e,5,3,"kendo-tabstrip",0),2&t&&n.Q6J("ngIf",r.pedido.pagamento)},dependencies:[gt,Bt,Ge,wi,tc,ti,Lo,b1,ni,ja,Fu,io,QT,wm,S0,YK,Yu,q6,jK],styles:['.pedido-finalizado[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:25px}.pedido-finalizado[_ngcontent-%COMP%]   .alert-success[_ngcontent-%COMP%]{background:#fff;font-size:20px}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}.usar-saldo[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.k-form[_ngcontent-%COMP%]   .k-label[_ngcontent-%COMP%]{display:inline!important}.panel-finalizar[_ngcontent-%COMP%]{background:#fff;min-height:700px;border-top-left-radius:15px;border-top-right-radius:15px}.panel-finalizar[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:600px}.panel-pedido[_ngcontent-%COMP%]{position:absolute;right:15px;top:30px;max-width:400px;background:#f7f8f8;border:1px solid rgba(204,204,204,.2)}  body{background-color:#f7f8f8!important}input.troco[_ngcontent-%COMP%]{max-width:215px}.k-dateinput-wrap[_ngcontent-%COMP%]{padding:0!important}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;min-width:230px;display:inline-block;min-height:40px;padding:10px;background:#f7f8f8;margin-left:10px}.escolher[_ngcontent-%COMP%]   span.auto[_ngcontent-%COMP%]{min-width:inherit}.escolher.cartoes[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;background:rgba(247,248,248,.4392156863)}.escolher.cartoes[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]{background:#f7f8f8!important}.escolher.menor[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:190px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:120px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.escolher[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]:before{border-left:5px solid #3483fa;content:"";position:absolute;top:0;bottom:0;left:0}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;vertical-align:middle}fieldset[_ngcontent-%COMP%]{border:1px solid #ccc;padding:10px 20px 20px;margin-top:20px;margin-left:12px;margin-right:12px}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{max-width:140px;font-size:1em}  .k-dialog-titlebar{background:#3A44B9}.preco[_ngcontent-%COMP%]{color:#6db31b}h5[_ngcontent-%COMP%]{font-size:1em!important}.pagarfidelidade[_ngcontent-%COMP%]{background:#f7f8f8;padding:10px;border-left:5px solid #367ef6;margin-left:10px}.pagarfidelidade.gendai[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:13px;position:relative}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#5b1da6!important;border-color:#5b1da6!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}  .k-tabstrip>.k-content{overflow:hidden!important}']}),i})();const a$e=["txtTrocoM"],s$e=["frm"],l$e=["formasPagamentoAntigas"],c$e=["formasPagamentoNova"],d$e=["panelCarrinho"],u$e=["kendoMaskedTextBox"],p$e=["adicionalComponent"];function h$e(i,o){1&i&&(n.ynx(0),n._uU(1," (apenas agendamento)"),n.BQk())}function g$e(i,o){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"app-site-campo-adicional",22,23),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("id","adicional_"+t.id)("campoAdicional",t)("itemPedido",r.pedido)("posicao",t.posicao)}}function f$e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h4",19),n._uU(2,"Extras do Pedido"),n.qZA(),n.YNc(3,g$e,3,4,"div",20),n._UZ(4,"hr",21),n.BQk()),2&i){const t=n.oxw();n.xp6(3),n.Q6J("ngForOf",t.camposAdicionais)}}function m$e(i,o){1&i&&(n.TgZ(0,"p",29),n._uU(1,"Nenhuma forma de entrega est\xe1 dispon\xedvel no momento"),n.qZA())}const _$e=function(i){return{selecionado:i}};function b$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",31)(1,"input",32),n.NdJ("change",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw(2);return n.KtG(l.alterouFormaEntrega(s))})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.entrega.formaDeEntrega=s)}),n.qZA(),n.TgZ(2,"label",33),n._uU(3),n.qZA()()}if(2&i){const t=n.oxw(),r=t.$implicit,s=t.index,l=n.oxw(2);n.Q6J("ngClass",n.VKq(8,_$e,l.pedido.entrega&&l.pedido.entrega.formaDeEntrega===r.nome)),n.xp6(1),n.MGl("id","formaDeEntrega",s,"")("name","formaDeEntrega",s,""),n.Q6J("ngModel",l.pedido.entrega.formaDeEntrega)("value",r.nome)("required",!0),n.xp6(1),n.MGl("for","formaDeEntrega",s,""),n.xp6(1),n.Oqu(r.nome)}}function v$e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,b$e,4,10,"span",30),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t.ativa)}}function y$e(i,o){1&i&&(n.TgZ(0,"div",34)(1,"p"),n._uU(2,"Escolha a forma de retirada do seu pedido"),n.qZA()())}function C$e(i,o){if(1&i&&(n.TgZ(0,"div",37)(1,"p"),n._uU(2),n.ALo(3,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("Valor m\xednimo do pedido para retirar \xe9 de ",n.xi3(3,1,t.pedido.obtenhaValorMinimoParaEntrega(t.FormaDeEntrega.RETIRAR,t.empresa.formasDeEntrega),"BRL")," ")}}function A$e(i,o){if(1&i&&(n.TgZ(0,"div",37)(1,"p"),n._uU(2),n.ALo(3,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("Valor m\xe1ximo do pedido para retirar \xe9 de ",n.xi3(3,1,t.pedido.obtenhaValorMaximoParaEntrega(t.FormaDeEntrega.RETIRAR,t.empresa.formasDeEntrega),"BRL")," ")}}function x$e(i,o){if(1&i&&(n.TgZ(0,"div",35),n.YNc(1,C$e,4,4,"div",36),n.YNc(2,A$e,4,4,"div",36),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!t.pedido.temValorMinimo(t.FormaDeEntrega.RETIRAR,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",t.pedido.ultrapassouValorMaximo(t.FormaDeEntrega.RETIRAR,t.empresa.formasDeEntrega))}}function T$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",41),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.abraModalEscolherEndereco())}),n.TgZ(1,"b"),n._uU(2,"Adicionar"),n.qZA()()}}function S$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"div",42),n._uU(2),n.TgZ(3,"a",41),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(4);return n.KtG(s.abraModalEscolherEndereco())}),n.TgZ(4,"b"),n._uU(5,"Trocar"),n.qZA()()()()}if(2&i){const t=n.oxw(4);n.xp6(2),n.hij(" ",t.pedido.entrega.endereco.obtenhaEnderecoCompleto()," ")}}function w$e(i,o){if(1&i&&(n.TgZ(0,"div"),n._UZ(1,"i",39),n.YNc(2,T$e,3,0,"a",40),n.YNc(3,S$e,6,1,"span",4),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.Q6J("ngIf",!(null!=t.pedido.entrega&&t.pedido.entrega.endereco)),n.xp6(1),n.Q6J("ngIf",null==t.pedido.entrega?null:t.pedido.entrega.endereco)}}function M$e(i,o){if(1&i&&(n.TgZ(0,"div",37)(1,"p"),n._uU(2),n.ALo(3,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("Valor m\xednimo do pedido para entrega \xe9 de ",n.xi3(3,1,t.pedido.obtenhaValorMinimoParaEntrega(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega),"BRL")," ")}}function D$e(i,o){if(1&i&&(n.TgZ(0,"div",37)(1,"p"),n._uU(2),n.ALo(3,"currency"),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("Valor m\xe1ximo do pedido para entrega \xe9 de ",n.xi3(3,1,t.pedido.obtenhaValorMaximoParaEntrega(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega),"BRL")," ")}}function k$e(i,o){if(1&i&&(n.TgZ(0,"div",38)(1,"label"),n._uU(2,"Endere\xe7o"),n.qZA(),n.YNc(3,w$e,4,2,"div",4),n.YNc(4,M$e,4,4,"div",36),n.YNc(5,D$e,4,4,"div",36),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",t.pedido.temValorMinimo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega)&&!t.pedido.ultrapassouValorMaximo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",t.empresa.id&&!t.pedido.temValorMinimo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",t.empresa.id&&t.pedido.ultrapassouValorMaximo(t.FormaDeEntrega.RECEBER_EM_CASA,t.empresa.formasDeEntrega))}}function I$e(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h4",24),n._uU(2,"Entrega"),n.qZA(),n.YNc(3,m$e,2,0,"p",25),n.TgZ(4,"div",26),n.YNc(5,v$e,2,1,"ng-container",20),n.YNc(6,y$e,3,0,"div",8),n.qZA(),n.YNc(7,x$e,3,2,"div",27),n.YNc(8,k$e,6,3,"div",28),n.BQk()),2&i){const t=n.oxw();n.xp6(3),n.Q6J("ngIf",t.empresa.id&&!t.empresa.formasDeEntrega.length),n.xp6(2),n.Q6J("ngForOf",t.formasDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",null==t.pedido.entrega?null:t.pedido.entrega.ehRetirada()),n.xp6(1),n.Q6J("ngIf",null==t.pedido.entrega?null:t.pedido.entrega.ehDelivery())}}function E$e(i,o){if(1&i&&(n.TgZ(0,"h5",47),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.hij(" ",n.xi3(2,1,t.pedido.obtenhaValorTaxaEntrega(),"BRL")," ")}}function P$e(i,o){1&i&&(n.TgZ(0,"h5",47),n._uU(1," A Informar "),n.qZA())}function O$e(i,o){if(1&i&&(n.TgZ(0,"div",44)(1,"p",45),n._uU(2," Taxa de Entrega "),n.qZA(),n.YNc(3,E$e,3,4,"h5",46),n.YNc(4,P$e,2,0,"h5",46),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.Q6J("ngIf",-1!==t.pedido.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("ngIf",-1===t.pedido.entrega.taxaDeEntrega)}}function N$e(i,o){1&i&&(n.TgZ(0,"div",34)(1,"p"),n._uU(2,"\xc9 necess\xe1rio escolher o dia e hor\xe1rio da entrega"),n.qZA()())}function L$e(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"app-agendar-entrega",48),n.YNc(2,N$e,3,0,"div",8),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("tela",t)("pedido",t.pedido)("empresa",t.empresa)("agendarEntrega",t.agendouEntrega||t.apenasAgendamento)("apenasAgendamento",t.apenasAgendamento)("formasDeEntrega",t.formasDeEntrega),n.xp6(1),n.Q6J("ngIf",t.agendarEntrega&&(!t.pedido.dataEntrega||!t.pedido.horarioEntrega))}}function R$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",62),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalAtualizarCadastro())}),n.TgZ(1,"b"),n._uU(2,"Atualizar meu cadastro "),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"small",29),n._uU(5,"Atualize seu cadastro para utilizar seu cashback"),n.qZA()()}}function F$e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"a",62),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalLogin())}),n.TgZ(2,"b"),n._uU(3,"Identifique-se"),n.qZA(),n._UZ(4,"br"),n.TgZ(5,"small",29),n._uU(6,"Fa\xe7a login para utilizar seu cashback "),n.qZA()(),n._UZ(7,"br"),n.TgZ(8,"button",63),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalValidarConta())}),n._uU(9,"Ver meu saldo"),n.qZA(),n.BQk()}}function B$e(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",62),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalFazerOptin())}),n.TgZ(1,"b"),n._uU(2,"Quero ganhar cashback"),n.qZA(),n._UZ(3,"br"),n.TgZ(4,"small",29),n._uU(5,"Participe do plano fidelidade para ganhar at\xe9 20% de cashback"),n.qZA()()}}function H$e(i,o){if(1&i&&(n.TgZ(0,"p",47),n._UZ(1,"i",64),n._uU(2," Acumule "),n.TgZ(3,"span",65)(4,"b"),n._uU(5),n.ALo(6,"currency"),n.qZA()(),n._uU(7," de saldo e utilize como forma de pagamento."),n.qZA()),2&i){const t=n.oxw(3);n.xp6(5),n.Oqu(n.xi3(6,1,t.cashback.minimo,"BRL"))}}function $$e(i,o){if(1&i&&(n.TgZ(0,"p",47),n._UZ(1,"i",64),n._uU(2," Fa\xe7a um pedido a partir de "),n.TgZ(3,"span",65)(4,"b"),n._uU(5),n.ALo(6,"currency"),n.qZA()(),n._uU(7," e utilize seu saldo como forma de pagamento."),n.qZA()),2&i){const t=n.oxw(3);n.xp6(5),n.Oqu(n.xi3(6,1,t.cashback.minimoPedido,"BRL"))}}function U$e(i,o){if(1&i&&n._UZ(0,"img",66),2&i){const t=n.oxw(3);n.s9C("src",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo,n.LSH)}}const Y$e=function(i){return{gendai:i}};function j$e(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h5"),n._uU(2," Usar meu "),n.TgZ(3,"b"),n._uU(4,"saldo de cashback"),n.qZA(),n._uU(5," para pagar "),n.qZA(),n.TgZ(6,"div",49)(7,"div",50),n.YNc(8,R$e,6,0,"a",51),n.YNc(9,F$e,10,0,"ng-container",4),n.YNc(10,B$e,6,0,"a",51),n.TgZ(11,"div",52)(12,"input",53),n.NdJ("change",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.alterouUsarSaldo())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.cashback.usar=s)}),n.qZA(),n.TgZ(13,"label",54),n._uU(14," Saldo cashback dispon\xedvel "),n.TgZ(15,"span",55)(16,"b"),n._uU(17),n.qZA()()(),n.YNc(18,H$e,8,4,"p",46),n.YNc(19,$$e,8,4,"p",46),n.qZA()(),n.TgZ(20,"div",50),n.YNc(21,U$e,1,1,"img",56),n.qZA()(),n.TgZ(22,"div",57)(23,"div",58)(24,"div",59)(25,"h5",60),n._uU(26," Total restante a pagar "),n.TgZ(27,"span",61)(28,"b"),n._uU(29),n.ALo(30,"currency"),n.qZA()()()()()(),n.BQk()}if(2&i){const t=n.oxw(2);n.xp6(6),n.Q6J("ngClass",n.VKq(16,Y$e,2===t.empresa.idRede)),n.xp6(2),n.Q6J("ngIf",t.cashback.atualizarCadastro),n.xp6(1),n.Q6J("ngIf",t.cashback.fazerLogin),n.xp6(1),n.Q6J("ngIf",t.cashback.fazerOptin||t.cashback.fazerOptinUsarSaldo),n.xp6(1),n.Q6J("hidden",t.cashback.atualizarCadastro||t.cashback.fazerLogin||t.cashback.fazerOptin||t.cashback.fazerOptinUsarSaldo),n.xp6(1),n.Q6J("ngModel",t.cashback.usar)("disabled",!t.cashback.podeUsar||!t.cashback.podeUsarNoPedido||t.pedido.teveAutenticacaoPagamento()),n.xp6(5),n.Oqu(t.obtenhaSaldo()),n.xp6(1),n.Q6J("ngIf",!t.cashback.podeUsar),n.xp6(1),n.Q6J("ngIf",t.cashback.podeUsar&&!t.cashback.podeUsarNoPedido),n.xp6(2),n.Q6J("ngIf",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo),n.xp6(1),n.Q6J("hidden",0===t.obtenhaTotalPagar()),n.xp6(7),n.Oqu(n.xi3(30,13,t.obtenhaTotalPagar(),"BRL"))}}function Z$e(i,o){1&i&&(n.TgZ(0,"div",68),n._uU(1," Nenhuma forma de pagamento dispon\xedvel "),n.qZA())}function V$e(i,o){1&i&&n._UZ(0,"app-loja-formaspagamento-antigo",null,69)}function z$e(i,o){1&i&&n._UZ(0,"app-loja-formaspagamento-nova",null,70)}function G$e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,Z$e,2,0,"div",67),n.YNc(2,V$e,2,0,"app-loja-formaspagamento-antigo",4),n.YNc(3,z$e,2,0,"app-loja-formaspagamento-nova",4),n._UZ(4,"hr",21),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",!(null!=t.empresa.formasDePagamento&&t.empresa.formasDePagamento.length)),n.xp6(1),n.Q6J("ngIf",!t.empresa.exibirBandeiras),n.xp6(1),n.Q6J("ngIf",t.empresa.exibirBandeiras)}}function q$e(i,o){if(1&i&&(n.ynx(0),n.YNc(1,O$e,5,2,"div",43),n.YNc(2,L$e,3,7,"ng-container",4),n._UZ(3,"hr",21),n.TgZ(4,"h4",19),n._uU(5,"Pagamento"),n.qZA(),n.YNc(6,j$e,31,18,"ng-container",4),n.YNc(7,G$e,5,3,"ng-container",4),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.pedido.entrega&&t.pedido.entrega.taxaDeEntrega>=-1),n.xp6(1),n.Q6J("ngIf",t.pedido.entrega),n.xp6(4),n.Q6J("ngIf",t.cashback&&t.cashback.podeUsarNaLoja),n.xp6(1),n.Q6J("ngIf",t.obtenhaTotalPagar()>0)}}function J$e(i,o){1&i&&(n.TgZ(0,"div",34)(1,"p"),n._uU(2,"Escolha a forma de pagamento do seu pedido"),n.qZA()())}function Q$e(i,o){1&i&&(n.ynx(0),n.TgZ(1,"div",71)(2,"span"),n._uU(3,"Selecione a Forma de Entrega Antes de Adicionar os dados de cart\xe3o"),n.qZA()(),n.BQk())}function W$e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone \xe9 obrigat\xf3rio"),n.qZA())}function K$e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Telefone inv\xe1lido"),n.qZA())}function X$e(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome \xe9 obrigat\xf3rio"),n.qZA())}function eUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF \xe9 obrigat\xf3rio"),n.qZA())}function tUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"CPF inv\xe1lido"),n.qZA())}function nUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",79)(1,"label"),n._uU(2,"CPF"),n.qZA(),n.TgZ(3,"input",86,87),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pedido.contato.cpf=s)})("change",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.informouCpf())}),n.qZA(),n.TgZ(5,"div",34),n.YNc(6,eUe,2,0,"p",4),n.YNc(7,tUe,2,0,"p",4),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.pedido.contato.cpf)("required",r.cpfObrigatorio),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",!(null!=t.errors&&t.errors.required)&&(null==t.errors?null:t.errors.cpfInvalido))}}function iUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Data de nascimento \xe9 obrigat\xf3ria"),n.qZA())}function oUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",88)(1,"label"),n._uU(2,"Data Nascimento"),n.qZA(),n.TgZ(3,"kendo-datepicker",89,90),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pedido.contato.dataNascimento=s)}),n._UZ(5,"kendo-datepicker-messages",91),n.qZA(),n.TgZ(6,"div",34),n.YNc(7,iUe,2,0,"p",4),n.qZA()()}if(2&i){const t=n.MAs(4),r=n.oxw(2);n.xp6(3),n.Q6J("ngModel",r.pedido.contato.dataNascimento)("required",r.dataNascimentoObrigatorio),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function rUe(i,o){if(1&i&&n._UZ(0,"img",98),2&i){const t=n.oxw(3);n.s9C("src",t.fidelidadeExterna.logo,n.LSH)}}function aUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",92)(1,"input",93),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.fidelidadeExterna.optin=s)})("change",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.alterouOptinFidelidade())}),n.qZA(),n.TgZ(2,"label",94),n._uU(3),n.YNc(4,rUe,1,1,"img",95),n._UZ(5,"br"),n.TgZ(6,"span",96),n._uU(7," Estou de acordo com o "),n.TgZ(8,"a",97),n._uU(9,"Regulamento"),n.qZA(),n._uU(10,"."),n.qZA()()()}if(2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngModel",t.fidelidadeExterna.optin),n.xp6(2),n.hij(" Quero ganhar cashback com ",1===t.empresa.idRede?"Meu China in Box":"Gendai Vip"," "),n.xp6(1),n.Q6J("ngIf",t.fidelidadeExterna.logo),n.xp6(4),n.s9C("href",t.fidelidadeExterna.linkRegras,n.LSH)}}function sUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function lUe(i,o){1&i&&n._UZ(0,"i",107)}function cUe(i,o){1&i&&n._UZ(0,"i",108)}function dUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function uUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",109,110),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",34),n.YNc(4,dUe,2,0,"p",4),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(3);n.xp6(1),n.Q6J("ngModel",r.pedido.contato.senha)("required",!0),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function pUe(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function hUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",111,112),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.pedido.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",34),n.YNc(4,pUe,2,0,"p",4),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw(3);n.xp6(1),n.Q6J("ngModel",r.pedido.contato.senha)("required",!0),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function gUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"fieldset")(2,"legend"),n._uU(3,"Dados de acesso"),n.qZA(),n.TgZ(4,"div",99)(5,"label",100),n._uU(6,"E-mail "),n.qZA(),n.TgZ(7,"input",101,102),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.pedido.contato.email=s)}),n.qZA(),n.TgZ(9,"div",34),n.YNc(10,sUe,2,0,"p",4),n.qZA()(),n.TgZ(11,"div",99)(12,"label",103),n._uU(13,"Senha"),n.qZA(),n.TgZ(14,"label",104),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.exibirSenhaTela())}),n.YNc(15,lUe,1,0,"i",105),n.YNc(16,cUe,1,0,"i",106),n.qZA(),n.YNc(17,uUe,5,3,"span",4),n.YNc(18,hUe,5,3,"span",4),n.qZA()()()}if(2&i){const t=n.MAs(8),r=n.oxw(2);n.xp6(7),n.Q6J("required",!0)("ngModel",r.pedido.contato.email),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(5),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha)}}function fUe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"h4",24),n._uU(2," Dados do cliente: "),n.qZA(),n.TgZ(3,"div",72)(4,"label",73),n._uU(5,"Telefone"),n.qZA(),n.TgZ(6,"div",74)(7,"div",75)(8,"app-seletor-codigo-pais",76),n.NdJ("phoneMaskChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.onPhoneMaskChange(s))})("selectedCountryCodeChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.onCountrySelected(s))}),n.qZA(),n.TgZ(9,"kendo-maskedtextbox",77,78),n.NdJ("change",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.informouTelefone())})("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pedido.contato.telefone=s)}),n.qZA()(),n.TgZ(12,"div",34),n.YNc(13,W$e,2,0,"p",4),n.YNc(14,K$e,2,0,"p",4),n.qZA()()(),n.TgZ(15,"div",79)(16,"label",80),n._uU(17,"Nome "),n.qZA(),n.TgZ(18,"input",81,82),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pedido.contato.nome=s)}),n.qZA(),n.TgZ(20,"div",34),n.YNc(21,X$e,2,0,"p",4),n.qZA()(),n.YNc(22,nUe,8,4,"div",83),n.YNc(23,oUe,8,3,"div",84),n.YNc(24,aUe,11,4,"div",85),n.YNc(25,gUe,19,7,"span",4),n.BQk()}if(2&i){const t=n.MAs(10),r=n.MAs(19),s=n.oxw();n.xp6(8),n.Q6J("selectedCountryCode",s.pedido.contato.codigoPais?s.pedido.contato.codigoPais:"+55"),n.xp6(1),n.Q6J("mask",s.phoneMask)("disabled",s.buscando)("ngModel",s.pedido.contato.telefone),n.xp6(4),n.Q6J("ngIf",null==t.errors?null:t.errors.required),n.xp6(1),n.Q6J("ngIf",null==t.errors?null:t.errors.patternError),n.xp6(4),n.Q6J("ngModel",s.pedido.contato.nome),n.xp6(3),n.Q6J("ngIf",null==r.errors?null:r.errors.required),n.xp6(1),n.Q6J("ngIf",s.informarCpf),n.xp6(1),n.Q6J("ngIf",s.informarDataNascimento),n.xp6(1),n.Q6J("ngIf",s.fidelidadeExterna&&s.fidelidadeExterna.aceitarFidelidade),n.xp6(1),n.Q6J("ngIf",s.criarConta||(null==s.fidelidadeExterna?null:s.fidelidadeExterna.optin))}}function mUe(i,o){if(1&i&&(n.TgZ(0,"h5",118)(1,"strong"),n._uU(2),n.TgZ(3,"span",55),n._uU(4),n.ALo(5,"currency"),n.qZA()()()),2&i){const t=n.oxw(2);n.xp6(2),n.hij("",t.pedido.pagamento.formaDePagamento.descricao,": "),n.xp6(2),n.hij(" ",n.xi3(5,2,t.pedido.obtenhaValorAhPagar(),"BRL"),"")}}function _Ue(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",113)(2,"h5",60)(3,"span"),n._uU(4,"Formas De Pagamento:"),n.qZA()()(),n._UZ(5,"div",114),n.TgZ(6,"div",115)(7,"h5",116)(8,"strong"),n._uU(9,"Fidelidade Cashback: "),n.TgZ(10,"span",55),n._uU(11),n.qZA()()(),n.YNc(12,mUe,6,5,"h5",117),n.qZA(),n.BQk()),2&i){const t=n.oxw();n.xp6(11),n.hij(" ",t.obtenhaSaldo()," "),n.xp6(1),n.Q6J("ngIf",null==t.pedido.pagamento?null:t.pedido.pagamento.formaDePagamento)}}function bUe(i,o){if(1&i&&(n.TgZ(0,"div",119)(1,"div",120),n._UZ(2,"i",121),n._uU(3),n.qZA()()),2&i){const t=n.oxw();n.xp6(3),n.hij(" ",t.msgErro," ")}}function vUe(i,o){1&i&&n._UZ(0,"i",127)}function yUe(i,o){if(1&i&&(n.TgZ(0,"button",125),n.YNc(1,vUe,1,0,"i",126),n._uU(2," Fazer Pedido sem Criar Conta"),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("disabled",t.eviandoPedido||t.buscando),n.xp6(1),n.Q6J("ngIf",t.eviandoPedido)}}function CUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",122),n.YNc(1,yUe,3,2,"button",123),n.TgZ(2,"button",124),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.exibirCriarConta())}),n._uU(3," Criar conta"),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.pedido.codigo),n.xp6(1),n.Q6J("disabled",t.eviandoPedido||t.buscando)}}function AUe(i,o){1&i&&n._UZ(0,"i",127)}function xUe(i,o){if(1&i&&(n.TgZ(0,"button",125),n.YNc(1,AUe,1,0,"i",126),n._uU(2," Fazer pedido "),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("disabled",t.eviandoPedido||t.buscando),n.xp6(1),n.Q6J("ngIf",t.eviandoPedido)}}function TUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",130),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(2);return n.KtG(s.canceleCriarConta())}),n._uU(1,"Voltar"),n.qZA()}if(2&i){const t=n.oxw(2);n.Q6J("disabled",t.eviandoPedido||t.buscando)}}function SUe(i,o){if(1&i&&(n.TgZ(0,"div",24),n.YNc(1,xUe,3,2,"button",128),n.YNc(2,TUe,2,1,"button",129),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",!t.pedido.codigo),n.xp6(1),n.Q6J("ngIf",t.criarConta)}}function wUe(i,o){1&i&&(n.ynx(0),n.TgZ(1,"h4",131),n._UZ(2,"i",127),n._uU(3," Aguarde que voc\xea ser\xe1 redirecionado para tela de pagamento."),n.qZA(),n.BQk())}function MUe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n._UZ(1,"i",132),n._uU(2," Falha ao gerar link de pagamento: "),n._UZ(3,"br"),n.TgZ(4,"b"),n._uU(5),n.qZA(),n._UZ(6,"br")(7,"br"),n.TgZ(8,"button",133),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.gereLinkPagamento())}),n._uU(9,"Tentar de novo"),n.qZA(),n.BQk()}if(2&i){const t=n.oxw();n.xp6(5),n.Oqu(t.msgErroLink)}}const DUe=function(i,o){return{"needs-validation":i,"was-validated":o}};let QK=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I,P,F,V,oe,Ae,ue){this.app=t,this.pedidosService=r,this.constantsService=s,this.locale=l,this.activatedRoute=u,this.location=p,this.dominiosService=y,this.router=A,this.clienteService=w,this.carrinhoService=I,this.autorizacao=P,this.enderecoService=F,this.dialogService=V,this.detectorDevice=oe,this.pagseguroService=Ae,this.autorizacaoLojaService=ue,this.pedido=new U_,this.empresa={},this.FormaDeEntrega=wo,this.enderecos=[],this.isMobile=!1,this.agora=new Date,this.msgErroPagSeguro="",this.camposAdicionais=[],this.formasDeEntrega=[],this.filterSettings={caseSensitive:!1,operator:"contains"},this.phoneMask="(00) 00000-0000"}ngOnInit(){if(this.isMobile=this.detectorDevice.isMobile(),this.pedido=this.carrinhoService.obtenhaPedido(),this.panelCarrinho.setModoPanel(),this.carrinhoService.salvePedido(this.pedido),this.autorizacaoLojaService.sessao$.subscribe(t=>{if(typeof fbq<"u"&&this.pedido&&!this.pedido.disparouEventoIniciarCheckout){this.pedido.disparouEventoIniciarCheckout=!0;const r=t+"-"+(new Date).getTime();this.carrinhoService.notifiqueInicioCheckout(this.pedido,r),fbq("track","InitiateCheckout",{value:this.pedido.total,currency:"BRL"},{eventID:r})}}),0===this.pedido.itens.length)return this.abraTelaLoja();this.constantsService.empresa$.subscribe(t=>{if(t){this.empresa=t,this.apenasAgendamento=!this.empresa.estaRecebendoPedidos&&this.empresa.permiteAgendamento,this.empresa.apenasAgendamento=this.apenasAgendamento,this.apenasAgendamento&&(this.agendarEntrega=!0),this.formasDeEntrega=this.obtenhaFormasDeEntrega(this.empresa.formasDeEntrega),this.empresa.integracaoFidelidade&&(this.fidelidadeExterna=Object.assign({},this.empresa.integracaoFidelidade),this.autorizacao.getUsuario()||(this.fidelidadeExterna.aceitarFidelidade=!0,this.fidelidadeExterna.optin=!0));let r=[];for(let s of this.formasDeEntrega)s.ativa&&r.push(s);1===r.length&&(this.pedido.entrega.formaDeEntrega=r[0].nome),this.apenasAgendamento||this.formasDeEntrega.forEach(s=>{this.pedido.entrega.formaDeEntrega===s.formaDeEntrega.nome&&(this.agendarEntrega=s.agendamentoObrigatorio,this.apenasAgendamento=s.agendamentoObrigatorio)}),this.setCashbackDoPagamento(),this.pedido.dataEntrega&&(this.agendouEntrega=!0,this.agendarEntrega=!0),this.pedido.gerarLinkPagamento&&this.gereLinkPagamento(),setTimeout(()=>{this.setFormasPagamentoExibir()},500),this.pedidosService.obtenhaAdicionaisPedido(this.empresa).then(s=>{this.camposAdicionais=s,this.pedido.adicionais={},this.pedido.camposAdicionais=s,al.prepareAdicionais(this.pedido,s)})}}),this.constantsService.campoCpf$.subscribe(t=>{this.informarCpf=null!=t,this.cpfObrigatorio=t&&!t.opcional}),this.constantsService.campoDataNascimento$.subscribe(t=>{this.informarDataNascimento=null!=t,this.dataNascimentoObrigatorio=t&&!t.opcional}),this.carrinhoService.alterouPedido.subscribe(t=>{if(t&&this.cashback){let r=t.obtenhaTotalSemTaxaEntrega();this.cashback.minimoPedido>r?this.setPodeUsarCashback(r):(this.setValorCashbachUsar(r),this.cashback.podeUsarNoPedido=!0)}})}setFormasPagamentoExibir(){this.formasPagamentoNova&&this.formasPagamentoNova.setFormasPagamento(this.empresa,this.pedido,this.pedido.pagamento,this.frm),this.formasPagamentoAntigas&&this.formasPagamentoAntigas.setFormasPagamento(this.empresa,this.pedido,this.pedido.pagamento,this.frm)}setCashbackDasFormas(){this.formasPagamentoAntigas&&(this.formasPagamentoAntigas.cashback=this.cashback),this.formasPagamentoNova&&(this.formasPagamentoNova.cashback=this.cashback)}reabraAutenticacaoCartao(t=null){this.formasPagamentoNova&&this.formasPagamentoNova.trocarCartao(t),this.formasPagamentoAntigas&&this.formasPagamentoAntigas.trocarCartao(t)}setValorCashbachUsar(t){this.cashback.valor=this.cashback.saldo>t?t:this.cashback.saldo}setPodeUsarCashback(t){!this.cashback||(this.cashback.podeUsarNoPedido=t>=this.cashback.minimoPedido,this.cashback.usarPadrao&&this.cashback.saldo&&(this.cashback.usar=this.cashback.podeUsar&&this.cashback.podeUsarNoPedido),this.setValorCashbachUsar(t),this.alterouUsarSaldo())}setCashbackDoPagamento(){delete this.cashback,delete this.pedido.cashback,(this.empresa.integracaoPedidoFidelidade||this.empresa.integracaoDelivery)&&this.clienteService.obtenhaSaldoCashback().then(t=>{if(this.cashback=t,this.cashback){let r=this.pedido.obtenhaTotalSemTaxaEntrega();this.setPodeUsarCashback(r),this.setCashbackDasFormas()}})}deveExibirTopo(){return!1}deveExibirMenu(){return!1}deveTerBordas(){return!0}informouCpf(){var t=this;return sn(function*(){if(t.pedido.contato.id&&!t.pedido.contato.completarCadastro)return;let r=yield t.clienteService.obtenhaCadastroCompletarPeloCpf(t.pedido.contato.cpf).catch(s=>{console.error(s)});t.buscando=!1,r&&r.id?(t.pedido.contato.id=r.id,t.pedido.contato.completarCadastro=!0,t.criarConta=!0):t.pedido.contato.completarCadastro&&(delete t.pedido.contato.id,delete t.pedido.contato.completarCadastro,t.criarConta=!1)})()}informouTelefone(){this.buscando=!0,this.clienteService.obtenhaClientePorTelefone(this.pedido.contato.telefone).then(t=>{this.buscando=!1,t&&t.id?(Object.assign(this.pedido.contato,t),this.pedido.contato.dataNascimento&&(this.pedido.contato.dataNascimento=new Date(this.pedido.contato.dataNascimento))):this.pedido.contato={telefone:this.pedido.contato.telefone,codigoPais:this.pedido.contato.codigoPais},t.fidelidadeExterna&&this.setOptinFidelidadExterna(t.fidelidadeExterna),this.setCashbackDoPagamento()}).catch(()=>{this.buscando=!1})}setOptinFidelidadExterna(t){this.fidelidadeExterna.aceitarFidelidade=t.aceitarFidelidade,this.fidelidadeExterna.id_cliente=t.id_cliente,this.fidelidadeExterna.optin=this.fidelidadeExterna.aceitarFidelidade}abraModalEscolherEndereco(){var t=this;let r=window.innerHeight-100;this.isMobile&&(r=window.innerHeight);const s=this.dialogService.open({title:"Cadastro de Endere\xe7o",content:kBe,minWidth:250,width:window.innerWidth>600?600:window.innerWidth,maxHeight:r}),l=s.content.instance;l.window=s,l.pedido=this.pedido,document.body.style.overflow="hidden",document.body.style.paddingRight="17px";const u=document.querySelector(".carrinho_desktop .is-sticky");u&&(u.style.paddingRight="17px"),s.result.subscribe(function(){var p=sn(function*(y){if(document.body.style.overflow="",document.body.style.paddingRight="",u&&(u.style.paddingRight=""),y&&y.cidade){t.pedido.entrega.setTaxaEntrega(y,null),t.pedido.calculeTotal(),t.pedido.novosEnderecos.push(y),t.carrinhoService.salvePedido(t.pedido);let A=t.pedido.cupom?t.pedido.cupom.codigo:null;A&&(yield t.carrinhoService.atualizeValorDesconto(A,t.empresa))}});return function(y){return p.apply(this,arguments)}}())}alterouFormaEntrega(t){this.pedido.entrega.ehRetirada()?this.pedido.entrega.taxaDeEntrega=0:this.pedido.entrega.endereco&&(this.pedido.entrega.taxaDeEntrega=this.pedido.entrega.endereco.taxaDeEntrega),this.empresa.apenasAgendamento||(this.agendarEntrega=t.agendamentoObrigatorio,this.apenasAgendamento=t.agendamentoObrigatorio),this.pedido.calculeTotal(),this.pedido.temValorMinimoDaFormaEscolhida(this.formasDeEntrega)&&this.pedido.entrega.ehDelivery()&&!this.pedido.entrega.endereco&&(this.pedido.ultrapassouValorMaximoDaFormaEscolhida(this.formasDeEntrega)||this.abraModalEscolherEndereco()),this.carrinhoService.salvePedido(this.pedido)}selecioneTudo(){this.pedido.pagamento.trocoPara>0&&(this.txtTrocoM.nativeElement.select(),this.selecionou=!0)}limpeSeTiverFoco(t){!this.selecionou||(this.selecionou=!1,this.pedido.pagamento.trocoPara=0)}gereLinkPagamento(){delete this.msgErroLink,$("#alertaGerandoPagamento").modal(),this.pedidosService.gereLinkPagamento(this.pedido).then(t=>{this.pedido.linkPagamento=t.link,this.carrinhoService.salvePedido(this.pedido),window.location.href=t.link}).catch(t=>{console.log(t),alert(t),this.msgErroLink=t})}facaLoginGuest(t){return t.fezLoginGuest?this.autorizacao.atualizeUsuarioLogado().then(()=>{Promise.resolve()}):Promise.resolve()}posicioneNoComplemento(t){}fazerPedido(){if(this.msgErro=null,!this.eviandoPedido)if(this.frm.valid){if(this.pedido.validarValorPedido()&&this.pedido.obtenhaValorAhPagar()!==this.pedido.pagamento.dadosCartao.valorPagamento)return this.msgErro="Valor pedido foi alterado, ser\xe1 necess\xe1rio uma nova autentica\xe7\xe3o do cart\xe3o",void setTimeout(()=>{this.reabraAutenticacaoCartao(this.msgErro)});this.eviandoPedido=!0,this.agendarEntrega||(this.pedido.dataEntrega=null,this.pedido.horarioEntrega=null),this.fidelidadeExterna&&(this.fidelidadeExterna.optin?this.pedido.fidelidadeGcom={id_cliente:this.fidelidadeExterna.id_cliente}:delete this.pedido.fidelidadeGcom),this.pedidosService.salvePedido(this.pedido.obtenhaDadosEnvio(this.empresa)).then(t=>{if(this.pedido.codigo=t.codigo,this.pedido.guid=t.guid,this.eviandoPedido=!1,this.panelCarrinho.finalizouPedido(),this.pedido.usandoCashbackNoPagamento()&&(localStorage.recarregarSaldo=!0),this.autorizacaoLojaService.sessao$.subscribe(r=>{typeof fbq<"u"&&fbq("track","Purchase",{value:this.pedido.total,currency:"BRL",order_id:t.id},{eventID:r+"-"+t.codigo})}),typeof gtag<"u"){const r=this.pedido.itens.map(s=>({id:s.produto.id,name:s.produto.nome,category:s.produto.categoria?s.produto.categoria.nome:"Sem Categoria",quantity:s.qtde,price:s.total/s.qtde}));gtag("event","purchase",{currency:"BRL",transaction_id:t.guid,value:this.pedido.total,items:r})}this.facaLoginGuest(t).then(()=>{if(t.gerarLinkPagamento)this.pedido.gerarLinkPagamento=!0,this.carrinhoService.salvePedido(this.pedido),this.gereLinkPagamento();else{t.abrirUrl&&window.open(this.urlWhatsapp);let r={empresa:this.empresa,urlAbrir:t.urlAbrir,falhaNoPagamentoOnline:t.falhaNoPagamentoOnline,mensagemFalhaPagamento:t.mensagemFalhaPagamento};t.aguardandoTokenizar&&(r.aguardandoTokenizar=t.aguardandoTokenizar),this.carrinhoService.salveUltimoPedido(r),this.dominiosService.vaParaTelaAcompanharPedido(this.pedido)}})}).catch(t=>{this.eviandoPedido=!1,this.msgErro=t})}else this.msgErro="Preencha os campos obrigat\xf3rios",setTimeout(()=>{const t=document.getElementsByClassName("invalid-feedback");if(t&&t.length){let r=t[0];r.parentElement.className.indexOf("input-group")>=0&&(r=r.parentElement),r.parentElement.className.indexOf("form-group")>=0&&(r=r.parentElement),window.scrollTo(0,r.offsetTop-40)}},50)}novoPedido(){this.abraTelaLoja()}abraTelaLoja(){this.dominiosService.vaParaHome()}exibirCriarConta(){this.criarConta=!0}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}canceleCriarConta(){this.criarConta=!1}obtenhaTotalPagar(){if(!this.cashback||!this.cashback.usar)return this.pedido.total;let t=this.pedido.total-this.cashback.valor;return t<0&&(t=0),Number(t.toFixed(2))}alterouUsarSaldo(){if(this.cashback&&this.cashback.usar)if(this.cashback.saldo)this.pedido.cashback=this.cashback,this.pedido.calculeTotal(),this.pedido.calculeTroco();else{let t=this.autorizacao.getUsuario();t?this.cashback.fazerOptin?this.abraModalFazerOptin():t.cpf||this.abraModalAtualizarCadastro():this.pedido.contato.id?this.abraModalLogin():qy.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.pedido.contato)}else delete this.pedido.cashback,this.pedido.calculeTotal();this.carrinhoService.salvePedido(this.pedido),setTimeout(()=>{this.setFormasPagamentoExibir(),this.setCashbackDasFormas()})}abraModalFazerOptin(){return this.pedido.contato.fazerOptin=!0,qy.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.pedido.contato),!1}abraModalLogin(){return J6.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.pedido.contato?this.pedido.contato.telefone:null,r=>{if(r&&r.login){let s=this.autorizacao.getUsuario();s&&s.id&&(this.pedido.contato=s,this.carrinhoService.salvePedido(this.pedido),this.setCashbackDoPagamento())}}),!1}abraModalValidarConta(){return JK.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.pedido.contato,t=>{t&&t.login&&this.setCashbackDoPagamento()}),!1}abraModalAtualizarCadastro(){return this.pedido.contato.atualizarCadastro=!0,qy.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.pedido.contato,t=>{t&&t.id&&this.setCashbackDoPagamento()}),!1}obtenhaFormasDeEntrega(t){const r=[];for(let s of t)if((this.pedido.entrega.permiteEntrega||s.formaDeEntrega.nome!==wo.RECEBER_EM_CASA)&&(r.push(s),s.permiteComerNoLocal)){let l=Object.assign({},s);l.comerNoLocal=!0,l.nome="Comer no local",r.push(l)}return r}deveExibirBannerTema(){return!1}alterouOptinFidelidade(){}obtenhaSaldo(){if(!this.cashback)return"";let t=cs(this.cashback.saldo,this.locale,"R$");return this.empresa.integracaoFidelidade&&"gcom"===this.empresa.integracaoFidelidade.sistema&&(t=t.replace("R$",2===this.empresa.idRede?"R$G":"R$C")),t}exibirDadosCliente(){let t=this.autorizacao.getUsuario();return!t||!t.id||!!this.informarCpf&&!t.cpf}onCountrySelected(t){this.pedido.contato.codigoPais=t,console.log("setou c\xf3digo pa\xeds. Contato: ",this.pedido.contato)}onPhoneMaskChange(t){this.phoneMask=t,this.txtTelefone&&this.txtTelefone.updateValue(this.txtTelefone.input.nativeElement.value)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.z2F),n.Y36(gm),n.Y36(gi),n.Y36(n.soG),n.Y36(ci),n.Y36(_n),n.Y36(Eo),n.Y36(Pn),n.Y36(ka),n.Y36(Oi),n.Y36(Qi),n.Y36(wc),n.Y36(Na),n.Y36(zo),n.Y36(YR),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-finalizar-pedido"]],viewQuery:function(t,r){if(1&t&&(n.Gf(a$e,5),n.Gf(s$e,7),n.Gf(l$e,5),n.Gf(c$e,5),n.Gf(d$e,7),n.Gf(u$e,5),n.Gf(p$e,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.txtTrocoM=s.first),n.iGM(s=n.CRH())&&(r.frm=s.first),n.iGM(s=n.CRH())&&(r.formasPagamentoAntigas=s.first),n.iGM(s=n.CRH())&&(r.formasPagamentoNova=s.first),n.iGM(s=n.CRH())&&(r.panelCarrinho=s.first),n.iGM(s=n.CRH())&&(r.txtTelefone=s.first),n.iGM(s=n.CRH())&&(r.ctrlAdicionais=s)}},decls:30,vars:22,consts:[[1,"row","pt-2",2,"position","relative"],[1,"col-12","card","panel-finalizar"],[1,"card-body"],[1,"pt-2","card-title"],[4,"ngIf"],["novalidate","",1,"k-form",3,"ngClass","hidden","ngSubmit"],["frm","ngForm"],[3,"hidden"],["class","invalid-feedback",4,"ngIf"],["class","col mt-2 mb-2",4,"ngIf"],["class","col mt-4",4,"ngIf"],["class","mt-3",4,"ngIf"],[1,"col-8","panel-pedido"],["panelCarrinho",""],["id","alertaGerandoPagamento","tabindex","-1","role","dialog","aria-modal","true","data-backdrop","static",1,"modal","fade"],[1,"modal-dialog"],[1,"modal-content"],[1,"modal-body","p-4"],[1,"text-center"],[1,"mb-2"],[4,"ngFor","ngForOf"],[1,"linha"],[3,"id","campoAdicional","itemPedido","posicao"],["adicionalComponent",""],[1,"mt-3"],["class","text-muted",4,"ngIf"],[1,"form-group","mb-2","escolher"],["class","form-group col   ",4,"ngIf"],["class","form-group col mt-2",4,"ngIf"],[1,"text-muted"],["class","radio radio-blue mb-2",3,"ngClass",4,"ngIf"],[1,"radio","radio-blue","mb-2",3,"ngClass"],["type","radio","kendoRadioButton","",1,"k-radio",3,"id","name","ngModel","value","required","change","ngModelChange"],[1,"ml-1","d-inline",3,"for"],[1,"invalid-feedback"],[1,"form-group","col"],["class","alert alert-danger",4,"ngIf"],[1,"alert","alert-danger"],[1,"form-group","col","mt-2"],["aria-hidden","true",1,"fe-map-pin","fa-lg"],["class","text-blue cpointer ml-2",3,"click",4,"ngIf"],[1,"text-blue","cpointer","ml-2",3,"click"],[1,"d-inline","ml-2"],["class","col mb-3",4,"ngIf"],[1,"col","mb-3"],[1,"mb-0"],["class","mt-1",4,"ngIf"],[1,"mt-1"],[3,"tela","pedido","empresa","agendarEntrega","apenasAgendamento","formasDeEntrega"],[1,"k-display-inline-flex","pagarfidelidade",3,"ngClass"],[1,"flex-row"],["href","",3,"click",4,"ngIf"],[1,"form-group","mb-2","mt-2",3,"hidden"],["id","usarSaldo","name","usarSaldo","type","checkbox","kendoCheckBox","",1,"k-checkbox",3,"ngModel","disabled","change","ngModelChange"],["for","usarSaldo",1,"ml-1","usar-saldo"],[1,"preco"],["class","ml-2 imagem-programa","style","max-height: 40px;",3,"src",4,"ngIf"],[1,"produto","pt-0","pb-2",3,"hidden"],[1,"media","mt-2"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"preco","font-15"],["href","",3,"click"],[1,"btn","btn-blue","btn-xs","mt-1",3,"click"],[1,"fa","fa-exclamation-circle","mr-1","text-warning"],[1,"text-blue"],[1,"ml-2","imagem-programa",2,"max-height","40px",3,"src"],["class","alert alert-info",4,"ngIf"],[1,"alert","alert-info"],["formasPagamentoAntigas",""],["formasPagamentoNova",""],[1,"alert","alert-warning"],[1,"form-group","mb-1","col","col-12"],["for","telefone"],[1,"input-group"],[2,"display","flex"],[3,"selectedCountryCode","phoneMaskChange","selectedCountryCodeChange"],["id","telefone","name","telefone","required","",1,"form-control","ml-1",3,"mask","disabled","ngModel","change","ngModelChange"],["telefone","ngModel","kendoMaskedTextBox","kendoMaskedTextBox"],[1,"form-group","mb-2","col"],["for","nome"],["kendoTextBox","","id","nome","name","nome","placeholder","Nome completo","required","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],["class","form-group mb-2 col",4,"ngIf"],["class","form-group mb-2 col col-md-6",4,"ngIf"],["class","form-group mb-2 col aceite-fidelidade",4,"ngIf"],["type","text","autocomplete","off","name","cpf","mask","000.000.000-00","cpfValido","","placeholder","___.___.___-__",1,"form-control",3,"ngModel","required","ngModelChange","change"],["cpf","ngModel"],[1,"form-group","mb-2","col","col-md-6"],["format","dd/MM/yyyy","activeView","decade","name","dataNascimento","activeView","decade",1,"form-control",3,"ngModel","required","ngModelChange"],["dataNascimento","ngModel"],["today","Hoje","toggle","Trocar calend\xe1rio"],[1,"form-group","mb-2","col","aceite-fidelidade"],["id","optin","name","optin","type","checkbox","kendoCheckBox","",1,"k-checkbox",3,"ngModel","ngModelChange","change"],["for","optin",1,"ml-1","usar-saldo"],["class","ml-2","style","max-height: 40px",3,"src",4,"ngIf"],[1,"ml-3"],["target","_blank",3,"href"],[1,"ml-2",2,"max-height","40px",3,"src"],[1,"form-group","mb-2"],["for","email"],["type","email","autocomplete","off","email","true","id","email","name","email","placeholder","Email do usu\xe1rio",1,"form-control",3,"required","ngModel","ngModelChange"],["email","ngModel"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","placeholder","Informe sua senha",1,"form-control",3,"ngModel","required","ngModelChange"],["senha","ngModel"],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha",1,"form-control",3,"ngModel","required","ngModelChange"],["senhaTexto","ngModel"],[1,"media-body","mt-1"],[1,"clearfix"],[1,"mt-2","d-flex","flex-column","w-100"],[1,"mt-0","flex-row","text-right"],["class","mt-0 text-right  flex-row ",4,"ngIf"],[1,"mt-0","text-right","flex-row"],[1,"col","mt-2","mb-2"],["role","alert",1,"alert","alert-danger"],[1,"fas","fa-exclamation-triangle"],[1,"col","mt-4"],["class","btn btn-blue  btn-block ","type","submit",3,"disabled",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-block",3,"disabled","click"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading mr-1",4,"ngIf"],[1,"k-icon","k-i-loading","mr-1"],["class","btn btn-blue btn-block ","type","submit",3,"disabled",4,"ngIf"],["class","btn btn-light btn-block mb-2 mt-2","type","button",3,"disabled","click",4,"ngIf"],["type","button",1,"btn","btn-light","btn-block","mb-2","mt-2",3,"disabled","click"],[1,"mt-2"],[1,"k-icon","k-i-error","mr-1"],[1,"btn","btn-blue","mt-1",3,"click"]],template:function(t,r){if(1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div")(4,"h3",3),n._uU(5,"Finalizar pedido"),n.YNc(6,h$e,2,0,"ng-container",4),n.qZA(),n.TgZ(7,"form",5,6),n.NdJ("ngSubmit",function(){return r.fazerPedido()}),n.YNc(9,f$e,5,1,"ng-container",4),n.YNc(10,I$e,9,5,"ng-container",4),n.TgZ(11,"span",7),n.YNc(12,q$e,8,4,"ng-container",4),n.YNc(13,J$e,3,0,"div",8),n.YNc(14,Q$e,4,0,"ng-container",4),n.YNc(15,fUe,26,12,"ng-container",4),n.YNc(16,_Ue,13,2,"ng-container",4),n.YNc(17,bUe,4,1,"div",9),n.YNc(18,CUe,4,2,"div",10),n.YNc(19,SUe,3,2,"div",11),n.qZA()()()()(),n.TgZ(20,"div",12),n._UZ(21,"app-loja-carrinho",null,13),n.qZA()(),n.TgZ(23,"div",14)(24,"div",15)(25,"div",16)(26,"div",17)(27,"div",18),n.YNc(28,wUe,4,0,"ng-container",4),n.YNc(29,MUe,10,1,"ng-container",4),n.qZA()()()()()),2&t){const s=n.MAs(8);n.Tol(r.empresa.tema),n.xp6(6),n.Q6J("ngIf",r.apenasAgendamento),n.xp6(1),n.Q6J("ngClass",n.WLB(19,DUe,!s.submitted,s.submitted))("hidden",r.pedido.codigo),n.xp6(2),n.Q6J("ngIf",r.camposAdicionais&&r.camposAdicionais.length),n.xp6(1),n.Q6J("ngIf",!r.pedido.mesa),n.xp6(1),n.Q6J("hidden",!r.pedido.temValorMinimoDaFormaEscolhida(r.empresa.formasDeEntrega)||r.pedido.ultrapassouValorMaximoDaFormaEscolhida(r.empresa.formasDeEntrega)),n.xp6(1),n.Q6J("ngIf",!r.pedido.mesa),n.xp6(1),n.Q6J("ngIf",!r.pedido.pagamento.formaDePagamento),n.xp6(1),n.Q6J("ngIf",((null==r.formasPagamentoAntigas?null:r.formasPagamentoAntigas.exigeCartao)||(null==r.formasPagamentoNova?null:r.formasPagamentoNova.exigeCartao))&&!r.pedido.pagamento.dadosCartao&&!r.pedido.entrega.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",r.exibirDadosCliente()),n.xp6(1),n.Q6J("ngIf",r.pedido.maisDeUmaFormaPagamento()),n.xp6(1),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",!(r.criarConta||r.pedido.contato.id||null!=r.fidelidadeExterna&&r.fidelidadeExterna.optin)),n.xp6(1),n.Q6J("ngIf",r.criarConta||r.pedido.contato.id||(null==r.fidelidadeExterna?null:r.fidelidadeExterna.optin)),n.xp6(9),n.Q6J("ngIf",!r.msgErroLink),n.xp6(1),n.Q6J("ngIf",r.msgErroLink)}},dependencies:[gt,Bt,Ge,Ia,wi,wp,tc,ti,ma,Lo,b1,ni,Zo,ja,Fu,Er,po,eT,dn,Xp,io,THe,r$e,jE,Yu,BE,ZK,_B,Jo],styles:['.pedido-finalizado[_ngcontent-%COMP%]{padding-top:25px;padding-bottom:25px}.pedido-finalizado[_ngcontent-%COMP%]   .alert-success[_ngcontent-%COMP%]{background:#fff;font-size:20px}.k-checkbox[_ngcontent-%COMP%]:disabled{border-color:#0000001a!important}.usar-saldo[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.k-form[_ngcontent-%COMP%]   .k-label[_ngcontent-%COMP%]{display:inline!important}.panel-finalizar[_ngcontent-%COMP%]{background:#fff;min-height:700px;border-top-left-radius:15px;border-top-right-radius:15px}.panel-finalizar[_ngcontent-%COMP%]   .card-body[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:600px}.panel-pedido[_ngcontent-%COMP%]{position:absolute;right:15px;top:30px;max-width:400px;background:#f7f8f8;border:1px solid rgba(204,204,204,.2)}  body{background-color:#f7f8f8!important}input.troco[_ngcontent-%COMP%]{max-width:215px}.k-dateinput-wrap[_ngcontent-%COMP%]{padding:0!important}.escolher[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:relative;min-width:230px;display:inline-block;min-height:40px;padding:10px;background:#f7f8f8;margin-left:10px}.escolher[_ngcontent-%COMP%]   span.auto[_ngcontent-%COMP%]{min-width:inherit}.escolher.cartoes[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:100%;background:rgba(247,248,248,.4392156863)}.escolher.cartoes[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]{background:#f7f8f8!important}.escolher.menor[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:190px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{width:120px}.escolher.troco[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:inline;top:2px;position:relative}.escolher[_ngcontent-%COMP%]   span.selecionado[_ngcontent-%COMP%]:before{border-left:5px solid #3483fa;content:"";position:absolute;top:0;bottom:0;left:0}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;vertical-align:middle}fieldset[_ngcontent-%COMP%]{border:1px solid #ccc;padding:10px 20px 20px;margin-top:20px;margin-left:12px;margin-right:12px}fieldset[_ngcontent-%COMP%]   legend[_ngcontent-%COMP%]{max-width:140px;font-size:1em}  .k-dialog-titlebar{background:#3A44B9}.preco[_ngcontent-%COMP%]{color:#6db31b}h5[_ngcontent-%COMP%]{font-size:1em!important}.pagarfidelidade[_ngcontent-%COMP%]{background:#f7f8f8;padding:10px;border-left:5px solid #367ef6;margin-left:10px}.pagarfidelidade.gendai[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{top:13px;position:relative}.chinainbox[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%]{background-color:#e52a28de!important;border-color:#e52a28!important}.carnaval[_ngcontent-%COMP%]   .btn-blue[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .btn-primary[_ngcontent-%COMP%]{background-color:#5b1da6!important;border-color:#5b1da6!important}  .k-item.k-state-default:not(.k-state-active) .k-link{color:#72747bc9!important}  .k-tabstrip>.k-content{overflow:hidden!important}']}),i})();const kUe=["menutopo"],IUe=["containerProdutos"];function EUe(i,o){1&i&&n._UZ(0,"div",8)}function PUe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1,' com "'),n.TgZ(2,"b"),n._uU(3),n.qZA(),n._uU(4,'"'),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.Oqu(t.termoBusca)}}function OUe(i,o){if(1&i&&(n.TgZ(0,"div",9),n._uU(1," Nenhum produto encontrado "),n.YNc(2,PUe,5,1,"span",6),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf",t.termoBusca)}}function NUe(i,o){if(1&i&&(n.TgZ(0,"div",9),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij(" ",t.msgBusca," ")}}function LUe(i,o){1&i&&(n.ynx(0),n._UZ(1,"i",18),n.BQk())}function RUe(i,o){1&i&&(n.ynx(0),n.TgZ(1,"h6"),n._uU(2,"Por que voc\xea pediu esse produto na mensagem"),n.qZA(),n.BQk())}function FUe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"app-produto-container",19),n.NdJ("onAbrirDetalhes",function(s){n.CHM(t);const l=n.oxw(5);return n.KtG(l.abraDetalhesProduto(s))}),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw(5);n.xp6(1),n.Q6J("produto",t)("exibirPrecos",r.exibirPrecos)("layoutHorizontal",r.layoutHorizontal)}}function BUe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,FUe,2,3,"ng-container",10),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngForOf",t)}}const HUe=function(i){return{categoria_ia:i}};function $Ue(i,o){if(1&i&&(n.TgZ(0,"div",12,13)(2,"h4",14),n.YNc(3,LUe,2,0,"ng-container",6),n._uU(4),n.qZA(),n.YNc(5,RUe,3,0,"ng-container",6),n._UZ(6,"hr"),n.TgZ(7,"div",15,16)(9,"div",17),n.YNc(10,BUe,2,1,"ng-container",10),n.qZA()()()),2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.ekj("ecommerce",t.nome===r.categoriaDestaque.nome||t.vitrine||t.destaque),n.Q6J("ngClass",n.VKq(8,HUe,t.ia)),n.xp6(2),n.Q6J("id",t.nome),n.xp6(1),n.Q6J("ngIf",t.ia),n.xp6(1),n.hij(" ",t.nome," "),n.xp6(1),n.Q6J("ngIf",t.ia),n.xp6(5),n.Q6J("ngForOf",r.listaItensPorCategoria[t.nome])}}function UUe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,$Ue,11,10,"div",11),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",(null==r.produtosPorCategoria[t.nome]?null:r.produtosPorCategoria[t.nome].length)>0)}}function YUe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,UUe,2,1,"div",10),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.categorias)}}function jUe(i,o){if(1&i&&(n.TgZ(0,"h4"),n._uU(1),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Oqu(t.nome)}}function ZUe(i,o){if(1&i&&n._UZ(0,"img",35),2&i){const t=n.oxw().$implicit;n.Q6J("src","/images/empresa/"+t.imagens[0].linkImagem,n.LSH)}}function VUe(i,o){if(1&i&&n._UZ(0,"img",35),2&i){const t=n.oxw().$implicit;n.Q6J("src","/images/produtos/"+(t.imagemCodigoDeBarras.linkImagem?t.imagemCodigoDeBarras.linkImagem:"carrinho-produtos.svg"),n.LSH)}}function zUe(i,o){1&i&&(n.TgZ(0,"span",36)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function GUe(i,o){if(1&i&&(n.TgZ(0,"i")(1,"label",39),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2).$implicit;n.xp6(2),n.hij("*At\xe9 ",t.qtdMaxima," por pedido")}}function qUe(i,o){1&i&&(n.TgZ(0,"span",40),n._uU(1," / kg "),n.qZA())}function JUe(i,o){if(1&i&&(n.TgZ(0,"h5",37),n.YNc(1,GUe,3,1,"i",6),n.YNc(2,qUe,2,0,"span",38),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw(4);n.xp6(1),n.Q6J("ngIf",t.qtdMaxima),n.xp6(1),n.Q6J("ngIf",r.exibirUnidade(t))}}function QUe(i,o){1&i&&(n.TgZ(0,"h5",41),n._uU(1,"Esgotado!"),n.qZA())}function WUe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"div",25),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.abraDetalhesProduto(l))}),n.TgZ(2,"div",26),n.YNc(3,ZUe,1,1,"img",27),n.YNc(4,VUe,1,1,"img",27),n.qZA(),n.TgZ(5,"div",28)(6,"div",29)(7,"h5",30),n.YNc(8,zUe,3,0,"span",31),n._uU(9),n.ALo(10,"currency"),n.qZA(),n.YNc(11,JUe,3,2,"h5",32),n.YNc(12,QUe,2,0,"h5",33),n.TgZ(13,"span"),n._uU(14),n.qZA(),n._UZ(15,"br"),n.TgZ(16,"span",34),n._uU(17),n.qZA()()()(),n.BQk()}if(2&i){const t=o.$implicit;n.xp6(3),n.Q6J("ngIf",t.imagens&&t.imagens.length>0),n.xp6(1),n.Q6J("ngIf",t.imagemCodigoDeBarras),n.xp6(4),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.hij(" ",n.xi3(10,8,t.valorMinimo?t.valorMinimo:t.preco,"BRL"),""),n.xp6(2),n.Q6J("ngIf",!t.indisponivel),n.xp6(1),n.Q6J("ngIf",t.indisponivel),n.xp6(2),n.Oqu(t.nome),n.xp6(3),n.Oqu(t.descricao)}}function KUe(i,o){if(1&i&&(n.TgZ(0,"div",24),n.YNc(1,WUe,18,11,"ng-container",10),n._UZ(2,"br"),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngForOf",t)}}function XUe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",21),n.YNc(1,jUe,2,1,"h4",6),n.TgZ(2,"cdk-virtual-scroll-viewport",22),n.NdJ("scrolledIndexChange",function(s){n.CHM(t);const l=n.oxw(2);return n.KtG(l.busqueMaisProdutos(s))}),n.YNc(3,KUe,3,1,"div",23),n.qZA()()}if(2&i){const t=o.$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",(null==r.listaItensPorCategoria[t.nome]?null:r.listaItensPorCategoria[t.nome].length)>0),n.xp6(2),n.Q6J("cdkVirtualForOf",r.listaItensPorCategoria[t.nome])}}function eYe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,XUe,4,2,"div",20),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.categorias)}}let tYe=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.router=t,this.constantsService=r,this.produtoService=s,this.dominiosService=l,this.detectorDevice=u,this.dialogService=p,this.activatedRoute=y,this.location=A,this.carrinhoService=w,this.carregando=!0,this.produtos=[],this.backup={produtos:[],categorias:[]},this.listaItensPorCategoria={},this.categorias=[],this.produtosPorCategoria={},this.veioParamsNoState=!1,this.isMobile=!1,this.destaques=[],this.nomeCategoriaDestaque="DESTAQUES",this.categoriaDestaque={id:2,nome:this.nomeCategoriaDestaque,imagem:null},this.categoriaMonteSuaPizza={id:1,nome:""},this.empresa={},this.exibirPrecos=!0,this.isDestroyed=!1,this.nomePagina=l.obtenhaRaizCardapio(),this.isMobile=this.detectorDevice.isMobile(),window.history.state.produtos&&(this.veioParamsNoState=!0),this.constantsService.empresa$.subscribe(I=>{I&&(this.layoutHorizontal="MERCADO"===I.tipoDeLoja||"ECOMMERCE"===I.tipoDeLoja)}),window.scroll(0,0)}setQtdePorLinha(){this.qtdPorLinha=Math.floor(this.containerProdutos.nativeElement.clientWidth/165),console.log("qtdePorLinha: "+this.qtdPorLinha)}ngOnInit(){window.history.state.produtos&&(this.veioParamsNoState=!0);let t=this.activatedRoute.snapshot.queryParams;this.idCategoria=t.cid?Number(t.cid):null,this.idProduto=t.c?Number(t.c):null,this.constantsService.empresa$.subscribe(r=>{if(!r||this.empresa.id)return;if(this.empresa=r,this.ehMercado="MERCADO"===r.tipoDeLoja,this.layoutHorizontal=this.ehMercado||"ECOMMERCE"===r.tipoDeLoja,r.nomeCategoriaDestaques&&!this.idCategoria){let u=this.categoriaDestaque.nome;this.categoriaDestaque.nome=r.nomeCategoriaDestaques,this.categoriaDestaque.imagem=r.imagemCategoriaDestaque,this.produtosPorCategoria[this.categoriaDestaque.nome]=this.produtosPorCategoria[u]}if(this.setQtdePorLinha(),this.ehMesa=window.history.state.ehMesa,!this.ehMesa){const u=this.carrinhoService.obtenhaPedido();u&&u.mesa&&(this.ehMesa=!0)}let s=window.history.state;!this.ehMercado&&s.categorias?(this.categorias=window.history.state.categorias,s.produtosPorCategoria?(this.produtos=s.produtos,this.produtosPorCategoria=s.produtosPorCategoria,this.agrupeCategorias(!0),this.carregando=!1):this.carregueProdutosDaTela()):this.carregueProdutosDaTela(),jn(window,"resize").subscribe(()=>{this.timer&&clearTimeout(this.timer),console.log("*** chamou rezize ***"),this.timer=setTimeout(()=>{this.isDestroyed?console.log("*** tela ja morreu***"):(console.log("*** REDIMENSIONANDO ***"),this.setQtdePorLinha(),this.carregando||this.reagrupeCategorias())},250)})})}carregueCardapioPorEventos(){this.evtCatalogo=this.constantsService.obtenhaCarpadioCompleto(this.obtenhaTipoCardapio(),this.empresa).subscribe(t=>{!t||(t.categorias&&(this.categorias=t.categorias,this.idCategoria&&this.categorias.length>1&&(this.categorias=this.categorias.filter(r=>r.id===this.idCategoria))),t.produtos&&(this.produtos=t.produtos,this.agrupeCategorias(),this.carregando=!1))})}obtenhaTipoCardapio(){return this.ehMesa?"MESA":"DELIVERY"}carregueProdutosDaTela(){if(this.empresa.cardapio&&this.empresa.cardapio.exibirSelecaoCategorias)return this.carregueCardapioPorEventos();let r=this.layoutHorizontal?50:null,s=this.layoutHorizontal?0:null;this.produtoService.listeAhVenda(this.empresa,this.obtenhaTipoCardapio(),this.layoutHorizontal,this.idCategoria||this.nomeCategoria,r,s,this.termoBusca).subscribe(l=>{this.produtos=l.produtos,this.categorias=l.categorias,this.agrupeCategorias(),this.carregando=!1})}getPosicao(t){let r=this.produtos.find(l=>l.categoria&&l.categoria.nome===t);return r?r.categoria.posicao:this.produtos.length}deveExibirTopo(){return!1}deveExibirMenu(){return!0}abraDetalhesProduto(t){this.window=t.montar?HE.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t):u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t)}onPopState(t){this.window&&this.window.close({back:!0})}exibirUnidade(t){return t.tipoDeVenda&&"Peso"===t.tipoDeVenda}ngOnDestroy(){this.isDestroyed=!0,this.evtCatalogo&&this.evtCatalogo.unsubscribe(),this.timer&&clearTimeout(this.timer)}exibaApenasProdutosDaCategoria(t,r=0){if(!t)return;this.produtosPorCategoria[t.nome]&&this.produtosPorCategoria[t.nome].length>r&&(this.produtos=this.produtosPorCategoria[t.nome]);const s={};s[t.nome]=this.produtos,this.produtosPorCategoria=s,this.categorias=[t]}ngAfterViewInit(){this.activatedRoute.queryParams.subscribe(t=>{this.menutopo.query=t.q}),this.layoutHorizontal&&this.viewport&&this.viewport.elementScrolled().subscribe(t=>{this.busqueMaisProdutos(t)})}apertouVoltar(t){this.dominiosService.vaParaHome()}agrupeCategorias(t=!1){if(this.backup.produtos.length||(this.backup={produtos:this.produtos,categorias:this.categorias}),t||(this.produtosPorCategoria=_.groupBy(this.produtos,r=>r.categoria?r.categoria.nome.trim():"Outros")),(!this.idCategoria||this.idCategoria===this.categoriaDestaque.id)&&p0.definaCategoriasFixas(this),this.reagrupeCategorias(),this.carregando=!1,this.idProduto){let r=this.produtos.find(s=>s.id===this.idProduto);r&&this.abraDetalhesProduto(r)}}reagrupeCategorias(){console.log("reagrupar categorias..."),this.listaItensPorCategoria={};try{if(this.nomeCategoria)console.log("** definiu o nome da categoria **"),this.listaItensPorCategoria[this.nomeCategoria]=this.agrupeDeXemX(this.produtosPorCategoria[this.nomeCategoria],this.qtdPorLinha);else for(let t of this.categorias)this.listaItensPorCategoria[t.nome]=this.agrupeDeXemX(this.produtosPorCategoria[t.nome],this.qtdPorLinha)}catch(t){console.error(t)}}busqueNaTela(t){this.produtos=t?this.backup.produtos.filter(r=>r.nome.toUpperCase().indexOf(t.toUpperCase())>=0):this.backup.produtos,this.agrupeCategorias()}busqueComFiltro(t){if(this.carregando=!0,!this.layoutHorizontal)return this.busqueNaTela(t);this.produtoService.listeAhVenda(this.empresa,this.ehMesa?"MESA":"DELIVERY",this.layoutHorizontal,this.idCategoria||this.nomeCategoria,50,0,t).subscribe(r=>{this.produtos=r.produtos,this.categorias=r.categorias,this.agrupeCategorias(),console.log("** LISTA ITENS POR CATEGORIA **",this.listaItensPorCategoria)})}busqueMaisProdutos(t){if(!this.qtdPorLinha||!this.layoutHorizontal||this.valorBuscado)return;const r=this.viewport.getRenderedRange().end,s=this.viewport.getDataLength();if(console.log(`${r}, '>=', ${s}`),console.log("Quantidade de produtos:",this.produtos.length),r===s){if(console.log("agora deveria procurar pr\xf3xima p\xe1gina: "+this.qtdPorLinha),this.carregandoPagina)return void console.log("n\xe3o vai buscar porque j\xe1 est\xe1 buscando");this.carregandoPagina=!0,console.log("Categoria sendo buscada: "+this.nomeCategoria),this.produtoService.listeAhVenda(this.empresa,this.ehMesa?"MESA":"DELIVERY",this.layoutHorizontal,this.idCategoria||this.nomeCategoria,50,this.produtos.length).subscribe(l=>{let u=[];if(l&&(u=l.produtos),0===u.length)return console.log("n\xe3o tem mais produtos a adicionar"),void(this.carregandoPagina=!1);if(this.produtos[this.produtos.length-1].id===u[u.length-1].id)return void(this.carregandoPagina=!1);this.produtos=this.produtos.concat(u),this.produtosPorCategoria=_.groupBy(this.produtos,A=>A.categoria?A.categoria.nome:"Outros"),this.listaItensPorCategoria[this.nomeCategoria]=this.agrupeDeXemX(this.produtosPorCategoria[this.nomeCategoria],this.qtdPorLinha);for(let A of u)if(A.camposAdicionais&&A.camposAdicionais.length>0){let w=A.preco;for(let I of A.camposAdicionais)if(I.obrigatorio){let P=I.opcoesDisponiveis[0];for(let F of I.opcoesDisponiveis)F.valor<P.valor&&(P=F);w+=P.valor}w>A.preco&&(A.valorMinimo=w)}const p={},y={};this.produtos.map(A=>{A.categoria&&(p[A.categoria.id]=A.categoria,y[A.categoria.nome]=A.categoria)}),this.carregandoPagina=!1})}}agrupeDeXemX(t,r=6,s=0,l=[]){let u=[...l],p=s;if(t){u.length>0&&u[u.length-1].length<r&&(p=this.insiraProdutosNoItem(p,t,r,u[u.length-1]));for(let y=p;y<t.length;y+=r){let A=[];this.insiraProdutosNoItem(y,t,r,A),u.push(A)}return u}}insiraProdutosNoItem(t,r,s,l){let u,y,p=s-l.length;for(u=t,y=t;u<r.length&&y<t+p;u++)(r[u].preco>0||r[u].valorMinimo>0)&&(l.push(r[u]),y++);return u}testeBusca(t){this.carregando||(delete this.msgBusca,this.termoBusca=t,this.timerbusca&&clearTimeout(this.timerbusca),this.termoBusca?(this.valorBuscado=t,this.timerbusca=setTimeout(()=>{this.layoutHorizontal&&this.termoBusca.length<3?this.msgBusca="informe pelo menos 3 letras":this.busqueComFiltro(t)},900)):this.carregueProdutosDaTela())}nenhumProduto(){return!(this.carregando||this.produtos.length&&Object.keys(this.listaItensPorCategoria).length)}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(gi),n.Y36(Cl),n.Y36(Eo),n.Y36(zo),n.Y36(Na),n.Y36(ci),n.Y36(_n),n.Y36(Oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-busca-produtos"]],viewQuery:function(t,r){if(1&t&&(n.Gf(kUe,5),n.Gf(IUe,7),n.Gf(ix,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.menutopo=s.first),n.iGM(s=n.CRH())&&(r.containerProdutos=s.first),n.iGM(s=n.CRH())&&(r.viewport=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("popstate",function(l){return r.onPopState(l)},!1,n.Jf7)},decls:10,vars:10,consts:[[3,"busca","focarBusca","evtVoltar","mudouValorBusca"],["menutopo",""],[2,"position","relative","padding","0"],["containerProdutos",""],["class","k-i-loading ml-1 mr-1 centralizado",4,"ngIf"],["class","alert alert-info",4,"ngIf"],[4,"ngIf"],[1,"mb-3"],[1,"k-i-loading","ml-1","mr-1","centralizado"],[1,"alert","alert-info"],[4,"ngFor","ngForOf"],["class","mb-3 secaoCategoria","style","position: relative;",3,"ngClass","ecommerce",4,"ngIf"],[1,"mb-3","secaoCategoria",2,"position","relative",3,"ngClass"],["secaoCategoria",""],[1,"categoria","font-weight-bold",3,"id"],[1,"produtos_categoria"],["divProdutosCategoria",""],[1,"scroll_categoria"],[1,"fa","fa-magic"],[3,"produto","exibirPrecos","layoutHorizontal","onAbrirDetalhes"],["class","container-viewport",4,"ngFor","ngForOf"],[1,"container-viewport"],["itemSize","220",3,"scrolledIndexChange"],["class","row",4,"cdkVirtualFor","cdkVirtualForOf"],[1,"row"],[1,"col","produto","pt-2","pb-2",2,"width","150px","display","inline-block",3,"click"],[1,"justify-content-center","align-items-center",2,"width","128px","height","92px","margin-bottom","4px"],["class","img img-fluid","alt","Imagem",3,"src",4,"ngIf"],[1,"media"],[1,"media-body","pt-0","cinco-linhas"],[1,"mt-0","mb-1","font-15"],["class"," text-muted font-12",4,"ngIf"],["class","preco font-14",4,"ngIf"],["class","text-danger",4,"ngIf"],[1,"text-muted"],["alt","Imagem",1,"img","img-fluid",3,"src"],[1,"text-muted","font-12"],[1,"preco","font-14"],["class","text-muted font-11",4,"ngIf"],[1,"text-muted",2,"font-size","10px"],[1,"text-muted","font-11"],[1,"text-danger"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-loja",0,1),n.NdJ("evtVoltar",function(l){return r.apertouVoltar(l)})("mudouValorBusca",function(l){return r.testeBusca(l)}),n.qZA(),n.TgZ(2,"div",2,3),n.YNc(4,EUe,1,0,"div",4),n.YNc(5,OUe,3,1,"div",5),n.YNc(6,NUe,2,1,"div",5),n.YNc(7,YUe,2,1,"ng-container",6),n.YNc(8,eYe,2,1,"ng-container",6),n.qZA(),n._UZ(9,"div",7)),2&t&&(n.Q6J("busca",!0)("focarBusca",!1),n.xp6(2),n.Gre("container mt-3 mercado ",null==r.empresa?null:r.empresa.tema,""),n.xp6(2),n.Q6J("ngIf",r.carregando),n.xp6(1),n.Q6J("ngIf",r.nenhumProduto()),n.xp6(1),n.Q6J("ngIf",!r.carregando&&r.msgBusca),n.xp6(1),n.Q6J("ngIf",!r.nomeCategoria&&r.listaItensPorCategoria),n.xp6(1),n.Q6J("ngIf",r.nomeCategoria&&r.listaItensPorCategoria))},dependencies:[gt,Bt,Ge,DD,J8,ix,RR,Vu,Jo],styles:['.produtos_categoria[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative}.k-i-loading[_ngcontent-%COMP%]{font-size:40px;height:90px;position:absolute;top:-40px;left:45%}.remova_padding[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.bg-light[_ngcontent-%COMP%]{background-color:#f7f8f8!important}@media (min-width: 1025px){.topo[_ngcontent-%COMP%]{margin-top:.75rem!important}}.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;padding:0;position:fixed;z-index:99999;background:#f1f5f7}.container_total[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.preco[_ngcontent-%COMP%]{color:#6db31b}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.produto[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]{padding-top:15px;padding-left:5px}.categoria-nome[_ngcontent-%COMP%]{text-transform:uppercase;font-weight:600}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:128px;max-height:92px;display:block;margin:0 auto}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.container_selo[_ngcontent-%COMP%]{position:relative}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.faltam_selos[_ngcontent-%COMP%]{color:#3e48bc;margin-bottom:10px}.container-scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;margin-right:-20px}.container-scroll[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.container-scroll[_ngcontent-%COMP%]   .caixa_brinde[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;margin-bottom:10px;height:250px!important;margin-left:-3px;margin-right:-3px;padding-top:5px;background:white}.container-scroll[_ngcontent-%COMP%]   .foto_brinde[_ngcontent-%COMP%]{width:initial;width:100%}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.container-scroll[_ngcontent-%COMP%]   .preco_troca[_ngcontent-%COMP%]{font-size:11px;font-weight:400;line-height:1em}.container-scroll[_ngcontent-%COMP%]   .preco_troca.nao_atingiu[_ngcontent-%COMP%]{color:#f67682}.container-scroll[_ngcontent-%COMP%]   .preco_troca.atingiu[_ngcontent-%COMP%]{color:#6db31b;margin-right:-20px}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.container_imagem[_ngcontent-%COMP%]{overflow:hidden;display:flex;max-width:100%}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px;margin-left:7px;width:100%}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.container-fotos[_ngcontent-%COMP%]{background:black}.container_foto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:128px;height:92px;-o-object-fit:cover;object-fit:cover;display:block;margin:0 auto}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.container-scroll[_ngcontent-%COMP%]{overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial;white-space:inherit;-webkit-overflow-scrolling:touch;margin-right:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:100%}@media (max-width: 992px){.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}}  .esconder .nav-tabs{display:none!important}  .esconder .mat-tab-header{display:none!important}.font-11[_ngcontent-%COMP%]{font-size:11px}.font-12[_ngcontent-%COMP%]{font-size:12px}@media (min-width: 1025px){.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:30px;display:none}}.cinco-linhas[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical}cdk-virtual-scroll-viewport[_ngcontent-%COMP%]{height:calc(100vh - 200px)}.mercado[_ngcontent-%COMP%]   .secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%], .mercado.secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{display:block}.mercado[_ngcontent-%COMP%]   .secaoCategoria.scroll_fim[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{display:none}.mercado[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]{width:240px;min-height:250px;border:solid 1px #efefef;border-radius:5px;padding:5px;margin:5px;padding-bottom:15px!important;margin-bottom:0!important}.mercado[_ngcontent-%COMP%]   .produto.destacado[_ngcontent-%COMP%]   .container_foto[_ngcontent-%COMP%]{height:145px;display:flex;align-items:center;justify-content:center}.mercado[_ngcontent-%COMP%]   .produto.destacado[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{margin-top:10px}.mercado[_ngcontent-%COMP%]   .produto.destacado[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{margin-top:3px}.mercado[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{position:absolute;display:block;padding:6px 12px;border:solid 1px #e2e2e2;background:#fff;border-radius:100px;font-size:16px;color:#2f2f2f;cursor:pointer;z-index:1;top:130px}.mercado[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{right:-10px}.mercado[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{left:-15px;display:none}.mercado[_ngcontent-%COMP%]   .ver_todos[_ngcontent-%COMP%]{position:absolute;right:10px;top:0;display:block}@media only screen and (max-width: 768px){.mercado[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{overflow-x:auto}.mercado[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none}}',".scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;grid-gap:15px;gap:15px}@media only screen and (max-width: 768px){.scroll_categoria[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}.ecommerce[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{overflow-x:auto}.ecommerce[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none}}  .natal h4.categoria{color:#730101!important}  .natal .tab_categoria{color:#d39797!important}  .natal .tab_categoria.active{color:#730101!important;border-bottom:2px solid #730101!important}  .natal .nome-produto{color:#730101!important}  .arraia h4.categoria{color:#ce2400!important}  .arraia .tab_categoria{color:#5b5764!important}  .arraia .tab_categoria.active{color:#ce2400!important;border-bottom:2px solid #CE2400!important}  .arraia .nome-produto{color:#ce2400!important}  .copa_2022 h4.categoria{color:#1a7200!important}  .copa_2022 .ver_todos{display:none}  .copa_2022 .ver_todos a{background:#fff;color:#1a7200;border:1px solid #1a7200!important;border-radius:7px;padding-left:5px;padding-right:5px;font-size:14px}  .copa_2022 .nav-tabs{border-bottom:solid 1px #ffd80e!important}  .copa_2022 .tab_categoria{color:#9abe90!important}  .copa_2022 .tab_categoria.active{color:#1a7200!important;border-bottom:2px solid #ffd80e!important}  .copa_2022 .nome-produto{color:#1a7200!important}  .pascoa h4.categoria{color:#730101!important}  .pascoa .tab_categoria{color:#8a6757!important}  .pascoa .tab_categoria.active{color:#fb1e41!important;border-bottom:2px solid #FB1E41!important}  .pascoa .nome-produto{color:#730101!important}  .ano_novo h4.categoria{color:#030303!important}  .ano_novo .tab_categoria{color:#7f7f7f!important}  .ano_novo .tab_categoria.active{color:#030303!important;border-bottom:2px solid #f1dfa5!important}  .ano_novo .nav-bordered{border-bottom-width:1px!important}  .dia_maes h4.categoria{color:#fd6c67!important}  .dia_maes .tab_categoria{color:#8a6757!important}  .dia_maes .tab_categoria.active{color:#fd6c67!important;border-bottom:2px solid #F3ADAC!important}  .dia_maes .nome-produto{color:#730101!important}.carnaval[_ngcontent-%COMP%]   span.h4[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link[_ngcontent-%COMP%]{color:#49b8b8!important}.carnaval[_ngcontent-%COMP%]   .nav-tabs[_ngcontent-%COMP%]   .nav-link.active[_ngcontent-%COMP%]{color:#5b1da6!important}.carnaval[_ngcontent-%COMP%]   h4.categoria[_ngcontent-%COMP%], .carnaval[_ngcontent-%COMP%]   a.categoria[_ngcontent-%COMP%]{color:#49b8b8!important}  .black_friday_2022 hr{border-top:solid 1px #676767}  .black_friday_2022 .carrinho_desktop{background:#0e0e0e!important}  .black_friday_2022 .header{background:#0e0e0e}  .black_friday_2022 span.h4{color:#b57e2b!important}  .black_friday_2022 h4.categoria{color:#b57e2b!important}  .black_friday_2022 .tab_categoria{color:#676767!important}  .black_friday_2022 .tab_categoria.active{color:#b57e2b!important;border-bottom:2px solid #b57e2b!important;background-color:transparent!important}  .black_friday_2022 .produtos_categoria .produto{background:transparent!important;border:solid 1px #1a1a1a!important}  .black_friday_2022 .nav-tabs{background:#0e0e0e;box-shadow:none}  .black_friday_2022 .nav-tabs .nav-link.active,   .black_friday_2022   .nav-tabs .nav-item.show .nav-link{background:#fff;font-weight:700}  .black_friday_2022 .nome-produto{color:#f6a844!important}  .dia_pais span.h4{color:#10bde9}  .dia_pais h4.categoria{color:#10bde9!important}  .dia_pais .tab_categoria{color:#10bde9!important}  .dia_pais .tab_categoria.active{color:#00d!important;border-bottom:2px solid #0000dd!important}  .dia_pais .nome-produto{color:#10bde9!important}  .dia_namorados h4.categoria{color:#b264da!important}  .dia_namorados .tab_categoria{color:#b264da!important}  .dia_namorados .tab_categoria.active{color:#d64860!important;border-bottom:2px solid #F3ADAC!important}  .dia_namorados .nome-produto{color:#730101!important}.categoria_ia[_ngcontent-%COMP%]{padding:10px 15px;background:#ccc;border:solid 1px #efefef;border-radius:5px;background:#faf7f7}  .dialog-produto-ia{overflow-x:hidden;position:static;position:initial}  .mobile .dialog-produto-ia{padding:12px}  .dialog-produto-ia{padding:0!important}  .tema-personalizado hr{border-top:solid 1px color-mix(in srgb,var(--cor-fundo-site) 80%,white 20%)!important}  .tema-personalizado .carrinho_desktop{background:#0e0e0e!important}  .tema-personalizado .header{background:#fff;background:var(--cor-fundo-site, #fff)}  .tema-personalizado span.h4{color:#333!important;color:var(--cor-texto-primaria, #333)!important}  .tema-personalizado h4.categoria{color:#333!important;color:var(--cor-texto-primaria, #333)!important}  .tema-personalizado .tab_categoria{color:#999!important;color:var(--cor-texto, #999)!important}  .tema-personalizado .tab_categoria.active{color:#333!important;color:var(--cor-texto-primaria, #333)!important;border-bottom:2px solid #333!important;border-bottom:2px solid var(--cor-texto-primaria, #333)!important;background-color:transparent!important}  .tema-personalizado .produtos_categoria .produto{background:transparent!important;border:solid 1px #999!important;border:solid 1px var(--cor-fundo-site, #999)!important}  .tema-personalizado .nav-tabs{background:#fff;background:var(--cor-fundo-site, #fff);box-shadow:none}  .tema-personalizado .nav-tabs .nav-link.active,   .tema-personalizado   .nav-tabs .nav-item.show .nav-link{background:#fff;background:var(--cor-fundo-site, #fff);font-weight:700}  .tema-personalizado .nome-produto{color:#333!important;color:var(--cor-texto-primaria, #333)!important}"]}),i})();const nYe=["painelLogin"];function iYe(i,o){if(1&i&&(n.TgZ(0,"h4",16),n._uU(1),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.hij("Ol\xe1, ",null==t.usuario||null==t.usuario.nome?null:t.usuario.nome.split(" ")[0],"")}}function oYe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"i",30),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.recarregueSaldo(l.usuario,s))}),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("hidden",t.carregandoSaldo)}}function rYe(i,o){1&i&&n._UZ(0,"i",31)}function aYe(i,o){if(1&i&&n._UZ(0,"i",32),2&i){const t=n.oxw(3);n.s9C("title",t.usuario.erroFidelidade)}}function sYe(i,o){if(1&i&&(n.ynx(0),n._uU(1),n.TgZ(2,"span",25)(3,"b"),n._uU(4),n.qZA()(),n.TgZ(5,"span",26),n.YNc(6,oYe,1,1,"i",27),n.YNc(7,rYe,1,0,"i",28),n.YNc(8,aYe,1,1,"i",29),n.qZA(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.usuario.idCartao?"Saldo":"Cashback"," "),n.xp6(3),n.hij(" ",t.usuario.saldoDescricao,""),n.xp6(2),n.Q6J("ngIf",!t.usuario.erroFidelidade),n.xp6(1),n.Q6J("ngIf",t.carregandoSaldo),n.xp6(1),n.Q6J("ngIf",t.usuario.erroFidelidade)}}function lYe(i,o){1&i&&(n.TgZ(0,"span",33)(1,"b"),n._uU(2,"Atualize seu cadastro"),n.qZA()())}function cYe(i,o){1&i&&(n.TgZ(0,"span",33)(1,"b"),n._uU(2,"Quero ganhar cashback"),n.qZA()())}function dYe(i,o){1&i&&(n.TgZ(0,"button",34),n._uU(1,"extrato"),n.qZA())}function uYe(i,o){if(1&i&&n._UZ(0,"img",35),2&i){const t=n.oxw(2);n.s9C("src",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo,n.LSH)}}const pYe=function(i){return{gendai:i}};function hYe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",17)(1,"a",18),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.verDetalhesSaldo(s.usuario))}),n.TgZ(2,"h5",19),n.YNc(3,sYe,9,5,"ng-container",20),n.YNc(4,lYe,3,0,"span",21),n.YNc(5,cYe,3,0,"span",21),n.YNc(6,dYe,2,0,"button",22),n.TgZ(7,"small",23),n._uU(8),n.qZA(),n.YNc(9,uYe,1,1,"img",24),n.qZA()()()}if(2&i){const t=n.oxw();n.Q6J("ngClass",n.VKq(7,pYe,2===t.empresa.idRede)),n.xp6(3),n.Q6J("ngIf",!t.usuario.atualizarCadastro&&!t.usuario.fazerOptinUsarSaldo&&!t.usuario.fazerOptin),n.xp6(1),n.Q6J("ngIf",t.usuario.atualizarCadastro),n.xp6(1),n.Q6J("ngIf",t.usuario.fazerOptinUsarSaldo||t.usuario.fazerOptin),n.xp6(1),n.Q6J("ngIf",t.usuario.idCartao),n.xp6(2),n.hij(" ",t.usuario.descricaoProgramaFidelidade,""),n.xp6(1),n.Q6J("ngIf",null==t.empresa.integracaoFidelidade?null:t.empresa.integracaoFidelidade.logo)}}let gYe=(()=>{class i{constructor(t,r,s,l,u){this.autorizacao=t,this.carrinhoService=r,this.router=s,this.dominiosService=l,this.constantsService=u,this.empresa={},this.usuario={},this.carregandoSaldo=!1,this.usuario=t.getUsuario()||{},this.usuario.telefone||this.dominiosService.vaParaLogin(location.pathname),localStorage.recarregarSaldo&&this.recarregueSaldo(this.usuario),this.constantsService.empresa$.subscribe(p=>{p&&(this.empresa=p)})}ngOnInit(){}deveExibirTopo(){return!1}deveExibirMenu(){return!0}facaLogout(t){t.stopPropagation(),t.preventDefault(),this.autorizacao.logout().then(r=>{r?alert(r):(this.carrinhoService.limpeContatoPedido(),this.dominiosService.vaParaHome())})}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}recarregueSaldo(t,r=null){var s=this;return sn(function*(){r&&(r.stopPropagation(),r.preventDefault()),s.carregandoSaldo=!0,yield s.autorizacao.atualizeSaldoFidelidade(t),s.carregandoSaldo=!1,delete localStorage.recarregarSaldo})()}verDetalhesSaldo(t){return t.atualizarCadastro||t.fazerOptinUsarSaldo||t.fazerOptin?this.dominiosService.vaParaCadastro(window.location.pathname,{contato:t}):t.idCartao&&window.open(String(`/cliente/${t.telefone}/extrato/${t.token}`)),!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(Oi),n.Y36(Pn),n.Y36(Eo),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-perfil"]],viewQuery:function(t,r){if(1&t&&n.Gf(nYe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.painelLogin=s.first)}},decls:36,vars:3,consts:[[3,"titulo"],["class","mt-3",4,"ngIf"],["class","saldo-info",3,"ngClass",4,"ngIf"],[1,"menu-itens"],[1,"item-menu"],["routerLink","/loja/meusPedidos",1,""],[1,"icon"],[1,"fe-shopping-bag"],[1,"arrow"],[1,"fe-chevron-right"],["routerLink","/loja/meus-dados",1,""],[1,"fe-edit"],["routerLink","/loja/configuracoes",1,""],[1,"fas","fa-wrench"],["href","#",1,"",3,"click"],[1,"fe-log-out"],[1,"mt-3"],[1,"saldo-info",3,"ngClass"],[3,"click"],[1,""],[4,"ngIf"],["class","text-primary",4,"ngIf"],["class","btn btn-blue btn-sm btn-small ml-1",4,"ngIf"],[1,"text-muted","mt-1","d-block"],["class","ml-2",3,"src",4,"ngIf"],[1,"font-18"],[1,"ml-1",2,"top","-3px","position","relative"],["class","k-icon k-i-reload   cpointer","kendoTooltip","","title","atualizar saldo",3,"hidden","click",4,"ngIf"],["class","k-icon k-i-loading",4,"ngIf"],["class","fas fa-exclamation-triangle text-warning","kendoTooltip","",3,"title",4,"ngIf"],["kendoTooltip","","title","atualizar saldo",1,"k-icon","k-i-reload","cpointer",3,"hidden","click"],[1,"k-icon","k-i-loading"],["kendoTooltip","",1,"fas","fa-exclamation-triangle","text-warning",3,"title"],[1,"text-primary"],[1,"btn","btn-blue","btn-sm","btn-small","ml-1"],[1,"ml-2",3,"src"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-loja",0),n.YNc(1,iYe,2,1,"h4",1),n.YNc(2,hYe,10,9,"div",2),n.TgZ(3,"nav",3)(4,"div",4)(5,"a",5)(6,"span",6),n._UZ(7,"i",7),n.qZA(),n.TgZ(8,"span"),n._uU(9," Pedidos "),n.qZA(),n.TgZ(10,"span",8),n._UZ(11,"i",9),n.qZA()()(),n.TgZ(12,"div",4)(13,"a",10)(14,"span",6),n._UZ(15,"i",11),n.qZA(),n.TgZ(16,"span"),n._uU(17," Meus dados "),n.qZA(),n.TgZ(18,"span",8),n._UZ(19,"i",9),n.qZA()()(),n.TgZ(20,"div",4)(21,"a",12)(22,"span",6),n._UZ(23,"i",13),n.qZA(),n.TgZ(24,"span"),n._uU(25," Configura\xe7\xf5es "),n.qZA(),n.TgZ(26,"span",8),n._UZ(27,"i",9),n.qZA()()(),n.TgZ(28,"div",4)(29,"a",14),n.NdJ("click",function(l){return r.facaLogout(l)}),n.TgZ(30,"span",6),n._UZ(31,"i",15),n.qZA(),n.TgZ(32,"span"),n._uU(33," Sair "),n.qZA(),n.TgZ(34,"span",8),n._UZ(35,"i",9),n.qZA()()()()),2&t&&(n.Q6J("titulo","Minha \xc1rea"),n.xp6(1),n.Q6J("ngIf",r.usuario.nome),n.xp6(1),n.Q6J("ngIf",r.usuario.saldoFidelidade>=0))},dependencies:[gt,Ge,P_,Vu],styles:[".saldo-info[_ngcontent-%COMP%]{border:1px solid rgba(204,204,204,.3607843137);background:#f7f7f7;margin-left:-25px;padding-left:25px;margin-right:-25px;border-left:none;border-right:none;padding-top:5px;padding-bottom:5px;position:relative}.saldo-info[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:40px;position:absolute;right:15px;top:10px}.saldo-info.gendai[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:20px;top:25px}.menu-itens[_ngcontent-%COMP%]{min-width:320px;font-size:16px;margin-left:-12px;margin-right:-12px}.menu-itens[_ngcontent-%COMP%]   .item-menu[_ngcontent-%COMP%]{padding:12px 20px}.menu-itens[_ngcontent-%COMP%]   .item-menu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:inherit;cursor:default;background-color:transparent;position:relative;display:flex;align-items:center;padding:0;text-decoration:none;height:60px}.menu-itens[_ngcontent-%COMP%]   .item-menu[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0 20px 0 0}.menu-itens[_ngcontent-%COMP%]   .item-menu[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:20px;top:2px;position:relative}.menu-itens[_ngcontent-%COMP%]   .item-menu[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{margin:0 0 0 auto}"]}),i})();function fYe(i,o){1&i&&(n.TgZ(0,"span"),n._UZ(1,"img",3),n.TgZ(2,"p",4),n._uU(3,"Voc\xea n\xe3o tem nenhum pedido"),n.qZA(),n.TgZ(4,"a",5),n._uU(5," Ver produtos da loja"),n.qZA()())}function mYe(i,o){if(1&i&&(n.TgZ(0,"a",15),n._uU(1," ver pedido"),n.qZA()),2&i){const t=n.oxw().$implicit;n.MGl("routerLink","/loja/exibir-pedido/",t.guid,"")}}function _Ye(i,o){if(1&i&&(n.TgZ(0,"a",15),n._uU(1," acompanhar pedido"),n.qZA()),2&i){const t=n.oxw().$implicit;n.MGl("routerLink","/loja/pedido/acompanhar/",t.guid,"")}}const bYe=function(i,o){return{"badge-danger":i,"badge-blue":o}};function vYe(i,o){if(1&i&&(n.TgZ(0,"div",8)(1,"span",9)(2,"b"),n._uU(3),n.qZA()(),n.TgZ(4,"span",10),n._uU(5),n.qZA(),n.TgZ(6,"span",11)(7,"b"),n._uU(8),n.ALo(9,"currency"),n.qZA()(),n.TgZ(10,"p",12),n._uU(11),n.TgZ(12,"span",13),n._uU(13),n.qZA()(),n.YNc(14,mYe,2,1,"a",14),n.YNc(15,_Ye,2,1,"a",14),n.qZA()),2&i){const t=o.$implicit;n.xp6(3),n.hij("#",t.codigo,""),n.xp6(1),n.Q6J("ngClass",n.WLB(11,bYe,t.cancelado,!t.cancelado)),n.xp6(1),n.hij(" ","Novo"===t.status?"Confirmado":t.status,""),n.xp6(3),n.Oqu(n.xi3(9,8,t.total,"BRL")),n.xp6(3),n.hij("",t.horarioDescricao," "),n.xp6(2),n.Oqu(t.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.aguardandoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.aguardandoPagamentoOnline)}}function yYe(i,o){if(1&i&&(n.TgZ(0,"span",6),n.YNc(1,vYe,16,14,"div",7),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.pedidos)}}let CYe=(()=>{class i{constructor(t){this.pedidosService=t,this.pedidos=[],this.carregou=!1}ngOnInit(){this.pedidosService.listePedidos(0,50).then(t=>{this.carregou=!0,this.pedidos=t})}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(gm))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-pedidos-loja"]],decls:3,vars:3,consts:[[3,"titulo"],[4,"ngIf"],["class","mt-4 mb-2",4,"ngIf"],["src","/assets/loja/sem-pedidos.png",1,"centralizado","text-muted","mt-3","mb-3"],[1,"text-center","mt-3"],["routerLink","/loja/index",1,"btn","btn-light","centralizado"],[1,"mt-4","mb-2"],["class","d-pedidos",4,"ngFor","ngForOf"],[1,"d-pedidos"],[1,"text-dark"],[1,"badge","ml-2","mt-1",3,"ngClass"],[1,"float-right","preco"],[1,"text-muted"],[1,"badge","badge-light","ml-2"],["class","text-blue",3,"routerLink",4,"ngIf"],[1,"text-blue",3,"routerLink"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-loja",0),n.YNc(1,fYe,6,0,"span",1),n.YNc(2,yYe,2,1,"span",2)),2&t&&(n.Q6J("titulo","Pedidos j\xe1 realizados"),n.xp6(1),n.Q6J("ngIf",r.carregou&&!r.pedidos.length),n.xp6(1),n.Q6J("ngIf",r.carregou&&r.pedidos.length))},dependencies:[gt,Bt,Ge,P_,Vu,Jo],styles:[".btn[_ngcontent-%COMP%]{width:200px}.centralizado[_ngcontent-%COMP%]{margin:0 auto;display:block;text-align:center}.btn-light[_ngcontent-%COMP%]{background-color:#f7f8f8}img[_ngcontent-%COMP%]{width:250px}.d-pedidos[_ngcontent-%COMP%]{padding:20px 20px 20px 0;border-bottom:2px solid #e8e8e8}.d-pedidos[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:0}.d-pedidos[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{color:#6db31b}.d-pedidos[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{top:-3px;position:relative}@media (max-width: 900px){.d-pedidos[_ngcontent-%COMP%]{font-size:15px;padding-right:5px}}"]}),i})();function AYe(i,o){1&i&&(n.TgZ(0,"div",4)(1,"div",5),n._UZ(2,"i",6),n.TgZ(3,"p"),n._uU(4," N\xe3o encontrado! "),n.qZA()()())}const xYe=function(i){return{"alert-success":i}};function TYe(i,o){if(1&i&&(n.TgZ(0,"div",35),n._UZ(1,"i",36),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(2,xYe,"Entregue"==t.pedido.status)),n.xp6(2),n.hij(" Seu pedido foi entregue em ",t.pedido.horarioDescricao," ")}}const SYe=function(i){return{"alert-danger":i}};function wYe(i,o){if(1&i&&(n.TgZ(0,"div",37),n._UZ(1,"i",38),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("ngClass",n.VKq(2,SYe,t.pedido.cancelado)),n.xp6(2),n.hij(" Pedido ","Novo"===t.pedido.status?"Confirmado":t.pedido.status," ")}}function MYe(i,o){if(1&i&&(n.TgZ(0,"span",43),n._uU(1),n.qZA()),2&i){const t=o.last,r=o.$implicit;n.xp6(1),n.AsE(" ",r.descricao,"",t?"":", "," ")}}function DYe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,MYe,2,2,"span",42),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.adicionaisImprirmir)}}function kYe(i,o){if(1&i&&(n.TgZ(0,"span",44),n._UZ(1,"br"),n._uU(2,"obs.:"),n.TgZ(3,"i"),n._uU(4),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(4),n.hij('"',t.observacao,'"')}}function IYe(i,o){if(1&i&&(n.TgZ(0,"div",39)(1,"div",21)(2,"div",17)(3,"h5",18)(4,"span"),n._uU(5),n.qZA(),n._uU(6),n.qZA(),n._uU(7),n.YNc(8,DYe,2,1,"div",3),n.YNc(9,kYe,5,1,"span",40),n.qZA(),n.TgZ(10,"h5",41),n._uU(11),n.ALo(12,"currency"),n.qZA()()()),2&i){const t=o.$implicit;n.xp6(5),n.hij("",t.qtde," X"),n.xp6(1),n.hij(" ",t.descricao,""),n.xp6(1),n.hij(" ",t.produto.descricao," "),n.xp6(1),n.Q6J("ngIf",null==t.adicionaisImprirmir?null:t.adicionaisImprirmir.length),n.xp6(1),n.Q6J("ngIf",t.observacao),n.xp6(2),n.hij("",n.xi3(12,6,t.total,"BRL")," ")}}function EYe(i,o){1&i&&n._UZ(0,"div",49)}function PYe(i,o){if(1&i&&(n.TgZ(0,"div",50)(1,"h5",51),n._UZ(2,"i",52),n._uU(3," Endere\xe7o Escolhido"),n.qZA(),n.TgZ(4,"h5"),n._uU(5),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(5),n.hij(" ",t.pedido.enderecoCompleto," ")}}function OYe(i,o){if(1&i&&(n.TgZ(0,"div",55)(1,"div",17)(2,"h5",18)(3,"span"),n._uU(4,"Meus dados"),n.qZA()()(),n.TgZ(5,"h5",56)(6,"strong"),n._uU(7),n.qZA(),n._UZ(8,"br"),n.TgZ(9,"label",57),n._uU(10),n.ALo(11,"telefone"),n.qZA()()()),2&i){const t=n.oxw(4);n.xp6(7),n.Oqu(t.pedido.cliente.nome),n.xp6(3),n.Oqu(n.lcZ(11,2,t.pedido.cliente.telefone))}}function NYe(i,o){1&i&&(n.TgZ(0,"div")(1,"h5"),n._uU(2,"Meus dados"),n.qZA(),n.TgZ(3,"div",58)(4,"button",59),n._uU(5,"Informe nome e telefone"),n.qZA()()())}function LYe(i,o){if(1&i&&(n.TgZ(0,"div",53),n.YNc(1,OYe,12,4,"div",54),n.YNc(2,NYe,6,0,"div",3),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("ngIf",t.pedido.cliente),n.xp6(1),n.Q6J("ngIf",!t.pedido.cliente.telefone)}}function RYe(i,o){if(1&i&&(n.TgZ(0,"span"),n.YNc(1,EYe,1,0,"div",45),n.TgZ(2,"div",46)(3,"div",16)(4,"div",17)(5,"h5",18)(6,"span"),n._uU(7,"Forma de Entrega"),n.qZA()()(),n.TgZ(8,"h5",19)(9,"strong"),n._uU(10),n.qZA()()(),n.YNc(11,PYe,6,1,"div",47),n.qZA(),n.YNc(12,LYe,3,2,"div",48),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.pedido.itens.length>3),n.xp6(9),n.Oqu(t.pedido.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",!t.pedido.retirar),n.xp6(1),n.Q6J("ngIf",t.pedido.cliente.telefone)}}function FYe(i,o){if(1&i&&(n.TgZ(0,"div",21)(1,"div",17)(2,"h5",18)(3,"span"),n._uU(4,"Dinheiro"),n.qZA()()(),n.TgZ(5,"h5",19),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(6),n.Oqu(n.xi3(7,1,t.trocoPara,"BRL"))}}function BYe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,FYe,8,4,"div",25),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf","dinheiro"===t.formaDePagamento)}}function HYe(i,o){if(1&i&&(n.TgZ(0,"div",21)(1,"div",17)(2,"h5",18)(3,"span"),n._uU(4,"Taxa De Entrega"),n.qZA()()(),n.TgZ(5,"h5",19),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.Oqu(n.xi3(7,1,t.pedido.taxaDeEntrega,"BRL"))}}function $Ye(i,o){if(1&i&&(n.TgZ(0,"div",21)(1,"div",17)(2,"h5",18)(3,"span"),n._uU(4,"Troco"),n.qZA()()(),n.TgZ(5,"h5",27),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.Oqu(n.xi3(7,1,t.pedido.troco,"BRL"))}}function UYe(i,o){1&i&&n._UZ(0,"i",60)}function YYe(i,o){if(1&i&&(n.TgZ(0,"p",61),n._UZ(1,"i",62),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msgErro," ")}}function jYe(i,o){if(1&i&&(n.TgZ(0,"p",63),n._UZ(1,"i",64),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msg," ")}}function ZYe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div"),n._UZ(1,"div",7),n.YNc(2,TYe,3,4,"div",8),n.YNc(3,wYe,3,4,"div",9),n.TgZ(4,"div")(5,"h4",10),n._uU(6),n.qZA()(),n._UZ(7,"div",11)(8,"div",12),n.TgZ(9,"div",13),n.YNc(10,IYe,13,9,"div",14),n.qZA(),n.TgZ(11,"div",15)(12,"div",16)(13,"div",17)(14,"h5",18)(15,"span"),n._uU(16,"Observa\xe7\xe3o"),n.qZA()()(),n.TgZ(17,"h5",19)(18,"i"),n._uU(19),n.qZA()()()(),n.YNc(20,RYe,13,4,"span",3),n.TgZ(21,"div",20)(22,"div",21)(23,"div",17)(24,"h5",22)(25,"span"),n._uU(26,"Subtotal"),n.qZA()()(),n.TgZ(27,"h5",23),n._uU(28),n.ALo(29,"currency"),n.qZA()(),n.YNc(30,BYe,2,1,"div",24),n.YNc(31,HYe,8,4,"div",25),n.YNc(32,$Ye,8,4,"div",25),n.TgZ(33,"div",26)(34,"div",17)(35,"h5",18)(36,"span"),n._uU(37,"Total"),n.qZA()()(),n.TgZ(38,"h5",27)(39,"strong"),n._uU(40),n.ALo(41,"currency"),n.qZA()()()(),n._UZ(42,"div",28),n.TgZ(43,"footer",29)(44,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.pedirNovamente())}),n.YNc(45,UYe,1,0,"i",31),n._uU(46," Pedir novamente "),n.qZA(),n._UZ(47,"div",32),n.YNc(48,YYe,3,1,"p",33),n.YNc(49,jYe,3,1,"p",34),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf","Entregue"==t.pedido.status),n.xp6(1),n.Q6J("ngIf","Entregue"!=t.pedido.status),n.xp6(3),n.hij(" Pedido #",t.pedido.codigo," "),n.xp6(4),n.Q6J("ngForOf",t.pedido.itens),n.xp6(1),n.Q6J("hidden",!t.pedido.observacoes),n.xp6(8),n.hij(" ",t.pedido.observacoes," "),n.xp6(1),n.Q6J("ngIf",!t.exibirSomenteItens),n.xp6(8),n.Oqu(n.xi3(29,16,t.pedido.total,"BRL")),n.xp6(2),n.Q6J("ngForOf",t.pedido.pagamentos),n.xp6(1),n.Q6J("ngIf",t.pedido.entrega&&t.pedido.entrega.taxaDeEntrega),n.xp6(1),n.Q6J("ngIf",t.pedido.pagamento&&"Dinheiro"===t.pedido.pagamento.formaDePagamento),n.xp6(8),n.Oqu(n.xi3(41,19,t.pedido.total,"BRL")),n.xp6(4),n.Q6J("disabled",t.validandoPedido),n.xp6(1),n.Q6J("ngIf",t.validandoPedido),n.xp6(3),n.Q6J("ngIf",t.msgErro),n.xp6(1),n.Q6J("ngIf",t.msg)}}let VYe=(()=>{class i{constructor(t,r,s,l,u){this.activatedRoute=t,this.pedidosService=r,this.enderecoService=s,this.carrinhoService=l,this.dominiosService=u,this.activatedRoute.params.subscribe(p=>{this.guid=p.guid,this.pedidosService.obtenhaPorGuid(this.guid).then(y=>{this.carregou=!0,this.pedido=y}).catch(y=>{this.carregou=!0})})}ngOnInit(){}deveExibirTopo(){return!1}deveExibirMenu(){return!1}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}pedirNovamente(){var t=this;this.validandoPedido||(delete this.msgErro,this.validandoPedido=!0,this.pedidosService.validePedirNovamente(this.pedido.guid).then(function(){var r=sn(function*(s){t.pedido.endereco?t.enderecoService.calculeTaxaDeEntrega(t.pedido.formaDeEntrega,t.pedido.endereco,t.pedido.subvalor).then(l=>{t.carrinhoService.refazerPedido(s,l.taxaDeEntrega),t.validandoPedido=!1,t.dominiosService.vaParaFinalizarPedido()}).catch(l=>{console.error(l),t.validandoPedido=!1,t.msgErro=l}):(t.carrinhoService.refazerPedido(s),t.validandoPedido=!1,t.dominiosService.vaParaFinalizarPedido())});return function(s){return r.apply(this,arguments)}}()).catch(r=>{console.error(r),this.msgErro=r,this.validandoPedido=!1}))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ci),n.Y36(gm),n.Y36(wc),n.Y36(Oi),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-pedido"]],decls:4,vars:3,consts:[[3,"titulo"],[1,"fundo"],["class","d-flex justify-content-center align-items-center","style","height: 400px",4,"ngIf"],[4,"ngIf"],[1,"d-flex","justify-content-center","align-items-center",2,"height","400px"],[1,"align-self-center","text-center",2,"color","#F1556C"],[1,"fas","fa-exclamation-triangle",2,"font-size","48px"],[1,"mt-3","espaco_topo"],["class","alert text-center","role","alert",3,"ngClass",4,"ngIf"],["class","alert alert-info text-center","role","alert",3,"ngClass",4,"ngIf"],[1,"d-inline",2,"position","relative","top","5px"],[1,"mt-3","mb-0"],[1,"linha"],[1,"desktop"],["class","produto pt-2 pb-2 item_produto",4,"ngFor","ngForOf"],[1,"produto","pt-2","pb-1",3,"hidden"],[1,"media","mt-1"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"mt-0"],[1,"produto","item_produto","pt-2","pb-0"],[1,"media"],[1,"mt-0","mb-1","text-muted"],[1,"mt-0","text-muted"],[4,"ngFor","ngForOf"],["class","media",4,"ngIf"],[1,"media","mt-0"],[1,"mt-0","preco"],[1,"mobile",2,"height","40px"],[1,"footer"],["id","pedir-novamente",1,"btn","btn-blue","float-lg-right","mt-2","mb-2",3,"disabled","click"],["class","k-icon k-i-loading mr-1",4,"ngIf"],[1,"clearfix"],["class","alert alert-danger","role","alert",4,"ngIf"],["class","alert alert-success","role","alert",4,"ngIf"],["role","alert",1,"alert","text-center",3,"ngClass"],[1,"fas","fa-check-circle"],["role","alert",1,"alert","alert-info","text-center",3,"ngClass"],[1,"fas","fa-info-circle"],[1,"produto","pt-2","pb-2","item_produto"],["class","font-11",4,"ngIf"],[1,"preco","mt-0"],["class","d-block ml-2 font-weight-bold",4,"ngFor","ngForOf"],[1,"d-block","ml-2","font-weight-bold"],[1,"font-11"],["class","linha mt-0 mb-0",4,"ngIf"],[1,"produto","pt-2","pb-1"],["class","pt-0 pb-0",4,"ngIf"],["class","produto pt-1 pb-0",4,"ngIf"],[1,"linha","mt-0","mb-0"],[1,"pt-0","pb-0"],[1,"text-muted"],[1,"fas","fa-map-marker-alt"],[1,"produto","pt-1","pb-0"],["class","media mt-2",4,"ngIf"],[1,"media","mt-2"],[1,"mt-0","text-right"],[1,"text-muted","mt-1"],[1,"form-group","mb-2"],["type","button",1,"btn","btn-xs","btn-outline-blue"],[1,"k-icon","k-i-loading","mr-1"],["role","alert",1,"alert","alert-danger"],[1,"fa","fa-times","mr-2"],["role","alert",1,"alert","alert-success"],[1,"mdi","mdi-check-all","mr-2"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-tela",0),n.TgZ(1,"div",1),n.YNc(2,AYe,5,0,"div",2),n.YNc(3,ZYe,50,22,"div",3),n.qZA()),2&t&&(n.Q6J("titulo","Pedido"),n.xp6(2),n.Q6J("ngIf",!r.pedido&&r.carregou),n.xp6(1),n.Q6J("ngIf",r.pedido))},dependencies:[gt,Bt,Ge,Cs,Jo,kT],styles:['.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background-color:#f7f8f8;padding:0;position:fixed}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}.container_total[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.preco[_ngcontent-%COMP%]{color:#6db31b}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.container_selo[_ngcontent-%COMP%]{position:relative}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.faltam_selos[_ngcontent-%COMP%]{color:#3e48bc;margin-bottom:10px}.container-scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;margin-right:-20px}.container-scroll[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.container-scroll[_ngcontent-%COMP%]   .caixa_brinde[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;margin-bottom:10px;height:250px!important;margin-left:-3px;margin-right:-3px;padding-top:5px;background:white}.container-scroll[_ngcontent-%COMP%]   .foto_brinde[_ngcontent-%COMP%]{width:initial;width:100%}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.container-scroll[_ngcontent-%COMP%]   .preco_troca[_ngcontent-%COMP%]{font-size:11px;font-weight:400;line-height:1em}.container-scroll[_ngcontent-%COMP%]   .preco_troca.nao_atingiu[_ngcontent-%COMP%]{color:#f67682}.container-scroll[_ngcontent-%COMP%]   .preco_troca.atingiu[_ngcontent-%COMP%]{color:#6db31b;margin-right:-20px}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;width:32px;height:32px;vertical-align:middle}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.container_imagem[_ngcontent-%COMP%]{overflow:hidden;display:flex;max-width:100%}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.container-fotos[_ngcontent-%COMP%]{background:black}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.container-scroll[_ngcontent-%COMP%]{overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial;white-space:inherit;-webkit-overflow-scrolling:touch;margin-right:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:100%}@media (max-width: 992px){#pedir-novamente[_ngcontent-%COMP%]{display:block;width:90%;margin:0 auto}.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}}.font-11[_ngcontent-%COMP%]{font-size:11px}.nao_mobile[_ngcontent-%COMP%]{display:none}.item_produto[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:.8rem!important}@media (min-width: 1025px){.nao_mobile[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:0}.item_produto[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:1rem}}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff;margin-left:0}.footer[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{border-radius:0;margin-bottom:0}form[_ngcontent-%COMP%]{padding-bottom:50px}']}),i})();function zYe(i,o){if(1&i&&(n.TgZ(0,"div",2)(1,"label"),n._uU(2,"Nome completo"),n.qZA(),n.TgZ(3,"p"),n._uU(4),n.qZA()()),2&i){const t=n.oxw();n.xp6(4),n.Oqu(t.usuario.nome)}}function GYe(i,o){if(1&i&&(n.TgZ(0,"div",2)(1,"label"),n._uU(2,"Email"),n.qZA(),n.TgZ(3,"p"),n._uU(4),n.qZA()()),2&i){const t=n.oxw();n.xp6(4),n.hij(" ",t.usuario.email," ")}}function qYe(i,o){if(1&i&&(n.TgZ(0,"div",2)(1,"label"),n._uU(2,"CPF"),n.qZA(),n.TgZ(3,"p"),n._uU(4),n.ALo(5,"cpf"),n.qZA()()),2&i){const t=n.oxw();n.xp6(4),n.Oqu(n.lcZ(5,1,t.usuario.cpf))}}function JYe(i,o){if(1&i&&(n.TgZ(0,"div",2)(1,"label"),n._uU(2,"Data De Nascimento"),n.qZA(),n.TgZ(3,"p"),n._uU(4),n.ALo(5,"date"),n.qZA()()),2&i){const t=n.oxw();n.xp6(4),n.Oqu(n.xi3(5,1,t.usuario.dataNascimento,"dd/MMM/yyyy"))}}function QYe(i,o){if(1&i&&(n.TgZ(0,"p"),n._uU(1),n.ALo(2,"json"),n.qZA()),2&i){const t=o.$implicit;n.xp6(1),n.hij(" ",n.lcZ(2,1,t)," ")}}const WYe=function(i,o){return{"needs-validation":i,"was-validated":o}};let KYe=(()=>{class i{constructor(t,r,s,l){this.autorizacao=t,this.router=r,this.dominiosService=s,this.carrinhoService=l,this.usuario={},this.enderecos=[],this.usuario=t.getUsuario()}ngOnInit(){}deveExibirMenu(){return!0}deveExibirTopo(){return!1}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}removerConta(){this.autorizacao.removaConta(this.usuario).then(t=>{this.autorizacao.logout().then(r=>{r?alert(r):(this.carrinhoService.limpeContatoPedido(),window.location.href=this.dominiosService.obtenhaUrlHome())})})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(Pn),n.Y36(Eo),n.Y36(Oi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-meus-dados"]],decls:19,vars:14,consts:[[3,"titulo"],["class","linha",4,"ngIf"],[1,"linha"],[1,"linha",3,"hidden"],[4,"ngFor","ngForOf"],["novalidate","",1,"k-form","mt-2",3,"ngClass","ngSubmit"],["frm","ngForm"],["type","submit",1,"btn","btn-outline-danger"]],template:function(t,r){if(1&t&&(n._UZ(0,"app-header-loja",0),n.YNc(1,zYe,5,1,"div",1),n.YNc(2,GYe,5,1,"div",1),n.TgZ(3,"div",2)(4,"label"),n._uU(5,"Telefone"),n.qZA(),n.TgZ(6,"p"),n._uU(7),n.ALo(8,"telefone"),n.qZA()(),n.YNc(9,qYe,6,3,"div",1),n.YNc(10,JYe,6,4,"div",1),n.TgZ(11,"div",3)(12,"label"),n._uU(13,"Endere\xe7os"),n.qZA(),n.YNc(14,QYe,3,3,"p",4),n.qZA(),n.TgZ(15,"form",5,6),n.NdJ("ngSubmit",function(){return r.removerConta()}),n.TgZ(17,"button",7),n._uU(18,"Remover Minha Conta"),n.qZA()()),2&t){const s=n.MAs(16);n.Q6J("titulo","Meus Dados"),n.xp6(1),n.Q6J("ngIf",r.usuario.nome),n.xp6(1),n.Q6J("ngIf",r.usuario.email),n.xp6(5),n.hij(" ",n.lcZ(8,9,r.usuario.telefone)," "),n.xp6(2),n.Q6J("ngIf",r.usuario.cpf),n.xp6(1),n.Q6J("ngIf",r.usuario.dataNascimento),n.xp6(1),n.Q6J("hidden",!r.enderecos||!r.enderecos.length),n.xp6(3),n.Q6J("ngForOf",r.enderecos),n.xp6(1),n.Q6J("ngClass",n.WLB(11,WYe,!s.submitted,s.submitted))}},dependencies:[gt,Bt,Ge,Ia,ma,Zo,Vu,Xm,_h,kT,yQ],styles:[".linha[_ngcontent-%COMP%]{padding:20px;border-bottom:1px solid #f7f8f8;font-size:15px}.linha[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:#333}.linha[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#aaa}"]}),i})();const XYe=["frm"];function eje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe o c\xf3digo de valida\xe7\xe3o de 5 digitos"),n.qZA())}function tje(i,o){if(1&i&&(n.TgZ(0,"div",14)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erro,"")}}function nje(i,o){1&i&&n._UZ(0,"i",15)}let ije=(()=>{class i{constructor(t,r,s,l){this.router=t,this.dominiosService=r,this.activatedRoute=s,this.autorizacao=l,this.contato={}}ngOnInit(){this.token=this.activatedRoute.snapshot.params.token,this.autorizacao.obtenhaDadosToken(this.token).then(t=>{this.contato=t.contato,this.meioDeEnvio=t.meioDeEnvio}).catch(t=>{this.erro=t})}validarCodigo(){}alterouCodigo(t){this.frm.controls.codigo.valid&&(delete this.erro,this.aguardeProcessar=!0,this.autorizacao.valideContato(this.token,t).then(r=>{r?this.aguardeProcessar=!1:this.dominiosService.navegueParaUrl("cadastro/confirmar/"+this.token)}).catch(r=>{this.aguardeProcessar=!1,this.erro=r}))}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Eo),n.Y36(ci),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-validar-contato"]],viewQuery:function(t,r){if(1&t&&n.Gf(XYe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first)}},decls:22,vars:10,consts:[[3,"titulo"],["novalidate","",1,"mt-3",3,"ngSubmit"],["frm","ngForm"],[1,"text-center","text-muted"],[1,"text-center","preto","font-18"],[1,"input-group","mb-2","col"],["type","text","minlength","5","mask","0-0-0-0-0","id","codigo","name","codigo","placeholder","0-0-0-0-0","required","","appAutoFocus","",1,"form-control","codigo-validacao",3,"ngModel","ngModelChange"],["codigo","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],["class","text-danger mt-2 mb-2  text-center","role","alert",4,"ngIf"],[1,"mb-3","col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading mr-1",4,"ngIf"],["role","alert",1,"text-danger","mt-2","mb-2","text-center"],[1,"k-icon","k-i-loading","mr-1"]],template:function(t,r){if(1&t&&(n._UZ(0,"app-header-loja",0),n.TgZ(1,"form",1,2),n.NdJ("ngSubmit",function(){return r.validarCodigo()}),n.TgZ(3,"p",3),n._uU(4,"Digite o c\xf3digo de 5 digitos enviado via "),n.TgZ(5,"b"),n._uU(6),n.qZA(),n._uU(7," para:"),n.qZA(),n.TgZ(8,"p",4)(9,"b"),n._uU(10),n.ALo(11,"telefone"),n.qZA()(),n.TgZ(12,"div",5)(13,"input",6,7),n.NdJ("ngModelChange",function(l){return r.alterouCodigo(l)})("ngModelChange",function(l){return r.contato.codigo=l}),n.qZA(),n.TgZ(15,"div",8),n.YNc(16,eje,2,0,"p",9),n.qZA()(),n.YNc(17,tje,3,1,"div",10),n.TgZ(18,"div",11)(19,"button",12),n.YNc(20,nje,1,0,"i",13),n._uU(21," Continuar "),n.qZA()()()),2&t){const s=n.MAs(2),l=n.MAs(14);n.Q6J("titulo","C\xf3digo Valida\xe7\xe3o"),n.xp6(6),n.Oqu(r.meioDeEnvio),n.xp6(4),n.Oqu(n.lcZ(11,8,r.contato.telefone)),n.xp6(3),n.Q6J("ngModel",r.contato.codigo),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",r.erro),n.xp6(2),n.Q6J("disabled",r.aguardeProcessar||s.invalid),n.xp6(1),n.Q6J("ngIf",r.aguardeProcessar)}},dependencies:[Ge,Ia,wi,ti,ma,Lo,zv,ni,Zo,ja,Za,Vu,kT],styles:["p[_ngcontent-%COMP%]{font-size:15px}.preto[_ngcontent-%COMP%]{color:#000}input.codigo-validacao[_ngcontent-%COMP%]{font-family:monospace;font-size:18px;text-align:center}"]}),i})();const oje=["frm"];function rje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Nome \xe9 obrigat\xf3rio"),n.qZA())}function aje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe seu nome completo"),n.qZA())}function sje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Informe um nome v\xe1lido"),n.qZA())}function lje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Email \xe9 obrigat\xf3rio"),n.qZA())}function cje(i,o){1&i&&n._UZ(0,"i",23)}function dje(i,o){1&i&&n._UZ(0,"i",24)}function uje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function pje(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",25,26),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",10),n.YNc(4,uje,2,0,"p",11),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("ngModel",r.contato.senha),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function hje(i,o){1&i&&(n.TgZ(0,"p"),n._uU(1,"Senha \xe9 obrigat\xf3rio"),n.qZA())}function gje(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span")(1,"input",27,28),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.contato.senha=s)}),n.qZA(),n.TgZ(3,"div",10),n.YNc(4,hje,2,0,"p",11),n.qZA()()}if(2&i){const t=n.MAs(2),r=n.oxw();n.xp6(1),n.Q6J("ngModel",r.contato.senha),n.xp6(3),n.Q6J("ngIf",null==t.errors?null:t.errors.required)}}function fje(i,o){if(1&i&&(n.TgZ(0,"div",29)(1,"b"),n._uU(2),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.erro,"")}}function mje(i,o){1&i&&n._UZ(0,"i",30)}const _je=function(i,o){return{"needs-validation":i,"was-validated":o}};let bje=(()=>{class i{constructor(t,r,s,l){this.router=t,this.dominiosService=r,this.activatedRoute=s,this.autorizacao=l,this.contato={}}ngOnInit(){this.contato=window.history.state.contato||{},this.token=this.activatedRoute.snapshot.params.token,this.contato.id||this.autorizacao.obtenhaDadosToken(this.token).then(t=>{this.contato=t.contato}).catch(t=>{this.erro=t})}confirmarContato(){delete this.erro,this.frm.valid&&(this.aguardeProcessar=!0,this.autorizacao.confirmeConta(this.token,this.contato).then(t=>{this.aguardeProcessar=!1,this.dominiosService.navegueParaUrl("login",{email:this.contato.email})}).catch(t=>{this.aguardeProcessar=!1,this.erro=t}))}exibirSenhaTela(){this.exibirSenha=!this.exibirSenha}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(Eo),n.Y36(ci),n.Y36(Qi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-confirmar-contato"]],viewQuery:function(t,r){if(1&t&&n.Gf(oje,5),2&t){let s;n.iGM(s=n.CRH())&&(r.frm=s.first)}},decls:37,vars:20,consts:[[3,"titulo"],["novalidate","",1,"mt-3",3,"ngClass","ngSubmit"],["frm","ngForm"],[1,"form-group","mb-2","col"],["for","telefone",1,"label-disabled"],[1,"input-group"],["kendoTextBox","","id","telefone","name","telefone","mask","(00)0-0000-0000","type","text","autocomplete","off","placeholder","Telefone com DDD","required","",1,"form-control",3,"disabled","ngModel","ngModelChange"],["for","nome"],["kendoTextBox","","id","nome","name","nome","placeholder","Nome completo","nomeCompleto","","nomeValido","","appAutoFocus","","required","",1,"form-control",3,"ngModel","ngModelChange"],["nome","ngModel"],[1,"invalid-feedback"],[4,"ngIf"],["for","email"],["type","email","autocomplete","off","required","","id","email","name","email","placeholder","Email do usu\xe1rio",1,"form-control",3,"ngModel","ngModelChange"],["email","ngModel"],["for","senha"],[1,"col-form-label","float-right","cpointer","text-blue",3,"click"],["class","fa fa-eye fa-lg   ",4,"ngIf"],["class","fa fa-eye-slash fa-lg   ",4,"ngIf"],["class","text-danger mt-2 mb-2  text-center","role","alert",4,"ngIf"],[1,"mt-3","mb-3","col"],["type","submit",1,"btn","btn-blue","btn-block",3,"disabled"],["class","k-icon k-i-loading mr-1",4,"ngIf"],[1,"fa","fa-eye","fa-lg"],[1,"fa","fa-eye-slash","fa-lg"],["type","password","id","senha","name","senha","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senha","ngModel"],["type","text","id","senhaTexto","name","senhaTexto","placeholder","Informe sua senha","required","",1,"form-control",3,"ngModel","ngModelChange"],["senhaTexto","ngModel"],["role","alert",1,"text-danger","mt-2","mb-2","text-center"],[1,"k-icon","k-i-loading","mr-1"]],template:function(t,r){if(1&t&&(n._UZ(0,"app-header-loja",0),n.TgZ(1,"form",1,2),n.NdJ("ngSubmit",function(){return r.confirmarContato()}),n.TgZ(3,"div",3)(4,"label",4),n._uU(5," Telefone"),n.qZA(),n.TgZ(6,"div",5)(7,"input",6),n.NdJ("ngModelChange",function(l){return r.contato.telefone=l}),n.qZA()()(),n.TgZ(8,"div",3)(9,"label",7),n._uU(10,"Nome "),n.qZA(),n.TgZ(11,"input",8,9),n.NdJ("ngModelChange",function(l){return r.contato.nome=l}),n.qZA(),n.TgZ(13,"div",10),n.YNc(14,rje,2,0,"p",11),n.YNc(15,aje,2,0,"p",11),n.YNc(16,sje,2,0,"p",11),n.qZA()(),n.TgZ(17,"div",3)(18,"label",12),n._uU(19,"E-mail "),n.qZA(),n.TgZ(20,"input",13,14),n.NdJ("ngModelChange",function(l){return r.contato.email=l}),n.qZA(),n.TgZ(22,"div",10),n.YNc(23,lje,2,0,"p",11),n.qZA()(),n.TgZ(24,"div",3)(25,"label",15),n._uU(26,"Senha"),n.qZA(),n.TgZ(27,"label",16),n.NdJ("click",function(){return r.exibirSenhaTela()}),n.YNc(28,cje,1,0,"i",17),n.YNc(29,dje,1,0,"i",18),n.qZA(),n.YNc(30,pje,5,2,"span",11),n.YNc(31,gje,5,2,"span",11),n.qZA(),n.YNc(32,fje,3,1,"div",19),n.TgZ(33,"div",20)(34,"button",21),n.YNc(35,mje,1,0,"i",22),n._uU(36," Confirmar Cadastro "),n.qZA()()()),2&t){const s=n.MAs(2),l=n.MAs(12),u=n.MAs(21);n.Q6J("titulo","Confirmar Meus Dados"),n.xp6(1),n.Q6J("ngClass",n.WLB(17,_je,!s.submitted,s.submitted)),n.xp6(6),n.Q6J("disabled",!0)("ngModel",r.contato.telefone),n.xp6(4),n.Q6J("ngModel",r.contato.nome),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.nomeCompleto),n.xp6(1),n.Q6J("ngIf",null==l.errors?null:l.errors.nomeValido),n.xp6(4),n.Q6J("ngModel",r.contato.email),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(5),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",!r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.exibirSenha),n.xp6(1),n.Q6J("ngIf",r.erro),n.xp6(2),n.Q6J("disabled",r.aguardeProcessar),n.xp6(1),n.Q6J("ngIf",r.aguardeProcessar)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,ja,Er,io,Za,ZW,VW,Vu],styles:["input[type=text][_ngcontent-%COMP%]:disabled, .label-disabled[_ngcontent-%COMP%]{outline:none;cursor:default;opacity:.6;filter:grayscale(.1);pointer-events:none;box-shadow:none}"]}),i})();var vje=S(6908),WK=S.n(vje);let yje=(()=>{class i{constructor(t,r){this.dialogRef=t,this.sanitizer=r}ngOnInit(){window.addEventListener("message",this.receiveMessage.bind(this),!1),setTimeout(()=>{window.location.href=this.url},1500)}setUrl(t){this.url=t,this.sanitizedUrl=this.sanitizer.bypassSecurityTrustResourceUrl(t)}receiveMessage(t){"3ds-auth-success"===t.data&&this.dialogRef.close({retornou:!0})}sanitizeUrl(t){return t}close(){this.dialogRef.close()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(HJ),n.Y36(rd))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-three-ds-dialog"]],decls:8,vars:1,consts:[[1,"icone-autenticacao"],[1,"k-i-loading","k-icon","mr-1"],[1,"mt-4"],[3,"href"]],template:function(t,r){1&t&&(n.TgZ(0,"h4"),n._UZ(1,"i",0),n._uU(2," Para autenticar o cart\xe3o, voc\xea ser\xe1 redirecionado. Por favor aguarde e n\xe3o feche a p\xe1gina "),n._UZ(3,"i",1),n.qZA(),n.TgZ(4,"p",2),n._uU(5," Caso n\xe3o for redirecionado "),n.TgZ(6,"a",3),n._uU(7," clique aqui"),n.qZA()()),2&t&&(n.xp6(6),n.s9C("href",r.url,n.LSH))},styles:[".icone-autenticacao[_ngcontent-%COMP%]{width:50px;height:50px;background-size:50px;margin-bottom:5px;top:13px;position:relative;display:inline-block;background-image:url(/assets/icons/autenticacao-de-pagamento.png)}.k-i-loading[_ngcontent-%COMP%]{font-size:30px}\n/*# sourceMappingURL=three-ds-dialog.ts-angular-inline--1.css.map*/"]}),i})();class Cje{constructor(o,t){this._document=t;const r=this._textarea=this._document.createElement("textarea"),s=r.style;s.position="fixed",s.top=s.opacity="0",s.left="-999em",r.setAttribute("aria-hidden","true"),r.value=o,r.readOnly=!0,this._document.body.appendChild(r)}copy(){const o=this._textarea;let t=!1;try{if(o){const r=this._document.activeElement;o.select(),o.setSelectionRange(0,o.value.length),t=this._document.execCommand("copy"),r&&r.focus()}}catch{}return t}destroy(){const o=this._textarea;o&&(o.remove(),this._textarea=void 0)}}let Aje=(()=>{class i{constructor(t){this._document=t}copy(t){const r=this.beginCopy(t),s=r.copy();return r.destroy(),s}beginCopy(t){return new Cje(t,this._document)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),KK=(()=>{class i extends fs{constructor(t){super(t),this.httpCliente=t}envie(t,r){return this.facaPost("/avaliacoes/envie",{avaliacao:t,pedido:{id:r.id}})}obtenhaPorIdPedido(t){return this.obtenha("/avaliacoes/obtenha/"+t.id,{})}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();function UVe(i,o){1&i&&n._uU(0),2&i&&n.Oqu(100===o.fill?"\u2605":"\u2606")}function YVe(i,o){}function jVe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"span",2),n._uU(1),n.qZA(),n.TgZ(2,"span",3),n.NdJ("mouseenter",function(){const l=n.CHM(t).index,u=n.oxw();return n.KtG(u.enter(l+1))})("click",function(){const l=n.CHM(t).index,u=n.oxw();return n.KtG(u.handleClick(l+1))}),n.YNc(3,YVe,0,0,"ng-template",4),n.qZA()}if(2&i){const t=o.index,r=n.oxw(),s=n.MAs(1);n.xp6(1),n.hij("(",t<r.nextRate?"*":" ",")"),n.xp6(1),n.Udp("cursor",r.isInteractive()?"pointer":"default"),n.xp6(1),n.Q6J("ngTemplateOutlet",r.starTemplate||r.starTemplateFromContent||s)("ngTemplateOutletContext",r.contexts[t])}}function PB(i,o,t=0){return Math.max(Math.min(i,o),t)}new No.y(pp),S(2803),Math,Math,Math;var Nr=(()=>(function(i){i[i.Tab=9]="Tab",i[i.Enter=13]="Enter",i[i.Escape=27]="Escape",i[i.Space=32]="Space",i[i.PageUp=33]="PageUp",i[i.PageDown=34]="PageDown",i[i.End=35]="End",i[i.Home=36]="Home",i[i.ArrowLeft=37]="ArrowLeft",i[i.ArrowUp=38]="ArrowUp",i[i.ArrowRight=39]="ArrowRight",i[i.ArrowDown=40]="ArrowDown"}(Nr||(Nr={})),Nr))();typeof navigator<"u"&&navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent)),["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", "),new Date(1882,10,12),new Date(2174,10,25);let yGe=(()=>{class i{constructor(){this.max=10,this.readonly=!1,this.resettable=!1,this.tabindex=0}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})(),WX=(()=>{class i{constructor(t,r){this._changeDetectorRef=r,this.contexts=[],this.disabled=!1,this.hover=new n.vpe,this.leave=new n.vpe,this.rateChange=new n.vpe(!0),this.onChange=s=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly,this.tabindex=t.tabindex}ariaValueText(){return`${this.nextRate} out of ${this.max}`}isInteractive(){return!this.readonly&&!this.disabled}enter(t){this.isInteractive()&&this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){this.isInteractive()&&this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case Nr.ArrowDown:case Nr.ArrowLeft:this.update(this.rate-1);break;case Nr.ArrowUp:case Nr.ArrowRight:this.update(this.rate+1);break;case Nr.Home:this.update(0);break;case Nr.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate),t.max&&this._updateMax()}ngOnInit(){this._setupContexts(),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,r=!0){const s=PB(t,this.max,0);this.isInteractive()&&this.rate!==s&&(this.rate=s,this.rateChange.emit(this.rate)),r&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_updateState(t){this.nextRate=t,this.contexts.forEach((r,s)=>r.fill=Math.round(100*PB(t-s,1,0)))}_updateMax(){this.max>0&&(this._setupContexts(),this.update(this.rate))}_setupContexts(){this.contexts=Array.from({length:this.max},(t,r)=>({fill:0,index:r}))}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(yGe),n.Y36(n.sBO))},i.\u0275cmp=n.Xpm({type:i,selectors:[["ngb-rating"]],contentQueries:function(t,r,s){if(1&t&&n.Suo(s,n.Rgc,5),2&t){let l;n.iGM(l=n.CRH())&&(r.starTemplateFromContent=l.first)}},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(t,r){1&t&&n.NdJ("blur",function(){return r.handleBlur()})("keydown",function(l){return r.handleKeyDown(l)})("mouseleave",function(){return r.reset()}),2&t&&(n.Ikx("tabindex",r.disabled?-1:r.tabindex),n.uIk("aria-valuemax",r.max)("aria-valuenow",r.nextRate)("aria-valuetext",r.ariaValueText())("aria-disabled",!!r.readonly||null))},inputs:{max:"max",rate:"rate",readonly:"readonly",resettable:"resettable",starTemplate:"starTemplate",tabindex:"tabindex"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[n._Bn([{provide:Ri,useExisting:(0,n.Gpc)(()=>i),multi:!0}]),n.TTD],decls:3,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"visually-hidden"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,r){1&t&&(n.YNc(0,UVe,1,1,"ng-template",null,0,n.W1O),n.YNc(2,jVe,4,5,"ng-template",1)),2&t&&(n.xp6(2),n.Q6J("ngForOf",r.contexts))},dependencies:[Bt,Pi],encapsulation:2,changeDetection:0}),i})(),KX=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[Lt]}),i})();new n.OlP("live announcer delay",{providedIn:"root",factory:function wGe(){return 100}});const DGe=function(i,o,t,r,s,l,u){return{"ribbon-info":i,"ribbon-warning":o,"ribbon-success":t,"ribbon-blue":r,"ribbon-primary":s,"ribbon-danger":l,"ribbon-secondary":u}};let kGe=(()=>{class i{constructor(){}ngOnInit(){}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-pedido-ribbon"]],inputs:{pedido:"pedido"},decls:3,vars:10,consts:[[1,"ribbon","ribbon-info","float-right",3,"ngClass"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"span"),n._uU(2),n.qZA()()),2&t&&(n.Q6J("ngClass",n.Hh0(2,DGe,"Novo"===r.pedido.status,"Em prepara\xe7\xe3o"===r.pedido.status,"Saiu para entrega"===r.pedido.status,"Pronto"===r.pedido.status,"Entregue"===r.pedido.status,r.pedido.cancelado,r.pedido.aguardandoPagamentoOnline)),n.xp6(2),n.Oqu("Novo"===r.pedido.status?"Realizado":r.pedido.status))},dependencies:[gt]}),i})();function IGe(i,o){if(1&i&&(n.TgZ(0,"div",31),n._UZ(1,"img",32),n.TgZ(2,"div",33)(3,"span",34),n._uU(4,"Voc\xea tamb\xe9m pode ler o QrCode com o App do seu Banco."),n.qZA()()()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("src","/api/qrcode?c="+t.pagamento.codigoQrCode,n.LSH)}}function EGe(i,o){1&i&&(n.TgZ(0,"span"),n._uU(1," Leia o QrCode ou"),n.qZA())}function PGe(i,o){if(1&i&&(n.TgZ(0,"div",35),n._UZ(1,"i",36),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.xp6(2),n.hij(" ",t.msgCopiar," ")}}function OGe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",22)(1,"div",23)(2,"div",24)(3,"div",3),n.YNc(4,IGe,5,1,"div",25),n.TgZ(5,"div",26)(6,"h4"),n._uU(7,"Copie esse c\xf3digo para pagarCopie esse c\xf3digo para pagar"),n.qZA(),n.TgZ(8,"p")(9,"strong"),n._uU(10,"1."),n.qZA(),n._uU(11," Acesse seu internet banking ou app de pagamentos"),n.qZA(),n.TgZ(12,"p")(13,"strong"),n._uU(14,"2."),n.qZA(),n._uU(15," Escolha pagar via PIX"),n.qZA(),n.TgZ(16,"p")(17,"strong"),n._uU(18,"3."),n.qZA(),n.YNc(19,EGe,2,0,"span",14),n._uU(20," Copie e cole o seguinte c\xf3digo"),n.qZA()()(),n.TgZ(21,"input",27),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.pagamento.codigoQrCode=s)}),n.qZA(),n._UZ(22,"div",28),n.TgZ(23,"button",29),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.copiarCodigoPix())}),n._uU(24,"Copiar C\xf3digo"),n.qZA(),n.YNc(25,PGe,3,1,"div",30),n.qZA()()()}if(2&i){const t=n.oxw();n.Q6J("hidden",!t.pedido.aguardandoPagamentoOnline||t.pedido.novaTentativaPix),n.xp6(4),n.Q6J("ngIf",t.desktop),n.xp6(15),n.Q6J("ngIf",t.desktop),n.xp6(2),n.Q6J("readOnly",!0)("ngModel",t.pagamento.codigoQrCode),n.xp6(4),n.Q6J("ngIf",t.msgCopiar)}}function NGe(i,o){if(1&i&&(n.TgZ(0,"div",40),n._UZ(1,"img",41),n.TgZ(2,"p",42),n._uU(3),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(" Pedido #",t.pedido.codigo," realizado com sucesso!")}}function LGe(i,o){if(1&i&&(n.TgZ(0,"div",50),n._UZ(1,"i",51),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("hidden",t.aguardandoTokenizar),n.xp6(2),n.hij(" ",t.autenticarPagamento?"Seu pedido est\xe1 aguardando autentica\xe7\xe3o do cart\xe3o":"Seu pedido est\xe1 aguardando confirma\xe7\xe3o do pagamento"," ")}}function RGe(i,o){1&i&&(n.TgZ(0,"div",52),n._UZ(1,"i",53),n._uU(2," Aguarde que o pagamento est\xe1 sendo processado "),n.TgZ(3,"b"),n._uU(4,"n\xe3o feche a tela!"),n.qZA(),n._uU(5,", isso pode demorar alguns segundos "),n.qZA())}function FGe(i,o){if(1&i&&(n.TgZ(0,"div",54),n._UZ(1,"i",51),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("Houve algum problema ao processar o pagamento: ",t.mensagemFalhaPagamento," ")}}function BGe(i,o){if(1&i&&(n.TgZ(0,"div",54),n._UZ(1,"i",51),n._uU(2),n.qZA()),2&i){const t=n.oxw(3);n.xp6(2),n.hij("",t.mensagemFalhaPagamento," ")}}function HGe(i,o){if(1&i&&(n.TgZ(0,"a",55),n._uU(1," Tentar novo pagamento "),n.qZA()),2&i){const t=n.oxw(3);n.Q6J("href",t.pedido.linkPagamento,n.LSH)}}function $Ge(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abrirPopupNovoPagamento())}),n._uU(1),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("disabled",t.tentandoNovoPagamento),n.xp6(1),n.hij(" ",t.tentandoNovoPagamento?"Aguarde enquanto enviamos seu novo pagamento...":"Tentar novo pagamento"," ")}}function UGe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",56),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.gerePix())}),n._uU(1),n.qZA()}if(2&i){const t=n.oxw(3);n.Q6J("disabled",t.tentandoNovoPagamento),n.xp6(1),n.hij(" ",t.tentandoNovoPagamento?"Gerando pix, aguarde...":"Tentar gerar novamente"," ")}}function YGe(i,o){if(1&i&&(n.TgZ(0,"div",40),n._UZ(1,"img",43),n.TgZ(2,"p",44),n._uU(3),n.qZA(),n.YNc(4,LGe,3,2,"div",45),n.YNc(5,RGe,6,0,"div",46),n.YNc(6,FGe,3,1,"div",47),n.YNc(7,BGe,3,1,"div",47),n.YNc(8,HGe,2,1,"a",48),n.YNc(9,$Ge,2,2,"button",49),n.YNc(10,UGe,2,2,"button",49),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(" Pedido #",t.pedido.codigo," est\xe1 aguardando pagamento!"),n.xp6(1),n.Q6J("ngIf",!t.falhaNoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.aguardandoTokenizar),n.xp6(1),n.Q6J("ngIf",t.falhaNoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.foiReembolsado),n.xp6(1),n.Q6J("ngIf",t.pedido.linkPagamento),n.xp6(1),n.Q6J("ngIf",t.pedido.novaTentativaCartao),n.xp6(1),n.Q6J("ngIf",t.pedido.novaTentativaPix)}}function jGe(i,o){if(1&i&&(n.TgZ(0,"a",57),n._UZ(1,"i",58),n._uU(2),n.qZA()),2&i){const t=n.oxw(2);n.Q6J("href",t.urlArir,n.LSH),n.xp6(2),n.hij(" Enviar para Whatsapp ",t.empresa.nome," ")}}function ZGe(i,o){if(1&i&&(n.TgZ(0,"div",7)(1,"div",37),n.YNc(2,NGe,4,1,"div",38),n.YNc(3,YGe,11,8,"div",38),n.YNc(4,jGe,3,2,"a",39),n.qZA()()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf",!t.pedido.aguardandoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",t.pedido.aguardandoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",!t.pedido.mesa)}}function VGe(i,o){if(1&i&&(n.TgZ(0,"div",7)(1,"div",59),n._UZ(2,"i",60),n._uU(3),n.qZA()()),2&i){const t=n.oxw();n.xp6(3),n.hij(" ",t.msg," ")}}function zGe(i,o){1&i&&(n.TgZ(0,"div",7)(1,"div",61),n._UZ(2,"i",62),n._uU(3," Seu pagamento foi confirmado. "),n.qZA()())}function GGe(i,o){if(1&i&&(n.TgZ(0,"span",67),n._uU(1,"\u2605"),n.qZA()),2&i){const t=o.index,r=n.oxw(2);n.ekj("filled",t<r.avaliacao.nota)("bad",r.avaliacao.nota<=3)}}function qGe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",7)(1,"div",8)(2,"h4",63),n._uU(3,"Avalia\xe7\xe3o do pedido"),n.qZA(),n.TgZ(4,"ngb-rating",64),n.NdJ("rateChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.avaliacao.nota=s)}),n.YNc(5,GGe,2,4,"ng-template"),n.qZA(),n.TgZ(6,"div",65),n._uU(7," Gostou da entrega: "),n.TgZ(8,"strong"),n._uU(9),n.qZA()(),n.TgZ(10,"div",66),n._uU(11),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(4),n.Q6J("rate",t.avaliacao.nota)("max",5)("readonly",!0),n.xp6(5),n.Oqu(t.avaliacao.gostouDaEntrega?"Sim":"N\xe3o"),n.xp6(2),n.hij(" ",t.avaliacao.comentario," ")}}function JGe(i,o){1&i&&n._UZ(0,"i",70)}function QGe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"button",68),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.cancelePedidoAguardando())}),n._uU(1," Cancelar "),n.YNc(2,JGe,1,0,"i",69),n.qZA()}if(2&i){const t=n.oxw();n.Q6J("disabled",t.cancelando)("hidden",t.aguardandoTokenizar||t.retorno3ds),n.xp6(2),n.Q6J("ngIf",t.cancelando)}}function WGe(i,o){1&i&&(n.TgZ(0,"div",71)(1,"div",72),n._UZ(2,"i",73),n.TgZ(3,"p"),n._uU(4," N\xe3o encontrado! "),n.qZA()()())}function KGe(i,o){if(1&i&&(n.TgZ(0,"div",76)(1,"div",77)(2,"div",78)(3,"h5",79),n._UZ(4,"i",97),n.TgZ(5,"span",98),n._uU(6),n.qZA()()(),n.TgZ(7,"h5",81)(8,"strong"),n._uU(9),n.qZA()()()()),2&i){const t=n.oxw(2);n.xp6(6),n.Oqu(t.pedido.empresa.identificadorMesa),n.xp6(3),n.hij(" ",t.pedido.mesa.nome,"")}}function XGe(i,o){if(1&i&&(n.TgZ(0,"div",100)(1,"div",78)(2,"h5",79)(3,"span"),n._UZ(4,"i",105),n._uU(5," Agendado para"),n.qZA()()(),n.TgZ(6,"h5",102)(7,"strong"),n._uU(8),n.qZA()()()),2&i){const t=n.oxw(3);n.xp6(8),n.Oqu(t.textoHorarioEntregaAgendada)}}function eqe(i,o){if(1&i&&(n.TgZ(0,"div",106)(1,"h5",107),n._UZ(2,"i",108),n._uU(3," Endere\xe7o Escolhido"),n.qZA(),n.TgZ(4,"h5"),n._uU(5),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(5),n.hij(" ",t.pedido.enderecoCompleto," ")}}function tqe(i,o){if(1&i&&(n.TgZ(0,"div",99)(1,"div",100)(2,"div",78)(3,"h5",79)(4,"span"),n._UZ(5,"i",101),n._uU(6," Forma de entrega"),n.qZA()()(),n.TgZ(7,"h5",102)(8,"strong"),n._uU(9),n.qZA()()(),n.YNc(10,XGe,9,1,"div",103),n.YNc(11,eqe,6,1,"div",104),n.qZA()),2&i){const t=n.oxw(2);n.xp6(9),n.Oqu(t.pedido.formaDeEntrega),n.xp6(1),n.Q6J("ngIf",t.pedido.horarioEntregaAgendada),n.xp6(1),n.Q6J("ngIf",t.pedido.formaDeEntrega===t.FormaDeEntrega.RECEBER_EM_CASA)}}function nqe(i,o){if(1&i&&(n.TgZ(0,"span",113),n._uU(1),n.qZA()),2&i){const t=o.last,r=o.$implicit;n.xp6(1),n.AsE(" ",r.descricao,"",t?"":", "," ")}}function iqe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,nqe,2,2,"span",112),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.adicionaisImprirmir)}}function oqe(i,o){if(1&i&&(n.TgZ(0,"span",114),n._uU(1," Obs.:"),n.TgZ(2,"i"),n._uU(3),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(3),n.hij('"',t.observacao,'"')}}function rqe(i,o){if(1&i&&(n.TgZ(0,"div",109)(1,"div",89)(2,"div",78)(3,"h5",79),n._uU(4),n.qZA(),n._uU(5),n.YNc(6,iqe,2,1,"div",14),n.YNc(7,oqe,4,1,"span",110),n.qZA(),n.TgZ(8,"h5",111),n._uU(9),n.ALo(10,"currency"),n.qZA()()()),2&i){const t=o.$implicit;n.xp6(4),n.lnq(" ",t.qtde,"",t.unidadeTxt," ",t.descricao," "),n.xp6(1),n.hij(" ",t.produto.descricao," "),n.xp6(1),n.Q6J("ngIf",null==t.adicionaisImprirmir?null:t.adicionaisImprirmir.length),n.xp6(1),n.Q6J("ngIf",t.observacao),n.xp6(2),n.hij("",n.xi3(10,7,t.total,"BRL")," ")}}function aqe(i,o){if(1&i&&(n.TgZ(0,"div",99)(1,"div",100)(2,"div",78)(3,"h5",79)(4,"span"),n._uU(5,"Observa\xe7\xe3o"),n.qZA()()(),n.TgZ(6,"h5",102)(7,"i"),n._uU(8),n.qZA()()()()),2&i){const t=n.oxw(2);n.xp6(8),n.hij(" ",t.pedido.observacoes," ")}}function sqe(i,o){1&i&&n._UZ(0,"div",115)}function lqe(i,o){if(1&i&&(n.TgZ(0,"span",117)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.Oqu(t.obtenhaDescricaoPromocoes())}}function cqe(i,o){if(1&i&&(n.TgZ(0,"span",117)(1,"i"),n._uU(2),n.qZA()()),2&i){const t=n.oxw(3);n.xp6(2),n.Oqu(t.pedido.cupom)}}function dqe(i,o){if(1&i&&(n.TgZ(0,"div",89)(1,"div",78)(2,"h5",79)(3,"span"),n._uU(4,"Desconto"),n.qZA(),n._UZ(5,"br"),n.YNc(6,lqe,3,1,"span",116),n._UZ(7,"br"),n.YNc(8,cqe,3,1,"span",116),n.qZA()(),n.TgZ(9,"h5",102),n._uU(10),n.ALo(11,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.Q6J("ngIf",t.pedido.promocoesAplicadas),n.xp6(2),n.Q6J("ngIf",t.pedido.cupom),n.xp6(2),n.hij("-",n.xi3(11,3,t.pedido.desconto,"BRL"),"")}}function uqe(i,o){if(1&i&&(n.TgZ(0,"div",89)(1,"div",78)(2,"h5",79)(3,"span"),n._uU(4),n.qZA(),n._UZ(5,"br"),n.qZA()(),n.TgZ(6,"h5",102),n._uU(7),n.ALo(8,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(4),n.Oqu(t.pedido.descricaoDescontoFormaDePagamento),n.xp6(3),n.hij("-",n.xi3(8,2,t.pedido.descontoFormaDePagamento,"BRL"),"")}}function pqe(i,o){if(1&i&&(n.TgZ(0,"div",89)(1,"div",78)(2,"h5",79)(3,"span"),n._uU(4,"Taxa De Entrega"),n.qZA()()(),n.TgZ(5,"h5",102),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.hij("+",n.xi3(7,1,t.pedido.taxaEntrega,"BRL"),"")}}function hqe(i,o){if(1&i&&(n.TgZ(0,"div",89)(1,"div",78)(2,"h5",79)(3,"span"),n._uU(4,"Taxa forma de pagamento"),n.qZA()()(),n.TgZ(5,"h5",102),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.hij("+",n.xi3(7,1,t.pedido.taxaFormaDePagamento,"BRL"),"")}}function gqe(i,o){if(1&i&&(n.TgZ(0,"div",89)(1,"div",78)(2,"h5",79)(3,"span"),n._uU(4,"Troco"),n.qZA()()(),n.TgZ(5,"h5",118),n._uU(6),n.ALo(7,"currency"),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(6),n.Oqu(n.xi3(7,1,t.pedido.troco,"BRL"))}}function fqe(i,o){1&i&&(n.TgZ(0,"div",78)(1,"h5",79)(2,"span"),n._uU(3," Pagamento em:"),n.qZA()()())}function mqe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" (",n.xi3(2,1,t.valor,"BRL"),")")}}function _qe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",89)(2,"div",78)(3,"h5",79)(4,"span"),n._uU(5," Troco para:"),n.qZA()()(),n.TgZ(6,"h5",102),n._uU(7),n.ALo(8,"currency"),n.qZA()(),n.TgZ(9,"div",89)(10,"div",78)(11,"h5",79)(12,"span"),n._uU(13," Valor do troco:"),n.qZA()()(),n.TgZ(14,"h5",102),n._uU(15),n.ALo(16,"currency"),n.qZA()(),n.BQk()),2&i){const t=n.oxw().$implicit;n.xp6(7),n.hij(" ",n.xi3(8,2,t.trocoPara,"BRL")," "),n.xp6(8),n.hij(" ",n.xi3(16,5,t.valorTroco,"BRL")," ")}}function bqe(i,o){if(1&i&&(n.TgZ(0,"div",119)(1,"div",89),n.YNc(2,fqe,4,0,"div",120),n.TgZ(3,"h5",102),n._uU(4),n.YNc(5,mqe,3,4,"span",14),n.qZA()(),n.YNc(6,_qe,17,8,"ng-container",14),n.qZA()),2&i){const t=o.$implicit,r=o.first,s=n.oxw(2);n.xp6(2),n.Q6J("ngIf",r&&1===s.pedido.pagamentos.length),n.xp6(2),n.hij(" ",t.descricao," "),n.xp6(1),n.Q6J("ngIf",s.pedido.pagamentos.length>1),n.xp6(1),n.Q6J("ngIf",t.levarTroco)}}function vqe(i,o){if(1&i&&(n.ynx(0),n._UZ(1,"div",115),n.TgZ(2,"div",77)(3,"div",78)(4,"h5",90)(5,"span"),n._uU(6),n.qZA()()(),n.TgZ(7,"h5",102),n._uU(8),n.qZA()(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(6),n.hij(" ",t.pedido.temCashback?"Cashback a confirmar":" Pontos a confirmar:"," "),n.xp6(2),n.hij(" ",t.pedido.pontosGanhosDescricao," ")}}function yqe(i,o){if(1&i&&(n.TgZ(0,"h5")(1,"span",107),n._uU(2,"Observa\xe7\xf5es:"),n.qZA(),n._uU(3),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.hij(' "',t.pedido.observacoes,'"')}}function Cqe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",74),n.YNc(2,KGe,10,2,"div",75),n.TgZ(3,"div",76)(4,"div",77)(5,"div",78)(6,"h5",79),n._UZ(7,"i",80),n.TgZ(8,"span"),n._uU(9,"Cliente"),n.qZA()()(),n.TgZ(10,"h5",81)(11,"strong"),n._uU(12),n.qZA(),n._UZ(13,"br"),n.TgZ(14,"label",82),n._uU(15),n.ALo(16,"telefone"),n.qZA()()()(),n.YNc(17,tqe,12,3,"div",83),n.TgZ(18,"h5",84)(19,"span"),n._UZ(20,"i",85),n._uU(21," Produtos"),n.qZA()(),n.YNc(22,rqe,11,10,"div",86),n.qZA(),n.YNc(23,aqe,9,1,"div",83),n.YNc(24,sqe,1,0,"div",87),n.TgZ(25,"div",88)(26,"div",89)(27,"div",78)(28,"h5",90)(29,"span"),n._uU(30,"Subtotal"),n.qZA()()(),n.TgZ(31,"h5",91),n._uU(32),n.ALo(33,"currency"),n.qZA()(),n.YNc(34,dqe,12,6,"div",92),n.YNc(35,uqe,9,5,"div",92),n.YNc(36,pqe,8,4,"div",92),n.YNc(37,hqe,8,4,"div",92),n.YNc(38,gqe,8,4,"div",92),n.TgZ(39,"div",93)(40,"div",78)(41,"h5",79)(42,"span"),n._uU(43,"Total"),n.qZA()()(),n.TgZ(44,"h5",94)(45,"strong"),n._uU(46),n.ALo(47,"currency"),n.qZA()()()(),n.YNc(48,bqe,7,4,"div",95),n.YNc(49,vqe,9,2,"ng-container",14),n.YNc(50,yqe,4,1,"h5",14),n._UZ(51,"div",96),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.Q6J("ngIf",t.pedido.mesa),n.xp6(10),n.Oqu(t.pedido.cliente.nome),n.xp6(3),n.Oqu(n.xi3(16,17,t.pedido.cliente.telefone,t.pedido.cliente.codigoPais)),n.xp6(2),n.Q6J("ngIf",t.pedido.formaDeEntrega),n.xp6(5),n.Q6J("ngForOf",t.pedido.itens),n.xp6(1),n.Q6J("ngIf",t.pedido.observacoes),n.xp6(1),n.Q6J("ngIf",t.pedido.itens.length>3),n.xp6(8),n.hij(" ",n.xi3(33,20,t.pedido.subvalor,"BRL"),""),n.xp6(2),n.Q6J("ngIf",t.pedido.desconto),n.xp6(1),n.Q6J("ngIf",t.pedido.descontoFormaDePagamento),n.xp6(1),n.Q6J("ngIf",t.pedido.taxaEntrega),n.xp6(1),n.Q6J("ngIf",t.pedido.taxaFormaDePagamento),n.xp6(1),n.Q6J("ngIf",(null==t.pedido?null:t.pedido.pagamento)&&"Dinheiro"===t.pedido.pagamento.formaDePagamento),n.xp6(8),n.Oqu(n.xi3(47,23,t.pedido.total,"BRL")),n.xp6(2),n.Q6J("ngForOf",t.pedido.pagamentos),n.xp6(1),n.Q6J("ngIf",t.pedido.pontosGanhos),n.xp6(1),n.Q6J("ngIf",t.pedido.observacoes)}}function Aqe(i,o){1&i&&n._UZ(0,"span",125)}function xqe(i,o){1&i&&(n.TgZ(0,"h5",126)(1,"b"),n._uU(2,"Aguardando confirma\xe7\xe3o do pedido"),n.qZA()())}const Tqe=function(i,o){return{completed:i,actived:o}};function Sqe(i,o){if(1&i&&(n.TgZ(0,"li",121),n.YNc(1,Aqe,1,0,"span",122),n.TgZ(2,"h5",79),n._uU(3,"Pedido Realizado"),n.qZA(),n.TgZ(4,"p",107),n._uU(5),n.TgZ(6,"span",123),n._uU(7),n.qZA()(),n.YNc(8,xqe,3,0,"h5",124),n.qZA()),2&i){const t=n.oxw();n.Q6J("ngClass",n.WLB(5,Tqe,t.pedido.statusOrdem>0,0==t.pedido.statusOrdem)),n.xp6(1),n.Q6J("ngIf",0==t.pedido.statusOrdem),n.xp6(4),n.hij("",t.pedido.horarioDescricao," "),n.xp6(2),n.Oqu(t.pedido.duracaoDescricao),n.xp6(1),n.Q6J("ngIf",!t.pedido.aceito&&!t.pedido.cancelado)}}function wqe(i,o){if(1&i&&(n.TgZ(0,"li",127),n._UZ(1,"span",125),n.TgZ(2,"h5",128),n._uU(3,"Aguardando confirma\xe7\xe3o pagamento online"),n.qZA(),n.TgZ(4,"p",107),n._uU(5),n.TgZ(6,"span",123),n._uU(7),n.qZA()()()),2&i){const t=n.oxw();n.xp6(5),n.hij("",t.pedido.horarioDescricao," "),n.xp6(2),n.Oqu(t.pedido.duracaoDescricao)}}function Mqe(i,o){1&i&&n._UZ(0,"span",125)}function Dqe(i,o){if(1&i&&(n.TgZ(0,"span",107),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Oqu(t.pedido.horarioAtualizacaoDescricao)}}function kqe(i,o){1&i&&n._UZ(0,"span",125)}function Iqe(i,o){if(1&i&&(n.TgZ(0,"span",107),n._uU(1),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Oqu(t.pedido.horarioAtualizacaoDescricao)}}function Eqe(i,o){1&i&&n._UZ(0,"span",125)}function Pqe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.pedido.horarioAtualizacaoDescricao)}}function Oqe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Oqu(t.pedido.horarioAtualizacaoDescricao)}}const hP=function(i){return{completed:i}};function Nqe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"li",121),n.YNc(2,Eqe,1,0,"span",122),n.TgZ(3,"h5",79),n._uU(4," Saiu para entrega"),n.qZA(),n.TgZ(5,"p",107),n._uU(6," \xa0 "),n.YNc(7,Pqe,2,1,"span",14),n.qZA()(),n.TgZ(8,"li",121)(9,"h5",79),n._uU(10,"Entregue"),n.qZA(),n.TgZ(11,"p",107),n._uU(12," \xa0 "),n.YNc(13,Oqe,2,1,"span",14),n.qZA()(),n.BQk()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngClass",n.VKq(5,hP,t.pedido.statusOrdem>3)),n.xp6(1),n.Q6J("ngIf",3===t.pedido.statusOrdem),n.xp6(5),n.Q6J("ngIf",3===t.pedido.statusOrdem),n.xp6(1),n.Q6J("ngClass",n.VKq(7,hP,4==t.pedido.statusOrdem)),n.xp6(5),n.Q6J("ngIf",4===t.pedido.statusOrdem)}}function Lqe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"li",121),n.YNc(2,Mqe,1,0,"span",122),n.TgZ(3,"h5",79),n._uU(4,"Em prepara\xe7\xe3o"),n.qZA(),n.TgZ(5,"p",107),n._uU(6," \xa0 "),n.YNc(7,Dqe,2,1,"span",129),n.qZA()(),n.TgZ(8,"li",121)(9,"h5",79),n._uU(10,"Pronto"),n.qZA(),n.YNc(11,kqe,1,0,"span",122),n.TgZ(12,"p",107),n._uU(13," \xa0 "),n.YNc(14,Iqe,2,1,"span",129),n.qZA()(),n.YNc(15,Nqe,14,9,"ng-container",14),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(7,hP,t.pedido.statusOrdem>1)),n.xp6(1),n.Q6J("ngIf",1==t.pedido.statusOrdem),n.xp6(5),n.Q6J("ngIf",1==t.pedido.statusOrdem),n.xp6(1),n.Q6J("ngClass",n.VKq(9,hP,t.pedido.statusOrdem>2)),n.xp6(3),n.Q6J("ngIf",2==t.pedido.statusOrdem),n.xp6(3),n.Q6J("ngIf",2==t.pedido.statusOrdem),n.xp6(1),n.Q6J("ngIf",!t.pedido.mesa)}}function Rqe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"li",130)(2,"h5",79),n._uU(3),n.qZA(),n.TgZ(4,"p",107)(5,"span",107),n._uU(6),n.qZA()()(),n.BQk()),2&i){const t=n.oxw();n.xp6(3),n.Oqu(t.pedido.status),n.xp6(3),n.Oqu(t.pedido.horarioAtualizacaoDescricao)}}let XX=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.carrinhoService=t,this.dominiosService=r,this.activatedRoute=s,this.pedidosService=l,this.dialogService=u,this.clipboard=p,this.detectorDevice=y,this.avaliacaoService=A,this.pedido={},this.empresa={},this.FormaDeEntrega=gP,this.acabouFazerPedido=!1,this.EnumMeioDePagamento=zp,this.titulo="Detalhes do pedido",this.msgCopiar="",this.desktop=!1,this.avaliacao={},this.msg=""}ngOnInit(){let t=window.history.state;if(this.falhaNoPagamentoOnline=t.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=t.mensagemFalhaPagamento,t.aguardandoTokenizar&&(this.aguardandoTokenizar=!0),this.desktop=this.detectorDevice.isDesktop(),this.guid=this.activatedRoute.snapshot.params.guid,this.msg=this.activatedRoute.snapshot.queryParams.msg,t&&t.pedido)this.urlArir=t.urlArir,this.empresa=t.empresa,this.pedido=t.pedido,this.falhaNoPagamentoOnline=t.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=t.mensagemFalhaPagamento,this.acabouFazerPedido=!0;else{let r=this.carrinhoService.obtenhaDadosUltimoPedido();r&&r.pedido.guid===this.guid&&(this.urlArir=r.urlAbrir,this.empresa=r.empresa,this.pedido=r.pedido,this.pedido.horarioEntregaAgendada&&(this.textoHorarioEntregaAgendada=WK()(this.pedido.horarioEntregaAgendada).utcOffset("-0400").format("DD/MM/YYYY [\xe0s] HH:mm:ss")),this.falhaNoPagamentoOnline=r.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=r.mensagemFalhaPagamento,this.acabouFazerPedido=!0),!this.guid&&this.pedido&&(this.guid=this.pedido.guid)}this.activatedRoute.snapshot.params.status3ds&&(this.retorno3ds=this.activatedRoute.snapshot.params.status3ds,"success"!==this.retorno3ds&&(this.falhaNoPagamentoOnline=!0,this.mensagemFalhaPagamento=this.activatedRoute.snapshot.queryParams.autherr||"Autentica\xe7\xe3o falhou")),this.inicieMonitoramentoPedido()}inicieMonitoramentoPedido(){this.timerPedidos=o1(0,this.retorno3ds?5e3:3e4).subscribe(()=>{this.obtenhaPedidosAtualizado()})}obtenhaPedidosAtualizado(t=null){this.tentandoNovoPagamento||this.buscandoPedido||(this.buscandoPedido=!0,this.pedidosService.monitorePagamentoOnline(this.guid).then(r=>{this.buscandoPedido=!1;let s=r.pedido;this.carregou=!0,this.pedido=s||{},this.pagamento=r.pagamento||{},this.avaliacao=r.avaliacao,null!=s.aguardandoTokenizar&&(this.aguardandoTokenizar=s.aguardandoTokenizar),this.pagamento.formaDePagamento&&this.pagamento.formaDePagamento.pix&&(this.titulo=`Pague R$ ${s.total.toFixed(2).replace(".",",")} via PIX.`),s.pago?(this.carrinhoService.obtenhaPedido().guid===this.guid&&this.carrinhoService.limpePedido(),this.foiPago=!0,this.aguardandoTokenizar=!1):this.foiPago=!1,this.falhaNoPagamentoOnline=this.pagamento.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=this.pagamento.mensagemFalhaPagamento,this.foiReembolsado=this.pagamento.foiReembolsado,this.pagamento.urlAutenticar&&!this.retorno3ds&&(this.aguardandoTokenizar=!1,this.autenticarPagamento=!0,this.open3DSDialog(this.pagamento.urlAutenticar)),s.finalizado&&this.pareMonitoramento(),this.pedido.horarioEntregaAgendada&&(this.textoHorarioEntregaAgendada=WK()(this.pedido.horarioEntregaAgendada).utcOffset("-0"+-1*this.empresa.fusoHorario+"00").format("DD/MM/YYYY [\xe0s] HH:mm:ss")),t&&t()}).catch(r=>{this.buscandoPedido=!1}))}ngOnDestroy(){this.pareMonitoramento()}deveExibirTopo(){return!1}deveExibirMenu(){return!0}cancelePedidoAguardando(){this.cancelando=!0,this.pedidosService.cancelePedido(this.pedido).then(t=>{this.cancelando=!1,this.pedido=t,this.carrinhoService.limpePedido()}).catch(t=>{this.cancelando=!1,alert(t)})}pareMonitoramento(){this.timerPedidos&&this.timerPedidos.unsubscribe()}gerePix(){this.tentandoNovoPagamento=!0,this.pedidosService.tentePagamentoPix({codigo:this.pedido.codigo}).then(t=>{this.tentandoNovoPagamento=!1,t.falhaNoPagamentoOnline?(this.falhaNoPagamentoOnline=t.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=t.mensagemFalhaPagamento):this.obtenhaPedidosAtualizado(()=>{})}).catch(t=>{this.tentandoNovoPagamento=!1,this.falhaNoPagamentoOnline=!0,this.mensagemFalhaPagamento=t})}open3DSDialog(t){if(this.dialogRefAutenticar)return;let r={title:"Autentica\xe7\xe3o 3D Secure Cart\xe3o",content:yje,width:600,height:300};window.innerWidth<800&&(r.width="95%"),this.dialogRefAutenticar=this.dialogService.open(r),this.dialogRefAutenticar.content.instance.setUrl(t),this.dialogRefAutenticar.result.subscribe(l=>{this.dialogRefAutenticar=null,l&&l.retornou&&this.obtenhaPedidosAtualizado()})}abrirPopupNovoPagamento(){const t=ZF.abraComoPopup(this.dialogService,!1,this.pedido,this.pagamento,this.dadosCartao);this.telaPagamento=t.content.instance,t.result.subscribe(r=>{r&&r instanceof Lc&&(delete this.falhaNoPagamentoOnline,delete this.retorno3ds,this.tentandoNovoPagamento=!0,this.pedidosService.tentePagamentoCartao({codigo:this.pedido.codigo,pagamentos:[{formaDePagamento:this.pagamento.formaDePagamento,dadosCartao:r.outroSemDadosSensitivos()}]}).then(s=>{this.tentandoNovoPagamento=!1,s.falhaNoPagamentoOnline?(this.falhaNoPagamentoOnline=s.falhaNoPagamentoOnline,this.mensagemFalhaPagamento=s.mensagemFalhaPagamento):this.obtenhaPedidosAtualizado(()=>{})}).catch(s=>{this.tentandoNovoPagamento=!1,this.falhaNoPagamentoOnline=!0,this.mensagemFalhaPagamento=s}))})}obtenhaDescricaoPromocoes(){return this.pedido.promocoesAplicadas.map(t=>t.promocao.descricao).join(",")}deveTerBordas(){return!0}copiarCodigoPix(){this.clipboard.copy(this.pagamento.codigoQrCode),this.msgCopiar="C\xf3digo PIX copiado com sucesso. Agora s\xf3 acessar seu Internet Banking."}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Oi),n.Y36(Eo),n.Y36(ci),n.Y36(gm),n.Y36(Na),n.Y36(Aje),n.Y36(zo),n.Y36(KK))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-acompanhar-pedido"]],decls:32,vars:16,consts:[[3,"titulo","retorno"],[1,"row","mt-2"],[1,"col-12","col-xl-7"],[1,"row"],["class","col-12",3,"hidden",4,"ngIf"],["class","col-12 ",4,"ngIf"],["class","col-12",4,"ngIf"],[1,"col-12"],[1,"card-box","ribbon-box"],[1,"header-title","mb-3"],["class","btn btn-danger  waves-effect  float-right btn-sm","style","top:-10px;",3,"disabled","hidden","click",4,"ngIf"],[1,"ribbon-content"],[1,"fundo"],["class","d-flex justify-content-center align-items-center","style","height: 400px",4,"ngIf"],[4,"ngIf"],[1,"col-12","col-xl-5"],[3,"pedido"],[1,"header-title","mb-3","mt-1"],[1,"track-order-list"],[1,"list-unstyled"],[3,"ngClass",4,"ngIf"],["class","actived",4,"ngIf"],[1,"col-12",3,"hidden"],[1,"card"],[1,"card-body","p-2"],["class","col-auto mb-2",4,"ngIf"],[1,"col"],["type","text",1,"form-control","font-14",2,"padding","20px 15px","border-radius","5px","background","#fffcfc !important","color","#000","font-weight","bold",3,"readOnly","ngModel","ngModelChange"],[1,"mt-2"],[1,"btn","btn-blue","btn-block","btn-lg",3,"click"],["class","alert alert-success mt-2 font-13","role","alert",4,"ngIf"],[1,"col-auto","mb-2"],[2,"width","200px",3,"src"],[1,"ml-2",2,"width","190px","margin-top","-10px"],[1,"small","help","font-11"],["role","alert",1,"alert","alert-success","mt-2","font-13"],[1,"mdi","mdi-check-all","mr-2"],[1,"alert","alert-light","mb-2","pedido-finalizado"],["class"," text-center",4,"ngIf"],["class","btn btn-success waves-effect btn-block","target","_blank",3,"href",4,"ngIf"],[1,"text-center"],["src","/assets/icons/icon-success.png"],[1,"alert-success"],["src","/assets/icons/aguardando-pagamento.png"],[1,"alert-warning"],["class","alert alert-info",3,"hidden",4,"ngIf"],["class","alert alert-info",4,"ngIf"],["class","alert alert-danger",4,"ngIf"],["class","btn btn-blue  waves-effect mb-2    btn-block","target","_blank",3,"href",4,"ngIf"],["class","btn btn-blue  waves-effect mb-2    btn-block","target","_blank",3,"disabled","click",4,"ngIf"],[1,"alert","alert-info",3,"hidden"],[1,"fe-alert-circle","mr-1","fa-lg"],[1,"alert","alert-info"],[1,"k-icon","k-i-loading","mr-1"],[1,"alert","alert-danger"],["target","_blank",1,"btn","btn-blue","waves-effect","mb-2","btn-block",3,"href"],["target","_blank",1,"btn","btn-blue","waves-effect","mb-2","btn-block",3,"disabled","click"],["target","_blank",1,"btn","btn-success","waves-effect","btn-block",3,"href"],[1,"fab","fa-whatsapp","fa-2x"],[1,"alert","alert-warning","font-18"],[1,"fe-star-on","mr-1","fa-lg"],[1,"alert","alert-success","font-18"],[1,"fe-check-circle","mr-1","fa-lg"],[1,"header-title","mb-1"],[3,"rate","max","readonly","rateChange"],[1,"ml-0"],[1,"ml-2","mt-2"],[1,"star"],[1,"btn","btn-danger","waves-effect","float-right","btn-sm",2,"top","-10px",3,"disabled","hidden","click"],["class","k-icon k-i-loading ml-1",4,"ngIf"],[1,"k-icon","k-i-loading","ml-1"],[1,"d-flex","justify-content-center","align-items-center",2,"height","400px"],[1,"align-self-center","text-center",2,"color","#F1556C"],[1,"fas","fa-exclamation-triangle",2,"font-size","48px"],[1,"desktop"],["class","produto   pb-0",4,"ngIf"],[1,"produto","pb-0"],[1,"media","mt-2"],[1,"media-body"],[1,"mt-0","mb-1"],[1,"fe-user","fa-lg"],[1,"mt-0","text-right"],[1,"text-muted","mt-1"],["class","produto pt-2 pb-1",4,"ngIf"],[1,"mt-2","mb-1"],[1,"fe-shopping-bag","fa-lg"],["class","produto pt-2 pb-2 ml-1 item_produto dashed",4,"ngFor","ngForOf"],["class","linha mt-0 mb-0",4,"ngIf"],[1,"totais","pt-2","pb-0"],[1,"media"],[1,"mt-0","mb-1","text-muted"],[1,"mt-0","text-muted","font-16"],["class","media",4,"ngIf"],[1,"media","mt-0"],[1,"mt-0","preco","font-18"],["class","pamento ",4,"ngFor","ngForOf"],[1,"mobile",2,"height","40px"],[1,"fa","fa-table","fa-lg"],[1,"ml-1"],[1,"produto","pt-2","pb-1"],[1,"media","mt-1"],[1,"fe-map-pin","fa-lg"],[1,"mt-0"],["class","media mt-1",4,"ngIf"],["class","pt-0 pb-0 ml-2",4,"ngIf"],[1,"fe-clock","fa-lg"],[1,"pt-0","pb-0","ml-2"],[1,"text-muted"],[1,"fas","fa-map-marker-alt"],[1,"produto","pt-2","pb-2","ml-1","item_produto","dashed"],["class","mt-1 d-block",4,"ngIf"],[1,"preco","mt-0"],["class","d-block ml-2 font-weight-bold",4,"ngFor","ngForOf"],[1,"d-block","ml-2","font-weight-bold"],[1,"mt-1","d-block"],[1,"linha","mt-0","mb-0"],["style","font-size: 10px",4,"ngIf"],[2,"font-size","10px"],[1,"mt-0","preco"],[1,"pamento"],["class","media-body",4,"ngIf"],[3,"ngClass"],["class","active-dot dot",4,"ngIf"],[1,"badge","badge-light"],["class","text-success",4,"ngIf"],[1,"active-dot","dot"],[1,"text-success"],[1,"actived"],[1,"mt-0","mb-1","text0"],["class","text-muted",4,"ngIf"],[1,"completed"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-tela",0),n.TgZ(1,"div",1)(2,"div",2)(3,"div",3),n.YNc(4,OGe,26,6,"div",4),n.YNc(5,ZGe,5,3,"div",5),n.YNc(6,VGe,4,1,"div",6),n.YNc(7,zGe,4,0,"div",6),n.YNc(8,qGe,12,5,"div",6),n.TgZ(9,"div",7)(10,"div",8)(11,"h4",9),n._uU(12,"Pedido "),n.TgZ(13,"b"),n._uU(14),n.qZA(),n.YNc(15,QGe,3,3,"button",10),n.qZA(),n.TgZ(16,"div",11)(17,"div",12),n.YNc(18,WGe,5,0,"div",13),n.YNc(19,Cqe,52,26,"div",14),n.qZA()()()()()(),n.TgZ(20,"div",15)(21,"div",8),n._UZ(22,"app-pedido-ribbon",16),n.TgZ(23,"h4",17),n._uU(24,"Acompanhamento do pedido "),n.qZA(),n.TgZ(25,"div",11)(26,"div",18)(27,"ul",19),n.YNc(28,Sqe,9,8,"li",20),n.YNc(29,wqe,8,2,"li",21),n.YNc(30,Lqe,16,11,"ng-container",14),n.YNc(31,Rqe,7,2,"ng-container",14),n.qZA()()()()()()),2&t&&(n.Q6J("titulo",r.titulo)("retorno",r.dominiosService.obtenhaUrlHome()),n.xp6(4),n.Q6J("ngIf",(null==r.pagamento?null:r.pagamento.formaDePagamento)&&r.pagamento.formaDePagamento.pix),n.xp6(1),n.Q6J("ngIf",r.acabouFazerPedido&&!r.pedido.cancelado),n.xp6(1),n.Q6J("ngIf",r.msg),n.xp6(1),n.Q6J("ngIf",r.foiPago),n.xp6(1),n.Q6J("ngIf",r.avaliacao),n.xp6(6),n.hij("#",null==r.pedido?null:r.pedido.codigo,""),n.xp6(1),n.Q6J("ngIf",null==r.pedido?null:r.pedido.aguardandoPagamentoOnline),n.xp6(3),n.Q6J("ngIf",!r.pedido&&r.carregou),n.xp6(1),n.Q6J("ngIf",r.pedido.id),n.xp6(3),n.Q6J("pedido",r.pedido),n.xp6(6),n.Q6J("ngIf",!r.pedido.aguardandoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",r.pedido.aguardandoPagamentoOnline),n.xp6(1),n.Q6J("ngIf",!r.pedido.aguardandoPagamentoOnline&&!r.pedido.cancelado&&r.pedido.aceito),n.xp6(1),n.Q6J("ngIf",r.pedido.cancelado))},dependencies:[gt,Bt,Ge,wi,ti,ni,WX,Cs,kGe,Jo,kT],styles:['.footer[_ngcontent-%COMP%]{border-top:solid 1px #eeeeee;background-color:#f7f8f8;padding:0;position:fixed}#form[_ngcontent-%COMP%]:focus-within   .footer[_ngcontent-%COMP%]{position:static;position:initial}.container_total[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.preco[_ngcontent-%COMP%]{color:#6db31b}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.container_selo[_ngcontent-%COMP%]{position:relative}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.faltam_selos[_ngcontent-%COMP%]{color:#3e48bc;margin-bottom:10px}.container-scroll[_ngcontent-%COMP%]{overflow-x:scroll;overflow-y:hidden;white-space:nowrap;-webkit-overflow-scrolling:touch;margin-right:-20px}.container-scroll[_ngcontent-%COMP%]   .col[_ngcontent-%COMP%]{margin-left:5px;margin-right:5px}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.container-scroll[_ngcontent-%COMP%]   .caixa_brinde[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;margin-bottom:10px;height:250px!important;margin-left:-3px;margin-right:-3px;padding-top:5px;background:white}.container-scroll[_ngcontent-%COMP%]   .foto_brinde[_ngcontent-%COMP%]{width:initial;width:100%}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.container-scroll[_ngcontent-%COMP%]   .preco_troca[_ngcontent-%COMP%]{font-size:11px;font-weight:400;line-height:1em}.container-scroll[_ngcontent-%COMP%]   .preco_troca.nao_atingiu[_ngcontent-%COMP%]{color:#f67682}.container-scroll[_ngcontent-%COMP%]   .preco_troca.atingiu[_ngcontent-%COMP%]{color:#6db31b;margin-right:-20px}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.icone_voltar[_ngcontent-%COMP%]{display:inline-block;fill:#4a81d4;width:32px;height:32px;vertical-align:middle}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.container_imagem[_ngcontent-%COMP%]{overflow:hidden;display:flex;max-width:100%}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.container-fotos[_ngcontent-%COMP%]{background:black}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.container-scroll[_ngcontent-%COMP%]{overflow-x:visible;overflow-x:initial;overflow-y:visible;overflow-y:initial;white-space:inherit;-webkit-overflow-scrolling:touch;margin-right:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:100%}@media (max-width: 992px){.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}}@media (min-width: 992px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}}.font-11[_ngcontent-%COMP%]{font-size:11px}.nao_mobile[_ngcontent-%COMP%]{display:none}.item_produto[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:.8rem!important}.pedido-finalizado[_ngcontent-%COMP%]   .alert-success[_ngcontent-%COMP%], .pedido-finalizado[_ngcontent-%COMP%]   .alert-warning[_ngcontent-%COMP%]{background:#fff;font-size:20px}.pedido-finalizado[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:70px}.pedido-finalizado[_ngcontent-%COMP%]   .fa-whatsapp[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px}@media (min-width: 1025px){.nao_mobile[_ngcontent-%COMP%]{display:block}.mobile[_ngcontent-%COMP%]{display:none}.footer[_ngcontent-%COMP%]{position:static!important;position:initial!important;margin-top:0}.item_produto[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{font-size:1rem}}.linha[_ngcontent-%COMP%]{border-top:1px solid #ececec;border-bottom:1px solid #fff;margin-left:0}.footer[_ngcontent-%COMP%]   .alert[_ngcontent-%COMP%]{border-radius:0;margin-bottom:0}form[_ngcontent-%COMP%]{padding-bottom:50px}.dashed[_ngcontent-%COMP%]{border-bottom-style:dashed}.media[_ngcontent-%COMP%]   .badge[_ngcontent-%COMP%]{top:-2px;position:relative}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:first-child{padding-top:0}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{position:relative;border-left:2px solid #dee2e6;padding:0 0 14px 21px}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:before{content:"";position:absolute;left:-7px;top:0;height:12px;width:12px;background-color:#b19ad7f0;border-radius:50%;border:3px solid #fff}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.completed[_ngcontent-%COMP%]:before{background-color:#7e57c2!important}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.actived[_ngcontent-%COMP%]:before{background-color:#7e57c2!important}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li.completed[_ngcontent-%COMP%]{border-color:#7e57c2}.track-order-list[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]   .active-dot.dot[_ngcontent-%COMP%]{top:-9px;left:-16px;border-color:#7e57c2}.dot[_ngcontent-%COMP%]{border:4px solid #7e57c2;background:0 0;border-radius:60px;height:30px;width:30px;animation:pulse 1.5s ease-out;animation-iteration-count:infinite;position:absolute;top:-15px;right:-2px;z-index:1;opacity:0}@keyframes pulse{0%{-webkit-transform:scale(0);opacity:0}25%{-webkit-transform:scale(0);opacity:.1}50%{-webkit-transform:scale(.1);opacity:.3}to{-webkit-transform:scale(1);opacity:0}}.star[_ngcontent-%COMP%]{font-size:2rem;color:#b0c4de}.filled[_ngcontent-%COMP%]{color:#f5b106}.bad[_ngcontent-%COMP%]{color:#deb0b0}.filled.bad[_ngcontent-%COMP%]{color:#ff1e1e}[_nghost-%COMP%]     .k-window-title{background-color:#00f!important;color:#fff!important}']}),i})();var gP=(()=>(function(i){i.RECEBER_EM_CASA="Receber em casa",i.RETIRAR="Retirar"}(gP||(gP={})),gP))();const Fqe=["telaEndereco"],Bqe=["telaListaLojas"];function Hqe(i,o){if(1&i&&(n.TgZ(0,"div",10),n._uU(1),n.TgZ(2,"button",11)(3,"span",12),n._uU(4,"\xd7"),n.qZA()()()),2&i){const t=n.oxw(2);n.xp6(1),n.hij(" ",t.msgErro," ")}}function $qe(i,o){1&i&&n._UZ(0,"i",13)}function Uqe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"div",2)(2,"label",3),n._uU(3,"Selecione o endere\xe7o de entrega "),n.qZA(),n.TgZ(4,"kendo-combobox",4),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.endereco=s)}),n.qZA()(),n.YNc(5,Hqe,5,1,"div",5),n.TgZ(6,"div",6)(7,"button",7),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.calculeTaxaEntrega())}),n.YNc(8,$qe,1,0,"i",8),n._uU(9," Entregar nesse"),n.qZA(),n.TgZ(10,"button",9),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.enderecoEscolhido=!0)}),n._uU(11,"Cadastrar Novo"),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(4),n.Q6J("data",t.enderecos)("autoFocus",!0)("allowCustom",!1)("ngModel",t.endereco)("valueField","id")("textField","descricaoCompleta"),n.xp6(1),n.Q6J("ngIf",t.msgErro),n.xp6(2),n.Q6J("disabled",!t.endereco||t.calculandoTaxa),n.xp6(1),n.Q6J("ngIf",t.calculandoTaxa)}}function Yqe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div")(1,"app-form-endereco",14,15),n.NdJ("submit",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.salveEndereco(s))})("telaCarregou",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.fnTelaCarregou(s))}),n.qZA()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("pedido",t.pedido)("buscouUmEndereco",!0)("labelSalvarEndereco",t.labelSalvarEndereco)("deveCalcularTaxaDeEntrega",!1)("cepObrigatorio",t.pedido.entrega.cepObrigatorio)}}function jqe(i,o){if(1&i&&(n.TgZ(0,"div")(1,"div",16)(2,"strong"),n._uU(3,"N\xe3o entregamos no seu endere\xe7o, mas voc\xea pode escolher uma loja para fazer retirada."),n.qZA()(),n.TgZ(4,"div",17),n._UZ(5,"app-tela-lista-lojas",18,19),n.qZA()()),2&i){const t=n.oxw();n.xp6(5),n.Q6J("popoup",!0)("grupoDeLojas",t.objGrupoDeLojas)}}let Zqe=(()=>{class i{constructor(t,r){this.autorizacao=t,this.enderecoService=r,this.carregando=!1,this.carregou=!1,this.enderecos=[],this.calculandoTaxa=!1,this.msgErro="",this.grupoDeLojas="",this.objGrupoDeLojas={},this.escolherLojaRetirada=!1,this.urlInteligente="",this.telaCarregou=new n.vpe,this.labelSalvarEndereco="Salvar Endere\xe7o"}ngOnInit(){let t=this.pedido&&this.pedido.entrega?this.pedido.entrega.endereco:{};this.enderecoEscolhido=null!=this.endereco,this.autorizacao.obtenhaEnderecos().then(r=>{this.carregando=!1,this.carregou=!0,t&&!t.id&&r.unshift(t),this.setEnderecos(r)}).catch(r=>{this.carregou=!0})}salveEndereco(t){this.enderecoService.encontreLoja(this.grupoDeLojas,t).then(r=>{if(!r.encontrou)return this.telaEndereco.calculandoTaxa=!1,void(this.escolherLojaRetirada=!0);this.window.close(t);let s=r.link+this.urlInteligente;-1!==s.indexOf("api.whatsapp.com")&&(s=r.link),window.location.href=s}).catch(r=>{this.telaEndereco.calculandoTaxa=!1,this.escolherLojaRetirada=!0,setTimeout(()=>{this.telaListaLojas.carregueLojas()})})}setEnderecos(t=[]){this.enderecos=[],t.forEach(r=>{let s=Xr.novo();Object.assign(s,r),r.cidade&&(s.cidade=r.cidade,s.estado=r.cidade.estado,s.estado=r.cidade.estado),s.descricaoCompleta||(s.descricaoCompleta=s.obtenhaEnderecoCompleto()),this.enderecos.push(s)}),this.enderecos.length&&!this.enderecoEscolhido?this.endereco=this.enderecos[0]:!this.enderecos.length&&!this.enderecoEscolhido&&(this.enderecoEscolhido=!0)}busqueCEP(t){this.telaEndereco.busqueCEP(t)}fnTelaCarregou(t){this.telaCarregou.emit(t)}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(wc))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-endereco-redirecionar"]],viewQuery:function(t,r){if(1&t&&(n.Gf(Fqe,5),n.Gf(Bqe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.telaEndereco=s.first),n.iGM(s=n.CRH())&&(r.telaListaLojas=s.first)}},inputs:{labelSalvarEndereco:"labelSalvarEndereco"},outputs:{telaCarregou:"telaCarregou"},decls:5,vars:3,consts:[[1,"modal-content"],[4,"ngIf"],[1,"form-group"],["for","descricao"],["id","descricao","name","descricao","placeholder","selecionar","appAutoFocus","",1,"form-control",3,"data","autoFocus","allowCustom","ngModel","valueField","textField","ngModelChange"],["class","alert alert-danger alert-dismissible fade show mt-2 mb-2","role","alert",4,"ngIf"],[1,"mt-3"],["type","button",1,"btn","btn-blue","btn-block",3,"disabled","click"],["class","k-icon k-i-loading  ",4,"ngIf"],["type","button",1,"btn","btn-primary","btn-block",3,"click"],["role","alert",1,"alert","alert-danger","alert-dismissible","fade","show","mt-2","mb-2"],["type","button","data-dismiss","alert","aria-label","Fechar",1,"close"],["aria-hidden","true"],[1,"k-icon","k-i-loading"],[3,"pedido","buscouUmEndereco","labelSalvarEndereco","deveCalcularTaxaDeEntrega","cepObrigatorio","submit","telaCarregou"],["telaEndereco",""],["role","alert",1,"alert","alert-success"],[2,"margin-left","-16px","margin-right","-16px","max-height","600px"],[3,"popoup","grupoDeLojas"],["telaListaLojas",""]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div"),n.YNc(2,Uqe,12,9,"div",1),n.YNc(3,Yqe,3,5,"div",1),n.YNc(4,jqe,7,2,"div",1),n.qZA()()),2&t&&(n.xp6(2),n.Q6J("ngIf",!r.enderecoEscolhido),n.xp6(1),n.Q6J("ngIf",!r.escolherLojaRetirada),n.xp6(1),n.Q6J("ngIf",r.escolherLojaRetirada))},dependencies:[Ge,ti,ni,nn,io,Za,nT,LR]}),i})();const Vqe=["conteudoDialogTemplate"];function zqe(i,o){1&i&&(n.TgZ(0,"h3",10),n._uU(1," Escolha a loja mais pr\xf3xima de voc\xea e fa\xe7a seu pedido pelo whatsapp "),n.qZA())}function Gqe(i,o){if(1&i&&(n.TgZ(0,"div",19),n._UZ(1,"img",20),n.qZA()),2&i){const t=n.oxw(3);n.xp6(1),n.Q6J("src","/images/empresa/"+t.objGrupoDeLojas.capa,n.LSH)}}function qqe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",21)(1,"div",22)(2,"h2",23),n._uU(3," Informe seu CEP para escolher entre receber em sua casa ou retirar na unidade pr\xf3xima a voc\xea: "),n.qZA(),n.TgZ(4,"div",24)(5,"div",25)(6,"span",26),n._UZ(7,"i",27),n.qZA()(),n.TgZ(8,"input",28),n.NdJ("ngModelChange",function(s){n.CHM(t);const l=n.oxw(3);return n.KtG(l.cep=s)})("keyup.enter",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalEscolherEndereco())}),n.qZA(),n.TgZ(9,"div",29)(10,"button",30),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.abraModalEscolherEndereco())}),n._UZ(11,"i",31),n.qZA()()(),n.TgZ(12,"div")(13,"h3",23),n._uU(14,"Ou"),n.qZA()(),n.TgZ(15,"button",32),n.NdJ("click",function(){n.CHM(t);const s=n.oxw(3);return n.KtG(s.usarMinhaLocalizacao())}),n._UZ(16,"i",33),n._uU(17," Usar Minha Localiza\xe7\xe3o "),n.qZA()()()}if(2&i){const t=n.oxw(3);n.xp6(8),n.Q6J("mask",t.mask)("ngModel",t.cep),n.xp6(7),n.Q6J("disabled",t.buscandoLoja)}}function Jqe(i,o){1&i&&(n.TgZ(0,"div",34),n._UZ(1,"i",35),n.TgZ(2,"h5",36),n._uU(3,"RETIRAR EM UMA LOJA"),n.qZA()())}const Qqe=function(i){return{semBanner:i}};function Wqe(i,o){if(1&i&&(n.TgZ(0,"div",14)(1,"div",2),n.YNc(2,Gqe,2,1,"div",15),n.TgZ(3,"div",16),n.YNc(4,qqe,18,3,"div",17),n.YNc(5,Jqe,4,0,"div",18),n.qZA()()()),2&i){const t=n.oxw(2);n.Udp("background-image","url(/images/empresa/"+t.objGrupoDeLojas.fundo+")"),n.xp6(2),n.Q6J("ngIf",t.objGrupoDeLojas.capa),n.xp6(1),n.Q6J("ngClass",n.VKq(6,Qqe,!t.objGrupoDeLojas.capa)),n.xp6(1),n.Q6J("ngIf",!t.objGrupoDeLojas.naoExibirBuscaDeLojasPorCep),n.xp6(1),n.Q6J("ngIf",!1)}}function Kqe(i,o){if(1&i&&n._UZ(0,"app-tela-lista-lojas",39),2&i){const t=n.oxw(3);n.Q6J("grupoDeLojas",t.objGrupoDeLojas)("mesa",t.mesa)}}function Xqe(i,o){if(1&i&&(n.TgZ(0,"div",37),n.YNc(1,Kqe,1,2,"app-tela-lista-lojas",38),n.qZA()),2&i){const t=n.oxw(2);n.xp6(1),n.Q6J("ngIf",17!==t.objGrupoDeLojas.id)}}function eJe(i,o){if(1&i&&(n.TgZ(0,"div",11),n.YNc(1,Wqe,6,8,"div",12),n.YNc(2,Xqe,2,1,"div",13),n.qZA()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngIf",t.objGrupoDeLojas.fundo),n.xp6(1),n.Q6J("ngIf",t.objGrupoDeLojas.id&&!t.objGrupoDeLojas.naoListarLojas)}}function tJe(i,o){if(1&i&&(n._UZ(0,"i",40),n.TgZ(1,"h4",41),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.Oqu(t.erro)}}const nJe=function(i){return{vermelho:i}};let iJe=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.activatedRoute=t,this.clienteService=r,this.constantsService=s,this.dialogService=l,this.detectorDevice=u,this.enderecoService=p,this.autorizacao=y,this.route=A,this.filtro={},this.franquia={},this.inicio=0,this.buscouTodas=!1,this.isMobile=!1,this.mask="00.000-000",this.grupoDeLojas="",this.url="",this.cep="",this.objGrupoDeLojas={id:null,logo:"",capa:"",fundo:"",naoListarLojas:!1,naoExibirBuscaDeLojasPorCep:!1},this.msgErro="",this.erro="",this.urlInteligente="",this.isMobile=this.detectorDevice.isMobile(),this.route.queryParams.subscribe(w=>{this.mesa=w.mesa})}ngOnInit(){this.url=location.hostname,location.port&&(this.url+=":"+location.port),this.carregueFranquia(),this.autorizacao.estaLogado().then(t=>{this.usuario=this.autorizacao.getUsuario(),this.activatedRoute.queryParams.subscribe(r=>{this.usuario&&r.u&&(this.urlInteligente=r.u)})}),this.detectorDevice.isMobile()||this.detectorDevice.isTablet()?document.body.classList.add("mobile"):document.body.classList.add("desktop"),window.addEventListener("ativouGPS",t=>{this._usarMinhaLocalizacao()}),window.addEventListener("negouGPS",t=>{this.exibaMensagemPopup()}),window.addEventListener("negouGPSParaSempre",t=>{this.exibaMensagemPopup()})}exibaMensagemPopup(){this.buscandoLoja=!1,this.erro="Voc\xea precisa ativar a geolocaliza\xe7\xe3o para poder utilizar essa funcionalidade.",this.dialogService.open({title:null,content:this.templateref,actions:[{text:"Retirar"}],width:400,minWidth:250})}onActivate(t){}carregueFranquia(){this.buscando=!0,this.clienteService.obtenhaGrupoDeLojas(this.url).then(t=>{this.objGrupoDeLojas=t,this.grupoDeLojas=t.nome,this.buscando=!1})}carregueLojas(t=null){this.buscando=!0,this.inicio=this.franquia.lojas.length,this.clienteService.obtenhaLojasFranquia(this.objGrupoDeLojas,t,this.inicio).then(r=>{r.forEach(s=>this.franquia.lojas.push(s)),this.buscando=!1,this.buscouTodas=0===r.length})}limpeBusca(){this.inicio=0,this.filtro={},this.carregueLojas()}onFiltreLojas(t){this.timerBusca&&clearTimeout(this.timerBusca),this.timerBusca=setTimeout(()=>{this.inicio=0,this.carregueLojas(t.target.value)},1e3)}fecharTelaTestar(){}abraModalEscolherEndereco(){window.ga&&window.ga("send","event",{eventCategory:"Busca Endereco",eventAction:"click",eventLabel:"busca endereco",transport:"beacon"}),window.dataLayer&&window.dataLayer.push({event:"Busca Endereco"});let t=La.calculeAlturaLargura(this.isMobile);const r=this.dialogService.open({title:"Informe Seu Endere\xe7o",content:Zqe,minWidth:250,width:t.largura}),s=r.content.instance;s.labelSalvarEndereco="Encontrar Loja",s.window=r,s.pedido={entrega:{cepObrigatorio:!0}},s.urlInteligente=this.urlInteligente,s.objGrupoDeLojas=this.objGrupoDeLojas,s.grupoDeLojas=this.grupoDeLojas,s.telaCarregou.subscribe(p=>{s.busqueCEP(this.cep)}),document.body.style.overflow="hidden",document.body.style.paddingRight="17px";const l=r.dialog.location.nativeElement;if(l){const p=l.getElementsByClassName("k-dialog-content");l.getElementsByClassName("k-dialog"),p.length>0&&p[0].classList.add("dialog-endereco")}const u=document.querySelector(".carrinho_desktop .is-sticky");u&&(u.style.paddingRight="17px"),r.result.subscribe(function(){var p=sn(function*(y){document.body.style.overflow="",document.body.style.paddingRight="",u&&(u.style.paddingRight="")});return function(y){return p.apply(this,arguments)}}())}usarMinhaLocalizacao(){if(window.flutter_inappwebview)return this.buscandoLoja=!0,void window.flutter_inappwebview.callHandler("ativarGPS");this._usarMinhaLocalizacao()}_usarMinhaLocalizacao(){window.ga&&window.ga("send","event",{eventCategory:"Localizacao",eventAction:"click",eventLabel:"usar localizacao",transport:"beacon"}),window.dataLayer&&window.dataLayer.push({event:"Localizacao"}),this.buscandoLoja=!0,navigator.geolocation.getCurrentPosition(t=>{this.enderecoService.encontreLojaGPS(this.grupoDeLojas,{lat:t.coords.latitude,lng:t.coords.longitude}).then(s=>{if(this.buscandoLoja=!1,!s.encontrou)return this.erro=s.msg,void this.exibaTelaRetirar();const l=s;let u=l.link+this.urlInteligente;-1!==u.indexOf("api.whatsapp.com")&&(u=l.link),window.location.href=u}).catch(s=>{this.buscandoLoja=!1,this.erro=s,this.exibaTelaRetirar()})},t=>{this.buscandoLoja=!1,this.erro="Voc\xea precisa ativar a geolocaliza\xe7\xe3o para poder utilizar essa funcionalidade.",this.dialogService.open({title:null,content:this.templateref,actions:[{text:"Retirar"}],width:400,minWidth:250})},{enableHighAccuracy:!0})}exibaTelaRetirar(){this.dialogService.open({title:null,content:this.templateref,actions:[{text:"Retirar"}],width:400,minWidth:250})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ci),n.Y36(ka),n.Y36(gi),n.Y36(Na),n.Y36(zo),n.Y36(wc),n.Y36(Qi),n.Y36(ci))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-pagina-franquia"]],viewQuery:function(t,r){if(1&t&&n.Gf(Vqe,5),2&t){let s;n.iGM(s=n.CRH())&&(r.templateref=s.first)}},decls:12,vars:6,consts:[[3,"ngClass"],[1,"navbar-custom"],[1,"container-fluid"],[1,"row"],[1,"logo-topo","col","mt-1",2,"padding-right","0px"],[1,"logomarca",3,"src"],["class","d-inline-block titulo-pagina","style","max-width: 500px;",4,"ngIf"],["class","content",4,"ngIf"],["kendoDialogContainer",""],["conteudoDialogTemplate",""],[1,"d-inline-block","titulo-pagina",2,"max-width","500px"],[1,"content"],["class","capa",3,"background-image",4,"ngIf"],["style","background-color: #e8e8e8;",4,"ngIf"],[1,"capa"],["class","banner-promo",4,"ngIf"],[1,"box",3,"ngClass"],["class","card busca-loja mt-2",4,"ngIf"],["class","card retirar",4,"ngIf"],[1,"banner-promo"],[3,"src"],[1,"card","busca-loja","mt-2"],[1,"card-body"],[1,"titulo"],[1,"input-group","mb-3"],[1,"input-group-prepend"],[1,"input-group-text"],[1,"fa","fa-search","fa-lg","text-muted"],["type","text","placeholder","Seu CEP","inputmode","numeric","appAutoFocus","","aria-label","Seu cep",1,"form-control",3,"mask","ngModel","ngModelChange","keyup.enter"],[1,"input-group-append"],["type","button",1,"btn","btn-success",3,"click"],[1,"fas","fa-search"],["type","button",1,"btn","btn-success","btn-localizacao","btn-block",3,"disabled","click"],[1,"fas","fa-search-location"],[1,"card","retirar"],[1,"icone","icone-store"],[1,"text-center"],[2,"background-color","#e8e8e8"],[3,"grupoDeLojas","mesa",4,"ngIf"],[3,"grupoDeLojas","mesa"],[1,"fas","fa-exclamation-circle","text-danger","mr-2",2,"font-size","50px","float","left"],[1,"mt-0"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"header")(2,"div",1)(3,"div",2)(4,"div",3)(5,"div",4),n._UZ(6,"img",5),n.YNc(7,zqe,2,0,"h3",6),n.qZA()()()()(),n.YNc(8,eJe,3,2,"div",7),n._UZ(9,"div",8),n.YNc(10,tJe,3,1,"ng-template",null,9,n.W1O),n.qZA()),2&t&&(n.Q6J("ngClass",n.VKq(4,nJe,17===r.objGrupoDeLojas.id)),n.xp6(6),n.Q6J("src","/images/empresa/"+r.objGrupoDeLojas.logo,n.LSH),n.xp6(1),n.Q6J("ngIf",17===r.objGrupoDeLojas.id),n.xp6(1),n.Q6J("ngIf",!r.buscando))},dependencies:[gt,Ge,wi,ti,ni,ja,jJ,Za,LR],styles:["header[_ngcontent-%COMP%]{display:table}.form-control[_ngcontent-%COMP%]{border:none}.logomarca[_ngcontent-%COMP%]{height:70px;float:left;margin-right:10px}.btn-localizacao[_ngcontent-%COMP%]{padding:10px 20px!important}.box.semBanner[_ngcontent-%COMP%]{top:100px;position:relative}.vermelho[_ngcontent-%COMP%]   .navbar-custom[_ngcontent-%COMP%]{background:#E82C2A;height:100px}.vermelho[_ngcontent-%COMP%]   .navbar-custom[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{color:#fff}.vermelho[_ngcontent-%COMP%]   .capa[_ngcontent-%COMP%]{background-size:1600px}.vermelho[_ngcontent-%COMP%]   .titulo-pagina[_ngcontent-%COMP%]{top:5px;position:relative}.vermelho[_ngcontent-%COMP%]   .logomarca[_ngcontent-%COMP%]{height:90px}.vermelho[_ngcontent-%COMP%]   .btn-success[_ngcontent-%COMP%]{background:#E82C2A;border:solid 1px #e3211e}.vermelho[_ngcontent-%COMP%]   .btn-localizacao[_ngcontent-%COMP%]{border-radius:50px}@media only screen and (max-width: 600px){.vermelho[_ngcontent-%COMP%]   .capa[_ngcontent-%COMP%]{background-size:800px}.vermelho[_ngcontent-%COMP%]   .box.semBanner[_ngcontent-%COMP%]{top:80px;position:relative}.btn-localizacao[_ngcontent-%COMP%]{padding:8px 20px}.navbar-custom[_ngcontent-%COMP%]{background:#E82C2A;height:120px}.d-inline-block[_ngcontent-%COMP%]{display:inline!important}}.input-group-prepend[_ngcontent-%COMP%]{border:none}.input-group-prepend[_ngcontent-%COMP%]   .input-group-text[_ngcontent-%COMP%]{background:#fff;border:none}input[_ngcontent-%COMP%]{height:60px;line-height:30px;font-size:24px}.container-fluid[_ngcontent-%COMP%]{max-width:1100px}.navbar-custom[_ngcontent-%COMP%]{position:absolute;background-color:#fff;height:80px}.navbar-custom[_ngcontent-%COMP%]   .fe-menu[_ngcontent-%COMP%]{font-size:40px}.navbar-custom[_ngcontent-%COMP%]   .logo-topo[_ngcontent-%COMP%]{display:inline-block}.navbar-custom[_ngcontent-%COMP%]   .button-menu-mobile[_ngcontent-%COMP%]{color:#000}.content[_ngcontent-%COMP%]{margin-top:80px}.capa[_ngcontent-%COMP%]{background-color:#333;background-position:center;padding-bottom:0;overflow:auto;position:relative}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]{padding-top:15px;position:relative;height:250px;padding-bottom:17px}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:100%;margin:0 auto;display:block}.capa.sem-promo[_ngcontent-%COMP%]{height:400px}.capa[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{max-width:575px;margin:0 auto}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]{background:rgba(0,0,0,.6392156863);color:#fff}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{color:#fff;font-size:25px;line-height:30px;text-align:center}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:20px;padding:10px 15px}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]{background-color:#75716feb;color:#fff}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]   h5[_ngcontent-%COMP%]{color:#fff;font-size:1.5em;padding:.2em}.capa[_ngcontent-%COMP%]   .retirar[_ngcontent-%COMP%]   .icone-store[_ngcontent-%COMP%]{height:25px;width:30px;position:absolute;left:20px;top:12px;background-color:#fff;-webkit-mask:url(/images/franquia/cib/store_1.svg) no-repeat center;mask:url(/images/franquia/cib/store_1.svg) no-repeat center}.lojas[_ngcontent-%COMP%]{background-color:#e8e8e8;min-height:600px;padding-top:30px;padding-bottom:40px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]{display:table;width:100%}.lojas[_ngcontent-%COMP%]   .bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;border-radius:100px;float:left}.lojas[_ngcontent-%COMP%]   .bolinha.aberto[_ngcontent-%COMP%]{background:#6db31b}.lojas[_ngcontent-%COMP%]   .bolinha.fechada[_ngcontent-%COMP%]{background:#f1556c}.lojas[_ngcontent-%COMP%]   .endereco[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;height:50px;overflow:hidden}.btn-secondary[_ngcontent-%COMP%]{background-color:#313131!important}@media (max-width: 900px){h3[_ngcontent-%COMP%], .h3[_ngcontent-%COMP%]{font-size:1.2rem}.container-fluid[_ngcontent-%COMP%]{max-width:inherit;width:100%}input[_ngcontent-%COMP%]{height:45px;line-height:25px;font-size:18px}.capa[_ngcontent-%COMP%]{width:100%;background-position:-87px 28px;background-size:139%;background-repeat:no-repeat;background-color:#29292b}.capa[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{max-width:92%}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]{height:auto;width:100%;padding-bottom:8px}.capa[_ngcontent-%COMP%]   .banner-promo[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:auto;width:100%}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{font-size:18px}.capa[_ngcontent-%COMP%]   .busca-loja[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{font-size:18px;padding:0 20px}.lojas[_ngcontent-%COMP%]{padding-left:10px;padding-right:10px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]{padding:10px 5px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{height:70px;margin-top:20px}.lojas[_ngcontent-%COMP%]   .card-box[_ngcontent-%COMP%]   .row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{padding-right:0;padding-left:0}}@media screen and (max-width: 768px){.logo-topo[_ngcontent-%COMP%]{display:flex!important}.logo-topo[_ngcontent-%COMP%]   .logomarca[_ngcontent-%COMP%]{display:block;margin-left:auto;margin-right:auto}}"]}),i})();function oJe(i,o){if(1&i&&(n.TgZ(0,"p",10),n._UZ(1,"i",11)(2,"i",11),n.TgZ(3,"span"),n._uU(4),n.qZA()()),2&i){const t=n.oxw();n.xp6(4),n.Oqu(t.msgSucesso)}}let rJe=(()=>{class i{constructor(t,r){this.autorizacao=t,this.detectorDevice=r,this.configuracoes={msgsMarketingAtivas:!1},this.msgSucesso="",this.ehDesktop=!1,this.ehDesktop=this.detectorDevice.isDesktop()}ngOnInit(){this.autorizacao.obtenhaConfiguracoesUsuario().then(t=>{this.configuracoes=t})}salvar(){this.autorizacao.atualizeConfiguracoesUsuario(this.configuracoes).then(t=>{this.msgSucesso=t})}deveExibirTopo(){return!1}deveExibirMenu(){return!0}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Qi),n.Y36(zo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-loja-configuracoes"]],decls:14,vars:7,consts:[[3,"titulo","retorno"],[1,"row","mt-3",3,"hidden"],[1,"col-12"],[1,"card","contato"],[1,"card-body"],["class","alert alert-success","role","alert",4,"ngIf"],[1,"form-group"],[1,"mt-0","mb-1","font-24","valor"],["name","exibirCardapio",2,"font-size","12px",3,"ngModel","onLabel","offLabel","ngModelChange"],["type","button",1,"btn","btn-primary",3,"click"],["role","alert",1,"alert","alert-success"],[1,"mdi","mdi-check-all","mr-2"]],template:function(t,r){1&t&&(n._UZ(0,"app-header-loja",0),n.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),n.YNc(5,oJe,5,1,"p",5),n.TgZ(6,"div",6)(7,"label"),n._uU(8,"Desejo receber promo\xe7\xf5es e cupons de desconto no Whatsapp?"),n.qZA(),n.TgZ(9,"div",7)(10,"kendo-switch",8),n.NdJ("ngModelChange",function(l){return r.configuracoes.msgsMarketingAtivas=l}),n.qZA()()(),n._UZ(11,"hr"),n.TgZ(12,"button",9),n.NdJ("click",function(){return r.salvar()}),n._uU(13," Salvar "),n.qZA()()()()()),2&t&&(n.Q6J("titulo","Configura\xe7\xf5es")("retorno","perfil"),n.xp6(1),n.Q6J("hidden",null==r.configuracoes),n.xp6(4),n.Q6J("ngIf",r.msgSucesso),n.xp6(5),n.Q6J("ngModel",r.configuracoes.msgsMarketingAtivas)("onLabel","Sim")("offLabel","N\xe3o"))},dependencies:[Ge,ti,ni,Xo,Vu]}),i})();function Ga(i,o,t,r){var u,s=arguments.length,l=s<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,o,t,r);else for(var p=i.length-1;p>=0;p--)(u=i[p])&&(l=(s<3?u(l):s>3?u(o,t,l):u(o,t))||l);return s>3&&l&&Object.defineProperty(o,t,l),l}function tee(i,o){return function(t,r){o(t,r,i)}}function Ra(i,o){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(i,o)}const iee=["container"];function sJe(i,o){if(1&i&&n._UZ(0,"span",9),2&i){const t=n.oxw();n.Q6J("ngClass",t.typeIconClass())}}function lJe(i,o){}function cJe(i,o){if(1&i&&n._uU(0),2&i){const t=n.oxw();n.hij(" ",t.templateString," ")}}function dJe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",10),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.onCloseClick())}),n.qZA()}if(2&i){const t=n.oxw();n.uIk("title",t.closeButtonTitle)}}const uJe=["group"],pJe={name:"@progress/kendo-angular-notification",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219065,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"};let _Je=(()=>{let i=class{constructor(t,r,s,l,u){this.cdr=t,this.element=r,this.renderer=s,this.builder=l,this.localizationService=u,this.close=new n.vpe,this.width=null,this.height=null,this.defaultHideAfter=5e3,this.animationEnd=new n.vpe,this.rtl=!1,(0,mi.s)(pJe),this.dynamicRTLSubscription=u.changes.subscribe(({rtl:p})=>{this.rtl=p,this.direction=this.rtl?"rtl":"ltr"})}get containerClass(){return!0}get closeButtonTitle(){return this.closeTitle||this.localizationService.get("closeTitle")}notificationClasses(){return`${this.type?this.typeClass():""}\n            ${this.closable?"k-notification-closable":""}`}ngOnInit(){clearTimeout(this.hideTimeout)}ngOnDestroy(){clearTimeout(this.hideTimeout),this.dynamicRTLSubscription&&this.dynamicRTLSubscription.unsubscribe()}ngAfterViewInit(){!this.closable&&!this.animation&&this.setHideTimeout(),!this.closable&&this.animation&&this.animationEnd.pipe($i(1)).subscribe(()=>this.setHideTimeout()),this.animation&&this.animate(this.animation)}typeClass(){return{none:"",success:"k-notification-success",warning:"k-notification-warning",error:"k-notification-error",info:"k-notification-info"}[this.type.style]}typeIconClass(){return{none:"",success:"k-i-success",warning:"k-i-warning",error:"k-i-error",info:"k-i-info"}[this.type.style]}onCloseClick(){clearTimeout(this.hideTimeout),this.hide()}hide(t){const r=getComputedStyle(this.element.nativeElement).height;if(this.animation&&r)return this.animate(this.animation,!0),void this.animationEnd.subscribe(()=>{this.emitClose(t)});this.emitClose(t)}setHideTimeout(){this.hideTimeout=window.setTimeout(()=>this.onCloseClick(),this.hideAfter||this.defaultHideAfter)}emitClose(t){t&&t.destroy(),this.close.emit()}play(t,r){const s=this.builder.build(t),l=this.element.nativeElement;this.renderer.addClass(l,"k-notification-container-animating");let u=s.create(r);u.onDone(()=>{this.renderer.removeClass(l,"k-notification-container-animating"),this.animationEnd.emit(),u&&(u.destroy(),u=null)}),u.play()}animate(t,r){const s=this.element.nativeElement,l=t.duration,p="slide"===t.type?this.slideAnimation(s.offsetHeight,l,r):this.fadeAnimation(l,r);this.play(p,s)}slideAnimation(t,r,s){return s?function gJe(i,o){return[Kt({height:`${i}px`}),Wi(`${o}ms ease-in`,Kt({overflow:"hidden",height:0}))]}(t,r):function hJe(i,o){return[Kt({overflow:"hidden",height:0}),Wi(`${o}ms ease-in`,Kt({height:`${i}px`}))]}(t,r)}fadeAnimation(t,r){return r?function mJe(i){return[Kt({opacity:1}),Wi(`${i}ms ease-in`,Kt({opacity:0}))]}(t):function fJe(i){return[Kt({opacity:0}),Wi(`${i}ms ease-in`,Kt({opacity:1}))]}(t)}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.sBO),n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(Wl),n.Y36(Te))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-notification"]],viewQuery:function(t,r){if(1&t&&n.Gf(iee,7,n.s_b),2&t){let s;n.iGM(s=n.CRH())&&(r.container=s.first)}},hostVars:3,hostBindings:function(t,r){2&t&&(n.uIk("dir",r.direction),n.ekj("k-notification-container",r.containerClass))},inputs:{width:"width",height:"height",templateRef:"templateRef",templateString:"templateString",cssClass:"cssClass",hideAfter:"hideAfter",closable:"closable",type:"type",animation:"animation"},features:[n._Bn([Te,{provide:gn,useValue:"kendo.notification"}])],decls:10,vars:13,consts:function(){let o;return o="Close",[["kendoNotificationLocalizedMessages","","closeTitle",o],[3,"ngClass"],[1,"k-notification-wrap","k-hstack"],["class","k-icon",3,"ngClass",4,"ngIf"],[1,"k-notification-content"],[3,"ngIf","ngTemplateOutlet"],[3,"ngIf"],["container",""],["class","k-icon k-i-close",3,"click",4,"ngIf"],[1,"k-icon",3,"ngClass"],[1,"k-icon","k-i-close",3,"click"]]},template:function(t,r){1&t&&(n.GkF(0,0),n.TgZ(1,"div",1)(2,"div",2),n.YNc(3,sJe,1,1,"span",3),n.TgZ(4,"div",4),n.YNc(5,lJe,0,0,"ng-template",5),n.YNc(6,cJe,1,1,"ng-template",6),n.GkF(7,null,7),n.qZA(),n.YNc(9,dJe,1,1,"a",8),n.qZA()()),2&t&&(n.xp6(1),n.Gre("k-widget k-notification ",r.notificationClasses(),""),n.Udp("height",r.height,"px")("width",r.width,"px"),n.Q6J("ngClass",r.cssClass),n.xp6(2),n.Q6J("ngIf",r.type&&r.type.icon&&"none"!==r.type.style),n.xp6(2),n.Q6J("ngIf",r.templateRef)("ngTemplateOutlet",r.templateRef),n.xp6(1),n.Q6J("ngIf",r.templateString),n.xp6(3),n.Q6J("ngIf",r.closable))},dependencies:function(){return[gt,Ge,Pi,Em]},encapsulation:2}),Ga([(0,n.i9L)("container",{read:n.s_b,static:!0}),Ra("design:type",n.s_b)],i.prototype,"container",void 0),Ga([(0,n.IIB)(),Ra("design:type",n.Rgc)],i.prototype,"templateRef",void 0),Ga([(0,n.IIB)(),Ra("design:type",String)],i.prototype,"templateString",void 0),Ga([(0,n.IIB)(),Ra("design:type",Number)],i.prototype,"width",void 0),Ga([(0,n.IIB)(),Ra("design:type",Number)],i.prototype,"height",void 0),Ga([(0,n.IIB)(),Ra("design:type",Object)],i.prototype,"cssClass",void 0),Ga([(0,n.IIB)(),Ra("design:type",Number)],i.prototype,"hideAfter",void 0),Ga([(0,n.IIB)(),Ra("design:type",Boolean)],i.prototype,"closable",void 0),Ga([(0,n.IIB)(),Ra("design:type",Object)],i.prototype,"type",void 0),Ga([(0,n.IIB)(),Ra("design:type",Object)],i.prototype,"animation",void 0),Ga([(0,n.pfw)("attr.dir"),Ra("design:type",String)],i.prototype,"direction",void 0),Ga([(0,n.pfw)("class.k-notification-container"),Ra("design:type",Boolean),Ra("design:paramtypes",[])],i.prototype,"containerClass",null),i=Ga([Ra("design:paramtypes",[n.sBO,n.SBq,n.Qsj,Wl,Te])],i),i})(),bJe=(()=>{let i=class{constructor(t,r,s){this.element=t,this.renderer=r,this.resolver=s,this.id="",this.notifications=[]}ngOnDestroy(){this.notifications.forEach(t=>{t.closeClickSubscription&&t.closeClickSubscription.unsubscribe()}),this.notifications=[]}addNotification(t){this.position=t.position,this.id=`${this.position.horizontal} ${this.position.vertical}`;const r=this.resolver.resolveComponentFactory(_Je),s=this.container.createComponent(r);this.applySettings(s,t);let l=null;if("function"==typeof t.content){const u=this.resolver.resolveComponentFactory(t.content);l=s.instance.container.createComponent(u)}return s.changeDetectorRef.detectChanges(),this.notifications.push(s.instance),t.appendTo&&this.applyAbsolutePosition(t.appendTo),this.applyPosition(),this.applyContainerWrap(),{afterHide:s.instance.close,hide:()=>s.instance.hide(l),notification:s,content:l||null}}hide(t){const r=t.instance,s=this.notifications.indexOf(r);this.notifications.splice(s,1),r.closeClickSubscription&&r.closeClickSubscription.unsubscribe(),r.templateRef=null,r.templateString=null,t.destroy()}applyContainerWrap(){this.renderer.setStyle(this.group.nativeElement,"flex-wrap","right"===this.position.horizontal?"wrap-reverse":"wrap")}applySettings(t,r){const s=t.instance,l=r.content,u=r.animation||null;s.closeClickSubscription=s.close.subscribe(()=>this.hide(t)),"string"==typeof l&&(s.templateString=l),l instanceof n.Rgc&&(s.templateRef=l),s.animation=u;let p=r.type;p&&void 0===p.style&&(p.style="none"),p&&void 0===p.icon&&(p.icon=!0),s.type=p,s.closeTitle=r.closeTitle,r.cssClass&&(s.cssClass=r.cssClass),s.closable=r.closable,s.hideAfter=r.hideAfter,s.width=r.width,s.height=r.height}applyAbsolutePosition(t){const r=t.element.nativeElement,s=this.element.nativeElement.children[0];"static"===window.getComputedStyle(r).position&&this.renderer.setStyle(r,"position","relative"),this.renderer.setStyle(s,"position","absolute")}applyPosition(){const t=this.element.nativeElement.children[0],r=t.getBoundingClientRect().width/2,s=this.setContainerPosition(this.position,r);Object.keys(s).forEach(l=>{t.style[l]=s[l]})}setContainerPosition(t,r){const s={horizontal:{left:{left:0,alignItems:"flex-start"},right:{right:0,alignItems:"flex-start"},center:{left:"50%",marginLeft:-r+"px",alignItems:"center"}},vertical:{top:{top:0},bottom:{bottom:0}}};return Object.assign({},s.horizontal[t.horizontal],s.vertical[t.vertical])}};return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.Qsj),n.Y36(n._Vd))},i.\u0275cmp=n.Xpm({type:i,selectors:[["kendo-notification-container"]],viewQuery:function(t,r){if(1&t&&(n.Gf(iee,7,n.s_b),n.Gf(uJe,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.container=s.first),n.iGM(s=n.CRH())&&(r.group=s.first)}},inputs:{id:"id"},decls:4,vars:0,consts:[[1,"k-notification-group"],["group",""],["container",""]],template:function(t,r){1&t&&(n.TgZ(0,"div",0,1),n.GkF(2,null,2),n.qZA())},encapsulation:2}),Ga([(0,n.i9L)("container",{read:n.s_b,static:!0}),Ra("design:type",n.s_b)],i.prototype,"container",void 0),Ga([(0,n.i9L)("group",{static:!0}),Ra("design:type",n.SBq)],i.prototype,"group",void 0),Ga([(0,n.IIB)(),Ra("design:type",String)],i.prototype,"id",void 0),i=Ga([Ra("design:paramtypes",[n.SBq,n.Qsj,n._Vd])],i),i})();const oee=new n.OlP("Notification Container");let ree=(()=>{let i=class{constructor(t,r,s){this.resolver=t,this.injector=r,this.container=s,this.notificationContainers=[],this.position={horizontal:"right",vertical:"top"}}show(t){if(!t)throw new Error("NotificationSettings settings are required");let r=this.findGroupContainer(t);const s=t.position||this.position,l=`${s.horizontal} ${s.vertical}`;let u,p,y=this.notificationContainers.find(A=>r.nativeElement.contains(A.element.nativeElement)&&A.id===l);if(!y){u=this.resolver.resolveComponentFactory(bJe).create(this.injector),y=u.instance,this.appRef.attachView(u.hostView);const A=u.location.nativeElement;let w=this.findGroupContainer(t);if(!w)throw new Error("\n                    View Container not found! Inject the NOTIFICATION_CONTAINER or define a specific ViewContainerRef via\n                    the appendTo option. See http://www.telerik.com/kendo-angular-ui/components/notification/api/NOTIFICATION_CONTAINER/\n                    for more details.\n                ");w.nativeElement.appendChild(A),this.notificationContainers.push(y)}return t.position=s,p=y.addNotification(t),p}get appRef(){return this.applicationRef||(this.applicationRef=this.injector.get(n.z2F)),this.applicationRef}findGroupContainer(t){let r;if(t.appendTo)r=t.appendTo.element;else if(this.container)r=this.container;else{const s=this.appRef.components&&this.appRef.components[0];r=s?s.location:null}return r}};return i.\u0275fac=function(t){return new(t||i)(n.LFG(n._Vd),n.LFG(n.zs3),n.LFG(oee,8))},i.\u0275prov=n.Yz7({token:i,factory:function(o){return i.\u0275fac(o)}}),i=Ga([tee(2,(0,n.tBr)(oee)),tee(2,(0,n.FiY)()),Ra("design:paramtypes",[n._Vd,n.zs3,n.SBq])],i),i})();var ZB;let Em=ZB=class extends Xa{constructor(o){super(),this.service=o}};Em.\u0275fac=function(o){return new(o||Em)(n.Y36(Te))},Em.\u0275dir=n.lG2({type:Em,selectors:[["","kendoNotificationLocalizedMessages",""]],inputs:{closeTitle:"closeTitle"},features:[n._Bn([{provide:Xa,useExisting:(0,n.Gpc)(()=>ZB)}]),n.qOj]}),Ga([(0,n.IIB)(),Ra("design:type",String)],Em.prototype,"closeTitle",void 0),Em=ZB=Ga([Ra("design:paramtypes",[Te])],Em);let vJe=(()=>{let i=class{};return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:[ree],imports:[Lt]}),i})();const yJe=["appendTo"];function CJe(i,o){if(1&i&&(n.TgZ(0,"div",11),n._UZ(1,"i",12),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErro," ")}}function AJe(i,o){if(1&i&&(n.TgZ(0,"div",13),n._UZ(1,"i",12),n.TgZ(2,"strong"),n._uU(3),n.qZA()()),2&i){const t=n.oxw();n.xp6(3),n.Oqu(t.msgWarning)}}function xJe(i,o){if(1&i&&(n.TgZ(0,"div",14),n._UZ(1,"i",15),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgAlterouLocalizacao," ")}}let aee=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w){this.router=t,this.activatedRoute=r,this._location=s,this.geoService=l,this.carrinhoService=u,this.dominiosService=p,this.enderecoService=y,this.detectorDevice=A,this.notificationService=w,this.mudandoLocalizacao=!1,this.calculandoTaxa=!1,this.msgErro="",this.msgWarning="",this.isMobile=!1,this.altura=200,this.posicaoOriginal=null,this.circuloLimites=null,this.gps=!1,this.nomePagina=p.obtenhaRaizCardapio(),this.isMobile=this.detectorDevice.isMobile(),this.altura=window.innerHeight-160,this.isMobile&&(this.altura=window.innerHeight),this.activatedRoute.queryParams.subscribe(I=>{I.gps&&(this.gps=!0)})}ngOnInit(){}deveExibirMenu(){return!1}deveExibirTopo(){return!1}ngAfterViewInit(){this.pedido=this.carrinhoService.obtenhaPedido(),this.activatedRoute.queryParams.subscribe(t=>{this.preencherEndereco=!0,"0"===t.e&&(this.preencherEndereco=!1),delete L.Icon.Default.prototype._getIconUrl,L.Icon.Default.mergeOptions({iconRetinaUrl:"/assets/leaflet/images/marker-icon-2x.png",iconUrl:"/assets/leaflet/images/marker-icon.png",shadowUrl:"/assets/leaflet/images/marker-shadow.png"}),this.map=L.map("mapid",{scrollWheelZoom:"center",minZoom:9}).setView([this.latitude,this.longitude],16),this.posicaoOriginal=this.map.getCenter(),this.map.on("move",u=>{this.marcaLoja.setLatLng(this.map.getCenter()),this.marcaLoja.closePopup()}),this.map.on("moveend",u=>{this.map.getCenter().distanceTo(this.posicaoOriginal)>500&&(this.circuloLimites||(this.circuloLimites=L.circle(this.posicaoOriginal,{autoPan:!0,draggable:!1,radius:500}),this.circuloLimites.addTo(this.map)),setTimeout(()=>{this.exibaMensagemErroLocalizacaoDistante()},300))}),this.crieMarcaLoja(this.latitude,this.longitude),this.marcaLoja.addTo(this.map).bindPopup("<p><strong>Voc\xea est\xe1 aqui.</strong></p>").openPopup(),L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'}).addTo(this.map)})}crieMarcaLoja(t,r){if(this.marcaLoja){for(let s of this.marcaLoja.assinantes)this.map.off(s.evento,s.fn);this.marcaLoja.removeFrom(this.map)}this.marcaLoja=L.marker([t,r],{autoPan:!0,draggable:!1}),this.marcaLoja.addTo(this.map)}exibaMensagemErroLocalizacaoDistante(){this.msgWarning="Voc\xea selecionou um local muito distante do endere\xe7o informado. Sua entrega ser\xe1 realizada pela localiza\xe7\xe3o informada."}salvarLocalizacao(){this.calculandoTaxa=!0;let r=this.carrinhoService.obtenhaPedido().entrega.endereco;this.preencherEndereco&&this.gps?this.geoService.obtenhaEndereco(this.map.getCenter()).then(s=>{r=Xr.novo(),Object.assign(r,s),this.pedido.entrega.formaDeEntrega=wo.RECEBER_EM_CASA,this.pedido.entrega.gps=!0,this.pedido.entrega.endereco=r,r.gps=!0,this.calculandoTaxa=!1,this.formEndereco.salvouALocalizacao(r,!1)}):(r.localizacao=this.map.getCenter().lat+","+this.map.getCenter().lng,this.enderecoService.calculeTaxaDeEntrega("Receber em casa",r,this.pedido.obtenhaSubTotal()).then(s=>{this.pedido.novosEnderecos.push(r),this.pedido.entrega.setTaxaEntrega(r,s),this.carrinhoService.salvePedido(this.pedido),this.calculandoTaxa=!1,this.formEndereco.salvouALocalizacao(r,!0)}).catch(s=>{this.calculandoTaxa=!1,this.msgErro=s}))}cancelarMudarLocalizacao(){this.formEndereco.clicouVoltarLocalizacao()}deveTerBordas(){return!1}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(ci),n.Y36(_n),n.Y36(qK),n.Y36(Oi),n.Y36(Eo),n.Y36(wc),n.Y36(zo),n.Y36(ree))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-posicao-mapa"]],viewQuery:function(t,r){if(1&t&&n.Gf(yJe,5,n.s_b),2&t){let s;n.iGM(s=n.CRH())&&(r.appendTo=s.first)}},inputs:{latitude:"latitude",longitude:"longitude",formEndereco:"formEndereco",preencherEndereco:"preencherEndereco"},decls:17,vars:6,consts:[[1,"append-container"],["appendTo",""],["id","mapid"],[1,"form-salvar-localizacao"],[1,"card","card-body"],["class","alert alert-danger mb-2","role","alert",4,"ngIf"],["class","alert alert-warning mb-2","role","alert",4,"ngIf"],[1,"fas","fa-mouse-pointer","font-18"],["class","alert alert-success mt-2","role","alert",4,"ngIf"],[1,"btn","btn-danger",3,"disabled","click"],[1,"btn","btn-primary","ml-2",3,"click"],["role","alert",1,"alert","alert-danger","mb-2"],[1,"fas","fa-exclamation-triangle"],["role","alert",1,"alert","alert-warning","mb-2"],["role","alert",1,"alert","alert-success","mt-2"],[1,"mdi","mdi-check-all","mr-2"]],template:function(t,r){1&t&&(n._UZ(0,"div",0,1)(2,"div",2),n.TgZ(3,"div",3)(4,"div",4),n.YNc(5,CJe,3,1,"div",5),n.YNc(6,AJe,4,1,"div",6),n.TgZ(7,"p")(8,"strong"),n._UZ(9,"i",7),n._uU(10," \xa0Arraste o mapa para escolher seu endere\xe7o."),n.qZA()(),n.YNc(11,xJe,3,1,"div",8),n.TgZ(12,"div")(13,"button",9),n.NdJ("click",function(){return r.salvarLocalizacao()}),n._uU(14,"Salvar Localiza\xe7\xe3o"),n.qZA(),n.TgZ(15,"button",10),n.NdJ("click",function(){return r.cancelarMudarLocalizacao()}),n._uU(16,"Voltar"),n.qZA()()()()),2&t&&(n.xp6(2),n.Udp("height",r.altura,"px"),n.xp6(3),n.Q6J("ngIf",r.msgErro),n.xp6(1),n.Q6J("ngIf",r.msgWarning),n.xp6(5),n.Q6J("ngIf",r.msgAlterouLocalizacao),n.xp6(2),n.Q6J("disabled",r.salvando||r.calculandoTaxa))},dependencies:[Ge],styles:["#mapid[_ngcontent-%COMP%]{overflow:hidden;width:100%}  .desktop .form-salvar-localizacao{position:absolute;left:10px;bottom:10px;z-index:1000;width:calc(100% - 20px);right:10px;text-align:center}  .mobile .form-salvar-localizacao{position:absolute;left:0;bottom:40px;width:100%;z-index:1000;text-align:center}  .button-notification{padding:6px;font-size:14px;z-index:999999}.append-container[_ngcontent-%COMP%]{z-index:99999;width:100%}  .desktop .append-container{position:absolute;top:60px}  .desktop .button-notification{padding:20px}"]}),i})();class SJe{constructor(o,t){this.period=o,this.scheduler=t}call(o,t){return t.subscribe(new wJe(o,this.period,this.scheduler))}}class wJe extends Ji.L{constructor(o,t,r){super(o),this.period=t,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(MJe,t,{subscriber:this,period:t}))}_next(o){this.lastValue=o,this.hasValue=!0}notifyNext(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))}}function MJe(i){let{subscriber:o,period:t}=i;o.notifyNext(),this.schedule(i,t)}function DJe(i,o,t,r){const s=window&&!!window.document&&window.document.documentElement;let l=s&&o?window:t;if(i&&(l=i&&s&&"string"==typeof i?function kJe(i,o,t){return(t?window.document:o).querySelector(i)}(i,t.nativeElement,r):i,!l))throw new Error("ngx-infinite-scroll {resolveContainerElement()}: selector for");return l}function VB(i){return i&&!i.firstChange}const EJe={clientHeight:"clientHeight",offsetHeight:"offsetHeight",scrollHeight:"scrollHeight",pageYOffset:"pageYOffset",offsetTop:"offsetTop",scrollTop:"scrollTop",top:"top"},PJe={clientHeight:"clientWidth",offsetHeight:"offsetWidth",scrollHeight:"scrollWidth",pageYOffset:"pageXOffset",offsetTop:"offsetLeft",scrollTop:"scrollLeft",top:"left"};class OJe{constructor(o=!0){this.vertical=o,this.propsMap=o?EJe:PJe}clientHeightKey(){return this.propsMap.clientHeight}offsetHeightKey(){return this.propsMap.offsetHeight}scrollHeightKey(){return this.propsMap.scrollHeight}pageYOffsetKey(){return this.propsMap.pageYOffset}offsetTopKey(){return this.propsMap.offsetTop}scrollTopKey(){return this.propsMap.scrollTop}topKey(){return this.propsMap.top}}function FJe(i){return["Window","global"].some(t=>Object.prototype.toString.call(i).includes(t))}function zB(i,o){return i?o.document.documentElement:null}function see(i,o){const t=function $Je({container:i,isWindow:o,axis:t}){const{offsetHeightKey:r,clientHeightKey:s}=lee(t);return cee(i,o,r,s)}(o);return o.isWindow?function BJe(i,o,t){const{axis:r,container:s,isWindow:l}=t,{offsetHeightKey:u,clientHeightKey:p}=lee(r),y=i+dee(zB(l,s),r,l),A=cee(o.nativeElement,l,u,p),w=function UJe(i,o,t){const r=o.topKey();if(i.getBoundingClientRect)return i.getBoundingClientRect()[r]+dee(i,o,t)}(o.nativeElement,r,l)+A;return{height:i,scrolled:y,totalToScroll:w,isWindow:l}}(t,i,o):function HJe(i,o,t){const{axis:r,container:s}=t;return{height:i,scrolled:s[r.scrollTopKey()],totalToScroll:s[r.scrollHeightKey()],isWindow:!1}}(t,0,o)}function lee(i){return{offsetHeightKey:i.offsetHeightKey(),clientHeightKey:i.clientHeightKey()}}function cee(i,o,t,r){if(isNaN(i[t])){const s=zB(o,i);return s?s[r]:0}return i[t]}function dee(i,o,t){const r=o.pageYOffsetKey(),s=o.scrollTopKey(),l=o.offsetTopKey();return isNaN(window.pageYOffset)?zB(t,i)[s]:i.ownerDocument?i.ownerDocument.defaultView[r]:i[l]}function YJe(i,o,t){let r,s;if(i.totalToScroll<=0)return!1;const l=i.isWindow?i.scrolled:i.height+i.scrolled;return t?(r=(i.totalToScroll-l)/i.totalToScroll,s=o.down/10):(r=i.scrolled/(i.scrolled+(i.totalToScroll-l)),s=o.up/10),r<=s}class VJe{constructor({totalToScroll:o}){this.lastScrollPosition=0,this.lastTotalToScroll=0,this.totalToScroll=0,this.triggered={down:0,up:0},this.totalToScroll=o}updateScrollPosition(o){return this.lastScrollPosition=o}updateTotalToScroll(o){this.lastTotalToScroll!==o&&(this.lastTotalToScroll=this.totalToScroll,this.totalToScroll=o)}updateScroll(o,t){this.updateScrollPosition(o),this.updateTotalToScroll(t)}updateTriggeredFlag(o,t){t?this.triggered.down=o:this.triggered.up=o}isTriggeredScroll(o,t){return t?this.triggered.down===o:this.triggered.up===o}}function zJe(i){const{scrollContainer:o,scrollWindow:t,element:r,fromRoot:s}=i,l=function LJe({windowElement:i,axis:o}){return function RJe(i,o){const t=i.isWindow||o&&!o.nativeElement?o:o.nativeElement;return Object.assign(Object.assign({},i),{container:t})}({axis:o,isWindow:FJe(i)},i)}({axis:new OJe(!i.horizontal),windowElement:DJe(o,t,r,s)}),u=new VJe({totalToScroll:see(r,l)}),y={up:i.upDistance,down:i.downDistance};return function GJe(i){let o=jn(i.container,"scroll");return i.throttle&&(o=o.pipe(function TJe(i,o=Au){return t=>t.lift(new SJe(i,o))}(i.throttle))),o}({container:l.container,throttle:i.throttle}).pipe((0,ps.zg)(()=>Et(see(r,l))),(0,ft.U)(A=>function qJe(i,o,t){const{scrollDown:r,fire:s}=function ZJe(i,o,t){const r=function jJe(i,o){return i<o.scrolled}(i,o);return{fire:YJe(o,t,r),scrollDown:r}}(i,o,t);return{scrollDown:r,fire:s,stats:o}}(u.lastScrollPosition,A,y)),oi(({stats:A})=>u.updateScroll(A.scrolled,A.totalToScroll)),Wt(({fire:A,scrollDown:w,stats:{totalToScroll:I}})=>function NJe(i,o,t){return!!(i&&o||!t&&o)}(i.alwaysCallback,A,u.isTriggeredScroll(I,w))),oi(({scrollDown:A,stats:{totalToScroll:w}})=>{u.updateTriggeredFlag(w,A)}),(0,ft.U)(JJe))}function JJe(i){const{scrollDown:o,stats:{scrolled:t}}=i;return{type:o?"[NGX_ISE] DOWN":"[NGX_ISE] UP",payload:{currentScrollPosition:t}}}let QJe=(()=>{class i{constructor(t,r){this.element=t,this.zone=r,this.scrolled=new n.vpe,this.scrolledUp=new n.vpe,this.infiniteScrollDistance=2,this.infiniteScrollUpDistance=1.5,this.infiniteScrollThrottle=150,this.infiniteScrollDisabled=!1,this.infiniteScrollContainer=null,this.scrollWindow=!0,this.immediateCheck=!1,this.horizontal=!1,this.alwaysCallback=!1,this.fromRoot=!1}ngAfterViewInit(){this.infiniteScrollDisabled||this.setup()}ngOnChanges({infiniteScrollContainer:t,infiniteScrollDisabled:r,infiniteScrollDistance:s}){const l=VB(t),u=VB(r),p=VB(s),y=!u&&!this.infiniteScrollDisabled||u&&!r.currentValue||p;(l||u||p)&&(this.destroyScroller(),y&&this.setup())}setup(){(function IJe(){return typeof window<"u"})()&&this.zone.runOutsideAngular(()=>{this.disposeScroller=zJe({fromRoot:this.fromRoot,alwaysCallback:this.alwaysCallback,disable:this.infiniteScrollDisabled,downDistance:this.infiniteScrollDistance,element:this.element,horizontal:this.horizontal,scrollContainer:this.infiniteScrollContainer,scrollWindow:this.scrollWindow,throttle:this.infiniteScrollThrottle,upDistance:this.infiniteScrollUpDistance}).subscribe(t=>this.zone.run(()=>this.handleOnScroll(t)))})}handleOnScroll({type:t,payload:r}){switch(t){case"[NGX_ISE] DOWN":return this.scrolled.emit(r);case"[NGX_ISE] UP":return this.scrolledUp.emit(r);default:return}}ngOnDestroy(){this.destroyScroller()}destroyScroller(){this.disposeScroller&&this.disposeScroller.unsubscribe()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.SBq),n.Y36(n.R0b))},i.\u0275dir=n.lG2({type:i,selectors:[["","infiniteScroll",""],["","infinite-scroll",""],["","data-infinite-scroll",""]],inputs:{infiniteScrollDistance:"infiniteScrollDistance",infiniteScrollUpDistance:"infiniteScrollUpDistance",infiniteScrollThrottle:"infiniteScrollThrottle",infiniteScrollDisabled:"infiniteScrollDisabled",infiniteScrollContainer:"infiniteScrollContainer",scrollWindow:"scrollWindow",immediateCheck:"immediateCheck",horizontal:"horizontal",alwaysCallback:"alwaysCallback",fromRoot:"fromRoot"},outputs:{scrolled:"scrolled",scrolledUp:"scrolledUp"},features:[n.TTD]}),i})(),WJe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({}),i})();function KJe(i,o){if(1&i){const t=n.EpF();n._UZ(0,"kendo-textbox-separator")(1,"button",30),n.TgZ(2,"button",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.busqueProdutos(0,s.filtro))}),n.qZA()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("look","clear")("icon","loading")("hidden",!t.buscando),n.xp6(1),n.Q6J("look","clear")("icon","search")("hidden",t.buscando)}}const _P=function(i){return{selecionado:i}};function XJe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",35),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.navegueParaCategoria(l))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw().$implicit,l=n.oxw();n.Q6J("hidden",r>=8&&!s.mostrarMais)("ngClass",n.VKq(3,_P,t.id===(null==l.categoria?null:l.categoria.id))),n.xp6(1),n.hij(" ",t.nome,"")}}function eQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"p",36),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit;return n.KtG(s.mostrarMais=!0)}),n._UZ(1,"i",37),n._uU(2," Mostar mais"),n.qZA()}if(2&i){const t=n.oxw().$implicit;n.Q6J("hidden",t.mostrarMais)}}function tQe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"span")(2,"a",32),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw();return n.KtG(u.navegueParaCategoria(l))}),n._uU(3),n.qZA(),n.YNc(4,XJe,2,5,"a",33),n.YNc(5,eQe,3,1,"p",34),n.qZA(),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw();n.xp6(2),n.Q6J("ngClass",n.VKq(4,_P,t.id===(null==r.categoria?null:r.categoria.id))),n.xp6(1),n.hij(" ",t.nome," "),n.xp6(1),n.Q6J("ngForOf",t.subcategorias),n.xp6(1),n.Q6J("ngIf",t.subcategorias.length>8)}}function nQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"a",35),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(4);return n.KtG(u.navegueParaCategoria(l))}),n._uU(1),n.qZA()}if(2&i){const t=o.$implicit,r=o.index,s=n.oxw().$implicit,l=n.oxw().$implicit;n.Q6J("hidden",r>=8&&!s.mostrarMais)("ngClass",n.VKq(3,_P,t.id===(null==l?null:l.id))),n.xp6(1),n.hij(" ",t.nome,"")}}function iQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"p",36),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit;return n.KtG(s.mostrarMais=!0)}),n._UZ(1,"i",37),n._uU(2," Mostar mais"),n.qZA()}if(2&i){const t=n.oxw().$implicit;n.Q6J("hidden",t.mostrarMais)}}function oQe(i,o){if(1&i){const t=n.EpF();n.ynx(0),n.TgZ(1,"a",32),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(3);return n.KtG(u.navegueParaCategoria(l))}),n._uU(2),n.qZA(),n.YNc(3,nQe,2,5,"a",33),n.YNc(4,iQe,3,1,"p",34),n.BQk()}if(2&i){const t=o.$implicit,r=n.oxw().$implicit;n.xp6(1),n.Q6J("ngClass",n.VKq(4,_P,t.id===(null==r?null:r.id))),n.xp6(1),n.hij(" ",t.nome," "),n.xp6(1),n.Q6J("ngForOf",t.subcategorias),n.xp6(1),n.Q6J("ngIf",t.subcategorias.length>8)}}function rQe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"div",9),n._uU(2),n.qZA(),n.YNc(3,oQe,5,6,"ng-container",10),n.BQk()),2&i){const t=o.$implicit;n.xp6(2),n.hij(" ",t.nome," "),n.xp6(1),n.Q6J("ngForOf",t.subcategorias)}}function aQe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,rQe,4,2,"ng-container",10),n.BQk()),2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngForOf",t.categorias)}}function sQe(i,o){1&i&&n._UZ(0,"i",38)}function lQe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1,"na categoria "),n.TgZ(2,"b"),n._uU(3),n.qZA()()),2&i){const t=n.oxw(2);n.xp6(3),n.hij('"',t.categoria.nome,'"')}}function cQe(i,o){if(1&i&&(n.TgZ(0,"span"),n._uU(1,' que contenha "'),n.TgZ(2,"b"),n._uU(3),n.qZA(),n._uU(4,'"'),n.qZA()),2&i){const t=n.oxw(2);n.xp6(3),n.Oqu(t.filtro)}}function dQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",39)(1,"div",8)(2,"h5",40),n._uU(3,"N\xe3o foi encontrado nenhum produto "),n.YNc(4,lQe,4,1,"span",11),n.YNc(5,cQe,5,1,"span",11),n.qZA(),n.TgZ(6,"a",41),n.NdJ("click",function(s){n.CHM(t);const l=n.oxw();return n.KtG(l.verTodos(s))}),n._uU(7,"voltar"),n.qZA()()()}if(2&i){const t=n.oxw();n.xp6(4),n.Q6J("ngIf",t.categoria),n.xp6(1),n.Q6J("ngIf",t.filtro)}}function uQe(i,o){if(1&i&&n._UZ(0,"img",53),2&i){const t=n.oxw().$implicit;n.Q6J("src","/images/empresa/"+t.imagens[0].linkImagem,n.LSH)}}function pQe(i,o){1&i&&(n.TgZ(0,"h5",54),n._uU(1,"Esgotado!"),n.qZA())}function hQe(i,o){1&i&&(n.TgZ(0,"span",55)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function gQe(i,o){if(1&i&&(n.TgZ(0,"i")(1,"label",58),n._uU(2),n.qZA()()),2&i){const t=n.oxw(2).$implicit;n.xp6(2),n.hij("*At\xe9 ",t.qtdMaxima," por pedido")}}function fQe(i,o){1&i&&(n.TgZ(0,"span",59),n._uU(1," / kg "),n.qZA())}function mQe(i,o){if(1&i&&(n.TgZ(0,"h5",56),n.YNc(1,gQe,3,1,"i",11),n.YNc(2,fQe,2,0,"span",57),n.qZA()),2&i){const t=n.oxw().$implicit,r=n.oxw();n.xp6(1),n.Q6J("ngIf",t.qtdMaxima),n.xp6(1),n.Q6J("ngIf",r.exibirUnidade(t))}}function _Qe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",42),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw();return n.KtG(u.abraDetalhesProduto(l))}),n.TgZ(1,"div",43)(2,"div",44),n.YNc(3,uQe,1,1,"img",45),n.qZA(),n.TgZ(4,"div",46)(5,"div",47),n.YNc(6,pQe,2,0,"h5",48),n.TgZ(7,"p",49),n._uU(8),n.qZA(),n._UZ(9,"br"),n.TgZ(10,"h5",50),n.YNc(11,hQe,3,0,"span",51),n._uU(12),n.ALo(13,"currency"),n.qZA(),n.YNc(14,mQe,3,2,"h5",52),n.qZA()()()()}if(2&i){const t=o.$implicit;n.xp6(3),n.Q6J("ngIf",t.imagens&&t.imagens.length>0),n.xp6(3),n.Q6J("ngIf",t.indisponivel),n.xp6(2),n.Oqu(t.nome),n.xp6(3),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.hij(" ",n.xi3(13,6,t.valorMinimo?t.valorMinimo:t.preco,"BRL"),""),n.xp6(2),n.Q6J("ngIf",!t.indisponivel)}}function bQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li")(1,"a",62),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw(2);return n.KtG(u.navegueParaCategoria(l))}),n._uU(2),n.qZA()()}if(2&i){const t=o.$implicit;n.xp6(2),n.hij(" ",t.nome,"")}}function vQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li")(1,"a",60),n.NdJ("click",function(){const l=n.CHM(t).$implicit,u=n.oxw();return n.KtG(u.navegueParaCategoria(l))}),n._uU(2),n.qZA(),n.TgZ(3,"ul",61),n.YNc(4,bQe,3,1,"li",10),n.qZA()()}if(2&i){const t=o.$implicit;n.xp6(2),n.hij(" ",t.nome,""),n.xp6(2),n.Q6J("ngForOf",t.subcategorias)}}function yQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"li")(1,"a",63),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecheMenuCategorias())}),n._UZ(2,"i",64),n._uU(3," fechar"),n.qZA()()}}function CQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",65),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.sharedDataService.notifiqueExibirMenu())}),n.qZA()}}const AQe=function(i){return{exibir:i}};let uee=(()=>{class i{constructor(t,r,s,l,u,p,y,A){this.router=t,this.constantsService=r,this.sharedDataService=s,this.produtoService=l,this.dominiosService=u,this.activatedRoute=p,this.dialogService=y,this.location=A,this.subCategorias=[],this.produtos=[],this.isMobile=!1,this.items=[],this.buscando=!0,this.buscandoScroll=!1,this.buscouTodos=!1,this.TOTALPORPAGINA=30,this.filtro="",this.todas=!1}ngOnInit(){var t=this;this.activatedRoute.params.subscribe(function(){var r=sn(function*(s){t.categorias=window.history.state.categorias?window.history.state.categorias:yield t.produtoService.listeCategoriasMegamenu(),t.todas="todas"===s.categoria,t.setTodasCategorias(t.todas?null:Number(s.categoria)),t.calculeBreadCrumbs(),window.history.state.produtos?(t.buscando=!1,t.buscandoScroll=!1,t.produtos=window.history.state.produtos,t.buscouTodos=!0):t.busqueProdutos()});return function(s){return r.apply(this,arguments)}}())}verTodos(t){return this.busqueProdutos(0),!1}onScroll(){this.buscandoScroll||this.buscouTodos||(this.buscandoScroll=!0,this.busqueProdutos(this.produtos.length+1,this.filtro))}busqueProdutos(t=0,r=null){this.buscando=!0,this.categoria?this.produtoService.listeDaCategoria(this.categoria.id,t,this.TOTALPORPAGINA,r).then(s=>{let l=s.produtos;this.buscando=!1,this.buscandoScroll=!1,this.produtos=0===t?l:[...this.produtos,...l],this.buscouTodos=0===l.length}):this.produtoService.listeDaVitrine(t,this.TOTALPORPAGINA,r).then(s=>{let l=s.produtos;this.buscando=!1,this.buscandoScroll=!1,this.produtos=0===t?l:[...this.produtos,...l],this.buscouTodos=0===l.length})}navegueParaCategoria(t){return this.sharedDataService.exibirMenuMobile=!1,this.produtos=[],this.router.navigateByUrl("/busca/ecommerce/"+t.id,{state:{categoria:t,categorias:this.categorias}}),!1}calculeBreadCrumbs(){if(this.items=[{icon:"home",text:"loja",path:"loja"}],this.categoria){let r=this.obtenhaCategoriasAcima(this.categoria).map(s=>({text:s.nome,title:s.nome,id:s.id}));r.push({text:this.categoria.nome,title:this.categoria.nome}),this.items.push(...r)}}exibirUnidade(t){return t.tipoDeVenda&&"Peso"===t.tipoDeVenda}abraDetalhesProduto(t){this.window=t.montar?HE.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t):u0.abraComoPopup(this.router,this.location,this.activatedRoute,this.dialogService,this.isMobile,t)}onItemClick(t){const r=this.items.findIndex(u=>u.text===t.text);this.items.slice(0,r+1);let l=[];l=t.path?[t.path]:["/busca/ecommerce",t.id],this.router.navigate(l)}ngAfterViewInit(){}obtenhaCategoriasAcima(t){let r=[],s=this.obtenhaCategoriaAcima(t);return s&&(r.push(s),s.categoriaPai&&r.unshift(s.categoriaPai)),r}obtenhaCategoriaAcima(t){return t&&t.categoriaPai?this.todasCategorias.find(s=>s.id===t.categoriaPai.id):null}obtenhaCategoriaTopo(t){let r=this.obtenhaCategoriaAcima(t);return r&&r.categoriaPai?this.obtenhaCategoriaTopo(r.categoriaPai):r||t}setTodasCategorias(t){if(this.todasCategorias=[],this.categorias.forEach(r=>{this.adicioneCategoria(r);for(let s=0;s<r.subcategorias.length;s++){let l=r.subcategorias[s];this.adicioneCategoria(l);for(let u=0;u<l.subcategorias.length;u++)this.adicioneCategoria(l.subcategorias[u])}}),t){this.categoria=this.todasCategorias.find(s=>s.id===Number(t));let r=this.obtenhaCategoriaTopo(this.categoria);this.categoriaTopo=this.categorias.find(s=>s.id===r.id)}}adicioneCategoria(t){let r=Object.assign({},t);delete r.subcategorias,this.todasCategorias.push(r)}deveExibirMenu(){return!0}deveExibirTopo(){return!0}deveTerBordas(){return!0}exibirMenuDessaCategoria(t){return this.categoria.nivel<t.nivel||this.categoria.id===t.id||this.categoria.categoriaPai&&t.id===this.categoria.categoriaPai.id}fecheMenuCategorias(){return this.sharedDataService.exibirMenuMobile=!1,!1}onChange(t){this.buscando||(this.filtro=t,t&&t.length>=3&&(this.timerBusca&&clearTimeout(this.timerBusca),this.timerBusca=setTimeout(()=>{this.busqueProdutos(0,t)},1e3)))}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(gi),n.Y36(ZE),n.Y36(Cl),n.Y36(Eo),n.Y36(ci),n.Y36(Na),n.Y36(_n))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-busca-ecommerce"]],decls:45,vars:22,consts:[[1,"row","mt-2"],[1,"col"],["separatorIcon","line",3,"items","itemClick"],["name","filtro","placeholder","O que voc\xea procura?","appAutoFocus","",1,"busca",3,"ngModel","showSuccessIcon","autoFocus","valueChange","ngModelChange"],["kendoTextBoxSuffixTemplate",""],[1,"row","mt-2","filtros"],[1,"d-none","d-sm-block","col-sm-3"],[1,"card"],[1,"card-body"],[1,"card-title"],[4,"ngFor","ngForOf"],[4,"ngIf"],[1,"col-12","col-sm-9"],["class","k-i-loading k-icon ml-2",4,"ngIf"],["class","card mt-2",4,"ngIf"],["infiniteScroll","",1,"row","search-results",3,"infiniteScrollDistance","infiniteScrollThrottle","scrollWindow","scrolled"],["class","col-6 col-sm-4  produto pt-2 pb-2 cpointer",3,"click",4,"ngFor","ngForOf"],[1,"row","mt-2","mb-2",3,"hidden"],[1,"col","text-center"],[1,"k-i-loading","k-icon","mr-1"],[2,"padding-bottom","80px"],[1,"d-block","d-sm-none"],[1,"left-side-menu","enlarged","filtros",3,"ngClass"],[1,"slimScrollDiv"],[1,"enlarged","slimscroll-menu"],[1,"nav-user","titulo"],[1,"nav-user","mt-2"],[1,"sidebar-menu"],[1,"metismenu"],["class","modal-backdrop",3,"click",4,"ngIf"],["kendoButton","",3,"look","icon","hidden"],["kendoButton","",3,"look","icon","hidden","click"],["href","",1,"categoria-pai",3,"ngClass","click"],["href","","class"," ml-2",3,"hidden","ngClass","click",4,"ngFor","ngForOf"],["class","cpointer  text-blue",3,"hidden","click",4,"ngIf"],["href","",1,"ml-2",3,"hidden","ngClass","click"],[1,"cpointer","text-blue",3,"hidden","click"],[1,"k-icon","k-i-plus"],[1,"k-i-loading","k-icon","ml-2"],[1,"card","mt-2"],[2,"line-height","20px"],["href","",1,"text-primary",3,"click"],[1,"col-6","col-sm-4","produto","pt-2","pb-2","cpointer",3,"click"],[2,"border","solid 1px #efefef"],[1,"justify-content-center","align-items-center","box-imagem","d-flex"],["class","img img-fluid","alt","Imagem",3,"src",4,"ngIf"],[1,"media"],[1,"media-body","pt-2","text-center"],["class","text-danger",4,"ngIf"],[1,"mb-2","nome-produto"],[1,"mt-0","mb-1","font-15","preco"],["class"," text-muted font-12",4,"ngIf"],["class","preco font-14",4,"ngIf"],["alt","Imagem",1,"img","img-fluid",3,"src"],[1,"text-danger"],[1,"text-muted","font-12"],[1,"preco","font-14"],["class","text-muted font-11",4,"ngIf"],[1,"text-muted",2,"font-size","10px"],[1,"text-muted","font-11"],["href","",1,"categoria-pai",3,"click"],[1,"nav-second-level"],["href","",3,"click"],[1,"cpointer","text-muted",3,"click"],[1,"fa","fa-arrow-left","ct-point"],[1,"modal-backdrop",3,"click"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"div",1)(2,"kendo-breadcrumb",2),n.NdJ("itemClick",function(l){return r.onItemClick(l)}),n.qZA()(),n.TgZ(3,"div",1)(4,"kendo-textbox",3),n.NdJ("valueChange",function(l){return r.onChange(l)})("ngModelChange",function(l){return r.filtro=l}),n.YNc(5,KJe,3,6,"ng-template",4),n.qZA()()(),n.TgZ(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"h4"),n._uU(11,"Filtrar Resultados"),n.qZA(),n.TgZ(12,"div",9),n._uU(13),n.qZA(),n.YNc(14,tQe,6,6,"ng-container",10),n.YNc(15,aQe,2,1,"ng-container",11),n.qZA()()(),n.TgZ(16,"div",12)(17,"h3"),n._uU(18),n.qZA(),n.TgZ(19,"h6"),n._uU(20,"Produtos encontrados: "),n.YNc(21,sQe,1,0,"i",13),n.qZA(),n.YNc(22,dQe,8,2,"div",14),n.TgZ(23,"div",15),n.NdJ("scrolled",function(){return r.onScroll()}),n.YNc(24,_Qe,15,9,"div",16),n.qZA(),n.TgZ(25,"div",17)(26,"div",18),n._UZ(27,"i",19),n._uU(28," carregando... "),n.qZA()(),n._UZ(29,"div",20),n.qZA()(),n.TgZ(30,"span",21)(31,"div",22)(32,"div",23)(33,"div",24)(34,"div",25)(35,"h4"),n._uU(36,"Filtrar Resultados"),n.qZA()(),n.TgZ(37,"div",26)(38,"div",9),n._uU(39),n.qZA()(),n.TgZ(40,"div",27)(41,"ul",28),n.YNc(42,vQe,5,2,"li",10),n.YNc(43,yQe,4,0,"li",11),n.qZA()()()()(),n.YNc(44,CQe,1,0,"div",29),n.qZA()),2&t&&(n.xp6(2),n.Q6J("items",r.items),n.xp6(2),n.Q6J("ngModel",r.filtro)("showSuccessIcon",!1)("autoFocus",!0),n.xp6(9),n.hij(" ",null==r.categoriaTopo?null:r.categoriaTopo.nome," "),n.xp6(1),n.Q6J("ngForOf",null==r.categoriaTopo?null:r.categoriaTopo.subcategorias),n.xp6(1),n.Q6J("ngIf",!r.categoria),n.xp6(3),n.Oqu(null==r.categoria?null:r.categoria.nome),n.xp6(3),n.Q6J("ngIf",r.buscando),n.xp6(1),n.Q6J("ngIf",!r.produtos.length&&r.buscouTodos),n.xp6(1),n.Q6J("infiniteScrollDistance",2)("infiniteScrollThrottle",24)("scrollWindow",!0),n.xp6(1),n.Q6J("ngForOf",r.produtos),n.xp6(1),n.Q6J("hidden",!r.buscandoScroll),n.xp6(6),n.Q6J("ngClass",n.VKq(20,AQe,r.sharedDataService.exibirMenuMobile)),n.xp6(8),n.hij(" ",null==r.categoriaTopo?null:r.categoriaTopo.nome," "),n.xp6(3),n.Q6J("ngForOf",null==r.categoriaTopo?null:r.categoriaTopo.subcategorias),n.xp6(1),n.Q6J("ngIf",!1),n.xp6(1),n.Q6J("ngIf",r.sharedDataService.exibirMenuMobile))},dependencies:[gt,Bt,Ge,ti,ni,Mg,QJe,no,OI,VG,$R,Za,Jo],styles:[".busca[_ngcontent-%COMP%]{height:32px;width:30em}.search-results[_ngcontent-%COMP%]{height:auto;overflow:hidden}.box-imagem[_ngcontent-%COMP%]{height:200px}.img-fluid[_ngcontent-%COMP%]{max-height:200px;max-width:150px}.nome-produto[_ngcontent-%COMP%]{height:45px;margin:0 10px}  .k-breadcrumb .k-breadcrumb-link{color:#3d033d!important}.filtros[_ngcontent-%COMP%]   .card-title[_ngcontent-%COMP%]{color:#000;font-size:16px;line-height:2;cursor:pointer;border-bottom:1px #333 solid}.filtros[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:block;color:#333;margin-bottom:10px}.filtros[_ngcontent-%COMP%]   a.categoria-pai[_ngcontent-%COMP%]{color:#56167d!important;font-weight:500}.filtros[_ngcontent-%COMP%]   a.categoria-pai.selecionado[_ngcontent-%COMP%]{font-weight:800}.filtros[_ngcontent-%COMP%]   a.selecionado[_ngcontent-%COMP%]{color:#3d033d!important;text-decoration:underline}.left-side-menu[_ngcontent-%COMP%]{left:0;bottom:0;top:auto;width:80%;transition:all .2s ease-out;z-index:10010!important;padding-top:0}.left-side-menu.exibir[_ngcontent-%COMP%]{display:block}.left-side-menu[_ngcontent-%COMP%]   .slimscroll-menu[_ngcontent-%COMP%]{overflow:scroll;max-height:800px}.left-side-menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#6e768e;display:block;padding:2px 15px;position:relative;transition:all .4s;font-family:Poppins,sans-serif;font-size:.875rem}.left-side-menu[_ngcontent-%COMP%]   .nav-second-level[_ngcontent-%COMP%]{margin-left:15px}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;background-color:#333;opacity:.5;z-index:10001!important}.preco[_ngcontent-%COMP%]{color:#6db31b}@media (max-width: 768px){.busca[_ngcontent-%COMP%]{max-width:100%;margin-top:16px}  .k-breadcrumb .k-breadcrumb-link,   .k-breadcrumb .k-breadcrumb-root-link{font-size:12px;padding:6px 0}.titulo[_ngcontent-%COMP%]{padding-top:15px!important;background:rgba(0,0,0,.7882352941);padding-bottom:15px!important}.titulo[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff}.row[_ngcontent-%COMP%]{margin-left:-6px!important;margin-right:-6px!important}.row[_ngcontent-%COMP%]   .col-6[_ngcontent-%COMP%], .row[_ngcontent-%COMP%]   .col-12[_ngcontent-%COMP%]{padding-right:6px;padding-left:6px}}"]}),i})();const xQe=["tabs"],TQe=["divProdutos"];function SQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",6,7)(2,"div",8,9),n.NdJ("click",function(s){const u=n.CHM(t).$implicit,p=n.MAs(3),y=n.oxw();return n.KtG(y.abraCardapio(p,u,s))}),n._UZ(4,"img",10),n.TgZ(5,"div",11)(6,"div",12),n._uU(7),n.qZA()(),n.O4$(),n.TgZ(8,"svg",13),n._UZ(9,"circle",14),n.qZA()()()}if(2&i){const t=o.$implicit;n.ekj("ecommerce",!0),n.xp6(4),n.MGl("src","/images/empresa/",t.empresa.logo,"",n.LSH),n.xp6(3),n.Oqu(t.empresa.nome)}}function wQe(i,o){1&i&&n._UZ(0,"div",15)}function MQe(i,o){if(1&i&&n._UZ(0,"img",43),2&i){const t=n.oxw(3).$implicit;n.Q6J("src","/images/empresa/"+t.imagens[0].linkImagem,n.LSH)}}function DQe(i,o){if(1&i&&n._UZ(0,"img",43),2&i){const t=n.oxw(3).$implicit;n.Q6J("src","/images/produtos/"+(t.imagemCodigoDeBarras.linkImagem?t.imagemCodigoDeBarras.linkImagem:"carrinho-produtos.svg"),n.LSH)}}function kQe(i,o){if(1&i&&(n.TgZ(0,"div",41),n.YNc(1,MQe,1,1,"img",42),n.YNc(2,DQe,1,1,"img",42),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",!t.imagemCodigoDeBarras),n.xp6(1),n.Q6J("ngIf",t.imagemCodigoDeBarras)}}function IQe(i,o){1&i&&(n.TgZ(0,"span",47)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function EQe(i,o){1&i&&(n.TgZ(0,"span",50),n._uU(1," / Kg "),n.qZA())}function PQe(i,o){if(1&i&&(n.TgZ(0,"h5",48),n._uU(1),n.ALo(2,"currency"),n.YNc(3,EQe,2,0,"span",49),n.qZA()),2&i){const t=n.oxw(4).$implicit,r=n.oxw(2);n.xp6(1),n.hij(" ",n.xi3(2,2,t.valorMinimo?t.valorMinimo:t.preco,"BRL")," "),n.xp6(2),n.Q6J("ngIf",r.exibirUnidade(t))}}function OQe(i,o){if(1&i&&(n.TgZ(0,"h5",51),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw(4).$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.precoAntigo,"BRL")," ")}}function NQe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,IQe,3,0,"span",44),n.YNc(2,PQe,4,5,"h5",45),n.YNc(3,OQe,3,4,"h5",46),n.BQk()),2&i){const t=n.oxw(3).$implicit,r=n.oxw(2);n.xp6(1),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.Q6J("ngIf",r.exibirPrecos),n.xp6(1),n.Q6J("ngIf",t.precoAntigo&&r.exibirPrecos)}}function LQe(i,o){1&i&&(n.TgZ(0,"span",47)(1,"i"),n._uU(2,"A partir de"),n.qZA()())}function RQe(i,o){if(1&i&&(n.TgZ(0,"h5",55),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.novoPreco?t.novoPreco:t.preco,"BRL")," ")}}function FQe(i,o){if(1&i&&(n.TgZ(0,"h5",51),n._uU(1),n.ALo(2,"currency"),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.hij(" ",n.xi3(2,1,t.precoAntigo,"BRL")," ")}}function BQe(i,o){if(1&i&&(n.TgZ(0,"div",53),n._uU(1),n.YNc(2,LQe,3,0,"span",44),n.YNc(3,RQe,3,4,"h5",54),n.YNc(4,FQe,3,4,"h5",46),n.qZA()),2&i){const t=o.$implicit,r=n.oxw(6);n.xp6(1),n.hij(" ",t.descricao," "),n.xp6(1),n.Q6J("ngIf",t.valorMinimo),n.xp6(1),n.Q6J("ngIf",r.exibirPrecos),n.xp6(1),n.Q6J("ngIf",t.precoAntigo&&r.exibirPrecos)}}function HQe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,BQe,5,4,"div",52),n.BQk()),2&i){const t=n.oxw(3).$implicit;n.xp6(1),n.Q6J("ngForOf",t.tamanhos)}}function $Qe(i,o){if(1&i&&(n.TgZ(0,"i")(1,"label",56),n._uU(2),n.qZA()()),2&i){const t=n.oxw(3).$implicit;n.xp6(2),n.hij("*At\xe9 ",t.qtdMaxima," por pedido")}}function UQe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,NQe,4,3,"ng-container",38),n.YNc(2,HQe,2,1,"ng-container",38),n.YNc(3,$Qe,3,1,"i",38),n.BQk()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",!(null!=t.template&&t.template.exibirPrecosTamanhos)),n.xp6(1),n.Q6J("ngIf",null==t.template?null:t.template.exibirPrecosTamanhos),n.xp6(1),n.Q6J("ngIf",t.qtdMaxima)}}function YQe(i,o){1&i&&(n.TgZ(0,"h5",57),n._uU(1,"Esgotado!"),n.qZA())}function jQe(i,o){if(1&i&&n._UZ(0,"img",60),2&i){const t=n.oxw(3).$implicit;n.Q6J("src","/images/empresa/"+t.imagens[0].linkImagem,n.LSH)}}function ZQe(i,o){if(1&i&&n._UZ(0,"img",60),2&i){const t=n.oxw(3).$implicit;n.Q6J("src","/images/produtos/"+(t.imagemCodigoDeBarras.linkImagem?t.imagemCodigoDeBarras.linkImagem:"carrinho-produtos.svg"),n.LSH)}}function VQe(i,o){if(1&i&&(n.TgZ(0,"div",58),n.YNc(1,jQe,1,1,"img",59),n.YNc(2,ZQe,1,1,"img",59),n.qZA()),2&i){const t=n.oxw(2).$implicit;n.xp6(1),n.Q6J("ngIf",!t.imagemCodigoDeBarras),n.xp6(1),n.Q6J("ngIf",t.imagemCodigoDeBarras)}}function zQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",31),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw().$implicit,u=n.oxw();return n.KtG(u.abraDetalhesProduto(l,s,null))}),n.YNc(1,kQe,3,2,"div",32),n.TgZ(2,"div",33)(3,"div",34)(4,"h5",35),n._uU(5),n.qZA(),n.TgZ(6,"span",36),n._uU(7),n.qZA(),n.TgZ(8,"div",37),n.YNc(9,UQe,4,3,"ng-container",38),n.qZA(),n.YNc(10,YQe,2,0,"h5",39),n.qZA(),n.YNc(11,VQe,3,2,"div",40),n.qZA()()}if(2&i){const t=n.oxw().$implicit,r=n.oxw(2);n.Udp("width",r.larguraProdutos,"px"),n.ekj("destacado",!0),n.xp6(1),n.Q6J("ngIf",t.imagemCodigoDeBarras||t.imagens&&t.imagens.length>0),n.xp6(4),n.hij("",t.nome," "),n.xp6(2),n.Oqu(t.descricao),n.xp6(2),n.Q6J("ngIf",!t.indisponivel&&t.exibirPrecoNoCardapio),n.xp6(1),n.Q6J("ngIf",t.indisponivel),n.xp6(1),n.Q6J("ngIf",(t.imagemCodigoDeBarras||t.imagens&&t.imagens.length>0)&&!t.destacado&&!1)}}function GQe(i,o){if(1&i&&(n.ynx(0),n.YNc(1,zQe,12,10,"div",30),n.BQk()),2&i){const t=o.$implicit;n.xp6(1),n.Q6J("ngIf",t.preco>0||t.valorMinimo>0)}}function qQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",61),n.NdJ("click",function(){n.CHM(t);const s=n.oxw().$implicit,l=n.oxw();return n.KtG(l.abraTelaCardapio(s))}),n.TgZ(1,"div",33)(2,"div",34)(3,"h5",62),n._uU(4,"Ver Mais"),n.qZA()()()()}if(2&i){const t=n.oxw(2);n.Udp("width",t.larguraProdutos,"px"),n.Q6J("hidden",!1)}}function JQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",16,7),n._UZ(2,"img",17),n.TgZ(3,"p",18),n._uU(4),n.qZA(),n.TgZ(5,"div",19)(6,"a",20),n.NdJ("click",function(s){const u=n.CHM(t).$implicit,p=n.oxw();return n.KtG(p.abraCardapio(null,u,s))}),n._uU(7,"Ver todos"),n.qZA()(),n.TgZ(8,"div",21),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(13),l=n.MAs(1),u=n.oxw();return n.KtG(u.moverScrollEsquerda(s,l))}),n._UZ(9,"i",22),n.qZA(),n.TgZ(10,"div",23),n.NdJ("click",function(){n.CHM(t);const s=n.MAs(13),l=n.MAs(1),u=n.oxw();return n.KtG(u.moverScrollDireita(s,l))}),n._UZ(11,"i",24),n.qZA(),n.TgZ(12,"div",25,26)(14,"div",27),n.YNc(15,GQe,2,1,"ng-container",28),n.YNc(16,qQe,5,3,"div",29),n.qZA()()()}if(2&i){const t=o.$implicit,r=n.oxw();n.ekj("ecommerce",!0),n.xp6(2),n.MGl("src","/images/empresa/",t.empresa.logo,"",n.LSH),n.xp6(1),n.Q6J("id","emp_"+t.empresa.id),n.xp6(1),n.hij(" ",t.empresa.nome," "),n.xp6(6),n.Q6J("hidden",t.produtos.length<3),n.xp6(2),n.ekj("vitrine",!0),n.xp6(3),n.Q6J("ngForOf",t.produtos),n.xp6(1),n.Q6J("ngIf",r.layoutHorinzontal)}}let GB=(()=>{class i{constructor(t,r,s,l,u,p,y,A,w,I,P,F,V,oe,Ae){this.router=t,this.sanitizer=r,this.clienteService=s,this.produtoService=l,this.carrinhoService=u,this.autorizacaoLojaService=p,this.sharedDataService=y,this.activatedRoute=A,this.constantsService=w,this.dominiosService=I,this.detectorDevice=P,this.dialogService=F,this.location=V,this.bannerService=oe,this.httpClient=Ae,this.categorias=[],this.empresas=[],this.produtosPorCategoria={},this.nomeCategoriaDestaque="DESTAQUES",this.categoriaDestaque={id:2,nome:this.nomeCategoriaDestaque},this.qtdeMaxima=10,this.exibirPrecos=!0,this.exibirMenuMobile=!1,this.alturaBanner=230,this.colunasMenu={},this.vitrines=[],this.produtos=[],this.categoriaMonteSuaPizza={id:1,nome:""},this.destaques=[],this.isDesktop=!1,this.nomePagina=I.obtenhaRaizCardapio(),this.isMobile=this.detectorDevice.isMobile(),this.hashMesa=this.activatedRoute.snapshot.params.hm,this.codigopromo=this.activatedRoute.snapshot.params.codigopromo,this.dominiosService.hashMesa=this.hashMesa,this.isMobile&&(this.alturaBanner=100),this.apiLoaded=this.httpClient.jsonp("https://maps.googleapis.com/maps/api/js?key=AIzaSyBlPtg98e0hBo0JJSYMB3R7iakhFe_iT4o&callback=initMap&libraries=&v=weekly","callback").pipe((0,ft.U)(()=>(console.log("chamando"),!0)),hs(ue=>(console.log(ue),Et(!1)))),this.inicializePedido().then(()=>{this.activatedRoute.queryParams.subscribe(ue=>{ue.nl&&this.autorizacaoLojaService.atualizeUsuarioLogado().then(()=>{}),ue.c&&(this.codigoProduto=parseInt(ue.c,10),isNaN(this.codigoProduto)&&(this.codigoProduto=null)),ue.t&&(this.idTamanho=parseInt(ue.t,10),isNaN(this.idTamanho)&&(this.idTamanho=null)),ue.e&&(this.indiceProduto=parseInt(ue.e,10),this.indiceProduto=isNaN(this.indiceProduto)?null:this.indiceProduto+"")}),this.codigopromo&&this.carrinhoService.atualizeValorDesconto(this.codigopromo,this.empresa,!0).then(()=>{})}),this.sharedDataService.exibirMenu.subscribe(ue=>{this.exibirMenuMobile=ue})}ngOnInit(){this.carregando=!0,this.exibirMegaMenu=!1,this.layoutHorinzontal=!1;const t=this.hashMesa||this.pedido&&this.pedido.mesa?"MESA":"DELIVERY";if(this.exibirMegaMenu&&this.produtoService.listeCategoriasMegamenu().then(r=>{this.categoriasMegamenu=r,this.setColunasMegaMenu()}).catch(r=>{console.log(r)}),this.vitrines=[],this.vitrines.length&&this.exibirMegaMenu)return this.carregando=!1,void this.definaCategoriasFixas();this.produtoService.listeAhVendaGrupo(t,this.layoutHorinzontal).subscribe(r=>{this.empresas=r;for(let s of this.empresas)this.produtoService.listeAhVenda(s.empresa,this.obtenhaTipoCardapio()).subscribe(l=>{console.log(l)});this.carregando=!1})}obtenhaTipoCardapio(){return this.hashMesa||this.pedido&&this.pedido.mesa?"MESA":"DELIVERY"}selecionou(t){const r="tab_"+t.nome,s=t.nome;this.posicioneTab(r),this.posicioneConteudo(s),this.tabs.select(r),this.router.navigateByUrl("/categoria/"+t.nome.toLowerCase()+"/"+t.id,{replaceUrl:!1}).then(()=>{})}definaCategoriasFixas(){let t=this.produtos.filter(r=>null!=r.template&&r.template.montarPizza);t.length>0&&(this.categorias.splice(0,0,this.categoriaMonteSuaPizza),this.produtosPorCategoria[this.categoriaMonteSuaPizza.nome]=[],t.forEach(r=>{r.tamanhos.forEach(s=>{if(s.qtdeSabores>1){let l=String(`${r.template.nome} ${s.descricao} com at\xe9  ${s.qtdeSabores} sabores`),u=s.novoPreco?s.novoPreco:s.preco,p=this.produtosPorCategoria[this.categoriaMonteSuaPizza.nome].find(y=>y.id===s.template.id);if(!p){let y=String(`${r.template.nome} ${s.descricao}`);s.qtdeSabores>1&&(y=String(`${y}  com at\xe9  ${s.qtdeSabores} sabores`)),p={id:s.template.id,nome:l,montar:!0,descricao:y,template:r.template,tamanho:s,valorMinimo:u,sabores:[],camposAdicionais:r.camposAdicionais,tamanhos:[]},this.produtosPorCategoria[this.categoriaMonteSuaPizza.nome].push(p)}p.sabores.push(r),p.preco<u&&(p.valorMinimo=u)}})})),this.destaques=[],this.produtos.forEach(r=>{r.destaque&&this.destaques.push(Object.assign({},r)),r.tamanhos&&r.tamanhos.length&&null!=r.tamanhos.find(s=>s.destaque)&&this.destaques.push(Object.assign({},r))}),this.destaques.forEach(r=>r.destacado=!0),this.destaques.length&&(this.categorias.splice(0,0,this.categoriaDestaque),this.produtosPorCategoria[this.categoriaDestaque.nome]=this.destaques);for(let r=this.vitrines.length-1;r>=0;r--){let s=this.vitrines[r];this.categorias.splice(0,0,{nome:s.nome,id:s.id,vitrine:!0});let l=s.produtosNaVitrine.map(u=>u.produto);l.forEach(u=>u.destacado=!0),this.produtosPorCategoria[s.nome]=l}}abraDetalhesProduto(t,r,s){if(window.multipedido)this.router.navigateByUrl("/marca/"+t.empresa.dominio+"?c="+r.id);else{const l=this.calculeUrl(t);window.location.href=l+"?c="+r.id}}moverScrollDireita(t,r){if(this.movendo)return;let l=r.clientWidth;this.isMobile&&(l=this.larguraProdutos+10);const u=t.scrollLeft+l;this.movendo=!0,t.scroll({left:u,behavior:"smooth"}),r.classList.add("moveu"),setTimeout(()=>{this.movendo=!1,t.scrollWidth-l===u&&r.classList.add("scroll_fim")},500)}moverScrollEsquerda(t,r){if(this.movendo)return;r.classList.remove("scroll_fim");let l=r.clientWidth;this.isMobile&&(l=this.larguraProdutos+10);let u=t.scrollLeft-l;u<0&&(u=0),this.movendo=!0,t.scroll({left:u,behavior:"smooth"}),setTimeout(()=>{0===u&&r.classList.remove("moveu"),this.movendo=!1},500)}abraTelaCardapio(t){const r=this.calculeUrl(t);return window.location.href=r,!1}exibirUnidade(t){return t.tipoDeVenda&&"Peso"===t.tipoDeVenda}inicializePedido(){return this.carrinhoService.setContexto(window.multipedido),new Promise(t=>{this.hashMesa?this.carrinhoService.obtenhaMesa(this.hashMesa).then(r=>{r?(r.hash=this.hashMesa,this.pedido=this.carrinhoService.obtenhaPedido(r),t(null)):this.mesaExpirada=!0}):(this.pedido=this.carrinhoService.obtenhaPedido(),t(null))})}setColunasMegaMenu(){for(let t of this.categoriasMegamenu){this.colunasMenu[t.id]={coluna1:{total:0,subcategorias:[]},coluna2:{total:0,subcategorias:[]},coluna3:{total:0,subcategorias:[]}};for(let r=0;r<t.subcategorias.length;r++){let s=this.colunasMenu[t.id],l=this.obtenhaMaisVazia(s.coluna1,s.coluna2,s.coluna3),u=t.subcategorias[r];l.subcategorias.push(u),l.total+=1+u.subcategorias.length}}}obtenhaProduto(t){return this.produtos.find(r=>r.id===t)}obtenhaMaisVazia(t,r,s){return t.total<=r.total&&t.total<=s.total?t:r.total<=s.total?r:s}posicioneTab(t){t=t.trim();const r=document.getElementById(t),s=$("#tabs.nav-tabs"),l=r.offsetLeft-s.width()/2+r.getBoundingClientRect().width/2;s.animate({scrollLeft:l},100)}getOffset(t){const r=t.getBoundingClientRect();return{left:r.left+window.scrollX,top:r.top+window.scrollY}}onScrollEvent(t){if(this.estaFazendoScroll)return;const r=document.querySelectorAll(".categoria");for(let s=r.length-1;s>=0;s--){const l=r[s],p=this.getOffset(l).top-document.querySelector(".header").clientHeight-50;if(window.scrollY>=p){const y="tab_"+l.innerText;this.tabs&&this.tabs.activeId!==y&&(this.tabs.select(y),this.posicioneTab("tab_"+l.innerText));break}}}posicioneConteudo(t){t=t.trim();const s=this.getOffset(document.getElementById(t)).top-document.querySelector(".header").clientHeight-20;this.estaFazendoScroll=!0;let l=-1;const u=()=>{if(l!==window.scrollY)return l=window.scrollY,void setTimeout(u,100);this.estaFazendoScroll=!1};setTimeout(u,100),window.scroll({top:s,behavior:"smooth"})}deveExibirBannerTema(){return!1}deveExibirMenu(){return!0}deveExibirTopo(){return!0}deveTerBordas(){return!0}topoDeveSerReduzido(){return!0}abraCardapio(t,r,s=null){let l=null;t&&(l=t.getElementsByTagName("svg")[0],l.classList.add("svg_animacao")),setTimeout(()=>{if(window.multipedido)this.router.navigateByUrl("/marca/"+r.empresa.dominio);else{const u=this.calculeUrl(r);window.location.href=u}l&&setTimeout(()=>{l.classList.remove("svg_animacao")},500)},300),s&&s.preventDefault()}calculeUrl(t){const r=t.empresa,s=r.urlDaEmpresa;return s?"https://"+s.hostname:this.obtenhaHostLoja(r)}obtenhaHostLoja(t){return"https://"+t.dominio+"."+("Catalogo"===t.tipoDeLoja?"meucatalogo":"meucardapio")+".ai"}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(rd),n.Y36(ka),n.Y36(Cl),n.Y36(Oi),n.Y36(Qi),n.Y36(ZE),n.Y36(ci),n.Y36(gi),n.Y36(Eo),n.Y36(zo),n.Y36(Na),n.Y36(_n),n.Y36(CQ),n.Y36(Wo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-multi-loja"]],viewQuery:function(t,r){if(1&t&&(n.Gf(xQe,5),n.Gf(TQe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.tabs=s.first),n.iGM(s=n.CRH())&&(r.divProdutos=s.first)}},hostBindings:function(t,r){1&t&&n.NdJ("scroll",function(l){return r.onScrollEvent(l)},!1,n.Jf7)},decls:6,vars:5,consts:[[1,"row","mt-2","flex-nowrap",2,"margin","0px"],["class","mb-3 col-auto col-empresa","style","position: relative;",3,"ecommerce",4,"ngFor","ngForOf"],[1,"mt-3"],["divProdutos",""],["class","k-i-loading ml-1 mr-1 centralizado","style","font-size: 40px;height: 90px;",4,"ngIf"],["class","mb-3 secaoCategoria","style","position: relative;",3,"ecommerce",4,"ngFor","ngForOf"],[1,"mb-3","col-auto","col-empresa",2,"position","relative"],["secaoCategoria",""],[1,"circle",3,"click"],["circulo",""],[3,"src"],[1,"div_label_empresa"],[1,"label_empresa"],["viewBox","0 0 100 100","xmlns","http://www.w3.org/2000/svg",0,"xml","space","preserve",2,"enable-background","new -580 439 577.9 194"],["cx","50","cy","50","r","40"],[1,"k-i-loading","ml-1","mr-1","centralizado",2,"font-size","40px","height","90px"],[1,"mb-3","secaoCategoria",2,"position","relative"],[1,"imagem_empresa2","mr-1","mb-1",3,"src"],[1,"categoria","ml-2","font-weight-bold","font-14",3,"id"],[1,"ver_todos"],["href","",3,"click"],[1,"arrow","esquerda",3,"click"],[1,"fas","fa-chevron-left"],[1,"arrow","direita",3,"hidden","click"],[1,"fas","fa-chevron-right"],[1,"produtos_categoria"],["divProdutosCategoria",""],[1,"scroll_categoria"],[4,"ngFor","ngForOf"],["class","produto pt-2 pb-2",3,"width","hidden","click",4,"ngIf"],["class","produto pt-2 pb-2 destacado",3,"width","destacado","click",4,"ngIf"],[1,"produto","pt-2","pb-2","destacado",3,"click"],["class","container_foto",4,"ngIf"],[1,"media"],[1,"media-body","pt-0","ml-1"],[1,"mt-0","mb-1","font-14","nome-produto"],[1,"text-muted","descricao","mb-1","font-13"],[1,"div_preco"],[4,"ngIf"],["class","text-danger",4,"ngIf"],["style","width: 128px;","class","justify-content-center align-items-center ml-1",4,"ngIf"],[1,"container_foto"],["class","img img-fluid mb-2","alt","Imagem",3,"src",4,"ngIf"],["alt","Imagem",1,"img","img-fluid","mb-2",3,"src"],["class"," text-muted font-12 mr-1",4,"ngIf"],["class","preco font-14 mb-0",4,"ngIf"],["class","preco font-14 antigo mb-0",4,"ngIf"],[1,"text-muted","font-12","mr-1"],[1,"preco","font-14","mb-0"],["class"," text-muted font-11",4,"ngIf"],[1,"text-muted","font-11"],[1,"preco","font-14","antigo","mb-0"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],["class","preco font-14 mt-0 mb-0",4,"ngIf"],[1,"preco","font-14","mt-0","mb-0"],[1,"text-muted",2,"font-size","10px"],[1,"text-danger"],[1,"justify-content-center","align-items-center","ml-1",2,"width","128px"],["class","img img-fluid","alt","Imagem",3,"src",4,"ngIf"],["alt","Imagem",1,"img","img-fluid",3,"src"],[1,"produto","pt-2","pb-2",3,"hidden","click"],[1,"preco","font-16",2,"margin","85px 15px"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0),n.YNc(1,SQe,10,4,"div",1),n.qZA(),n.TgZ(2,"div",2,3),n.YNc(4,wQe,1,0,"div",4),n.YNc(5,JQe,17,10,"div",5),n.qZA()),2&t&&(n.ekj("scrollx",r.isMobile),n.xp6(1),n.Q6J("ngForOf",r.empresas),n.xp6(3),n.Q6J("ngIf",r.carregando),n.xp6(1),n.Q6J("ngForOf",r.empresas))},dependencies:[Bt,Ge,Jo],styles:['.preco[_ngcontent-%COMP%]{color:#6db31b;display:inline-block;margin-right:10px}.preco.antigo[_ngcontent-%COMP%]{color:#ccc;text-decoration:line-through}.produto[_ngcontent-%COMP%]{border-bottom:solid 1px #e8e8e8;min-height:150px;cursor:pointer}.produto.destacado[_ngcontent-%COMP%]{height:auto}.produto[_ngcontent-%COMP%]   .media-body[_ngcontent-%COMP%]{padding-top:15px}.media[_ngcontent-%COMP%]   .text-danger[_ngcontent-%COMP%]{color:#f1556c7a!important}.produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain;display:block;margin:0 auto}.capa_empresa[_ngcontent-%COMP%]{height:200px;background-size:cover}.capa_empresa.centralizada[_ngcontent-%COMP%]{z-index:10;background-repeat:no-repeat;background-position-x:center;background-size:cover}.cartao[_ngcontent-%COMP%]{background:white;margin-left:auto;margin-right:auto;padding:15px}.cartao.conteudo[_ngcontent-%COMP%]{border-bottom-left-radius:10px;border-bottom-right-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0;width:100%}.cartao.semborda[_ngcontent-%COMP%]{margin-top:20px;border:0 none;background-color:transparent;padding:0}.bg-content[_ngcontent-%COMP%]{display:none}.imagem_empresa[_ngcontent-%COMP%]{width:80px;height:80px;float:left}.detalhes_empresa[_ngcontent-%COMP%]{float:left;margin-left:10px;display:inline-block;width:calc(100% - 90px)}.nome_empresa[_ngcontent-%COMP%]{font-size:24px;color:#000;font-weight:500;display:block;line-height:1.2;max-height:1.2em;overflow:hidden}.endereco[_ngcontent-%COMP%]{font-size:11px}.whatsapp[_ngcontent-%COMP%]{display:block;margin-bottom:5px}.whatsapp[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:12px;font-weight:600;color:#199d0f}.dados_empresa[_ngcontent-%COMP%]{min-height:90px;overflow:hidden}.linha[_ngcontent-%COMP%]{border-bottom:#EFEFEF solid 1px}.descricao_empresa[_ngcontent-%COMP%]{margin:10px;font-size:12px;font-weight:400}.menu[_ngcontent-%COMP%]{color:#525252;margin-top:15px}.brinde[_ngcontent-%COMP%]{margin-top:10px}.valor[_ngcontent-%COMP%]{position:absolute;color:#fff;font-size:20px;top:10px;width:100%;text-align:center}.row[_ngcontent-%COMP%]{padding-left:5px;padding-right:5px}.brinde[_ngcontent-%COMP%]{text-align:center;position:relative}.preco_troca[_ngcontent-%COMP%]{font-weight:600}.nome_brinde[_ngcontent-%COMP%]{display:inline-block;margin-top:5px;font-size:16px;background:#4b4b4b;color:#fff;margin-left:2px;padding:5px 10px;border-radius:50px;font-weight:200}.foto_brinde[_ngcontent-%COMP%]{display:block;float:none;margin:5px auto 0;border-radius:30px;width:100%}.foto_ambiente[_ngcontent-%COMP%]{display:block;float:none;margin:0 auto;border-radius:20px}.nome_brinde_pontos[_ngcontent-%COMP%]{font-size:15px;font-weight:600}.botoes[_ngcontent-%COMP%]{margin:20px;text-align:center;font-size:16px;font-weight:400}.botao[_ngcontent-%COMP%]{padding:15px}.botao.verde[_ngcontent-%COMP%]{background:#6DB31B;color:#fff}.botao.azul[_ngcontent-%COMP%]{border:#1c95d4 solid 1px;margin-top:10px;color:#1c95d4}.icone.whatsapp[_ngcontent-%COMP%]{width:16px;display:inline-block;margin:0}.float[_ngcontent-%COMP%]{position:fixed;width:60px;height:60px;bottom:40px;right:40px;background-color:#25d366;color:#fff;border-radius:50px;text-align:center;font-size:30px;box-shadow:2px 2px 3px #999;z-index:100}.my-float[_ngcontent-%COMP%]{margin-top:16px}.fidelidade[_ngcontent-%COMP%]{height:16px;width:24px;background:#3B86FF;text-align:center;float:left;line-height:1em;margin:2px 3px}.azul[_ngcontent-%COMP%]   .coracao[_ngcontent-%COMP%]{display:inline-block;fill:#fff;width:16px;height:16px;vertical-align:middle;margin:0}.azul[_ngcontent-%COMP%]{color:#3b86ff;font-weight:700}.bolinha[_ngcontent-%COMP%]{margin:5px;width:8px;height:8px;background:#6DB31B;border-radius:100px;float:left}.horario[_ngcontent-%COMP%]{padding-top:2px;margin-left:7px;width:100%}.bolinha.fechado[_ngcontent-%COMP%]{background:red}.horario[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{font-size:11px;font-weight:700}.icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:5px}.slides-fotos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{text-align:center;line-height:32px}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{position:fixed;overflow:auto;z-index:1000;top:0;background:white;height:100%;width:100%}.slides-produtos[_ngcontent-%COMP%]{padding-top:60px;background:rgba(255,255,255,.9);height:100%}.cartao.descricao[_ngcontent-%COMP%]{margin-top:15px;border-radius:10px;box-shadow:0 4px 10px -2px #e2e3e3}.grande[_ngcontent-%COMP%]{font-size:18px;font-weight:700}.botao_produto[_ngcontent-%COMP%]{border:1px solid black;padding:15px;border-radius:30px;text-align:center;font-weight:500;font-size:14px}.botao_produto.verde[_ngcontent-%COMP%]{border:1px solid #3fad36;color:#3fad36}.titulo-produtos[_ngcontent-%COMP%]{background:white}.slides-produtos[_ngcontent-%COMP%]   .icon-fechar[_ngcontent-%COMP%]{width:32px;height:32px;float:left;margin-left:0;margin-top:9px}@media screen and (min-width: 768px){.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:90%;margin-left:auto;margin-right:auto}.bg-content[_ngcontent-%COMP%]{z-index:0;position:absolute;left:0;top:0;right:0;width:120%;height:120%;margin-left:-10%;background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(24px);display:block}.content[_ngcontent-%COMP%]{position:relative;z-index:10}.slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{left:20%}.sobre_nos[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 4px 10px -2px #e2e3e3;padding:10px 10px 5px;background:white;margin-top:10px}.brinde[_ngcontent-%COMP%]{margin-top:0}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:90%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.capa_empresa.desfocada[_ngcontent-%COMP%]{height:305px}.cartao.conteudo[_ngcontent-%COMP%]{border-radius:0 0 30px 10px/0px 0px 30px 10px;box-shadow:0 4px 10px -2px #e2e3e3}.cartao.conteudo.topo[_ngcontent-%COMP%]{margin-top:0}}.icone.insta[_ngcontent-%COMP%]{fill:#525252}.cinza[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#525252}.FlexEmbed[_ngcontent-%COMP%]{display:block;overflow:hidden;position:relative}.FlexEmbed[_ngcontent-%COMP%]:before{content:"";display:block;width:100%}.FlexEmbed--2by1[_ngcontent-%COMP%]:before{padding-bottom:25%}.FlexEmbed.desfocada[_ngcontent-%COMP%]{background-position:0px 0px,50% 50%;background-size:auto,cover;background-repeat:repeat,no-repeat;opacity:1;filter:blur(12px);z-index:-1;position:absolute;width:100%;max-width:100%;display:block;top:0}.CoverImage[_ngcontent-%COMP%]{background-position:50%;background-repeat:no-repeat;background-size:cover;margin:0 auto;max-height:300px;max-width:90%}.megamenu[_ngcontent-%COMP%]{overflow:hidden;background-color:#fff;border:1px solid #dcdcdc;font-family:Arial;height:50px}.megamenu[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:left;font-size:14px;text-align:center;padding:7px 8px;text-decoration:none;color:#0b0b0b}.megamenu[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#56167d;font-size:14px}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]{float:left;overflow:hidden;position:inherit}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]   .dropbtn[_ngcontent-%COMP%]{font-size:15px!important;padding:12px 15px;border:none;outline:none;color:#333;background-color:inherit;font:inherit;margin:0;text-transform:uppercase}.megamenu[_ngcontent-%COMP%]   .dropdown-content[_ngcontent-%COMP%]{border:1px solid #dcdcdc;display:none;position:absolute;background-color:#fff;width:100%;left:0;box-shadow:0 8px 16px #0003;z-index:1}.megamenu[_ngcontent-%COMP%]   .dropdown[_ngcontent-%COMP%]:hover   .dropdown-content[_ngcontent-%COMP%]{display:block}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]{float:left;width:33.33%;padding:10px;background-color:#fff}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   .grupo.esconder[_ngcontent-%COMP%]{max-height:220px;overflow:hidden}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{float:none;background-color:#fff;padding:5px;text-decoration:none;display:block;text-align:left}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{background-color:#ddd}.megamenu[_ngcontent-%COMP%]   .linha[_ngcontent-%COMP%]:after{content:"";display:table;clear:both}.left-side-menu[_ngcontent-%COMP%]{left:0;bottom:0;top:auto;width:80%;transition:all .2s ease-out;z-index:10010!important;padding-top:0}.left-side-menu[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]{padding-top:15px!important;background:rgba(0,0,0,.7882352941);padding-bottom:15px!important}.left-side-menu[_ngcontent-%COMP%]   .titulo[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{color:#fff}.left-side-menu.exibir[_ngcontent-%COMP%]{display:block}.left-side-menu[_ngcontent-%COMP%]   .slimscroll-menu[_ngcontent-%COMP%]{overflow:scroll;max-height:800px}.left-side-menu[_ngcontent-%COMP%]   ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#6e768e;display:block;padding:10px 15px;position:relative;transition:all .4s;font-family:Poppins,sans-serif;font-size:.875rem}.modal-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1040;background-color:#333;opacity:.5;z-index:10001!important}@media (max-width: 992px){.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]{width:100%}.megamenu[_ngcontent-%COMP%]   .coluna[_ngcontent-%COMP%]   .grupo[_ngcontent-%COMP%]{max-height:inherit;height:auto}.nome_empresa[_ngcontent-%COMP%]{font-size:16px!important}.cartao.conteudo.topo[_ngcontent-%COMP%]{width:100%}.cartao[_ngcontent-%COMP%]{padding:10px}  .mat-tab-header{margin-left:-19px!important;margin-right:-19px!important}.produto[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2}}@media (min-width: 992px){.produto[_ngcontent-%COMP%]{width:calc(50% - 20px);display:inline-block;border:1px solid #f2f2f2;box-shadow:0 1px 4px #0000000d;border-radius:4px;margin:10px;padding:8px}.produto[_ngcontent-%COMP%]:hover{border:1px solid #e3e3e3}.produto[_ngcontent-%COMP%]   .nome-produto[_ngcontent-%COMP%]{font-size:16px}.produto[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{font-size:18px!important}.produto[_ngcontent-%COMP%]   .preco.antigo[_ngcontent-%COMP%]{font-size:16px!important}.produto[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;-webkit-box-orient:vertical;display:-webkit-box;-webkit-line-clamp:2;min-height:35px}.cartao.conteudo[_ngcontent-%COMP%], .cartao.semborda[_ngcontent-%COMP%], .slides-fotos[_ngcontent-%COMP%], .slides-produtos[_ngcontent-%COMP%]{max-width:100%;margin-left:auto;margin-right:auto}.capa_empresa.centralizada[_ngcontent-%COMP%]{height:310px;max-width:100%;margin:0 auto;box-shadow:0 4px 10px -2px #a9aaaa}.CoverImage[_ngcontent-%COMP%]{max-width:100%}.tirar_margem[_ngcontent-%COMP%]{margin-left:0!important;margin-right:0!important}}.header[_ngcontent-%COMP%]{position:sticky;top:-1px;background:#fff;z-index:999}.remova_padding[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.bg-light[_ngcontent-%COMP%]{background-color:#f7f8f8!important}  .nav-tabs{overflow-x:hidden;overflow-y:hidden;flex-wrap:nowrap;padding-bottom:2px;border-bottom:none;position:sticky;top:55px;z-index:9999;border-bottom:solid 1px #eaeaea;background:#fff;width:100%}  .mobile .nav-tabs{overflow-x:scroll}  .mobile .nav-tabs::-webkit-scrollbar{display:none}  .nav-tabs .nav-link{font-size:14px;color:#a6a5a5}  .nav-bordered li a{padding:15px 20px!important}  .nav-tabs .nav-link.active,   .nav-tabs .nav-item.show .nav-link{background:#fff;font-weight:700}  .mobile .nav-tabs{border-bottom:solid 1px #dadada!important;box-shadow:0 3px 5px #e9e9e9}  .nav-tabs li{white-space:nowrap}  .tab-content{padding:5px}.tirar_margem[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.font-11[_ngcontent-%COMP%]{font-size:11px}.font-12[_ngcontent-%COMP%]{font-size:12px}.ver_todos[_ngcontent-%COMP%]{display:none;font-size:14px}.ver_todos[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{cursor:pointer}.arrow[_ngcontent-%COMP%]{display:none}.ecommerce[_ngcontent-%COMP%]   .secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%], .ecommerce.secaoCategoria.moveu[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{display:block}.ecommerce[_ngcontent-%COMP%]   .secaoCategoria.scroll_fim[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{display:none}.ecommerce[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{width:100%;overflow:hidden;position:relative}.ecommerce[_ngcontent-%COMP%]   .scroll_categoria[_ngcontent-%COMP%]{grid-auto-flow:column;display:grid;width:-moz-fit-content;width:fit-content}.ecommerce[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]{width:210px;height:145px;border:solid 1px #efefef;border-radius:5px;padding:5px;margin:5px;padding-bottom:0!important;margin-bottom:0!important}.ecommerce[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]   .descricao[_ngcontent-%COMP%]{margin-top:10px}.ecommerce[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]   .preco[_ngcontent-%COMP%]{margin-top:3px}.ecommerce[_ngcontent-%COMP%]   .vitrine[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]{min-height:290px}.ecommerce[_ngcontent-%COMP%]   .vitrine[_ngcontent-%COMP%]   .produto[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-height:150px;min-height:120px}.ecommerce[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{position:absolute;display:block;padding:6px 12px;border:solid 1px #e2e2e2;background:#fff;border-radius:100px;font-size:16px;color:#2f2f2f;cursor:pointer;z-index:1;top:130px}.ecommerce[_ngcontent-%COMP%]   .arrow.direita[_ngcontent-%COMP%]{right:-10px}.ecommerce[_ngcontent-%COMP%]   .arrow.esquerda[_ngcontent-%COMP%]{left:-15px;display:none}.ecommerce[_ngcontent-%COMP%]   .ver_todos[_ngcontent-%COMP%]{position:absolute;right:10px;top:0;display:block}@media only screen and (max-width: 768px){.ecommerce[_ngcontent-%COMP%]   .produtos_categoria[_ngcontent-%COMP%]{overflow-x:auto}.ecommerce[_ngcontent-%COMP%]   .arrow[_ngcontent-%COMP%]{display:none}}  .navImagem .ng-image-slider .image{-o-object-fit:contain;object-fit:contain;cursor:pointer;right:auto!important}  .navImagem .ng-image-slider .ng-image-slider-container .main .main-inner .img-div{box-shadow:none}hr[_ngcontent-%COMP%]{border-top:solid 1px #eae9e9}  .natal h4.categoria{color:#730101!important}  .natal .tab_categoria{color:#d39797!important}  .natal .tab_categoria.active{color:#730101!important;border-bottom:2px solid #730101!important}  .natal .nome-produto{color:#730101!important}  .ano_novo h4.categoria{color:#030303!important}  .ano_novo .tab_categoria{color:#7f7f7f!important}  .ano_novo .tab_categoria.active{color:#030303!important;border-bottom:2px solid #f1dfa5!important}  .ano_novo .nav-bordered{border-bottom-width:1px!important}.imagem_empresa2[_ngcontent-%COMP%]{width:42px;height:42px;border-radius:solid 1px #ccc;float:left;border-radius:50px;margin-top:-8px}.circle[_ngcontent-%COMP%]{position:relative;width:100px;height:100px;text-align:center}.circle[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{fill:none;stroke:#cd486b;stroke-linecap:round;stroke-width:3;stroke-dasharray:1;stroke-dashoffset:0}.circle[_ngcontent-%COMP%]   svg.svg_animacao[_ngcontent-%COMP%]{animation:stroke-draw 6s ease-out infinite alternate}.circle[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:73px;border-radius:50%}.circle[_ngcontent-%COMP%]   .div_label_empresa[_ngcontent-%COMP%]{bottom:-15px;width:100%;position:absolute;left:2px}.circle[_ngcontent-%COMP%]   .label_empresa[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 auto;width:95px;font-size:13px}@keyframes stroke-draw{0%{stroke:#c20032;stroke-dasharray:3}to{stroke:#cd486b;transform:rotate(180deg);stroke-dasharray:8}}.col-empresa[_ngcontent-%COMP%]{padding-right:0;padding-left:0}.div_preco[_ngcontent-%COMP%]{position:absolute;bottom:5px;width:100%}.scrollx[_ngcontent-%COMP%]{overflow-x:scroll}']}),i})();const QQe=function(i){return{"fixed-top":i}};function WQe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",2)(1,"nav",3)(2,"div",4)(3,"div",5)(4,"button",6),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.voltar())}),n._UZ(5,"i",7),n.qZA()(),n.TgZ(6,"div",8)(7,"h4"),n._uU(8),n.qZA()()()()()}if(2&i){const t=n.oxw();n.xp6(1),n.Q6J("ngClass",n.VKq(2,QQe,t.isMobile)),n.xp6(7),n.hij(" ",t.empresa.nome,"")}}function KQe(i,o){1&i&&n._UZ(0,"div",9)}let XQe=(()=>{class i{constructor(t,r,s){this.router=t,this.detectorDevice=r,this.constantsService=s,this.empresa={},this.isMobile=this.detectorDevice.isMobile()}ngOnInit(){this.constantsService.empresa$.subscribe(t=>{!t||(this.empresa=t||{})})}voltar(){this.router.navigateByUrl("/")}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(zo),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-pagina-multi-loja"]],decls:3,vars:2,consts:[["class","remova_padding topo",4,"ngIf"],["style","height: 54px;width: 100%",4,"ngIf"],[1,"remova_padding","topo"],[1,"navbar","navbar-expand-lg",2,"background","#fff","z-index","9999999",3,"ngClass"],[1,"row",2,"flex-grow","1"],[1,"pl-2","span3","text-left","position-absolute",2,"margin-top","3px","margin-left","5px","z-index","999"],[1,"btn","shadow-none",2,"margin-right","5px",3,"click"],[1,"fas","fa-chevron-left",2,"color","#000"],[1,"col","pl-1",2,"position","relative","text-align","center"],[2,"height","54px","width","100%"]],template:function(t,r){1&t&&(n.YNc(0,WQe,9,4,"div",0),n.YNc(1,KQe,1,0,"div",1),n._UZ(2,"app-pagina")),2&t&&(n.Q6J("ngIf",r.isMobile),n.xp6(1),n.Q6J("ngIf",r.isMobile))},dependencies:[gt,Ge,Q6]}),i})();function eWe(i,o){if(1&i&&(n.TgZ(0,"span",29),n._uU(1),n.qZA()),2&i){const t=o.last,r=o.$implicit;n.xp6(1),n.AsE(" ",r.descricao,"",t?"":", "," ")}}function tWe(i,o){if(1&i&&(n.TgZ(0,"div"),n.YNc(1,eWe,2,2,"span",28),n.qZA()),2&i){const t=n.oxw().$implicit;n.xp6(1),n.Q6J("ngForOf",t.adicionaisImprirmir)}}function nWe(i,o){if(1&i&&(n.TgZ(0,"span",30),n._UZ(1,"br"),n._uU(2,"obs.:"),n.TgZ(3,"i"),n._uU(4),n.qZA()()),2&i){const t=n.oxw().$implicit;n.xp6(4),n.hij('"',t.observacao,'"')}}function iWe(i,o){if(1&i&&(n.TgZ(0,"div",21)(1,"div",22)(2,"div",23)(3,"h5",24)(4,"span"),n._uU(5),n.qZA(),n._uU(6),n.qZA(),n._uU(7),n.YNc(8,tWe,2,1,"div",25),n.YNc(9,nWe,5,1,"span",26),n.qZA(),n.TgZ(10,"h5",27),n._uU(11),n.ALo(12,"currency"),n.qZA()()()),2&i){const t=o.$implicit;n.xp6(5),n.hij("",t.qtde," X"),n.xp6(1),n.hij(" ",t.descricao,""),n.xp6(1),n.hij(" ",t.produto.descricao," "),n.xp6(1),n.Q6J("ngIf",null==t.adicionaisImprirmir?null:t.adicionaisImprirmir.length),n.xp6(1),n.Q6J("ngIf",t.observacao),n.xp6(2),n.hij("",n.xi3(12,6,t.total,"BRL")," ")}}function oWe(i,o){if(1&i&&(n.TgZ(0,"span",31),n._uU(1,"\u2605"),n.qZA()),2&i){const t=o.index,r=n.oxw();n.ekj("filled",t<r.avaliacao.nota)("bad",r.avaliacao.nota<=3)}}function rWe(i,o){if(1&i&&(n.TgZ(0,"div",32),n._UZ(1,"i",33),n._uU(2),n.qZA()),2&i){const t=n.oxw();n.xp6(2),n.hij(" ",t.msgErro," ")}}let aWe=(()=>{class i{constructor(t,r,s,l){this.router=t,this.activatedRoute=r,this.pedidosService=s,this.avaliacaoService=l,this.pedido={id:-1,guid:"",horario:new Date,itens:[]},this.avaliacao={comentario:"",gostouDaEntrega:null,nota:0},this.avaliando=!1,this.msgErro="",this.activatedRoute.params.subscribe(u=>{this.guid=u.guid})}ngOnInit(){this.pedidosService.obtenhaPorGuid(this.guid).then(t=>{this.pedido=t,this.avaliacaoService.obtenhaPorIdPedido(this.pedido).then(r=>{r&&(this.avaliacao=r)})})}deveExibirTopo(){return!1}deveExibirMenu(){return!1}deveTerBordas(){return!0}deveExibirBannerTema(){return!1}fecheTela(){}enviarAvaliacao(){this.msgErro="",0!==this.avaliacao.nota?(this.avaliando=!0,this.avaliacaoService.envie(this.avaliacao,this.pedido).then(t=>{this.router.navigateByUrl("/pedido/acompanhar/"+this.pedido.guid+"?msg="+encodeURIComponent("Seu pedido foi avaliado!")).then(()=>{})})):this.msgErro="Voc\xea deve selecionar uma nota."}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Pn),n.Y36(ci),n.Y36(gm),n.Y36(KK))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-tela-avaliar-pedido"]],decls:37,vars:17,consts:[["exibirFechar","true",3,"titulo","fechou"],[1,"container","p-2"],[1,"text-muted"],[1,"mt-0"],[1,"desktop","font-11"],["class","produto pt-2 pb-2 item_produto",4,"ngFor","ngForOf"],[1,"pt-1"],[1,"mb-0"],[3,"rate","max","rateChange"],[1,"mt-1","mb-1"],["type","radio","id","simEntrega","name","gostouEntrega","kendoRadioButton","",3,"ngModel","value","ngModelChange"],["gostouEntrega",""],["for","simEntrega","text","Sim, gostei",1,"k-radio-label"],["type","radio","id","naoEntrega","name","gostouEntrega","kendoRadioButton","",3,"value","ngModel","ngModelChange"],["for","naoEntrega","text","N\xe3o, poderia melhorar",1,"k-radio-label"],[1,"pt-3"],[1,"fas","fa-comment-alt"],[1,"form-control","mt-1",3,"ngModel","ngModelChange"],["comentario",""],["class","alert alert-danger mt-2","role","alert",4,"ngIf"],[1,"btn","btn-block","btn-primary","p-2",3,"disabled","click"],[1,"produto","pt-2","pb-2","item_produto"],[1,"media"],[1,"media-body"],[1,"mt-0","mb-1"],[4,"ngIf"],["class","font-11",4,"ngIf"],[1,"preco","mt-0"],["class","d-block ml-2 font-weight-bold",4,"ngFor","ngForOf"],[1,"d-block","ml-2","font-weight-bold"],[1,"font-11"],[1,"star"],["role","alert",1,"alert","alert-danger","mt-2"],[1,"mdi","mdi-block-helper","mr-2"]],template:function(t,r){1&t&&(n.TgZ(0,"app-header-tela",0),n.NdJ("fechou",function(){return r.fecheTela()}),n.qZA(),n.TgZ(1,"div",1)(2,"h3"),n._uU(3,"Avalie seu Pedido"),n.qZA(),n.TgZ(4,"div")(5,"span",2),n._uU(6),n.ALo(7,"date"),n.qZA()(),n._UZ(8,"hr",3),n.TgZ(9,"div",4),n.YNc(10,iWe,13,9,"div",5),n.qZA(),n.TgZ(11,"div",6)(12,"h4",7),n._uU(13,"O que achou do pedido?"),n.qZA(),n.TgZ(14,"ngb-rating",8),n.NdJ("rateChange",function(l){return r.avaliacao.nota=l})("rateChange",function(){return r.msgErro=""}),n.YNc(15,oWe,2,4,"ng-template"),n.qZA(),n.TgZ(16,"h4"),n._uU(17,"Voc\xea gostou da entrega?"),n.qZA(),n._UZ(18,"hr",9),n.TgZ(19,"input",10,11),n.NdJ("ngModelChange",function(l){return r.avaliacao.gostouDaEntrega=l}),n.qZA(),n._UZ(21,"kendo-label",12)(22,"hr",9),n.TgZ(23,"input",13,11),n.NdJ("ngModelChange",function(l){return r.avaliacao.gostouDaEntrega=l}),n.qZA(),n._UZ(25,"kendo-label",14),n.qZA(),n._UZ(26,"div",15),n.TgZ(27,"kendo-label"),n._UZ(28,"i",16),n._uU(29," Deixar coment\xe1rio"),n.qZA(),n.TgZ(30,"textarea",17,18),n.NdJ("ngModelChange",function(l){return r.avaliacao.comentario=l}),n._uU(32,"  "),n.qZA(),n.YNc(33,rWe,3,1,"div",19),n.TgZ(34,"div",15)(35,"button",20),n.NdJ("click",function(){return r.enviarAvaliacao()}),n._uU(36,"Avaliar"),n.qZA()()()),2&t&&(n.Q6J("titulo","Pedido"),n.xp6(6),n.Oqu(n.xi3(7,14,r.pedido.horario,"dd/MM/yyyy")),n.xp6(4),n.Q6J("ngForOf",r.pedido.itens),n.xp6(4),n.Q6J("rate",r.avaliacao.nota)("max",5),n.xp6(5),n.Q6J("ngModel",r.avaliacao.gostouDaEntrega)("value",!0),n.xp6(4),n.Q6J("value",!1)("ngModel",r.avaliacao.gostouDaEntrega),n.xp6(7),n.Udp("width","100%"),n.Q6J("ngModel",r.avaliacao.comentario),n.xp6(3),n.Q6J("ngIf",r.msgErro),n.xp6(2),n.Q6J("disabled",r.avaliando))},dependencies:[Bt,Ge,wi,tc,ti,ni,Fu,iQ,WX,Cs,Jo,_h],styles:[".preco[_ngcontent-%COMP%]{color:#6db31b}.produto[_ngcontent-%COMP%]{border-bottom:dashed 1px #e8e8e8}.star[_ngcontent-%COMP%]{font-size:3rem;color:#b0c4de}.filled[_ngcontent-%COMP%]{color:#f5b106}.bad[_ngcontent-%COMP%]{color:#deb0b0}.filled.bad[_ngcontent-%COMP%]{color:#ff1e1e}"]}),i})();function sWe(i,o){1&i&&n._UZ(0,"div",2)}let lWe=(()=>{class i{constructor(t,r){this.route=t,this.constantsService=r}deveExibirBannerTema(){return!0}deveExibirMenu(){return!0}deveExibirTopo(){return!0}deveTerBordas(){return!0}ngOnInit(){this.constantsService.empresa$.subscribe(t=>{if(!t)return;const r="+55"+t.numeroWhatsapp.whatsapp,s=this.route.snapshot.queryParamMap.get("m");window.location.href=`https://api.whatsapp.com/send?phone=${r}&text=${s}`})}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(ci),n.Y36(gi))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-redirecionador"]],decls:4,vars:1,consts:[[1,"coluna"],["class","k-i-loading ml-1 mr-1 centralizado","style","font-size: 40px;height: 90px;",4,"ngIf"],[1,"k-i-loading","ml-1","mr-1","centralizado",2,"font-size","40px","height","90px"]],template:function(t,r){1&t&&(n.TgZ(0,"div",0)(1,"p"),n._uU(2,"Aguarde enquanto estamos te redirecionando"),n.qZA(),n.YNc(3,sWe,1,0,"div",1),n.qZA()),2&t&&(n.xp6(3),n.Q6J("ngIf",r.carregando))}}),i})();const cWe=["nomeInput"],dWe=["frmPedidoTotem"];function uWe(i,o){if(1&i){const t=n.EpF();n.TgZ(0,"div",26)(1,"div",27),n._UZ(2,"img",28,29),n.qZA(),n.TgZ(4,"div",30)(5,"div",31)(6,"div",32),n._UZ(7,"i",33),n.TgZ(8,"div",34)(9,"h2"),n._uU(10),n.qZA(),n.TgZ(11,"p"),n._uU(12,"Seu pedido foi realizado com sucesso."),n.qZA(),n.TgZ(13,"span"),n._uU(14,"C\xf3digo do seu Pedido"),n.qZA(),n.TgZ(15,"h1",35),n._uU(16),n.qZA()()()(),n.TgZ(17,"div",36)(18,"button",37),n.NdJ("click",function(){n.CHM(t);const s=n.oxw();return n.KtG(s.fecharTelaPedido())}),n._uU(19,"Fechar Tela"),n.qZA()()()()}if(2&i){const t=n.oxw();n.xp6(10),n.hij(" ",t.pedido.contato.nome,", o seu pedido confirmado! "),n.xp6(6),n.hij("#",t.pedido.codigo,"")}}function pWe(i,o){1&i&&(n.TgZ(0,"div",38),n._uU(1," O seu nome \xe9 obrigat\xf3rio. "),n.qZA())}function hWe(i,o){1&i&&(n.TgZ(0,"div",38),n._uU(1," Informe seu telefone. "),n.qZA())}function gWe(i,o){1&i&&(n.TgZ(0,"div",38),n._uU(1," Informe o c\xf3digo da comanda. "),n.qZA())}function fWe(i,o){if(1&i&&(n.TgZ(0,"div",6)(1,"div",4)(2,"div",39),n._uU(3),n.qZA()()()),2&i){const t=n.oxw();n.xp6(3),n.hij(" ",t.msgErro," ")}}const mWe=function(i,o){return{"needs-validation":i,"was-validated":o}};let _We=(()=>{class i{constructor(t,r,s,l,u,p){this.parent=t,this.pedidosService=r,this.constantsService=s,this.carrinhoService=l,this.clienteService=u,this.dominiosService=p,this.enviandoPedido=!1,this.pedido=null,this.empresa=null,this.msgErro="",this.dadosPedidoTotem={nome:"",telefone:"",comanda:""},this.sucesso=!1,this.phoneMask="(00) 00000-0000"}ngOnInit(){this.constantsService.empresa$.subscribe(t=>{t&&(this.empresa=t),this.pedido=this.carrinhoService.obtenhaPedido()})}ngAfterViewInit(){this.focarEScrollParaNome()}focarEScrollParaNome(){window.onload=()=>{document.getElementById("imagemPrincipal"),this.nomeInput&&this.nomeInput.nativeElement&&setTimeout(()=>{document.getElementById("nome").scrollIntoView()},0)}}onSubmit(t){!this.frmPedidoTotem.valid||(this.enviandoPedido=!0,this.pedido.origem="totem",this.clienteService.obtenhaMesaPorNome(this.dadosPedidoTotem.comanda).then(r=>{if(!r)return this.msgErro="C\xf3digo da comanda n\xe3o existe!. Verifique por favor o n\xfamero informado.",void(this.enviandoPedido=!1);this.pedido.mesa=r,this.pedido.entrega.formaDeEntrega="Comer no local",this.pedido.contato={nome:this.dadosPedidoTotem.nome,telefone:this.dadosPedidoTotem.telefone},this.pedidosService.salvePedido(this.pedido.obtenhaDadosEnvio(this.empresa)).then(s=>{this.pedido.codigo=s.codigo,this.pedido.guid=s.guid,this.enviandoPedido=!1,this.sucesso=!0,setTimeout(()=>{this.fecharTelaPedido()},5e3)}).catch(s=>{this.enviandoPedido=!1,this.msgErro=s})}))}informouTelefone(){}fecharTelaPedido(){localStorage.clear(),window.location.href=this.dominiosService.obtenhaUrlHome()+"?tema=quiosque"}deveExibirBannerTema(){return!0}deveExibirMenu(){return!0}deveExibirTopo(){return!1}deveTerBordas(){return!0}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(Q6,9),n.Y36(gm),n.Y36(gi),n.Y36(Oi),n.Y36(ka),n.Y36(Eo))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-finalizar-pedido-totem"]],viewQuery:function(t,r){if(1&t&&(n.Gf(cWe,5),n.Gf(dWe,7)),2&t){let s;n.iGM(s=n.CRH())&&(r.nomeInput=s.first),n.iGM(s=n.CRH())&&(r.frmPedidoTotem=s.first)}},decls:42,vars:17,consts:[["id","telaConfirmacao","class","tela-confirmacao",4,"ngIf"],[1,"container","mt-3"],[1,"row","mb-4"],[1,"col-12"],[1,"col-md-12"],["onclick","history.back()",1,"btn","btn-secondary","btn-lg"],[1,"row"],["novalidate","",2,"min-height","calc(100vh - 350px)","display","flex","flex-direction","column",3,"ngClass","ngSubmit"],["frmPedidoTotem","ngForm"],[1,"form-group"],["for","nome"],["type","text","id","nome","name","nome","placeholder","Digite seu nome","autofocus","","required","",1,"form-control","form-control-lg",3,"ngModel","autofocus","disabled","ngModelChange"],["nomeInput","","nome","ngModel"],["class","invalid-feedback mt-1 alert alert-danger erro-mensagem","role","alert",4,"ngIf"],["for","telefone"],["id","telefone","name","telefone","required","",1,"form-control","form-control-lg","my-custom-maskedtextbox",3,"mask","disabled","ngModel","change","ngModelChange"],["telefone","ngModel","kendoMaskedTextBox","kendoMaskedTextBox"],["for","comanda"],["type","text","id","comanda","name","comanda","required","",1,"form-control","form-control-lg",3,"disabled","ngModel","ngModelChange"],["comanda","ngModel"],["class","row",4,"ngIf"],[1,"footer"],[2,"margin-top","auto"],[1,"d-flex","justify-content-center"],["type","submit",1,"btn","btn-primary","btn-xl"],[2,"height","100px"],["id","telaConfirmacao",1,"tela-confirmacao"],[2,"width","100%","overflow","hidden"],["id","imagemPrincipal","name","imagemPrincipal","src","/assets/loja/alsultan-tela-totem-horizontal.jpg",2,"width","100%"],["imagemPrincipal",""],[1,"container"],[1,"row","justify-content-center","align-items-center"],[1,"col-8","d-flex","align-items-center"],[1,"fas","fa-check-circle","text-success",2,"font-size","80px"],[1,"ml-3"],[2,"font-size","60px"],[1,"text-center","mt-5"],[1,"btn","btn-lg","btn-primary",3,"click"],["role","alert",1,"invalid-feedback","mt-1","alert","alert-danger","erro-mensagem"],["role","alert",1,"alert","alert-danger","erro-mensagem"]],template:function(t,r){if(1&t&&(n.YNc(0,uWe,20,2,"div",0),n.TgZ(1,"div",1)(2,"div",2)(3,"div",3)(4,"h2"),n._uU(5,"Finalizar pedido"),n.qZA()(),n.TgZ(6,"div",4)(7,"button",5),n._uU(8,"\u2190 Voltar"),n.qZA()()(),n._UZ(9,"hr"),n.TgZ(10,"div",6)(11,"div",4)(12,"form",7,8),n.NdJ("ngSubmit",function(l){return r.onSubmit(l)}),n.TgZ(14,"div",9)(15,"label",10),n._uU(16,"Nome"),n.qZA(),n.TgZ(17,"input",11,12),n.NdJ("ngModelChange",function(l){return r.dadosPedidoTotem.nome=l}),n.qZA(),n.YNc(20,pWe,2,0,"div",13),n.qZA(),n.TgZ(21,"div",9)(22,"label",14),n._uU(23,"Telefone"),n.qZA(),n.TgZ(24,"kendo-maskedtextbox",15,16),n.NdJ("change",function(){return r.informouTelefone()})("ngModelChange",function(l){return r.dadosPedidoTotem.telefone=l}),n.qZA(),n.YNc(27,hWe,2,0,"div",13),n.qZA(),n.TgZ(28,"div",9)(29,"label",17),n._uU(30,"C\xf3digo da Comanda"),n.qZA(),n.TgZ(31,"input",18,19),n.NdJ("ngModelChange",function(l){return r.dadosPedidoTotem.comanda=l}),n.qZA(),n.YNc(33,gWe,2,0,"div",13),n.qZA(),n.YNc(34,fWe,4,1,"div",20),n.TgZ(35,"footer",21)(36,"div",22)(37,"div",23)(38,"button",24),n._uU(39,"Finalizar Pedido"),n.qZA()()()()()()(),n.TgZ(40,"div",25),n._uU(41,"\xa0"),n.qZA()()),2&t){const s=n.MAs(13),l=n.MAs(19),u=n.MAs(25),p=n.MAs(32);n.Q6J("ngIf",r.sucesso),n.xp6(12),n.Q6J("ngClass",n.WLB(14,mWe,!s.submitted,s.submitted)),n.xp6(5),n.Q6J("ngModel",r.dadosPedidoTotem.nome)("autofocus",!0)("disabled",r.enviandoPedido),n.xp6(3),n.Q6J("ngIf",null==l.errors?null:l.errors.required),n.xp6(4),n.Q6J("mask",r.phoneMask)("disabled",r.enviandoPedido)("ngModel",r.dadosPedidoTotem.telefone),n.xp6(3),n.Q6J("ngIf",null==u.errors?null:u.errors.required),n.xp6(4),n.Q6J("disabled",r.enviandoPedido)("ngModel",r.dadosPedidoTotem.comanda),n.xp6(2),n.Q6J("ngIf",null==p.errors?null:p.errors.required),n.xp6(1),n.Q6J("ngIf",r.msgErro)}},dependencies:[gt,Ge,Ia,wi,ti,ma,Lo,ni,Zo,po,io],styles:[".tela-confirmacao[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff;color:#333;z-index:100000}.btn-xl[_ngcontent-%COMP%]{padding:1rem 2rem;font-size:1.5rem;border-radius:.3rem}.alert[_ngcontent-%COMP%]{font-size:18px}footer[_ngcontent-%COMP%]{position:fixed;bottom:60px;width:100%;left:0!important}  .enlarged .footer{left:0!important}"]}),i})();function bWe(i,o){1&i&&(n.TgZ(0,"h5",5),n._UZ(1,"i",6),n._uU(2," Autentica\xe7\xe3o do cart\xe3o concluido com sucesso!"),n.qZA())}function vWe(i,o){if(1&i&&(n.ynx(0),n.TgZ(1,"h5",5),n._UZ(2,"i",7),n._uU(3),n._UZ(4,"br"),n.qZA(),n.BQk()),2&i){const t=n.oxw();n.xp6(3),n.hij(' Autentica\xe7\xe3o do cart\xe3o falhou: "',t.msgErro,'" ')}}let yWe=(()=>{class i{constructor(t,r,s){this._renderer2=t,this._document=r,this.activatedRoute=s,this.autenticou="success-page"===this.activatedRoute.snapshot.params.status,this.msgErro=this.activatedRoute.snapshot.queryParams.err}ngOnInit(){this.autenticou&&setTimeout(()=>{this.noitiqueFecharModal()},5e3)}noitiqueFecharModal(){let t=this._renderer2.createElement("script");t.type="text/javascript",t.text="\n       window.parent.postMessage('3ds-auth-success', '*');\n    ",this._renderer2.appendChild(this._document.body,t)}deveExibirTopo(){return!1}deveExibirMenu(){return!1}deveTerBordas(){return!1}deveExibirBannerTema(){return!1}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(n.Qsj),n.Y36(ie),n.Y36(ci))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-three-ds-dialog"]],decls:9,vars:2,consts:[["lang","en"],["charset","UTF-8"],["name","viewport","content","width=device-width, initial-scale=1.0"],["class","text-center mt-3",4,"ngIf"],[4,"ngIf"],[1,"text-center","mt-3"],[1,"k-icon","k-i-check-circle","fa-2x","text-success","mr-2"],[1,"k-icon","k-i-times-circle","fa-2x","text-danger","mr-2"]],template:function(t,r){1&t&&(n.TgZ(0,"html",0)(1,"head"),n._UZ(2,"meta",1)(3,"meta",2),n.TgZ(4,"title"),n._uU(5,"Autentica\xe7\xe3o Conclu\xedda"),n.qZA()(),n.TgZ(6,"body"),n.YNc(7,bWe,3,0,"h5",3),n.YNc(8,vWe,5,1,"ng-container",4),n.qZA()()),2&t&&(n.xp6(7),n.Q6J("ngIf",r.autenticou),n.xp6(1),n.Q6J("ngIf",!r.autenticou))},dependencies:[Ge],encapsulation:2}),i})();const pee=[{path:"index",pathMatch:"full",component:fm},{path:"lojas",pathMatch:"full",component:GB},{path:"avaliar-pedido/:guid",pathMatch:"full",component:aWe},{path:"categoria/:nome/:idc",pathMatch:"full",component:fm},{path:"local/:hm",pathMatch:"full",component:fm},{path:"desconto/:codigopromo",pathMatch:"full",component:fm},{path:"produto/:id",pathMatch:"full",component:fm},{path:"produto/:id/editar/:posicao",pathMatch:"full",component:u0},{path:"carrinho",pathMatch:"full",component:jE},{path:"busca",pathMatch:"full",component:tYe},{path:"busca/ecommerce",pathMatch:"full",component:uee},{path:"busca/ecommerce/:categoria",pathMatch:"full",component:uee},{path:"criar-endereco",pathMatch:"full",component:m3e},{path:"posicionar",pathMatch:"full",component:aee},{path:"pagamento",pathMatch:"full",component:Y9e},{path:"cliente",pathMatch:"full",component:kLe},{path:"forma-entrega",pathMatch:"full",component:b7e},{path:"pedido",pathMatch:"full",component:QK},{path:"pedido-totem",pathMatch:"full",component:_We},{path:"r/w",pathMatch:"full",component:lWe},{path:"meusPedidos",pathMatch:"full",component:CYe},{path:"perfil",pathMatch:"full",component:gYe},{path:"configuracoes",pathMatch:"full",component:rJe},{path:"login",pathMatch:"full",component:J6},{path:"recuperar",pathMatch:"full",component:vB},{path:"recuperar/:token",pathMatch:"full",component:vB},{path:"cadastro",pathMatch:"full",component:qy},{path:"cadastro/validar/:token",pathMatch:"full",component:ije},{path:"cadastro/confirmar/:token",pathMatch:"full",component:bje},{path:"login/validar/whatszapp",pathMatch:"full",component:JK},{path:"meus-dados",pathMatch:"full",component:KYe},{path:"exibir-pedido/:guid",pathMatch:"full",component:VYe},{path:"pedido/acompanhar/:guid",pathMatch:"full",component:XX},{path:"pedido/acompanhar/:guid/3dsretorno/:status3ds",pathMatch:"full",component:XX},{path:"3ds/retorno/:status",pathMatch:"full",component:yWe},{path:"",pathMatch:"full",component:fm}],TWe=[{component:Q6,matcher:function xWe(i,o,t){return window,window.telaMultiLoja?i&&i[0]&&("l"===i[0].path||"cardapio"===i[0].path)?{consumed:[i[0]]}:{consumed:[]}:null},children:[{path:"index",pathMatch:"full",component:GB},{path:"pedido",pathMatch:"full",component:QK},{path:"",pathMatch:"full",component:GB}]},{component:iJe,matcher:function CWe(i,o,t){let r=window.location.hostname;return window.telaMultiLoja?null:r.indexOf("chinainboxrj.meucardapio.ai")>=0||r.indexOf("chinainboxrj.zapkit.com.br")>=0||r.indexOf("teste.meucardapio.ai")>=0||window.agregador?i&&i[0]&&("loja"===i[0].path||"cardapio"===i[0].path)?{consumed:[i[0]]}:{consumed:[]}:null}},{path:"marca/:dominio",component:XQe,children:pee},{matcher:function AWe(i,o,t){let r=window.location.hostname;return r.indexOf("meucardapio")>=0||r.indexOf("promokit")<0?i&&i[0]&&("loja"===i[0].path||"cardapio"===i[0].path)?{consumed:[i[0]]}:{consumed:[]}:0===i.length?null:"loja"===i[0].path||"cardapio"===i[0].path?{consumed:[i[0]]}:null},component:Q6,children:pee}];let SWe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({imports:[O_.forRoot(TWe,{relativeLinkResolution:"legacy"}),O_]}),i})();function hee(i){return new n.vHH(3e3,!1)}function aKe(){return typeof window<"u"&&typeof window.document<"u"}function qB(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Pm(i){switch(i.length){case 0:return new Pv;case 1:return i[0];default:return new L8(i)}}function gee(i,o,t,r,s=new Map,l=new Map){const u=[],p=[];let y=-1,A=null;if(r.forEach(w=>{const I=w.get("offset"),P=I==y,F=P&&A||new Map;w.forEach((V,oe)=>{let Ae=oe,ue=V;if("offset"!==oe)switch(Ae=o.normalizePropertyName(Ae,u),ue){case"!":ue=s.get(oe);break;case xl:ue=l.get(oe);break;default:ue=o.normalizeStyleValue(oe,Ae,ue,u)}F.set(Ae,ue)}),P||p.push(F),A=F,y=I}),u.length)throw function qWe(i){return new n.vHH(3502,!1)}();return p}function JB(i,o,t,r){switch(o){case"start":i.onStart(()=>r(t&&QB(t,"start",i)));break;case"done":i.onDone(()=>r(t&&QB(t,"done",i)));break;case"destroy":i.onDestroy(()=>r(t&&QB(t,"destroy",i)))}}function QB(i,o,t){const l=WB(i.element,i.triggerName,i.fromState,i.toState,o||i.phaseName,t.totalTime??i.totalTime,!!t.disabled),u=i._data;return null!=u&&(l._data=u),l}function WB(i,o,t,r,s="",l=0,u){return{element:i,triggerName:o,fromState:t,toState:r,phaseName:s,totalTime:l,disabled:!!u}}function Uc(i,o,t){let r=i.get(o);return r||i.set(o,r=t),r}function fee(i){const o=i.indexOf(":");return[i.substring(1,o),i.slice(o+1)]}let KB=(i,o)=>!1,mee=(i,o,t)=>[],_ee=null;function XB(i){const o=i.parentNode||i.host;return o===_ee?null:o}(qB()||typeof Element<"u")&&(aKe()?(_ee=(()=>document.documentElement)(),KB=(i,o)=>{for(;o;){if(o===i)return!0;o=XB(o)}return!1}):KB=(i,o)=>i.contains(o),mee=(i,o,t)=>{if(t)return Array.from(i.querySelectorAll(o));const r=i.querySelector(o);return r?[r]:[]});let B0=null,bee=!1;const vee=KB,yee=mee;let Cee=(()=>{class i{validateStyleProperty(t){return function lKe(i){B0||(B0=function cKe(){return typeof document<"u"?document.body:null}()||{},bee=!!B0.style&&"WebkitAppearance"in B0.style);let o=!0;return B0.style&&!function sKe(i){return"ebkit"==i.substring(1,6)}(i)&&(o=i in B0.style,!o&&bee&&(o="Webkit"+i.charAt(0).toUpperCase()+i.slice(1)in B0.style)),o}(t)}matchesElement(t,r){return!1}containsElement(t,r){return vee(t,r)}getParentElement(t){return XB(t)}query(t,r,s){return yee(t,r,s)}computeStyle(t,r,s){return s||""}animate(t,r,s,l,u,p=[],y){return new Pv(s,l)}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})(),eH=(()=>{class i{}return i.NOOP=new Cee,i})();const tH="ng-enter",bP="ng-leave",vP="ng-trigger",yP=".ng-trigger",xee="ng-animating",nH=".ng-animating";function Rg(i){if("number"==typeof i)return i;const o=i.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:iH(parseFloat(o[1]),o[2])}function iH(i,o){return"s"===o?1e3*i:i}function CP(i,o,t){return i.hasOwnProperty("duration")?i:function pKe(i,o,t){let s,l=0,u="";if("string"==typeof i){const p=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===p)return o.push(hee()),{duration:0,delay:0,easing:""};s=iH(parseFloat(p[1]),p[2]);const y=p[3];null!=y&&(l=iH(parseFloat(y),p[4]));const A=p[5];A&&(u=A)}else s=i;if(!t){let p=!1,y=o.length;s<0&&(o.push(function wWe(){return new n.vHH(3100,!1)}()),p=!0),l<0&&(o.push(function MWe(){return new n.vHH(3101,!1)}()),p=!0),p&&o.splice(y,0,hee())}return{duration:s,delay:l,easing:u}}(i,o,t)}function uS(i,o={}){return Object.keys(i).forEach(t=>{o[t]=i[t]}),o}function Tee(i){const o=new Map;return Object.keys(i).forEach(t=>{o.set(t,i[t])}),o}function Om(i,o=new Map,t){if(t)for(let[r,s]of t)o.set(r,s);for(let[r,s]of i)o.set(r,s);return o}function wee(i,o,t){return t?o+":"+t+";":""}function Mee(i){let o="";for(let t=0;t<i.style.length;t++){const r=i.style.item(t);o+=wee(0,r,i.style.getPropertyValue(r))}for(const t in i.style)i.style.hasOwnProperty(t)&&!t.startsWith("_")&&(o+=wee(0,mKe(t),i.style[t]));i.setAttribute("style",o)}function oh(i,o,t){i.style&&(o.forEach((r,s)=>{const l=rH(s);t&&!t.has(s)&&t.set(s,i.style[l]),i.style[l]=r}),qB()&&Mee(i))}function H0(i,o){i.style&&(o.forEach((t,r)=>{const s=rH(r);i.style[s]=""}),qB()&&Mee(i))}function pS(i){return Array.isArray(i)?1==i.length?i[0]:r1(i):i}const oH=new RegExp("{{\\s*(.+?)\\s*}}","g");function Dee(i){let o=[];if("string"==typeof i){let t;for(;t=oH.exec(i);)o.push(t[1]);oH.lastIndex=0}return o}function hS(i,o,t){const r=i.toString(),s=r.replace(oH,(l,u)=>{let p=o[u];return null==p&&(t.push(function kWe(i){return new n.vHH(3003,!1)}()),p=""),p.toString()});return s==r?i:s}function AP(i){const o=[];let t=i.next();for(;!t.done;)o.push(t.value),t=i.next();return o}const fKe=/-+([a-z0-9])/g;function rH(i){return i.replace(fKe,(...o)=>o[1].toUpperCase())}function mKe(i){return i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Yc(i,o,t){switch(o.type){case 7:return i.visitTrigger(o,t);case 0:return i.visitState(o,t);case 1:return i.visitTransition(o,t);case 2:return i.visitSequence(o,t);case 3:return i.visitGroup(o,t);case 4:return i.visitAnimate(o,t);case 5:return i.visitKeyframes(o,t);case 6:return i.visitStyle(o,t);case 8:return i.visitReference(o,t);case 9:return i.visitAnimateChild(o,t);case 10:return i.visitAnimateRef(o,t);case 11:return i.visitQuery(o,t);case 12:return i.visitStagger(o,t);default:throw function IWe(i){return new n.vHH(3004,!1)}()}}function kee(i,o){return window.getComputedStyle(i)[o]}function AKe(i,o){const t=[];return"string"==typeof i?i.split(/\s*,\s*/).forEach(r=>function xKe(i,o,t){if(":"==i[0]){const y=function TKe(i,o){switch(i){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,r)=>parseFloat(r)>parseFloat(t);case":decrement":return(t,r)=>parseFloat(r)<parseFloat(t);default:return o.push(function ZWe(i){return new n.vHH(3016,!1)}()),"* => *"}}(i,t);if("function"==typeof y)return void o.push(y);i=y}const r=i.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return t.push(function jWe(i){return new n.vHH(3015,!1)}()),o;const s=r[1],l=r[2],u=r[3];o.push(Iee(s,u));"<"==l[0]&&!("*"==s&&"*"==u)&&o.push(Iee(u,s))}(r,t,o)):t.push(i),t}const wP=new Set(["true","1"]),MP=new Set(["false","0"]);function Iee(i,o){const t=wP.has(i)||MP.has(i),r=wP.has(o)||MP.has(o);return(s,l)=>{let u="*"==i||i==s,p="*"==o||o==l;return!u&&t&&"boolean"==typeof s&&(u=s?wP.has(i):MP.has(i)),!p&&r&&"boolean"==typeof l&&(p=l?wP.has(o):MP.has(o)),u&&p}}const SKe=new RegExp("s*:selfs*,?","g");function aH(i,o,t,r){return new wKe(i).build(o,t,r)}class wKe{constructor(o){this._driver=o}build(o,t,r){const s=new kKe(t);return this._resetContextStyleTimingState(s),Yc(this,pS(o),s)}_resetContextStyleTimingState(o){o.currentQuerySelector="",o.collectedStyles=new Map,o.collectedStyles.set("",new Map),o.currentTime=0}visitTrigger(o,t){let r=t.queryCount=0,s=t.depCount=0;const l=[],u=[];return"@"==o.name.charAt(0)&&t.errors.push(function PWe(){return new n.vHH(3006,!1)}()),o.definitions.forEach(p=>{if(this._resetContextStyleTimingState(t),0==p.type){const y=p,A=y.name;A.toString().split(/\s*,\s*/).forEach(w=>{y.name=w,l.push(this.visitState(y,t))}),y.name=A}else if(1==p.type){const y=this.visitTransition(p,t);r+=y.queryCount,s+=y.depCount,u.push(y)}else t.errors.push(function OWe(){return new n.vHH(3007,!1)}())}),{type:7,name:o.name,states:l,transitions:u,queryCount:r,depCount:s,options:null}}visitState(o,t){const r=this.visitStyle(o.styles,t),s=o.options&&o.options.params||null;if(r.containsDynamicStyles){const l=new Set,u=s||{};r.styles.forEach(p=>{p instanceof Map&&p.forEach(y=>{Dee(y).forEach(A=>{u.hasOwnProperty(A)||l.add(A)})})}),l.size&&(AP(l.values()),t.errors.push(function NWe(i,o){return new n.vHH(3008,!1)}()))}return{type:0,name:o.name,style:r,options:s?{params:s}:null}}visitTransition(o,t){t.queryCount=0,t.depCount=0;const r=Yc(this,pS(o.animation),t);return{type:1,matchers:AKe(o.expr,t.errors),animation:r,queryCount:t.queryCount,depCount:t.depCount,options:$0(o.options)}}visitSequence(o,t){return{type:2,steps:o.steps.map(r=>Yc(this,r,t)),options:$0(o.options)}}visitGroup(o,t){const r=t.currentTime;let s=0;const l=o.steps.map(u=>{t.currentTime=r;const p=Yc(this,u,t);return s=Math.max(s,t.currentTime),p});return t.currentTime=s,{type:3,steps:l,options:$0(o.options)}}visitAnimate(o,t){const r=function EKe(i,o){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return sH(CP(i,o).duration,0,"");const t=i;if(t.split(/\s+/).some(l=>"{"==l.charAt(0)&&"{"==l.charAt(1))){const l=sH(0,0,"");return l.dynamic=!0,l.strValue=t,l}const s=CP(t,o);return sH(s.duration,s.delay,s.easing)}(o.timings,t.errors);t.currentAnimateTimings=r;let s,l=o.styles?o.styles:Kt({});if(5==l.type)s=this.visitKeyframes(l,t);else{let u=o.styles,p=!1;if(!u){p=!0;const A={};r.easing&&(A.easing=r.easing),u=Kt(A)}t.currentTime+=r.duration+r.delay;const y=this.visitStyle(u,t);y.isEmptyStep=p,s=y}return t.currentAnimateTimings=null,{type:4,timings:r,style:s,options:null}}visitStyle(o,t){const r=this._makeStyleAst(o,t);return this._validateStyleAst(r,t),r}_makeStyleAst(o,t){const r=[],s=Array.isArray(o.styles)?o.styles:[o.styles];for(let p of s)"string"==typeof p?p===xl?r.push(p):t.errors.push(new n.vHH(3002,!1)):r.push(Tee(p));let l=!1,u=null;return r.forEach(p=>{if(p instanceof Map&&(p.has("easing")&&(u=p.get("easing"),p.delete("easing")),!l))for(let y of p.values())if(y.toString().indexOf("{{")>=0){l=!0;break}}),{type:6,styles:r,easing:u,offset:o.offset,containsDynamicStyles:l,options:null}}_validateStyleAst(o,t){const r=t.currentAnimateTimings;let s=t.currentTime,l=t.currentTime;r&&l>0&&(l-=r.duration+r.delay),o.styles.forEach(u=>{"string"!=typeof u&&u.forEach((p,y)=>{const A=t.collectedStyles.get(t.currentQuerySelector),w=A.get(y);let I=!0;w&&(l!=s&&l>=w.startTime&&s<=w.endTime&&(t.errors.push(function RWe(i,o,t,r,s){return new n.vHH(3010,!1)}()),I=!1),l=w.startTime),I&&A.set(y,{startTime:l,endTime:s}),t.options&&function gKe(i,o,t){const r=o.params||{},s=Dee(i);s.length&&s.forEach(l=>{r.hasOwnProperty(l)||t.push(function DWe(i){return new n.vHH(3001,!1)}())})}(p,t.options,t.errors)})})}visitKeyframes(o,t){const r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function FWe(){return new n.vHH(3011,!1)}()),r;let l=0;const u=[];let p=!1,y=!1,A=0;const w=o.steps.map(ue=>{const Se=this._makeStyleAst(ue,t);let Be=null!=Se.offset?Se.offset:function IKe(i){if("string"==typeof i)return null;let o=null;if(Array.isArray(i))i.forEach(t=>{if(t instanceof Map&&t.has("offset")){const r=t;o=parseFloat(r.get("offset")),r.delete("offset")}});else if(i instanceof Map&&i.has("offset")){const t=i;o=parseFloat(t.get("offset")),t.delete("offset")}return o}(Se.styles),Me=0;return null!=Be&&(l++,Me=Se.offset=Be),y=y||Me<0||Me>1,p=p||Me<A,A=Me,u.push(Me),Se});y&&t.errors.push(function BWe(){return new n.vHH(3012,!1)}()),p&&t.errors.push(function HWe(){return new n.vHH(3200,!1)}());const I=o.steps.length;let P=0;l>0&&l<I?t.errors.push(function $We(){return new n.vHH(3202,!1)}()):0==l&&(P=1/(I-1));const F=I-1,V=t.currentTime,oe=t.currentAnimateTimings,Ae=oe.duration;return w.forEach((ue,Se)=>{const Be=P>0?Se==F?1:P*Se:u[Se],Me=Be*Ae;t.currentTime=V+oe.delay+Me,oe.duration=Me,this._validateStyleAst(ue,t),ue.offset=Be,r.styles.push(ue)}),r}visitReference(o,t){return{type:8,animation:Yc(this,pS(o.animation),t),options:$0(o.options)}}visitAnimateChild(o,t){return t.depCount++,{type:9,options:$0(o.options)}}visitAnimateRef(o,t){return{type:10,animation:this.visitReference(o.animation,t),options:$0(o.options)}}visitQuery(o,t){const r=t.currentQuerySelector,s=o.options||{};t.queryCount++,t.currentQuery=o;const[l,u]=function MKe(i){const o=!!i.split(/\s*,\s*/).find(t=>":self"==t);return o&&(i=i.replace(SKe,"")),i=i.replace(/@\*/g,yP).replace(/@\w+/g,t=>yP+"-"+t.slice(1)).replace(/:animating/g,nH),[i,o]}(o.selector);t.currentQuerySelector=r.length?r+" "+l:l,Uc(t.collectedStyles,t.currentQuerySelector,new Map);const p=Yc(this,pS(o.animation),t);return t.currentQuery=null,t.currentQuerySelector=r,{type:11,selector:l,limit:s.limit||0,optional:!!s.optional,includeSelf:u,animation:p,originalSelector:o.selector,options:$0(o.options)}}visitStagger(o,t){t.currentQuery||t.errors.push(function UWe(){return new n.vHH(3013,!1)}());const r="full"===o.timings?{duration:0,delay:0,easing:"full"}:CP(o.timings,t.errors,!0);return{type:12,animation:Yc(this,pS(o.animation),t),timings:r,options:null}}}class kKe{constructor(o){this.errors=o,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function $0(i){return i?(i=uS(i)).params&&(i.params=function DKe(i){return i?uS(i):null}(i.params)):i={},i}function sH(i,o,t){return{duration:i,delay:o,easing:t}}function lH(i,o,t,r,s,l,u=null,p=!1){return{type:1,element:i,keyframes:o,preStyleProps:t,postStyleProps:r,duration:s,delay:l,totalTime:s+l,easing:u,subTimeline:p}}class DP{constructor(){this._map=new Map}get(o){return this._map.get(o)||[]}append(o,t){let r=this._map.get(o);r||this._map.set(o,r=[]),r.push(...t)}has(o){return this._map.has(o)}clear(){this._map.clear()}}const NKe=new RegExp(":enter","g"),RKe=new RegExp(":leave","g");function cH(i,o,t,r,s,l=new Map,u=new Map,p,y,A=[]){return(new FKe).buildKeyframes(i,o,t,r,s,l,u,p,y,A)}class FKe{buildKeyframes(o,t,r,s,l,u,p,y,A,w=[]){A=A||new DP;const I=new dH(o,t,A,s,l,w,[]);I.options=y;const P=y.delay?Rg(y.delay):0;I.currentTimeline.delayNextStep(P),I.currentTimeline.setStyles([u],null,I.errors,y),Yc(this,r,I);const F=I.timelines.filter(V=>V.containsAnimation());if(F.length&&p.size){let V;for(let oe=F.length-1;oe>=0;oe--){const Ae=F[oe];if(Ae.element===t){V=Ae;break}}V&&!V.allowOnlyTimelineStyles()&&V.setStyles([p],null,I.errors,y)}return F.length?F.map(V=>V.buildKeyframes()):[lH(t,[],[],[],0,P,"",!1)]}visitTrigger(o,t){}visitState(o,t){}visitTransition(o,t){}visitAnimateChild(o,t){const r=t.subInstructions.get(t.element);if(r){const s=t.createSubContext(o.options),l=t.currentTimeline.currentTime,u=this._visitSubInstructions(r,s,s.options);l!=u&&t.transformIntoNewTimeline(u)}t.previousNode=o}visitAnimateRef(o,t){const r=t.createSubContext(o.options);r.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],t,r),this.visitReference(o.animation,r),t.transformIntoNewTimeline(r.currentTimeline.currentTime),t.previousNode=o}_applyAnimationRefDelays(o,t,r){for(const s of o){const l=s?.delay;if(l){const u="number"==typeof l?l:Rg(hS(l,s?.params??{},t.errors));r.delayNextStep(u)}}}_visitSubInstructions(o,t,r){let l=t.currentTimeline.currentTime;const u=null!=r.duration?Rg(r.duration):null,p=null!=r.delay?Rg(r.delay):null;return 0!==u&&o.forEach(y=>{const A=t.appendInstructionToTimeline(y,u,p);l=Math.max(l,A.duration+A.delay)}),l}visitReference(o,t){t.updateOptions(o.options,!0),Yc(this,o.animation,t),t.previousNode=o}visitSequence(o,t){const r=t.subContextCount;let s=t;const l=o.options;if(l&&(l.params||l.delay)&&(s=t.createSubContext(l),s.transformIntoNewTimeline(),null!=l.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=kP);const u=Rg(l.delay);s.delayNextStep(u)}o.steps.length&&(o.steps.forEach(u=>Yc(this,u,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>r&&s.transformIntoNewTimeline()),t.previousNode=o}visitGroup(o,t){const r=[];let s=t.currentTimeline.currentTime;const l=o.options&&o.options.delay?Rg(o.options.delay):0;o.steps.forEach(u=>{const p=t.createSubContext(o.options);l&&p.delayNextStep(l),Yc(this,u,p),s=Math.max(s,p.currentTimeline.currentTime),r.push(p.currentTimeline)}),r.forEach(u=>t.currentTimeline.mergeTimelineCollectedStyles(u)),t.transformIntoNewTimeline(s),t.previousNode=o}_visitTiming(o,t){if(o.dynamic){const r=o.strValue;return CP(t.params?hS(r,t.params,t.errors):r,t.errors)}return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,t){const r=t.currentAnimateTimings=this._visitTiming(o.timings,t),s=t.currentTimeline;r.delay&&(t.incrementTime(r.delay),s.snapshotCurrentStyles());const l=o.style;5==l.type?this.visitKeyframes(l,t):(t.incrementTime(r.duration),this.visitStyle(l,t),s.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=o}visitStyle(o,t){const r=t.currentTimeline,s=t.currentAnimateTimings;!s&&r.hasCurrentStyleProperties()&&r.forwardFrame();const l=s&&s.easing||o.easing;o.isEmptyStep?r.applyEmptyStep(l):r.setStyles(o.styles,l,t.errors,t.options),t.previousNode=o}visitKeyframes(o,t){const r=t.currentAnimateTimings,s=t.currentTimeline.duration,l=r.duration,p=t.createSubContext().currentTimeline;p.easing=r.easing,o.styles.forEach(y=>{p.forwardTime((y.offset||0)*l),p.setStyles(y.styles,y.easing,t.errors,t.options),p.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(p),t.transformIntoNewTimeline(s+l),t.previousNode=o}visitQuery(o,t){const r=t.currentTimeline.currentTime,s=o.options||{},l=s.delay?Rg(s.delay):0;l&&(6===t.previousNode.type||0==r&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=kP);let u=r;const p=t.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!s.optional,t.errors);t.currentQueryTotal=p.length;let y=null;p.forEach((A,w)=>{t.currentQueryIndex=w;const I=t.createSubContext(o.options,A);l&&I.delayNextStep(l),A===t.element&&(y=I.currentTimeline),Yc(this,o.animation,I),I.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,I.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(u),y&&(t.currentTimeline.mergeTimelineCollectedStyles(y),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=o}visitStagger(o,t){const r=t.parentContext,s=t.currentTimeline,l=o.timings,u=Math.abs(l.duration),p=u*(t.currentQueryTotal-1);let y=u*t.currentQueryIndex;switch(l.duration<0?"reverse":l.easing){case"reverse":y=p-y;break;case"full":y=r.currentStaggerTime}const w=t.currentTimeline;y&&w.delayNextStep(y);const I=w.currentTime;Yc(this,o.animation,t),t.previousNode=o,r.currentStaggerTime=s.currentTime-I+(s.startTime-r.currentTimeline.startTime)}}const kP={};class dH{constructor(o,t,r,s,l,u,p,y){this._driver=o,this.element=t,this.subInstructions=r,this._enterClassName=s,this._leaveClassName=l,this.errors=u,this.timelines=p,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=kP,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=y||new IP(this._driver,t,0),p.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,t){if(!o)return;const r=o;let s=this.options;null!=r.duration&&(s.duration=Rg(r.duration)),null!=r.delay&&(s.delay=Rg(r.delay));const l=r.params;if(l){let u=s.params;u||(u=this.options.params={}),Object.keys(l).forEach(p=>{(!t||!u.hasOwnProperty(p))&&(u[p]=hS(l[p],u,this.errors))})}}_copyOptions(){const o={};if(this.options){const t=this.options.params;if(t){const r=o.params={};Object.keys(t).forEach(s=>{r[s]=t[s]})}}return o}createSubContext(o=null,t,r){const s=t||this.element,l=new dH(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,r||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(o),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l}transformIntoNewTimeline(o){return this.previousNode=kP,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,t,r){const s={duration:t??o.duration,delay:this.currentTimeline.currentTime+(r??0)+o.delay,easing:""},l=new BKe(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,s,o.stretchStartingKeyframe);return this.timelines.push(l),s}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,t,r,s,l,u){let p=[];if(s&&p.push(this.element),o.length>0){o=(o=o.replace(NKe,"."+this._enterClassName)).replace(RKe,"."+this._leaveClassName);let A=this._driver.query(this.element,o,1!=r);0!==r&&(A=r<0?A.slice(A.length+r,A.length):A.slice(0,r)),p.push(...A)}return!l&&0==p.length&&u.push(function YWe(i){return new n.vHH(3014,!1)}()),p}}class IP{constructor(o,t,r,s){this._driver=o,this.element=t,this.startTime=r,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){const t=1===this._keyframes.size&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+o),t&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,t){return this.applyStylesToKeyframe(),new IP(this._driver,o,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,t){this._localTimelineStyles.set(o,t),this._globalTimelineStyles.set(o,t),this._styleSummary.set(o,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[t,r]of this._globalTimelineStyles)this._backFill.set(t,r||xl),this._currentKeyframe.set(t,xl);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,t,r,s){t&&this._previousKeyframe.set("easing",t);const l=s&&s.params||{},u=function HKe(i,o){const t=new Map;let r;return i.forEach(s=>{if("*"===s){r=r||o.keys();for(let l of r)t.set(l,xl)}else Om(s,t)}),t}(o,this._globalTimelineStyles);for(let[p,y]of u){const A=hS(y,l,r);this._pendingStyles.set(p,A),this._localTimelineStyles.has(p)||this._backFill.set(p,this._globalTimelineStyles.get(p)??xl),this._updateStyle(p,A)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((o,t)=>{this._currentKeyframe.set(t,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,o)}))}snapshotCurrentStyles(){for(let[o,t]of this._localTimelineStyles)this._pendingStyles.set(o,t),this._updateStyle(o,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const o=[];for(let t in this._currentKeyframe)o.push(t);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((t,r)=>{const s=this._styleSummary.get(r);(!s||t.time>s.time)&&this._updateStyle(r,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();const o=new Set,t=new Set,r=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((p,y)=>{const A=Om(p,new Map,this._backFill);A.forEach((w,I)=>{"!"===w?o.add(I):w===xl&&t.add(I)}),r||A.set("offset",y/this.duration),s.push(A)});const l=o.size?AP(o.values()):[],u=t.size?AP(t.values()):[];if(r){const p=s[0],y=new Map(p);p.set("offset",0),y.set("offset",1),s=[p,y]}return lH(this.element,s,l,u,this.duration,this.startTime,this.easing,!1)}}class BKe extends IP{constructor(o,t,r,s,l,u,p=!1){super(o,t,u.delay),this.keyframes=r,this.preStyleProps=s,this.postStyleProps=l,this._stretchStartingKeyframe=p,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:t,duration:r,easing:s}=this.timings;if(this._stretchStartingKeyframe&&t){const l=[],u=r+t,p=t/u,y=Om(o[0]);y.set("offset",0),l.push(y);const A=Om(o[0]);A.set("offset",Oee(p)),l.push(A);const w=o.length-1;for(let I=1;I<=w;I++){let P=Om(o[I]);const F=P.get("offset");P.set("offset",Oee((t+F*r)/u)),l.push(P)}r=u,t=0,s="",o=l}return lH(this.element,o,this.preStyleProps,this.postStyleProps,r,t,s,!0)}}function Oee(i,o=3){const t=Math.pow(10,o-1);return Math.round(i*t)/t}class uH{}const $Ke=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class UKe extends uH{normalizePropertyName(o,t){return rH(o)}normalizeStyleValue(o,t,r,s){let l="";const u=r.toString().trim();if($Ke.has(t)&&0!==r&&"0"!==r)if("number"==typeof r)l="px";else{const p=r.match(/^[+-]?[\d\.]+([a-z]*)$/);p&&0==p[1].length&&s.push(function EWe(i,o){return new n.vHH(3005,!1)}())}return u+l}}function Nee(i,o,t,r,s,l,u,p,y,A,w,I,P){return{type:0,element:i,triggerName:o,isRemovalTransition:s,fromState:t,fromStyles:l,toState:r,toStyles:u,timelines:p,queriedElements:y,preStyleProps:A,postStyleProps:w,totalTime:I,errors:P}}const pH={};class Lee{constructor(o,t,r){this._triggerName=o,this.ast=t,this._stateStyles=r}match(o,t,r,s){return function YKe(i,o,t,r,s){return i.some(l=>l(o,t,r,s))}(this.ast.matchers,o,t,r,s)}buildStyles(o,t,r){let s=this._stateStyles.get("*");return void 0!==o&&(s=this._stateStyles.get(o?.toString())||s),s?s.buildStyles(t,r):new Map}build(o,t,r,s,l,u,p,y,A,w){const I=[],P=this.ast.options&&this.ast.options.params||pH,V=this.buildStyles(r,p&&p.params||pH,I),oe=y&&y.params||pH,Ae=this.buildStyles(s,oe,I),ue=new Set,Se=new Map,Be=new Map,Me="void"===s,He={params:jKe(oe,P),delay:this.ast.options?.delay},Ye=w?[]:cH(o,t,this.ast.animation,l,u,V,Ae,He,A,I);let Le=0;if(Ye.forEach(kt=>{Le=Math.max(kt.duration+kt.delay,Le)}),I.length)return Nee(t,this._triggerName,r,s,Me,V,Ae,[],[],Se,Be,Le,I);Ye.forEach(kt=>{const Ke=kt.element,Re=Uc(Se,Ke,new Set);kt.preStyleProps.forEach(Ze=>Re.add(Ze));const ot=Uc(Be,Ke,new Set);kt.postStyleProps.forEach(Ze=>ot.add(Ze)),Ke!==t&&ue.add(Ke)});const tt=AP(ue.values());return Nee(t,this._triggerName,r,s,Me,V,Ae,Ye,tt,Se,Be,Le)}}function jKe(i,o){const t=uS(o);for(const r in i)i.hasOwnProperty(r)&&null!=i[r]&&(t[r]=i[r]);return t}class ZKe{constructor(o,t,r){this.styles=o,this.defaultParams=t,this.normalizer=r}buildStyles(o,t){const r=new Map,s=uS(this.defaultParams);return Object.keys(o).forEach(l=>{const u=o[l];null!==u&&(s[l]=u)}),this.styles.styles.forEach(l=>{"string"!=typeof l&&l.forEach((u,p)=>{u&&(u=hS(u,s,t));const y=this.normalizer.normalizePropertyName(p,t);u=this.normalizer.normalizeStyleValue(p,y,u,t),r.set(y,u)})}),r}}class zKe{constructor(o,t,r){this.name=o,this.ast=t,this._normalizer=r,this.transitionFactories=[],this.states=new Map,t.states.forEach(s=>{this.states.set(s.name,new ZKe(s.style,s.options&&s.options.params||{},r))}),Ree(this.states,"true","1"),Ree(this.states,"false","0"),t.transitions.forEach(s=>{this.transitionFactories.push(new Lee(o,s,this.states))}),this.fallbackTransition=function GKe(i,o,t){return new Lee(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,p)=>!0],options:null,queryCount:0,depCount:0},o)}(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,t,r,s){return this.transitionFactories.find(u=>u.match(o,t,r,s))||null}matchStyles(o,t,r){return this.fallbackTransition.buildStyles(o,t,r)}}function Ree(i,o,t){i.has(o)?i.has(t)||i.set(t,i.get(o)):i.has(t)&&i.set(o,i.get(t))}const qKe=new DP;class JKe{constructor(o,t,r){this.bodyNode=o,this._driver=t,this._normalizer=r,this._animations=new Map,this._playersById=new Map,this.players=[]}register(o,t){const r=[],l=aH(this._driver,t,r,[]);if(r.length)throw function JWe(i){return new n.vHH(3503,!1)}();this._animations.set(o,l)}_buildPlayer(o,t,r){const s=o.element,l=gee(0,this._normalizer,0,o.keyframes,t,r);return this._driver.animate(s,l,o.duration,o.delay,o.easing,[],!0)}create(o,t,r={}){const s=[],l=this._animations.get(o);let u;const p=new Map;if(l?(u=cH(this._driver,t,l,tH,bP,new Map,new Map,r,qKe,s),u.forEach(w=>{const I=Uc(p,w.element,new Map);w.postStyleProps.forEach(P=>I.set(P,null))})):(s.push(function QWe(){return new n.vHH(3300,!1)}()),u=[]),s.length)throw function WWe(i){return new n.vHH(3504,!1)}();p.forEach((w,I)=>{w.forEach((P,F)=>{w.set(F,this._driver.computeStyle(I,F,xl))})});const A=Pm(u.map(w=>{const I=p.get(w.element);return this._buildPlayer(w,new Map,I)}));return this._playersById.set(o,A),A.onDestroy(()=>this.destroy(o)),this.players.push(A),A}destroy(o){const t=this._getPlayer(o);t.destroy(),this._playersById.delete(o);const r=this.players.indexOf(t);r>=0&&this.players.splice(r,1)}_getPlayer(o){const t=this._playersById.get(o);if(!t)throw function KWe(i){return new n.vHH(3301,!1)}();return t}listen(o,t,r,s){const l=WB(t,"","","");return JB(this._getPlayer(o),r,l,s),()=>{}}command(o,t,r,s){if("register"==r)return void this.register(o,s[0]);if("create"==r)return void this.create(o,t,s[0]||{});const l=this._getPlayer(o);switch(r){case"play":l.play();break;case"pause":l.pause();break;case"reset":l.reset();break;case"restart":l.restart();break;case"finish":l.finish();break;case"init":l.init();break;case"setPosition":l.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(o)}}}const Fee="ng-animate-queued",hH="ng-animate-disabled",eXe=[],Bee={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},tXe={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Bd="__ng_removed";class gH{constructor(o,t=""){this.namespaceId=t;const r=o&&o.hasOwnProperty("value");if(this.value=function rXe(i){return i??null}(r?o.value:o),r){const l=uS(o);delete l.value,this.options=l}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(o){const t=o.params;if(t){const r=this.options.params;Object.keys(t).forEach(s=>{null==r[s]&&(r[s]=t[s])})}}}const gS="void",fH=new gH(gS);class nXe{constructor(o,t,r){this.id=o,this.hostElement=t,this._engine=r,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+o,Hd(t,this._hostClassName)}listen(o,t,r,s){if(!this._triggers.has(t))throw function XWe(i,o){return new n.vHH(3302,!1)}();if(null==r||0==r.length)throw function eKe(i){return new n.vHH(3303,!1)}();if(!function aXe(i){return"start"==i||"done"==i}(r))throw function tKe(i,o){return new n.vHH(3400,!1)}();const l=Uc(this._elementListeners,o,[]),u={name:t,phase:r,callback:s};l.push(u);const p=Uc(this._engine.statesByElement,o,new Map);return p.has(t)||(Hd(o,vP),Hd(o,vP+"-"+t),p.set(t,fH)),()=>{this._engine.afterFlush(()=>{const y=l.indexOf(u);y>=0&&l.splice(y,1),this._triggers.has(t)||p.delete(t)})}}register(o,t){return!this._triggers.has(o)&&(this._triggers.set(o,t),!0)}_getTrigger(o){const t=this._triggers.get(o);if(!t)throw function nKe(i){return new n.vHH(3401,!1)}();return t}trigger(o,t,r,s=!0){const l=this._getTrigger(t),u=new mH(this.id,t,o);let p=this._engine.statesByElement.get(o);p||(Hd(o,vP),Hd(o,vP+"-"+t),this._engine.statesByElement.set(o,p=new Map));let y=p.get(t);const A=new gH(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&y&&A.absorbOptions(y.options),p.set(t,A),y||(y=fH),A.value!==gS&&y.value===A.value){if(!function cXe(i,o){const t=Object.keys(i),r=Object.keys(o);if(t.length!=r.length)return!1;for(let s=0;s<t.length;s++){const l=t[s];if(!o.hasOwnProperty(l)||i[l]!==o[l])return!1}return!0}(y.params,A.params)){const oe=[],Ae=l.matchStyles(y.value,y.params,oe),ue=l.matchStyles(A.value,A.params,oe);oe.length?this._engine.reportError(oe):this._engine.afterFlush(()=>{H0(o,Ae),oh(o,ue)})}return}const P=Uc(this._engine.playersByElement,o,[]);P.forEach(oe=>{oe.namespaceId==this.id&&oe.triggerName==t&&oe.queued&&oe.destroy()});let F=l.matchTransition(y.value,A.value,o,A.params),V=!1;if(!F){if(!s)return;F=l.fallbackTransition,V=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:t,transition:F,fromState:y,toState:A,player:u,isFallbackTransition:V}),V||(Hd(o,Fee),u.onStart(()=>{tC(o,Fee)})),u.onDone(()=>{let oe=this.players.indexOf(u);oe>=0&&this.players.splice(oe,1);const Ae=this._engine.playersByElement.get(o);if(Ae){let ue=Ae.indexOf(u);ue>=0&&Ae.splice(ue,1)}}),this.players.push(u),P.push(u),u}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(t=>t.delete(o)),this._elementListeners.forEach((t,r)=>{this._elementListeners.set(r,t.filter(s=>s.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);const t=this._engine.playersByElement.get(o);t&&(t.forEach(r=>r.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,t){const r=this._engine.driver.query(o,yP,!0);r.forEach(s=>{if(s[Bd])return;const l=this._engine.fetchNamespacesByElement(s);l.size?l.forEach(u=>u.triggerLeaveAnimation(s,t,!1,!0)):this.clearElementCache(s)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(s=>this.clearElementCache(s)))}triggerLeaveAnimation(o,t,r,s){const l=this._engine.statesByElement.get(o),u=new Map;if(l){const p=[];if(l.forEach((y,A)=>{if(u.set(A,y.value),this._triggers.has(A)){const w=this.trigger(o,A,gS,s);w&&p.push(w)}}),p.length)return this._engine.markElementAsRemoved(this.id,o,!0,t,u),r&&Pm(p).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){const t=this._elementListeners.get(o),r=this._engine.statesByElement.get(o);if(t&&r){const s=new Set;t.forEach(l=>{const u=l.name;if(s.has(u))return;s.add(u);const y=this._triggers.get(u).fallbackTransition,A=r.get(u)||fH,w=new gH(gS),I=new mH(this.id,u,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:u,transition:y,fromState:A,toState:w,player:I,isFallbackTransition:!0})})}}removeNode(o,t){const r=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,t),this.triggerLeaveAnimation(o,t,!0))return;let s=!1;if(r.totalAnimations){const l=r.players.length?r.playersByQueriedElement.get(o):[];if(l&&l.length)s=!0;else{let u=o;for(;u=u.parentNode;)if(r.statesByElement.get(u)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(o),s)r.markElementAsRemoved(this.id,o,!1,t);else{const l=o[Bd];(!l||l===Bee)&&(r.afterFlush(()=>this.clearElementCache(o)),r.destroyInnerAnimations(o),r._onRemovalComplete(o,t))}}insertNode(o,t){Hd(o,this._hostClassName)}drainQueuedTransitions(o){const t=[];return this._queue.forEach(r=>{const s=r.player;if(s.destroyed)return;const l=r.element,u=this._elementListeners.get(l);u&&u.forEach(p=>{if(p.name==r.triggerName){const y=WB(l,r.triggerName,r.fromState.value,r.toState.value);y._data=o,JB(r.player,p.phase,y,p.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):t.push(r)}),this._queue=[],t.sort((r,s)=>{const l=r.transition.ast.depCount,u=s.transition.ast.depCount;return 0==l||0==u?l-u:this._engine.driver.containsElement(r.element,s.element)?1:-1})}destroy(o){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}elementContainsData(o){let t=!1;return this._elementListeners.has(o)&&(t=!0),t=!!this._queue.find(r=>r.element===o)||t,t}}class iXe{constructor(o,t,r){this.bodyNode=o,this.driver=t,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(s,l)=>{}}_onRemovalComplete(o,t){this.onRemovalComplete(o,t)}get queuedPlayers(){const o=[];return this._namespaceList.forEach(t=>{t.players.forEach(r=>{r.queued&&o.push(r)})}),o}createNamespace(o,t){const r=new nXe(o,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(r,t):(this.newHostElements.set(t,r),this.collectEnterElement(t)),this._namespaceLookup[o]=r}_balanceNamespaceList(o,t){const r=this._namespaceList,s=this.namespacesByHostElement;if(r.length-1>=0){let u=!1,p=this.driver.getParentElement(t);for(;p;){const y=s.get(p);if(y){const A=r.indexOf(y);r.splice(A+1,0,o),u=!0;break}p=this.driver.getParentElement(p)}u||r.unshift(o)}else r.push(o);return s.set(t,o),o}register(o,t){let r=this._namespaceLookup[o];return r||(r=this.createNamespace(o,t)),r}registerTrigger(o,t,r){let s=this._namespaceLookup[o];s&&s.register(t,r)&&this.totalAnimations++}destroy(o,t){if(!o)return;const r=this._fetchNamespace(o);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[o];const s=this._namespaceList.indexOf(r);s>=0&&this._namespaceList.splice(s,1)}),this.afterFlushAnimationsDone(()=>r.destroy(t))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){const t=new Set,r=this.statesByElement.get(o);if(r)for(let s of r.values())if(s.namespaceId){const l=this._fetchNamespace(s.namespaceId);l&&t.add(l)}return t}trigger(o,t,r,s){if(EP(t)){const l=this._fetchNamespace(o);if(l)return l.trigger(t,r,s),!0}return!1}insertNode(o,t,r,s){if(!EP(t))return;const l=t[Bd];if(l&&l.setForRemoval){l.setForRemoval=!1,l.setForMove=!0;const u=this.collectedLeaveElements.indexOf(t);u>=0&&this.collectedLeaveElements.splice(u,1)}if(o){const u=this._fetchNamespace(o);u&&u.insertNode(t,r)}s&&this.collectEnterElement(t)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,t){t?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Hd(o,hH)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),tC(o,hH))}removeNode(o,t,r,s){if(EP(t)){const l=o?this._fetchNamespace(o):null;if(l?l.removeNode(t,s):this.markElementAsRemoved(o,t,!1,s),r){const u=this.namespacesByHostElement.get(t);u&&u.id!==o&&u.removeNode(t,s)}}else this._onRemovalComplete(t,s)}markElementAsRemoved(o,t,r,s,l){this.collectedLeaveElements.push(t),t[Bd]={namespaceId:o,setForRemoval:s,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:l}}listen(o,t,r,s,l){return EP(t)?this._fetchNamespace(o).listen(t,r,s,l):()=>{}}_buildInstruction(o,t,r,s,l){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,r,s,o.fromState.options,o.toState.options,t,l)}destroyInnerAnimations(o){let t=this.driver.query(o,yP,!0);t.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(o,nH,!0),t.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(o){const t=this.playersByElement.get(o);t&&t.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(o){const t=this.playersByQueriedElement.get(o);t&&t.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Pm(this.players).onDone(()=>o());o()})}processLeaveNode(o){const t=o[Bd];if(t&&t.setForRemoval){if(o[Bd]=Bee,t.namespaceId){this.destroyInnerAnimations(o);const r=this._fetchNamespace(t.namespaceId);r&&r.clearElementCache(o)}this._onRemovalComplete(o,t.setForRemoval)}o.classList?.contains(hH)&&this.markElementAsDisabled(o,!1),this.driver.query(o,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(o=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,s)=>this._balanceNamespaceList(r,s)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Hd(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{t=this._flushAnimations(r,o)}finally{for(let s=0;s<r.length;s++)r[s]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],t.length?Pm(t).onDone(()=>{r.forEach(s=>s())}):r.forEach(s=>s())}}reportError(o){throw function iKe(i){return new n.vHH(3402,!1)}()}_flushAnimations(o,t){const r=new DP,s=[],l=new Map,u=[],p=new Map,y=new Map,A=new Map,w=new Set;this.disabledNodes.forEach(Oe=>{w.add(Oe);const ze=this.driver.query(Oe,".ng-animate-queued",!0);for(let it=0;it<ze.length;it++)w.add(ze[it])});const I=this.bodyNode,P=Array.from(this.statesByElement.keys()),F=Uee(P,this.collectedEnterElements),V=new Map;let oe=0;F.forEach((Oe,ze)=>{const it=tH+oe++;V.set(ze,it),Oe.forEach(ct=>Hd(ct,it))});const Ae=[],ue=new Set,Se=new Set;for(let Oe=0;Oe<this.collectedLeaveElements.length;Oe++){const ze=this.collectedLeaveElements[Oe],it=ze[Bd];it&&it.setForRemoval&&(Ae.push(ze),ue.add(ze),it.hasAnimation?this.driver.query(ze,".ng-star-inserted",!0).forEach(ct=>ue.add(ct)):Se.add(ze))}const Be=new Map,Me=Uee(P,Array.from(ue));Me.forEach((Oe,ze)=>{const it=bP+oe++;Be.set(ze,it),Oe.forEach(ct=>Hd(ct,it))}),o.push(()=>{F.forEach((Oe,ze)=>{const it=V.get(ze);Oe.forEach(ct=>tC(ct,it))}),Me.forEach((Oe,ze)=>{const it=Be.get(ze);Oe.forEach(ct=>tC(ct,it))}),Ae.forEach(Oe=>{this.processLeaveNode(Oe)})});const He=[],Ye=[];for(let Oe=this._namespaceList.length-1;Oe>=0;Oe--)this._namespaceList[Oe].drainQueuedTransitions(t).forEach(it=>{const ct=it.player,yt=it.element;if(He.push(ct),this.collectedEnterElements.length){const Vn=yt[Bd];if(Vn&&Vn.setForMove){if(Vn.previousTriggersValues&&Vn.previousTriggersValues.has(it.triggerName)){const Vr=Vn.previousTriggersValues.get(it.triggerName),tr=this.statesByElement.get(it.element);if(tr&&tr.has(it.triggerName)){const fr=tr.get(it.triggerName);fr.value=Vr,tr.set(it.triggerName,fr)}}return void ct.destroy()}}const Nn=!I||!this.driver.containsElement(I,yt),Vt=Be.get(yt),yi=V.get(yt),Mn=this._buildInstruction(it,r,yi,Vt,Nn);if(Mn.errors&&Mn.errors.length)return void Ye.push(Mn);if(Nn)return ct.onStart(()=>H0(yt,Mn.fromStyles)),ct.onDestroy(()=>oh(yt,Mn.toStyles)),void s.push(ct);if(it.isFallbackTransition)return ct.onStart(()=>H0(yt,Mn.fromStyles)),ct.onDestroy(()=>oh(yt,Mn.toStyles)),void s.push(ct);const Ao=[];Mn.timelines.forEach(Vn=>{Vn.stretchStartingKeyframe=!0,this.disabledNodes.has(Vn.element)||Ao.push(Vn)}),Mn.timelines=Ao,r.append(yt,Mn.timelines),u.push({instruction:Mn,player:ct,element:yt}),Mn.queriedElements.forEach(Vn=>Uc(p,Vn,[]).push(ct)),Mn.preStyleProps.forEach((Vn,Vr)=>{if(Vn.size){let tr=y.get(Vr);tr||y.set(Vr,tr=new Set),Vn.forEach((fr,ao)=>tr.add(ao))}}),Mn.postStyleProps.forEach((Vn,Vr)=>{let tr=A.get(Vr);tr||A.set(Vr,tr=new Set),Vn.forEach((fr,ao)=>tr.add(ao))})});if(Ye.length){const Oe=[];Ye.forEach(ze=>{Oe.push(function oKe(i,o){return new n.vHH(3505,!1)}())}),He.forEach(ze=>ze.destroy()),this.reportError(Oe)}const Le=new Map,tt=new Map;u.forEach(Oe=>{const ze=Oe.element;r.has(ze)&&(tt.set(ze,ze),this._beforeAnimationBuild(Oe.player.namespaceId,Oe.instruction,Le))}),s.forEach(Oe=>{const ze=Oe.element;this._getPreviousPlayers(ze,!1,Oe.namespaceId,Oe.triggerName,null).forEach(ct=>{Uc(Le,ze,[]).push(ct),ct.destroy()})});const kt=Ae.filter(Oe=>jee(Oe,y,A)),Ke=new Map;$ee(Ke,this.driver,Se,A,xl).forEach(Oe=>{jee(Oe,y,A)&&kt.push(Oe)});const ot=new Map;F.forEach((Oe,ze)=>{$ee(ot,this.driver,new Set(Oe),y,"!")}),kt.forEach(Oe=>{const ze=Ke.get(Oe),it=ot.get(Oe);Ke.set(Oe,new Map([...Array.from(ze?.entries()??[]),...Array.from(it?.entries()??[])]))});const Ze=[],At=[],Xe={};u.forEach(Oe=>{const{element:ze,player:it,instruction:ct}=Oe;if(r.has(ze)){if(w.has(ze))return it.onDestroy(()=>oh(ze,ct.toStyles)),it.disabled=!0,it.overrideTotalTime(ct.totalTime),void s.push(it);let yt=Xe;if(tt.size>1){let Vt=ze;const yi=[];for(;Vt=Vt.parentNode;){const Mn=tt.get(Vt);if(Mn){yt=Mn;break}yi.push(Vt)}yi.forEach(Mn=>tt.set(Mn,yt))}const Nn=this._buildAnimation(it.namespaceId,ct,Le,l,ot,Ke);if(it.setRealPlayer(Nn),yt===Xe)Ze.push(it);else{const Vt=this.playersByElement.get(yt);Vt&&Vt.length&&(it.parentPlayer=Pm(Vt)),s.push(it)}}else H0(ze,ct.fromStyles),it.onDestroy(()=>oh(ze,ct.toStyles)),At.push(it),w.has(ze)&&s.push(it)}),At.forEach(Oe=>{const ze=l.get(Oe.element);if(ze&&ze.length){const it=Pm(ze);Oe.setRealPlayer(it)}}),s.forEach(Oe=>{Oe.parentPlayer?Oe.syncPlayerEvents(Oe.parentPlayer):Oe.destroy()});for(let Oe=0;Oe<Ae.length;Oe++){const ze=Ae[Oe],it=ze[Bd];if(tC(ze,bP),it&&it.hasAnimation)continue;let ct=[];if(p.size){let Nn=p.get(ze);Nn&&Nn.length&&ct.push(...Nn);let Vt=this.driver.query(ze,nH,!0);for(let yi=0;yi<Vt.length;yi++){let Mn=p.get(Vt[yi]);Mn&&Mn.length&&ct.push(...Mn)}}const yt=ct.filter(Nn=>!Nn.destroyed);yt.length?sXe(this,ze,yt):this.processLeaveNode(ze)}return Ae.length=0,Ze.forEach(Oe=>{this.players.push(Oe),Oe.onDone(()=>{Oe.destroy();const ze=this.players.indexOf(Oe);this.players.splice(ze,1)}),Oe.play()}),Ze}elementContainsData(o,t){let r=!1;const s=t[Bd];return s&&s.setForRemoval&&(r=!0),this.playersByElement.has(t)&&(r=!0),this.playersByQueriedElement.has(t)&&(r=!0),this.statesByElement.has(t)&&(r=!0),this._fetchNamespace(o).elementContainsData(t)||r}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,t,r,s,l){let u=[];if(t){const p=this.playersByQueriedElement.get(o);p&&(u=p)}else{const p=this.playersByElement.get(o);if(p){const y=!l||l==gS;p.forEach(A=>{A.queued||!y&&A.triggerName!=s||u.push(A)})}}return(r||s)&&(u=u.filter(p=>!(r&&r!=p.namespaceId||s&&s!=p.triggerName))),u}_beforeAnimationBuild(o,t,r){const l=t.element,u=t.isRemovalTransition?void 0:o,p=t.isRemovalTransition?void 0:t.triggerName;for(const y of t.timelines){const A=y.element,w=A!==l,I=Uc(r,A,[]);this._getPreviousPlayers(A,w,u,p,t.toState).forEach(F=>{const V=F.getRealPlayer();V.beforeDestroy&&V.beforeDestroy(),F.destroy(),I.push(F)})}H0(l,t.fromStyles)}_buildAnimation(o,t,r,s,l,u){const p=t.triggerName,y=t.element,A=[],w=new Set,I=new Set,P=t.timelines.map(V=>{const oe=V.element;w.add(oe);const Ae=oe[Bd];if(Ae&&Ae.removedBeforeQueried)return new Pv(V.duration,V.delay);const ue=oe!==y,Se=function lXe(i){const o=[];return Yee(i,o),o}((r.get(oe)||eXe).map(Le=>Le.getRealPlayer())).filter(Le=>!!Le.element&&Le.element===oe),Be=l.get(oe),Me=u.get(oe),He=gee(0,this._normalizer,0,V.keyframes,Be,Me),Ye=this._buildPlayer(V,He,Se);if(V.subTimeline&&s&&I.add(oe),ue){const Le=new mH(o,p,oe);Le.setRealPlayer(Ye),A.push(Le)}return Ye});A.forEach(V=>{Uc(this.playersByQueriedElement,V.element,[]).push(V),V.onDone(()=>function oXe(i,o,t){let r=i.get(o);if(r){if(r.length){const s=r.indexOf(t);r.splice(s,1)}0==r.length&&i.delete(o)}return r}(this.playersByQueriedElement,V.element,V))}),w.forEach(V=>Hd(V,xee));const F=Pm(P);return F.onDestroy(()=>{w.forEach(V=>tC(V,xee)),oh(y,t.toStyles)}),I.forEach(V=>{Uc(s,V,[]).push(F)}),F}_buildPlayer(o,t,r){return t.length>0?this.driver.animate(o.element,t,o.duration,o.delay,o.easing,r):new Pv(o.duration,o.delay)}}class mH{constructor(o,t,r){this.namespaceId=o,this.triggerName=t,this.element=r,this._player=new Pv,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((t,r)=>{t.forEach(s=>JB(o,r,void 0,s))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){const t=this._player;t.triggerCallback&&o.onStart(()=>t.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,t){Uc(this._queuedCallbacks,o,[]).push(t)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){const t=this._player;t.triggerCallback&&t.triggerCallback(o)}}function EP(i){return i&&1===i.nodeType}function Hee(i,o){const t=i.style.display;return i.style.display=o??"none",t}function $ee(i,o,t,r,s){const l=[];t.forEach(y=>l.push(Hee(y)));const u=[];r.forEach((y,A)=>{const w=new Map;y.forEach(I=>{const P=o.computeStyle(A,I,s);w.set(I,P),(!P||0==P.length)&&(A[Bd]=tXe,u.push(A))}),i.set(A,w)});let p=0;return t.forEach(y=>Hee(y,l[p++])),u}function Uee(i,o){const t=new Map;if(i.forEach(p=>t.set(p,[])),0==o.length)return t;const s=new Set(o),l=new Map;function u(p){if(!p)return 1;let y=l.get(p);if(y)return y;const A=p.parentNode;return y=t.has(A)?A:s.has(A)?1:u(A),l.set(p,y),y}return o.forEach(p=>{const y=u(p);1!==y&&t.get(y).push(p)}),t}function Hd(i,o){i.classList?.add(o)}function tC(i,o){i.classList?.remove(o)}function sXe(i,o,t){Pm(t).onDone(()=>i.processLeaveNode(o))}function Yee(i,o){for(let t=0;t<i.length;t++){const r=i[t];r instanceof L8?Yee(r.players,o):o.push(r)}}function jee(i,o,t){const r=t.get(i);if(!r)return!1;let s=o.get(i);return s?r.forEach(l=>s.add(l)):o.set(i,r),t.delete(i),!0}class PP{constructor(o,t,r){this.bodyNode=o,this._driver=t,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(s,l)=>{},this._transitionEngine=new iXe(o,t,r),this._timelineEngine=new JKe(o,t,r),this._transitionEngine.onRemovalComplete=(s,l)=>this.onRemovalComplete(s,l)}registerTrigger(o,t,r,s,l){const u=o+"-"+s;let p=this._triggerCache[u];if(!p){const y=[],w=aH(this._driver,l,y,[]);if(y.length)throw function GWe(i,o){return new n.vHH(3404,!1)}();p=function VKe(i,o,t){return new zKe(i,o,t)}(s,w,this._normalizer),this._triggerCache[u]=p}this._transitionEngine.registerTrigger(t,s,p)}register(o,t){this._transitionEngine.register(o,t)}destroy(o,t){this._transitionEngine.destroy(o,t)}onInsert(o,t,r,s){this._transitionEngine.insertNode(o,t,r,s)}onRemove(o,t,r,s){this._transitionEngine.removeNode(o,t,s||!1,r)}disableAnimations(o,t){this._transitionEngine.markElementAsDisabled(o,t)}process(o,t,r,s){if("@"==r.charAt(0)){const[l,u]=fee(r);this._timelineEngine.command(l,t,u,s)}else this._transitionEngine.trigger(o,t,r,s)}listen(o,t,r,s,l){if("@"==r.charAt(0)){const[u,p]=fee(r);return this._timelineEngine.listen(u,t,p,l)}return this._transitionEngine.listen(o,t,r,s,l)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let uXe=(()=>{class i{constructor(t,r,s){this._element=t,this._startStyles=r,this._endStyles=s,this._state=0;let l=i.initialStylesByElement.get(t);l||i.initialStylesByElement.set(t,l=new Map),this._initialStyles=l}start(){this._state<1&&(this._startStyles&&oh(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(oh(this._element,this._initialStyles),this._endStyles&&(oh(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(i.initialStylesByElement.delete(this._element),this._startStyles&&(H0(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(H0(this._element,this._endStyles),this._endStyles=null),oh(this._element,this._initialStyles),this._state=3)}}return i.initialStylesByElement=new WeakMap,i})();function _H(i){let o=null;return i.forEach((t,r)=>{(function pXe(i){return"display"===i||"position"===i})(r)&&(o=o||new Map,o.set(r,t))}),o}class Zee{constructor(o,t,r,s){this.element=o,this.keyframes=t,this.options=r,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const o=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,o,this.options),this._finalKeyframe=o.length?o[o.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(o){const t=[];return o.forEach(r=>{t.push(Object.fromEntries(r))}),t}_triggerWebAnimation(o,t,r){return o.animate(this._convertKeyframesToObject(t),r)}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(o=>o()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=o*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((r,s)=>{"offset"!==s&&o.set(s,this._finished?r:kee(this.element,s))}),this.currentSnapshot=o}triggerCallback(o){const t="start"===o?this._onStartFns:this._onDoneFns;t.forEach(r=>r()),t.length=0}}class hXe{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}matchesElement(o,t){return!1}containsElement(o,t){return vee(o,t)}getParentElement(o){return XB(o)}query(o,t,r){return yee(o,t,r)}computeStyle(o,t,r){return window.getComputedStyle(o)[t]}animate(o,t,r,s,l,u=[]){const y={duration:r,delay:s,fill:0==s?"both":"forwards"};l&&(y.easing=l);const A=new Map,w=u.filter(F=>F instanceof Zee);(function _Ke(i,o){return 0===i||0===o})(r,s)&&w.forEach(F=>{F.currentSnapshot.forEach((V,oe)=>A.set(oe,V))});let I=function hKe(i){return i.length?i[0]instanceof Map?i:i.map(o=>Tee(o)):[]}(t).map(F=>Om(F));I=function bKe(i,o,t){if(t.size&&o.length){let r=o[0],s=[];if(t.forEach((l,u)=>{r.has(u)||s.push(u),r.set(u,l)}),s.length)for(let l=1;l<o.length;l++){let u=o[l];s.forEach(p=>u.set(p,kee(i,p)))}}return o}(o,I,A);const P=function dXe(i,o){let t=null,r=null;return Array.isArray(o)&&o.length?(t=_H(o[0]),o.length>1&&(r=_H(o[o.length-1]))):o instanceof Map&&(t=_H(o)),t||r?new uXe(i,t,r):null}(o,I);return new Zee(o,I,y,P)}}let gXe=(()=>{class i extends Wl{constructor(t,r){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(r.body,{id:"0",encapsulation:n.ifc.None,styles:[],data:{animation:[]}})}build(t){const r=this._nextAnimationId.toString();this._nextAnimationId++;const s=Array.isArray(t)?r1(t):t;return Vee(this._renderer,null,r,"register",[s]),new fXe(r,this._renderer)}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.FYo),n.LFG(ie))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class fXe extends class dD{}{constructor(o,t){super(),this._id=o,this._renderer=t}create(o,t){return new mXe(this._id,o,t||{},this._renderer)}}class mXe{constructor(o,t,r,s){this.id=o,this.element=t,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(o,t){return this._renderer.listen(this.element,`@@${this.id}:${o}`,t)}_command(o,...t){return Vee(this._renderer,this.element,this.id,o,t)}onDone(o){this._listen("done",o)}onStart(o){this._listen("start",o)}onDestroy(o){this._listen("destroy",o)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(o){this._command("setPosition",o)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function Vee(i,o,t,r,s){return i.setProperty(o,`@@${t}:${r}`,s)}const zee="@.disabled";let _Xe=(()=>{class i{constructor(t,r,s){this.delegate=t,this.engine=r,this._zone=s,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(l,u)=>{const p=u?.parentNode(l);p&&u.removeChild(p,l)}}createRenderer(t,r){const l=this.delegate.createRenderer(t,r);if(!(t&&r&&r.data&&r.data.animation)){let w=this._rendererCache.get(l);return w||(w=new Gee("",l,this.engine,()=>this._rendererCache.delete(l)),this._rendererCache.set(l,w)),w}const u=r.id,p=r.id+"-"+this._currentId;this._currentId++,this.engine.register(p,t);const y=w=>{Array.isArray(w)?w.forEach(y):this.engine.registerTrigger(u,p,t,w.name,w)};return r.data.animation.forEach(y),new bXe(this,p,l,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,r,s){t>=0&&t<this._microtaskId?this._zone.run(()=>r(s)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(l=>{const[u,p]=l;u(p)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,s]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(n.FYo),n.LFG(PP),n.LFG(n.R0b))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();class Gee{constructor(o,t,r,s){this.namespaceId=o,this.delegate=t,this.engine=r,this._onDestroy=s,this.destroyNode=this.delegate.destroyNode?l=>t.destroyNode(l):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(o,t){return this.delegate.createElement(o,t)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,t){this.delegate.appendChild(o,t),this.engine.onInsert(this.namespaceId,t,o,!1)}insertBefore(o,t,r,s=!0){this.delegate.insertBefore(o,t,r),this.engine.onInsert(this.namespaceId,t,o,s)}removeChild(o,t,r){this.engine.onRemove(this.namespaceId,t,this.delegate,r)}selectRootElement(o,t){return this.delegate.selectRootElement(o,t)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,t,r,s){this.delegate.setAttribute(o,t,r,s)}removeAttribute(o,t,r){this.delegate.removeAttribute(o,t,r)}addClass(o,t){this.delegate.addClass(o,t)}removeClass(o,t){this.delegate.removeClass(o,t)}setStyle(o,t,r,s){this.delegate.setStyle(o,t,r,s)}removeStyle(o,t,r){this.delegate.removeStyle(o,t,r)}setProperty(o,t,r){"@"==t.charAt(0)&&t==zee?this.disableAnimations(o,!!r):this.delegate.setProperty(o,t,r)}setValue(o,t){this.delegate.setValue(o,t)}listen(o,t,r){return this.delegate.listen(o,t,r)}disableAnimations(o,t){this.engine.disableAnimations(o,t)}}class bXe extends Gee{constructor(o,t,r,s,l){super(t,r,s,l),this.factory=o,this.namespaceId=t}setProperty(o,t,r){"@"==t.charAt(0)?"."==t.charAt(1)&&t==zee?this.disableAnimations(o,r=void 0===r||!!r):this.engine.process(this.namespaceId,o,t.slice(1),r):this.delegate.setProperty(o,t,r)}listen(o,t,r){if("@"==t.charAt(0)){const s=function vXe(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(o);let l=t.slice(1),u="";return"@"!=l.charAt(0)&&([l,u]=function yXe(i){const o=i.indexOf(".");return[i.substring(0,o),i.slice(o+1)]}(l)),this.engine.listen(this.namespaceId,s,l,u,p=>{this.factory.scheduleListenerCallback(p._data||-1,r,p)})}return this.delegate.listen(o,t,r)}}let CXe=(()=>{class i extends PP{constructor(t,r,s,l){super(t.body,r,s)}ngOnDestroy(){this.flush()}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(ie),n.LFG(eH),n.LFG(uH),n.LFG(n.z2F))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac}),i})();const qee=[{provide:Wl,useClass:gXe},{provide:uH,useFactory:function AXe(){return new UKe}},{provide:PP,useClass:CXe},{provide:n.FYo,useFactory:function xXe(i,o,t){return new _Xe(i,o,t)},deps:[Br,PP,n.R0b]}],bH=[{provide:eH,useFactory:()=>new hXe},{provide:n.QbO,useValue:"BrowserAnimations"},...qee],Jee=[{provide:eH,useClass:Cee},{provide:n.QbO,useValue:"NoopAnimations"},...qee];let TXe=(()=>{class i{static withConfig(t){return{ngModule:i,providers:t.disableAnimations?Jee:bH}}}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i}),i.\u0275inj=n.cJS({providers:bH,imports:[Lh]}),i})();S(4123);let SXe=(()=>{class i{constructor(t){this.httpCliente=t,this.apiKey="",this.scriptLoaded=!1}load(t=null){return new Promise((r,s)=>{this.httpCliente.get("/api/empresa/googlemaps/key").toPromise().then(l=>{if(this.apiKey=l,this.scriptLoaded)r();else{let u=`https://maps.googleapis.com/maps/api/js?key=${this.apiKey}`;t&&(u+=`&libraries=${t}`);const p=document.createElement("script");p.src=u,p.async=!0,p.defer=!0,p.onload=()=>{console.log("script googleapis carregado..."),this.scriptLoaded=!0,r()},p.onerror=y=>{console.error(y),s(y)},document.head.appendChild(p)}})})}autocompletePlaces(t){return this.httpCliente.get(`https://maps.googleapis.com/maps/api/place/autocomplete/json?input=${t}&key=${this.apiKey}&types=geocode`).pipe((0,ft.U)(s=>s.predictions.map(l=>l.structured_formatting)))}geocoding(t){return this.httpCliente.get(`https://maps.googleapis.com/maps/api/geocode/json?address=${t}&key=${this.apiKey}`).pipe((0,ft.U)(s=>s.results[0].geometry))}}return i.\u0275fac=function(t){return new(t||i)(n.LFG(Wo))},i.\u0275prov=n.Yz7({token:i,factory:i.\u0275fac,providedIn:"root"}),i})();const wXe=["search"],MXe=["map"];function DXe(i,o){1&i&&n._UZ(0,"i",7)}function kXe(i,o){1&i&&n._UZ(0,"div",8)}let IXe=(()=>{class i{constructor(t,r){this.googleMapsService=t,this.app=r,this.onSelecionou=new n.vpe,this.empresa={},this.enderecoEscolhido={enderecoCompleto:"",logradouro:"",bairro:"",cep:"",localizacao:"",cidade:{nome:""},estado:{nome:""}},this.manualEntry=!1,this.showMap=!1}ngOnInit(){var t=this;let r;this.googleMapsService.load("places").then(()=>{if(this.cepObrigatorio=null!=this.empresa.formasDeEntrega.find(u=>u.cepObrigatorio),this.empresa.latitudeLongitude){let u=this.empresa.latitudeLongitude.split(",");this.deliveryLocation={lat:Number(u[0]),lng:Number(u[1])}}else if(this.empresa.enderecoCompleto&&this.empresa.enderecoCompleto.localizacao){let u=this.empresa.enderecoCompleto.localizacao.split(",");this.deliveryLocation={lat:Number(u[0]),lng:Number(u[1])}}this.deliveryLocation&&(r=new google.maps.LatLngBounds(new google.maps.LatLng(this.deliveryLocation.lat-.05,this.deliveryLocation.lng-.05),new google.maps.LatLng(this.deliveryLocation.lat+.05,this.deliveryLocation.lng+.05)));let l={types:["address"]};r&&(l.bounds=r,l.strictBounds=!1),this.autocomplete=new google.maps.places.Autocomplete(this.searchElementRef.nativeElement,l),this.geocoder=new google.maps.Geocoder,this.autocomplete.addListener("place_changed",sn(function*(){const u=t.autocomplete.getPlace();null==u.geometry||(yield t.fillAddress(u),t.app.tick())}))}).catch(l=>{console.error("Error loading Google Maps API:",l)})}ngAfterViewInit(){setTimeout(()=>{this.searchElementRef.nativeElement.focus()},300)}fillAddress(t){var r=this;return sn(function*(){r.enderecoEscolhido.enderecoCompleto=t.formatted_address,r.enderecoEscolhido.localizacao=String(`${t.geometry.location.lat()},${t.geometry.location.lng()}`),t.address_components.forEach(s=>{switch(s.types[0]){case"street_number":r.enderecoEscolhido.logradouro=`${s.long_name} ${r.enderecoEscolhido.logradouro}`;break;case"route":r.enderecoEscolhido.logradouro+=s.long_name;break;case"sublocality_level_1":case"locality":r.enderecoEscolhido.bairro=s.long_name;break;case"administrative_area_level_1":r.enderecoEscolhido.estado.nome=s.long_name;break;case"administrative_area_level_2":r.enderecoEscolhido.cidade.nome=s.long_name;break;case"postal_code":r.enderecoEscolhido.cep=s.long_name}}),!r.enderecoEscolhido.cep&&r.cepObrigatorio&&(yield r.geocodeLatLng(t.geometry.location)),console.log("Endereco Escolhido:",r.enderecoEscolhido),r.onSelecionou.emit(r.enderecoEscolhido)})()}geocodeLatLng(t){var r=this;return sn(function*(){return new Promise(s=>{r.geocoder.geocode({location:t},(l,u)=>{"OK"===u&&l[0]&&l[0].address_components.forEach(y=>{"postal_code"===y.types[0]&&(r.enderecoEscolhido.cep=y.long_name,console.log("CEP atualizado:",r.enderecoEscolhido.cep))}),s(null)})})})()}toggleMap(){this.showMap=!this.showMap,this.showMap&&!this.map&&this.initMap()}initMap(){this.map=new google.maps.Map(this.mapElementRef.nativeElement,{center:{lat:-15.7942,lng:-47.8822},zoom:12}),this.marker=new google.maps.Marker({map:this.map,draggable:!0}),this.map.addListener("click",r=>{this.placeMarker(r.latLng)}),this.marker.addListener("dragend",r=>{this.enderecoEscolhido.localizacao=r.latLng,console.log("Localiza\xe7\xe3o Arrastada:",this.enderecoEscolhido.localizacao),this.app.tick()})}placeMarker(t){this.marker.setPosition(t),this.enderecoEscolhido.localizacao=t,console.log("Localiza\xe7\xe3o Clicada:",this.enderecoEscolhido.localizacao),this.app.tick()}}return i.\u0275fac=function(t){return new(t||i)(n.Y36(SXe),n.Y36(n.z2F))},i.\u0275cmp=n.Xpm({type:i,selectors:[["app-address-autocomplete-places"]],viewQuery:function(t,r){if(1&t&&(n.Gf(wXe,7),n.Gf(MXe,5)),2&t){let s;n.iGM(s=n.CRH())&&(r.searchElementRef=s.first),n.iGM(s=n.CRH())&&(r.mapElementRef=s.first)}},inputs:{empresa:"empresa",cepObrigatorio:"cepObrigatorio"},outputs:{onSelecionou:"onSelecionou"},decls:8,vars:3,consts:[[1,"input-group"],["kendoTextBox","","placeholder","Informe endere\xe7o ou CEP","required","",1,"form-control",3,"readonly"],["search",""],[1,"input-group-prepend"],["tabindex","-1","type","button",1,"btn","btn-secondary",2,"border-top-right-radius","3px","border-bottom-right-radius","0px","width","55px"],["class","fa fa-search",4,"ngIf"],["class","k-i-loading ml-1 mr-1","style","font-size: 20px;",4,"ngIf"],[1,"fa","fa-search"],[1,"k-i-loading","ml-1","mr-1",2,"font-size","20px"]],template:function(t,r){1&t&&(n.TgZ(0,"div")(1,"div",0),n._UZ(2,"input",1,2),n.TgZ(4,"span",3)(5,"button",4),n.YNc(6,DXe,1,0,"i",5),n.YNc(7,kXe,1,0,"div",6),n.qZA()()()()),2&t&&(n.xp6(2),n.Q6J("readonly",!1),n.xp6(4),n.Q6J("ngIf",!r.buscandoAutocomplete),n.xp6(1),n.Q6J("ngIf",r.buscandoAutocomplete))},dependencies:[Ge,Er]}),i})();!function Xu(i,o,t){(0,n.dwT)(i,o,t)}(Tge,"pt-BR");let PXe=(()=>{class i{}return i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=n.oAB({type:i,bootstrap:[e3]}),i.\u0275inj=n.cJS({providers:[{provide:n.soG,useValue:"pt-BR"},gi,QM],imports:[_i.o0,Lh,TXe,SWe,h2,g2,Lt,g9,Sx,B9,Pbe,WG,vT,f7,B9,B9.forRoot(null),QD,WJe,Nye,eq,VJ,zJ,MF,YF,S6,DEe,JTe,bCe,vJe,O5,jj,ICe,KX,HK]}),i})();n.B6R(nT,function(){return[gt,Bt,Ge,Ia,wi,vk,ti,ma,Lo,L9,ni,Zo,ja,nn,Er,io,Za,kEe,IEe,aee,IXe]},function(){return[Gd]});const fS=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function NP(i){return i&&i.Math==Math?i:void 0}const Bo="object"==typeof globalThis&&NP(globalThis)||"object"==typeof window&&NP(window)||"object"==typeof self&&NP(self)||"object"==typeof global&&NP(global)||function(){return this}()||{};function vH(){return Bo}function Qee(i,o,t){const r=t||Bo,s=r.__SENTRY__=r.__SENTRY__||{};return s[i]||(s[i]=o())}const yH=["debug","info","warn","error","log","assert","trace"],LP={};function RP(i){if(!("console"in Bo))return i();const o=Bo.console,t={},r=Object.keys(LP);r.forEach(s=>{const l=LP[s];t[s]=o[s],o[s]=l});try{return i()}finally{r.forEach(s=>{o[s]=t[s]})}}const ei=function LXe(){let i=!1;const o={enable:()=>{i=!0},disable:()=>{i=!1},isEnabled:()=>i};return yH.forEach(fS?t=>{o[t]=(...r)=>{i&&RP(()=>{Bo.console[t](`Sentry Logger [${t}]:`,...r)})}}:t=>{o[t]=()=>{}}),o}(),Wee=Object.prototype.toString;function Kee(i){switch(Wee.call(i)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return U0(i,Error)}}function nC(i,o){return Wee.call(i)===`[object ${o}]`}function CH(i){return nC(i,"ErrorEvent")}function Xee(i){return nC(i,"DOMError")}function Fg(i){return nC(i,"String")}function AH(i){return"object"==typeof i&&null!==i&&"__sentry_template_string__"in i&&"__sentry_template_values__"in i}function xH(i){return null===i||AH(i)||"object"!=typeof i&&"function"!=typeof i}function iC(i){return nC(i,"Object")}function FP(i){return typeof Event<"u"&&U0(i,Event)}function BP(i){return Boolean(i&&i.then&&"function"==typeof i.then)}function U0(i,o){try{return i instanceof o}catch{return!1}}function ete(i){return!("object"!=typeof i||null===i||!i.__isVue&&!i._isVue)}const oC=vH();function tte(i,o={}){if(!i)return"<unknown>";try{let t=i;const r=5,s=[];let l=0,u=0;const p=" > ",y=p.length;let A;const w=Array.isArray(o)?o:o.keyAttrs,I=!Array.isArray(o)&&o.maxStringLength||80;for(;t&&l++<r&&(A=YXe(t,w),!("html"===A||l>1&&u+s.length*y+A.length>=I));)s.push(A),u+=A.length,t=t.parentNode;return s.reverse().join(p)}catch{return"<unknown>"}}function YXe(i,o){const t=i,r=[];let s,l,u,p,y;if(!t||!t.tagName)return"";if(oC.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;r.push(t.tagName.toLowerCase());const A=o&&o.length?o.filter(I=>t.getAttribute(I)).map(I=>[I,t.getAttribute(I)]):null;if(A&&A.length)A.forEach(I=>{r.push(`[${I[0]}="${I[1]}"]`)});else if(t.id&&r.push(`#${t.id}`),s=t.className,s&&Fg(s))for(l=s.split(/\s+/),y=0;y<l.length;y++)r.push(`.${l[y]}`);const w=["aria-label","type","name","title","alt"];for(y=0;y<w.length;y++)u=w[y],p=t.getAttribute(u),p&&r.push(`[${u}="${p}"]`);return r.join("")}function rC(i,o=0){return"string"!=typeof i||0===o||i.length<=o?i:`${i.slice(0,o)}...`}function nte(i,o){if(!Array.isArray(i))return"";const t=[];for(let r=0;r<i.length;r++){const s=i[r];try{ete(s)?t.push("[VueViewModel]"):t.push(String(s))}catch{t.push("[value cannot be serialized]")}}return t.join(o)}function HP(i,o=[],t=!1){return o.some(r=>function VXe(i,o,t=!1){return!!Fg(i)&&(function BXe(i){return nC(i,"RegExp")}(o)?o.test(i):!!Fg(o)&&(t?i===o:i.includes(o)))}(i,r,t))}function js(i,o,t){if(!(o in i))return;const r=i[o],s=t(r);"function"==typeof s&&ite(s,r),i[o]=s}function mS(i,o,t){try{Object.defineProperty(i,o,{value:t,writable:!0,configurable:!0})}catch{fS&&ei.log(`Failed to add non-enumerable property "${o}" to object`,i)}}function ite(i,o){try{i.prototype=o.prototype=o.prototype||{},mS(i,"__sentry_original__",o)}catch{}}function TH(i){return i.__sentry_original__}function ote(i){if(Kee(i))return{message:i.message,name:i.name,stack:i.stack,...ate(i)};if(FP(i)){const o={type:i.type,target:rte(i.target),currentTarget:rte(i.currentTarget),...ate(i)};return typeof CustomEvent<"u"&&U0(i,CustomEvent)&&(o.detail=i.detail),o}return i}function rte(i){try{return function FXe(i){return typeof Element<"u"&&U0(i,Element)}(i)?tte(i):Object.prototype.toString.call(i)}catch{return"<unknown>"}}function ate(i){if("object"==typeof i&&null!==i){const o={};for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=i[t]);return o}return{}}function Bg(i){return SH(i,new Map)}function SH(i,o){if(function qXe(i){if(!iC(i))return!1;try{const o=Object.getPrototypeOf(i).constructor.name;return!o||"Object"===o}catch{return!0}}(i)){const t=o.get(i);if(void 0!==t)return t;const r={};o.set(i,r);for(const s of Object.keys(i))typeof i[s]<"u"&&(r[s]=SH(i[s],o));return r}if(Array.isArray(i)){const t=o.get(i);if(void 0!==t)return t;const r=[];return o.set(i,r),i.forEach(s=>{r.push(SH(s,o))}),r}return i}function $d(){const o=Bo.crypto||Bo.msCrypto;let t=()=>16*Math.random();try{if(o&&o.randomUUID)return o.randomUUID().replace(/-/g,"");o&&o.getRandomValues&&(t=()=>{const r=new Uint8Array(1);return o.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(15&t())>>r/4).toString(16))}function ste(i){return i.exception&&i.exception.values?i.exception.values[0]:void 0}function Nm(i){const{message:o,event_id:t}=i;if(o)return o;const r=ste(i);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||t||"<unknown>":t||"<unknown>"}function wH(i,o,t){const r=i.exception=i.exception||{},s=r.values=r.values||[],l=s[0]=s[0]||{};l.value||(l.value=o||""),l.type||(l.type=t||"Error")}function _S(i,o){const t=ste(i);if(!t)return;const s=t.mechanism;if(t.mechanism={type:"generic",handled:!0,...s,...o},o&&"data"in o){const l={...s&&s.data,...o.data};t.mechanism.data=l}}function lte(i){if(i&&i.__sentry_captured__)return!0;try{mS(i,"__sentry_captured__",!0)}catch{}return!1}function cte(i){return Array.isArray(i)?i:[i]}const xr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Hg;function aC(i){return new jc(o=>{o(i)})}function MH(i){return new jc((o,t)=>{t(i)})}!function(i){i[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED"}(Hg||(Hg={}));class jc{constructor(o){jc.prototype.__init.call(this),jc.prototype.__init2.call(this),jc.prototype.__init3.call(this),jc.prototype.__init4.call(this),this._state=Hg.PENDING,this._handlers=[];try{o(this._resolve,this._reject)}catch(t){this._reject(t)}}then(o,t){return new jc((r,s)=>{this._handlers.push([!1,l=>{if(o)try{r(o(l))}catch(u){s(u)}else r(l)},l=>{if(t)try{r(t(l))}catch(u){s(u)}else s(l)}]),this._executeHandlers()})}catch(o){return this.then(t=>t,o)}finally(o){return new jc((t,r)=>{let s,l;return this.then(u=>{l=!1,s=u,o&&o()},u=>{l=!0,s=u,o&&o()}).then(()=>{l?r(s):t(s)})})}__init(){this._resolve=o=>{this._setResult(Hg.RESOLVED,o)}}__init2(){this._reject=o=>{this._setResult(Hg.REJECTED,o)}}__init3(){this._setResult=(o,t)=>{if(this._state===Hg.PENDING){if(BP(t))return void t.then(this._resolve,this._reject);this._state=o,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Hg.PENDING)return;const o=this._handlers.slice();this._handlers=[],o.forEach(t=>{t[0]||(this._state===Hg.RESOLVED&&t[1](this._value),this._state===Hg.REJECTED&&t[2](this._value),t[0]=!0)})}}}function DH(){return Qee("globalEventProcessors",()=>[])}function QXe(i){DH().push(i)}function $P(i,o,t,r=0){return new jc((s,l)=>{const u=i[r];if(null===o||"function"!=typeof u)s(o);else{const p=u({...o},t);xr&&u.id&&null===p&&ei.log(`Event processor "${u.id}" dropped event`),BP(p)?p.then(y=>$P(i,y,t,r+1).then(s)).then(null,l):$P(i,p,t,r+1).then(s).then(null,l)}})}function bS(){return Date.now()/1e3}const ute=function WXe(){const{performance:i}=Bo;if(!i||!i.now)return bS;const o=Date.now()-i.now(),t=i.timeOrigin??o;return()=>(t+i.now())/1e3}();let UP;(()=>{const{performance:i}=Bo;if(!i||!i.now)return void(UP="none");const o=36e5,t=i.now(),r=Date.now(),s=i.timeOrigin?Math.abs(i.timeOrigin+t-r):o,l=s<o,u=i.timing&&i.timing.navigationStart,y="number"==typeof u?Math.abs(u+t-r):o;UP=l||y<o?s<=y?"timeOrigin":"navigationStart":"dateNow"})();const YP="production";function pte(i){const o=ute(),t={sid:$d(),init:!0,timestamp:o,started:o,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function KXe(i){return Bg({sid:`${i.sid}`,init:i.init,started:new Date(1e3*i.started).toISOString(),timestamp:new Date(1e3*i.timestamp).toISOString(),status:i.status,errors:i.errors,did:"number"==typeof i.did||"string"==typeof i.did?`${i.did}`:void 0,duration:i.duration,abnormal_mechanism:i.abnormal_mechanism,attrs:{release:i.release,environment:i.environment,ip_address:i.ipAddress,user_agent:i.userAgent}})}(t)};return i&&Y0(t,i),t}function Y0(i,o={}){if(o.user&&(!i.ipAddress&&o.user.ip_address&&(i.ipAddress=o.user.ip_address),!i.did&&!o.did&&(i.did=o.user.id||o.user.email||o.user.username)),i.timestamp=o.timestamp||ute(),o.abnormal_mechanism&&(i.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(i.ignoreDuration=o.ignoreDuration),o.sid&&(i.sid=32===o.sid.length?o.sid:$d()),void 0!==o.init&&(i.init=o.init),!i.did&&o.did&&(i.did=`${o.did}`),"number"==typeof o.started&&(i.started=o.started),i.ignoreDuration)i.duration=void 0;else if("number"==typeof o.duration)i.duration=o.duration;else{const t=i.timestamp-i.started;i.duration=t>=0?t:0}o.release&&(i.release=o.release),o.environment&&(i.environment=o.environment),!i.ipAddress&&o.ipAddress&&(i.ipAddress=o.ipAddress),!i.userAgent&&o.userAgent&&(i.userAgent=o.userAgent),"number"==typeof o.errors&&(i.errors=o.errors),o.status&&(i.status=o.status)}function hte(i,o){let t={};o?t={status:o}:"ok"===i.status&&(t={status:"exited"}),Y0(i,t)}const fte=/\(error: (.*)\)/,mte=/captureMessage|captureException/;function _te(...i){const o=i.sort((t,r)=>t[0]-r[0]).map(t=>t[1]);return(t,r=0)=>{const s=[],l=t.split("\n");for(let u=r;u<l.length;u++){const p=l[u];if(p.length>1024)continue;const y=fte.test(p)?p.replace(fte,"$1"):p;if(!y.match(/\S*Error: /)){for(const A of o){const w=A(y);if(w){s.push(w);break}}if(s.length>=50)break}}return function tet(i){if(!i.length)return[];const o=Array.from(i);return/sentryWrapped/.test(o[o.length-1].function||"")&&o.pop(),o.reverse(),mte.test(o[o.length-1].function||"")&&(o.pop(),mte.test(o[o.length-1].function||"")&&o.pop()),o.slice(0,50).map(t=>({...t,filename:t.filename||o[o.length-1].filename,function:t.function||"?"}))}(s)}}function eet(i){return Array.isArray(i)?_te(...i):i}const kH="<anonymous>";function Lm(i){try{return i&&"function"==typeof i&&i.name||kH}catch{return kH}}function Rm(i,o=100,t=1/0){try{return IH("",i,o,t)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function bte(i,o=3,t=102400){const r=Rm(i,o);return function ret(i){return function oet(i){return~-encodeURI(i).split(/%..|./).length}(JSON.stringify(i))}(r)>t?bte(i,o-1,t):r}function IH(i,o,t=1/0,r=1/0,s=function XXe(){const i="function"==typeof WeakSet,o=i?new WeakSet:[];return[function t(s){if(i)return!!o.has(s)||(o.add(s),!1);for(let l=0;l<o.length;l++)if(o[l]===s)return!0;return o.push(s),!1},function r(s){if(i)o.delete(s);else for(let l=0;l<o.length;l++)if(o[l]===s){o.splice(l,1);break}}]}()){const[l,u]=s;if(null==o||["number","boolean","string"].includes(typeof o)&&!function $Xe(i){return"number"==typeof i&&i!=i}(o))return o;const p=function net(i,o){try{if("domain"===i&&o&&"object"==typeof o&&o._events)return"[Domain]";if("domainEmitter"===i)return"[DomainEmitter]";if(typeof global<"u"&&o===global)return"[Global]";if(typeof window<"u"&&o===window)return"[Window]";if(typeof document<"u"&&o===document)return"[Document]";if(ete(o))return"[VueViewModel]";if(function HXe(i){return iC(i)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i}(o))return"[SyntheticEvent]";if("number"==typeof o&&o!=o)return"[NaN]";if("function"==typeof o)return`[Function: ${Lm(o)}]`;if("symbol"==typeof o)return`[${String(o)}]`;if("bigint"==typeof o)return`[BigInt: ${String(o)}]`;const t=function iet(i){const o=Object.getPrototypeOf(i);return o?o.constructor.name:"null prototype"}(o);return/^HTML(\w*)Element$/.test(t)?`[HTMLElement: ${t}]`:`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}(i,o);if(!p.startsWith("[object "))return p;if(o.__sentry_skip_normalization__)return o;const y="number"==typeof o.__sentry_override_normalization_depth__?o.__sentry_override_normalization_depth__:t;if(0===y)return p.replace("object ","");if(l(o))return"[Circular ~]";const A=o;if(A&&"function"==typeof A.toJSON)try{return IH("",A.toJSON(),y-1,r,s)}catch{}const w=Array.isArray(o)?[]:{};let I=0;const P=ote(o);for(const F in P)if(Object.prototype.hasOwnProperty.call(P,F)){if(I>=r){w[F]="[MaxProperties ~]";break}w[F]=IH(F,P[F],y-1,r,s),I++}return u(o),w}function set(i){const{spanId:o,traceId:t}=i.spanContext(),{data:r,op:s,parent_span_id:l,status:u,tags:p,origin:y}=vS(i);return Bg({data:r,op:s,parent_span_id:l,span_id:o,status:u,tags:p,trace_id:t,origin:y})}function vS(i){return function cet(i){return"function"==typeof i.getSpanJSON}(i)?i.getSpanJSON():"function"==typeof i.toJSON?i.toJSON():{}}const Cte=new WeakMap;const vet=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Cet(i,o){return rh().captureException(i,function _et(i){if(i)return function bet(i){return i instanceof $g||"function"==typeof i}(i)||function yet(i){return Object.keys(i).some(o=>vet.includes(o))}(i)?{captureContext:i}:i}(o))}function Ate(i,o){return rh().captureEvent(i,o)}function j0(i,o){rh().addBreadcrumb(i,o)}function xte(...i){const o=rh();if(2===i.length){const[t,r]=i;return o.withScope(t?()=>(o.getStackTop().scope=t,r(t)):r)}return o.withScope(i[0])}function Is(){return rh().getClient()}function sC(){return rh().getScope()}function Ste(i){const o=Is(),t=ZP(),r=sC(),{release:s,environment:l=YP}=o&&o.getOptions()||{},{userAgent:u}=Bo.navigator||{},p=pte({release:s,environment:l,user:r.getUser()||t.getUser(),...u&&{userAgent:u},...i}),y=t.getSession();return y&&"ok"===y.status&&Y0(y,{status:"exited"}),wte(),t.setSession(p),r.setSession(p),p}function wte(){const i=ZP(),o=sC(),t=o.getSession()||i.getSession();t&&hte(t),Mte(),i.setSession(),o.setSession()}function Mte(){const i=ZP(),o=sC(),t=Is(),r=o.getSession()||i.getSession();r&&t&&t.captureSession&&t.captureSession(r)}function Dte(i=!1){i?wte():Mte()}function kte(i){return i.transaction}function Ite(i,o,t){const r=o.getOptions(),{publicKey:s}=o.getDsn()||{},{segment:l}=t&&t.getUser()||{},u=Bg({environment:r.environment||YP,release:r.release,user_segment:l,public_key:s,trace_id:i});return o.emit&&o.emit("createDsc",u),u}function xet(i){const o=Is();if(!o)return{};const t=Ite(vS(i).trace_id||"",o,sC()),r=kte(i);if(!r)return t;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:l,source:u}=r.metadata;null!=l&&(t.sample_rate=`${l}`);const p=vS(r);return u&&"url"!==u&&(t.transaction=p.description),t.sampled=String(function yte(i){const{traceFlags:o}=i.spanContext();return Boolean(1&o)}(r)),o.emit&&o.emit("createDsc",t),t}function Ete(i,o){const{fingerprint:t,span:r,breadcrumbs:s,sdkProcessingMetadata:l}=o;(function Tet(i,o){const{extra:t,tags:r,user:s,contexts:l,level:u,transactionName:p}=o,y=Bg(t);y&&Object.keys(y).length&&(i.extra={...y,...i.extra});const A=Bg(r);A&&Object.keys(A).length&&(i.tags={...A,...i.tags});const w=Bg(s);w&&Object.keys(w).length&&(i.user={...w,...i.user});const I=Bg(l);I&&Object.keys(I).length&&(i.contexts={...I,...i.contexts}),u&&(i.level=u),p&&(i.transaction=p)})(i,o),r&&function Det(i,o){i.contexts={trace:set(o),...i.contexts};const t=kte(o);if(t){i.sdkProcessingMetadata={dynamicSamplingContext:xet(o),...i.sdkProcessingMetadata};const r=vS(t).description;r&&(i.tags={transaction:r,...i.tags})}}(i,r),function ket(i,o){i.fingerprint=i.fingerprint?cte(i.fingerprint):[],o&&(i.fingerprint=i.fingerprint.concat(o)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint}(i,t),function wet(i,o){const t=[...i.breadcrumbs||[],...o];i.breadcrumbs=t.length?t:void 0}(i,s),function Met(i,o){i.sdkProcessingMetadata={...i.sdkProcessingMetadata,...o}}(i,l)}function Pte(i,o){const{extra:t,tags:r,user:s,contexts:l,level:u,sdkProcessingMetadata:p,breadcrumbs:y,fingerprint:A,eventProcessors:w,attachments:I,propagationContext:P,transactionName:F,span:V}=o;yS(i,"extra",t),yS(i,"tags",r),yS(i,"user",s),yS(i,"contexts",l),yS(i,"sdkProcessingMetadata",p),u&&(i.level=u),F&&(i.transactionName=F),V&&(i.span=V),y.length&&(i.breadcrumbs=[...i.breadcrumbs,...y]),A.length&&(i.fingerprint=[...i.fingerprint,...A]),w.length&&(i.eventProcessors=[...i.eventProcessors,...w]),I.length&&(i.attachments=[...i.attachments,...I]),i.propagationContext={...i.propagationContext,...P}}function yS(i,o,t){if(t&&Object.keys(t).length){i[o]={...i[o]};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[o][r]=t[r])}}let jP;class $g{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ote()}static clone(o){return o?o.clone():new $g}clone(){const o=new $g;return o._breadcrumbs=[...this._breadcrumbs],o._tags={...this._tags},o._extra={...this._extra},o._contexts={...this._contexts},o._user=this._user,o._level=this._level,o._span=this._span,o._session=this._session,o._transactionName=this._transactionName,o._fingerprint=this._fingerprint,o._eventProcessors=[...this._eventProcessors],o._requestSession=this._requestSession,o._attachments=[...this._attachments],o._sdkProcessingMetadata={...this._sdkProcessingMetadata},o._propagationContext={...this._propagationContext},o._client=this._client,o}setClient(o){this._client=o}getClient(){return this._client}addScopeListener(o){this._scopeListeners.push(o)}addEventProcessor(o){return this._eventProcessors.push(o),this}setUser(o){return this._user=o||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&Y0(this._session,{user:o}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(o){return this._requestSession=o,this}setTags(o){return this._tags={...this._tags,...o},this._notifyScopeListeners(),this}setTag(o,t){return this._tags={...this._tags,[o]:t},this._notifyScopeListeners(),this}setExtras(o){return this._extra={...this._extra,...o},this._notifyScopeListeners(),this}setExtra(o,t){return this._extra={...this._extra,[o]:t},this._notifyScopeListeners(),this}setFingerprint(o){return this._fingerprint=o,this._notifyScopeListeners(),this}setLevel(o){return this._level=o,this._notifyScopeListeners(),this}setTransactionName(o){return this._transactionName=o,this._notifyScopeListeners(),this}setContext(o,t){return null===t?delete this._contexts[o]:this._contexts[o]=t,this._notifyScopeListeners(),this}setSpan(o){return this._span=o,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const o=this._span;return o&&o.transaction}setSession(o){return o?this._session=o:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(o){if(!o)return this;const t="function"==typeof o?o(this):o;if(t instanceof $g){const r=t.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(iC(t)){const r=o;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ote(),this}addBreadcrumb(o,t){const r="number"==typeof t?t:100;if(r<=0)return this;const s={timestamp:bS(),...o},l=this._breadcrumbs;return l.push(s),this._breadcrumbs=l.length>r?l.slice(-r):l,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(o){return this._attachments.push(o),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:o,_attachments:t,_contexts:r,_tags:s,_extra:l,_user:u,_level:p,_fingerprint:y,_eventProcessors:A,_propagationContext:w,_sdkProcessingMetadata:I,_transactionName:P,_span:F}=this;return{breadcrumbs:o,attachments:t,contexts:r,tags:s,extra:l,user:u,level:p,fingerprint:y||[],eventProcessors:A,propagationContext:w,sdkProcessingMetadata:I,transactionName:P,span:F}}applyToEvent(o,t={},r=[]){return Ete(o,this.getScopeData()),$P([...r,...DH(),...this._eventProcessors],o,t)}setSDKProcessingMetadata(o){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...o},this}setPropagationContext(o){return this._propagationContext=o,this}getPropagationContext(){return this._propagationContext}captureException(o,t){const r=t&&t.event_id?t.event_id:$d();if(!this._client)return ei.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(o,{originalException:o,syntheticException:s,...t,event_id:r},this),r}captureMessage(o,t,r){const s=r&&r.event_id?r.event_id:$d();if(!this._client)return ei.warn("No client configured on scope - will not capture message!"),s;const l=new Error(o);return this._client.captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s},this),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:$d();return this._client?(this._client.captureEvent(o,{...t,event_id:r},this),r):(ei.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(o=>{o(this)}),this._notifyingListeners=!1)}}function Ote(){return{traceId:$d(),spanId:$d().substring(16)}}const OH="7.114.0",NH=parseFloat(OH),Pet=100;class LH{constructor(o,t,r,s=NH){let l,u;this._version=s,t?l=t:(l=new $g,l.setClient(o)),r?u=r:(u=new $g,u.setClient(o)),this._stack=[{scope:l}],o&&this.bindClient(o),this._isolationScope=u}isOlderThan(o){return this._version<o}bindClient(o){const t=this.getStackTop();t.client=o,t.scope.setClient(o),o&&o.setupIntegrations&&o.setupIntegrations()}pushScope(){const o=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:o}),o}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(o){const t=this.pushScope();let r;try{r=o(t)}catch(s){throw this.popScope(),s}return BP(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(o,t){const r=this._lastEventId=t&&t.event_id?t.event_id:$d(),s=new Error("Sentry syntheticException");return this.getScope().captureException(o,{originalException:o,syntheticException:s,...t,event_id:r}),r}captureMessage(o,t,r){const s=this._lastEventId=r&&r.event_id?r.event_id:$d(),l=new Error(o);return this.getScope().captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s}),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:$d();return o.type||(this._lastEventId=r),this.getScope().captureEvent(o,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(o,t){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:u=Pet}=s.getOptions&&s.getOptions()||{};if(u<=0)return;const y={timestamp:bS(),...o},A=l?RP(()=>l(y,t)):y;null!==A&&(s.emit&&s.emit("beforeAddBreadcrumb",A,t),r.addBreadcrumb(A,u))}setUser(o){this.getScope().setUser(o),this.getIsolationScope().setUser(o)}setTags(o){this.getScope().setTags(o),this.getIsolationScope().setTags(o)}setExtras(o){this.getScope().setExtras(o),this.getIsolationScope().setExtras(o)}setTag(o,t){this.getScope().setTag(o,t),this.getIsolationScope().setTag(o,t)}setExtra(o,t){this.getScope().setExtra(o,t),this.getIsolationScope().setExtra(o,t)}setContext(o,t){this.getScope().setContext(o,t),this.getIsolationScope().setContext(o,t)}configureScope(o){const{scope:t,client:r}=this.getStackTop();r&&o(t)}run(o){const t=Nte(this);try{o(this)}finally{Nte(t)}}getIntegration(o){const t=this.getClient();if(!t)return null;try{return t.getIntegration(o)}catch{return xr&&ei.warn(`Cannot retrieve integration ${o.id} from the current Hub`),null}}startTransaction(o,t){const r=this._callExtensionMethod("startTransaction",o,t);return xr&&!r&&(this.getClient()?ei.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):ei.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(o=!1){if(o)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,r=t.getSession();r&&hte(r),this._sendSessionUpdate(),t.setSession()}startSession(o){const{scope:t,client:r}=this.getStackTop(),{release:s,environment:l=YP}=r&&r.getOptions()||{},{userAgent:u}=Bo.navigator||{},p=pte({release:s,environment:l,user:t.getUser(),...u&&{userAgent:u},...o}),y=t.getSession&&t.getSession();return y&&"ok"===y.status&&Y0(y,{status:"exited"}),this.endSession(),t.setSession(p),p}shouldSendDefaultPii(){const o=this.getClient(),t=o&&o.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:o,client:t}=this.getStackTop(),r=o.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(o,...t){const s=lC().__SENTRY__;if(s&&s.extensions&&"function"==typeof s.extensions[o])return s.extensions[o].apply(this,t);xr&&ei.warn(`Extension method ${o} couldn't be found, doing nothing.`)}}function lC(){return Bo.__SENTRY__=Bo.__SENTRY__||{extensions:{},hub:void 0},Bo}function Nte(i){const o=lC(),t=VP(o);return RH(o,i),t}function rh(){const i=lC();if(i.__SENTRY__&&i.__SENTRY__.acs){const o=i.__SENTRY__.acs.getCurrentHub();if(o)return o}return function Lte(i=lC()){return(!function Rte(i){return!!(i&&i.__SENTRY__&&i.__SENTRY__.hub)}(i)||VP(i).isOlderThan(NH))&&RH(i,new LH),VP(i)}(i)}function ZP(){return rh().getIsolationScope()}function VP(i){return Qee("hub",()=>new LH,i)}function RH(i,o){return!!i&&((i.__SENTRY__=i.__SENTRY__||{}).hub=o,!0)}const Fte=[];function Net(i){const o=i.defaultIntegrations||[],t=i.integrations;let r;o.forEach(u=>{u.isDefaultInstance=!0}),r=Array.isArray(t)?[...o,...t]:"function"==typeof t?cte(t(o)):o;const s=function Oet(i){const o={};return i.forEach(t=>{const{name:r}=t,s=o[r];s&&!s.isDefaultInstance&&t.isDefaultInstance||(o[r]=t)}),Object.keys(o).map(t=>o[t])}(r),l=function Ret(i,o){for(let t=0;t<i.length;t++)if(!0===o(i[t]))return t;return-1}(s,u=>"Debug"===u.name);if(-1!==l){const[u]=s.splice(l,1);s.push(u)}return s}function Bte(i,o){for(const t of o)t&&t.afterAllSetup&&t.afterAllSetup(i)}function Hte(i,o,t){if(t[o.name])xr&&ei.log(`Integration skipped because it was already installed: ${o.name}`);else{if(t[o.name]=o,-1===Fte.indexOf(o.name)&&(o.setupOnce(QXe,rh),Fte.push(o.name)),o.setup&&"function"==typeof o.setup&&o.setup(i),i.on&&"function"==typeof o.preprocessEvent){const r=o.preprocessEvent.bind(o);i.on("preprocessEvent",(s,l)=>r(s,l,i))}if(i.addEventProcessor&&"function"==typeof o.processEvent){const r=o.processEvent.bind(o),s=Object.assign((l,u)=>r(l,u,i),{id:o.name});i.addEventProcessor(s)}xr&&ei.log(`Integration installed: ${o.name}`)}}function Fm(i,o){return Object.assign(function(...r){return o(...r)},{id:i})}const Fet=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],Bet=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],$te="InboundFilters",Ute=(i={})=>({name:$te,setupOnce(){},processEvent(o,t,r){const s=r.getOptions(),l=function Het(i={},o={}){return{allowUrls:[...i.allowUrls||[],...o.allowUrls||[]],denyUrls:[...i.denyUrls||[],...o.denyUrls||[]],ignoreErrors:[...i.ignoreErrors||[],...o.ignoreErrors||[],...i.disableErrorDefaults?[]:Fet],ignoreTransactions:[...i.ignoreTransactions||[],...o.ignoreTransactions||[],...i.disableTransactionDefaults?[]:Bet],ignoreInternal:void 0===i.ignoreInternal||i.ignoreInternal}}(i,s);return function $et(i,o){return o.ignoreInternal&&function zet(i){try{return"SentryError"===i.exception.values[0].type}catch{}return!1}(i)?(xr&&ei.warn(`Event dropped due to being internal Sentry Error.\nEvent: ${Nm(i)}`),!0):function Uet(i,o){return!(i.type||!o||!o.length)&&function Vet(i){const o=[];let t;i.message&&o.push(i.message);try{t=i.exception.values[i.exception.values.length-1]}catch{}return t&&t.value&&(o.push(t.value),t.type&&o.push(`${t.type}: ${t.value}`)),xr&&0===o.length&&ei.error(`Could not extract message for event ${Nm(i)}`),o}(i).some(t=>HP(t,o))}(i,o.ignoreErrors)?(xr&&ei.warn(`Event dropped due to being matched by \`ignoreErrors\` option.\nEvent: ${Nm(i)}`),!0):function Yet(i,o){if("transaction"!==i.type||!o||!o.length)return!1;const t=i.transaction;return!!t&&HP(t,o)}(i,o.ignoreTransactions)?(xr&&ei.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.\nEvent: ${Nm(i)}`),!0):function jet(i,o){if(!o||!o.length)return!1;const t=zP(i);return!!t&&HP(t,o)}(i,o.denyUrls)?(xr&&ei.warn(`Event dropped due to being matched by \`denyUrls\` option.\nEvent: ${Nm(i)}.\nUrl: ${zP(i)}`),!0):!function Zet(i,o){if(!o||!o.length)return!0;const t=zP(i);return!t||HP(t,o)}(i,o.allowUrls)&&(xr&&ei.warn(`Event dropped due to not being matched by \`allowUrls\` option.\nEvent: ${Nm(i)}.\nUrl: ${zP(i)}`),!0)}(o,l)?null:o}});function zP(i){try{let o;try{o=i.exception.values[0].stacktrace.frames}catch{}return o?function Get(i=[]){for(let o=i.length-1;o>=0;o--){const t=i[o];if(t&&"<anonymous>"!==t.filename&&"[native code]"!==t.filename)return t.filename||null}return null}(o):null}catch{return xr&&ei.error(`Cannot extract url for event ${Nm(i)}`),null}}let Yte;Fm($te,Ute);const jte="FunctionToString",Zte=new WeakMap,Vte=()=>({name:jte,setupOnce(){Yte=Function.prototype.toString;try{Function.prototype.toString=function(...i){const o=TH(this),t=Zte.has(Is())&&void 0!==o?o:this;return Yte.apply(t,i)}}catch{}},setup(i){Zte.set(i,!0)}});Fm(jte,Vte);const GP=vH();function FH(){if(!("fetch"in GP))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function BH(i){return i&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(i.toString())}const qP=vH(),cC={},zte={};function Z0(i,o){cC[i]=cC[i]||[],cC[i].push(o)}function V0(i,o){zte[i]||(o(),zte[i]=!0)}function Ju(i,o){const t=i&&cC[i];if(t)for(const r of t)try{r(o)}catch(s){fS&&ei.error(`Error while triggering instrumentation handler.\nType: ${i}\nName: ${Lm(r)}\nError:`,s)}}const CS=Bo;let JP;function Gte(i){const o="history";Z0(o,i),V0(o,Xet)}function Xet(){if(!function Ket(){const i=qP.chrome;return!(i&&i.app&&i.app.runtime||!("history"in qP)||!qP.history.pushState||!qP.history.replaceState)}())return;const i=CS.onpopstate;function o(t){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const l=JP,u=String(s);JP=u,Ju("history",{from:l,to:u})}return t.apply(this,r)}}CS.onpopstate=function(...t){const r=CS.location.href,s=JP;if(JP=r,Ju("history",{from:s,to:r}),i)try{return i.apply(this,t)}catch{}},js(CS.history,"pushState",o),js(CS.history,"replaceState",o)}const ett=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function AS(i,o=!1){const{host:t,path:r,pass:s,port:l,projectId:u,protocol:p,publicKey:y}=i;return`${p}://${y}${o&&s?`:${s}`:""}@${t}${l?`:${l}`:""}/${r&&`${r}/`}${u}`}function qte(i){return{protocol:i.protocol,publicKey:i.publicKey||"",pass:i.pass||"",host:i.host,port:i.port||"",path:i.path||"",projectId:i.projectId}}function dC(i,o=[]){return[i,o]}function rtt(i,o){const[t,r]=i;return[t,[...r,o]]}function HH(i,o){const t=i[1];for(const r of t)if(o(r,r[0].type))return!0;return!1}function $H(i,o){return(o||new TextEncoder).encode(i)}function att(i,o){const[t,r]=i;let s=JSON.stringify(t);function l(u){"string"==typeof s?s="string"==typeof u?s+u:[$H(s,o),u]:s.push("string"==typeof u?$H(u,o):u)}for(const u of r){const[p,y]=u;if(l(`\n${JSON.stringify(p)}\n`),"string"==typeof y||y instanceof Uint8Array)l(y);else{let A;try{A=JSON.stringify(y)}catch{A=JSON.stringify(Rm(y))}l(A)}}return"string"==typeof s?s:function stt(i){const o=i.reduce((s,l)=>s+l.length,0),t=new Uint8Array(o);let r=0;for(const s of i)t.set(s,r),r+=s.length;return t}(s)}function ltt(i,o){const t="string"==typeof i.data?$H(i.data,o):i.data;return[Bg({type:"attachment",length:t.length,filename:i.filename,content_type:i.contentType,attachment_type:i.attachmentType}),t]}const ctt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function Jte(i){return ctt[i]}function Qte(i){if(!i||!i.sdk)return;const{name:o,version:t}=i.sdk;return{name:o,version:t}}class ah extends Error{constructor(o,t="warn"){super(o),this.message=o,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=t}}function gtt(i,o={}){const r="string"!=typeof o&&o._metadata?o._metadata.sdk:void 0;return("string"==typeof o?o:o.tunnel)||`${function ptt(i){return`${function Wte(i){return`${i.protocol?`${i.protocol}:`:""}//${i.host}${i.port?`:${i.port}`:""}${i.path?`/${i.path}`:""}/api/`}(i)}${i.projectId}/envelope/`}(i)}?${function htt(i,o){return function zXe(i){return Object.keys(i).map(o=>`${encodeURIComponent(o)}=${encodeURIComponent(i[o])}`).join("&")}({sentry_key:i.publicKey,sentry_version:"7",...o&&{sentry_client:`${o.name}/${o.version}`}})}(i,r)}`}const Kte="Not capturing exception because it's already been captured.";function Xte(i){return void 0===i.type}function ene(i){return"transaction"===i.type}function tne(i,o,t=[o],r="npm"){const s=i._metadata||{};s.sdk||(s.sdk={name:`sentry.javascript.${o}`,packages:t.map(l=>({name:`${r}:@sentry/${l}`,version:OH})),version:OH}),i._metadata=s}const Ug=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function nne(i,o){const t=YH(i,o),r={type:o&&o.name,value:Ott(o)};return t.length&&(r.stacktrace={frames:t}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function UH(i,o){return{exception:{values:[nne(i,o)]}}}function YH(i,o){const t=o.stacktrace||o.stack||"",r=function Ptt(i){if(i){if("number"==typeof i.framesToPop)return i.framesToPop;if(Ett.test(i.message))return 1}return 0}(o);try{return i(t,r)}catch{}return[]}const Ett=/Minified React error #\d+;/i;function Ott(i){const o=i&&i.message;return o?o.error&&"string"==typeof o.error.message?o.error.message:o:"No error message"}function jH(i,o,t,r,s){let l;if(CH(o)&&o.error)return UH(i,o.error);if(Xee(o)||function RXe(i){return nC(i,"DOMException")}(o)){const u=o;if("stack"in o)l=UH(i,o);else{const p=u.name||(Xee(u)?"DOMError":"DOMException"),y=u.message?`${p}: ${u.message}`:p;l=ZH(i,y,t,r),wH(l,y)}return"code"in u&&(l.tags={...l.tags,"DOMException.code":`${u.code}`}),l}return Kee(o)?UH(i,o):iC(o)||FP(o)?(l=function Itt(i,o,t,r){const s=Is(),l=s&&s.getOptions().normalizeDepth,u={exception:{values:[{type:FP(o)?o.constructor.name:r?"UnhandledRejection":"Error",value:Rtt(o,{isUnhandledRejection:r})}]},extra:{__serialized__:bte(o,l)}};if(t){const p=YH(i,t);p.length&&(u.exception.values[0].stacktrace={frames:p})}return u}(i,o,t,s),_S(l,{synthetic:!0}),l):(l=ZH(i,o,t,r),wH(l,`${o}`,void 0),_S(l,{synthetic:!0}),l)}function ZH(i,o,t,r){const s={};if(r&&t){const l=YH(i,t);l.length&&(s.exception={values:[{value:o,stacktrace:{frames:l}}]})}if(AH(o)){const{__sentry_template_string__:l,__sentry_template_values__:u}=o;return s.logentry={message:l,params:u},s}return s.message=o,s}function Rtt(i,{isUnhandledRejection:o}){const t=function GXe(i,o=40){const t=Object.keys(ote(i));if(t.sort(),!t.length)return"[object has no keys]";if(t[0].length>=o)return rC(t[0],o);for(let r=t.length;r>0;r--){const s=t.slice(0,r).join(", ");if(!(s.length>o))return r===t.length?s:rC(s,o)}return""}(i),r=o?"promise rejection":"exception";return CH(i)?`Event \`ErrorEvent\` captured as ${r} with message \`${i.message}\``:FP(i)?`Event \`${function Ftt(i){try{const o=Object.getPrototypeOf(i);return o?o.constructor.name:void 0}catch{}}(i)}\` (type=${i.type}) captured as ${r}`:`Object captured as ${r} with keys: ${t}`}const hr=Bo;let VH=0;function ine(){return VH>0}function Btt(){VH++,setTimeout(()=>{VH--})}function uC(i,o={},t){if("function"!=typeof i)return i;try{const s=i.__sentry_wrapped__;if(s)return s;if(TH(i))return i}catch{return i}const r=function(){const s=Array.prototype.slice.call(arguments);try{t&&"function"==typeof t&&t.apply(this,arguments);const l=s.map(u=>uC(u,o));return i.apply(this,l)}catch(l){throw Btt(),xte(u=>{u.addEventProcessor(p=>(o.mechanism&&(wH(p,void 0,void 0),_S(p,o.mechanism)),p.extra={...p.extra,arguments:s},p)),Cet(l)}),l}};try{for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])}catch{}ite(r,i),mS(i,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>i.name})}catch{}return r}class Utt extends class Stt{constructor(o){if(this._options=o,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],o.dsn?this._dsn=function ott(i){const o="string"==typeof i?function ntt(i){const o=ett.exec(i);if(!o)return void RP(()=>{console.error(`Invalid Sentry Dsn: ${i}`)});const[t,r,s="",l,u="",p]=o.slice(1);let y="",A=p;const w=A.split("/");if(w.length>1&&(y=w.slice(0,-1).join("/"),A=w.pop()),A){const I=A.match(/^\d+/);I&&(A=I[0])}return qte({host:l,pass:s,path:y,projectId:A,port:u,protocol:t,publicKey:r})}(i):qte(i);if(o&&function itt(i){if(!fS)return!0;const{port:o,projectId:t,protocol:r}=i;return!(["protocol","publicKey","host","projectId"].find(u=>!i[u]&&(ei.error(`Invalid Sentry Dsn: ${u} missing`),!0))||(t.match(/^\d+$/)?function ttt(i){return"http"===i||"https"===i}(r)?o&&isNaN(parseInt(o,10))&&(ei.error(`Invalid Sentry Dsn: Invalid port ${o}`),1):(ei.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),1):(ei.error(`Invalid Sentry Dsn: Invalid projectId ${t}`),1)))}(o))return o}(o.dsn):xr&&ei.warn("No DSN provided, client will not send events."),this._dsn){const t=gtt(this._dsn,o);this._transport=o.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...o.transportOptions,url:t})}}captureException(o,t,r){if(lte(o))return void(xr&&ei.log(Kte));let s=t&&t.event_id;return this._process(this.eventFromException(o,t).then(l=>this._captureEvent(l,t,r)).then(l=>{s=l})),s}captureMessage(o,t,r,s){let l=r&&r.event_id;const u=AH(o)?o:String(o),p=xH(o)?this.eventFromMessage(u,t,r):this.eventFromException(o,r);return this._process(p.then(y=>this._captureEvent(y,r,s)).then(y=>{l=y})),l}captureEvent(o,t,r){if(t&&t.originalException&&lte(t.originalException))return void(xr&&ei.log(Kte));let s=t&&t.event_id;return this._process(this._captureEvent(o,t,(o.sdkProcessingMetadata||{}).capturedSpanScope||r).then(p=>{s=p})),s}captureSession(o){"string"!=typeof o.release?xr&&ei.warn("Discarded session because of missing or non-string release"):(this.sendSession(o),Y0(o,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(o){const t=this._transport;return t?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(o).then(r=>t.flush(o).then(s=>r&&s))):aC(!0)}close(o){return this.flush(o).then(t=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),t))}getEventProcessors(){return this._eventProcessors}addEventProcessor(o){this._eventProcessors.push(o)}setupIntegrations(o){(o&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(o){return this.getIntegrationByName(o)}getIntegrationByName(o){return this._integrations[o]}getIntegration(o){try{return this._integrations[o.id]||null}catch{return xr&&ei.warn(`Cannot retrieve integration ${o.id} from the current Client`),null}}addIntegration(o){const t=this._integrations[o.name];Hte(this,o,this._integrations),t||Bte(this,[o])}sendEvent(o,t={}){this.emit("beforeSendEvent",o,t);let r=function _tt(i,o,t,r){const s=Qte(t),l=i.type&&"replay_event"!==i.type?i.type:"event";!function ftt(i,o){o&&(i.sdk=i.sdk||{},i.sdk.name=i.sdk.name||o.name,i.sdk.version=i.sdk.version||o.version,i.sdk.integrations=[...i.sdk.integrations||[],...o.integrations||[]],i.sdk.packages=[...i.sdk.packages||[],...o.packages||[]])}(i,t&&t.sdk);const u=function dtt(i,o,t,r){const s=i.sdkProcessingMetadata&&i.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:i.event_id,sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!t&&r&&{dsn:AS(r)},...s&&{trace:Bg({...s})}}}(i,s,r,o);return delete i.sdkProcessingMetadata,dC(u,[[{type:l},i]])}(o,this._dsn,this._options._metadata,this._options.tunnel);for(const l of t.attachments||[])r=rtt(r,ltt(l,this._options.transportOptions&&this._options.transportOptions.textEncoder));const s=this._sendEnvelope(r);s&&s.then(l=>this.emit("afterSendEvent",o,l),null)}sendSession(o){const t=function mtt(i,o,t,r){const s=Qte(t);return dC({sent_at:(new Date).toISOString(),...s&&{sdk:s},...!!r&&o&&{dsn:AS(o)}},["aggregates"in i?[{type:"sessions"},i]:[{type:"session"},i.toJSON()]])}(o,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}recordDroppedEvent(o,t,r){if(this._options.sendClientReports){const s=`${o}:${t}`;xr&&ei.log(`Adding outcome: "${s}"`),this._outcomes[s]=this._outcomes[s]+1||1}}captureAggregateMetrics(o){xr&&ei.log(`Flushing aggregated metrics, number of metrics: ${o.length}`);const t=function xtt(i,o,t,r){const s={sent_at:(new Date).toISOString()};t&&t.sdk&&(s.sdk={name:t.sdk.name,version:t.sdk.version}),r&&o&&(s.dsn=AS(o));const l=function Ttt(i){const o=function btt(i){let o="";for(const t of i){const r=Object.entries(t.tags),s=r.length>0?`|#${r.map(([l,u])=>`${l}:${u}`).join(",")}`:"";o+=`${t.name}@${t.unit}:${t.metric}|${t.metricType}${s}|T${t.timestamp}\n`}return o}(i);return[{type:"statsd",length:o.length},o]}(i);return dC(s,[l])}(o,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(t)}on(o,t){this._hooks[o]||(this._hooks[o]=[]),this._hooks[o].push(t)}emit(o,...t){this._hooks[o]&&this._hooks[o].forEach(r=>r(...t))}_setupIntegrations(){const{integrations:o}=this._options;this._integrations=function Let(i,o){const t={};return o.forEach(r=>{r&&Hte(i,r,t)}),t}(this,o),Bte(this,o),this._integrationsInitialized=!0}_updateSessionFromEvent(o,t){let r=!1,s=!1;const l=t.exception&&t.exception.values;if(l){s=!0;for(const y of l){const A=y.mechanism;if(A&&!1===A.handled){r=!0;break}}}const u="ok"===o.status;(u&&0===o.errors||u&&r)&&(Y0(o,{...r&&{status:"crashed"},errors:o.errors||Number(s||r)}),this.captureSession(o))}_isClientDoneProcessing(o){return new jc(t=>{let r=0;const l=setInterval(()=>{0==this._numProcessing?(clearInterval(l),t(!0)):(r+=1,o&&r>=o&&(clearInterval(l),t(!1)))},1)})}_isEnabled(){return!1!==this.getOptions().enabled&&void 0!==this._transport}_prepareEvent(o,t,r,s=ZP()){const l=this.getOptions(),u=Object.keys(this._integrations);return!t.integrations&&u.length>0&&(t.integrations=u),this.emit("preprocessEvent",o,t),function det(i,o,t,r,s,l){const{normalizeDepth:u=3,normalizeMaxBreadth:p=1e3}=i,y={...o,event_id:o.event_id||t.event_id||$d(),timestamp:o.timestamp||bS()},A=t.integrations||i.integrations.map(Ae=>Ae.name);(function uet(i,o){const{environment:t,release:r,dist:s,maxValueLength:l=250}=o;"environment"in i||(i.environment="environment"in o?t:YP),void 0===i.release&&void 0!==r&&(i.release=r),void 0===i.dist&&void 0!==s&&(i.dist=s),i.message&&(i.message=rC(i.message,l));const u=i.exception&&i.exception.values&&i.exception.values[0];u&&u.value&&(u.value=rC(u.value,l));const p=i.request;p&&p.url&&(p.url=rC(p.url,l))})(y,i),function get(i,o){o.length>0&&(i.sdk=i.sdk||{},i.sdk.integrations=[...i.sdk.integrations||[],...o])}(y,A),void 0===o.type&&function pet(i,o){const t=Bo._sentryDebugIds;if(!t)return;let r;const s=Cte.get(o);s?r=s:(r=new Map,Cte.set(o,r));const l=Object.keys(t).reduce((u,p)=>{let y;const A=r.get(p);A?y=A:(y=o(p),r.set(p,y));for(let w=y.length-1;w>=0;w--){const I=y[w];if(I.filename){u[I.filename]=t[p];break}}return u},{});try{i.exception.values.forEach(u=>{u.stacktrace.frames.forEach(p=>{p.filename&&(p.debug_id=l[p.filename])})})}catch{}}(y,i.stackParser);const w=function met(i,o){if(!o)return i;const t=i?i.clone():new $g;return t.update(o),t}(r,t.captureContext);t.mechanism&&_S(y,t.mechanism);const I=s&&s.getEventProcessors?s.getEventProcessors():[],P=function Eet(){return jP||(jP=new $g),jP}().getScopeData();l&&Pte(P,l.getScopeData()),w&&Pte(P,w.getScopeData());const F=[...t.attachments||[],...P.attachments];return F.length&&(t.attachments=F),Ete(y,P),$P([...I,...DH(),...P.eventProcessors],y,t).then(Ae=>(Ae&&function het(i){const o={};try{i.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?o[s.abs_path]=s.debug_id:s.filename&&(o[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(0===Object.keys(o).length)return;i.debug_meta=i.debug_meta||{},i.debug_meta.images=i.debug_meta.images||[];const t=i.debug_meta.images;Object.keys(o).forEach(r=>{t.push({type:"sourcemap",code_file:r,debug_id:o[r]})})}(Ae),"number"==typeof u&&u>0?function fet(i,o,t){if(!i)return null;const r={...i,...i.breadcrumbs&&{breadcrumbs:i.breadcrumbs.map(s=>({...s,...s.data&&{data:Rm(s.data,o,t)}}))},...i.user&&{user:Rm(i.user,o,t)},...i.contexts&&{contexts:Rm(i.contexts,o,t)},...i.extra&&{extra:Rm(i.extra,o,t)}};return i.contexts&&i.contexts.trace&&r.contexts&&(r.contexts.trace=i.contexts.trace,i.contexts.trace.data&&(r.contexts.trace.data=Rm(i.contexts.trace.data,o,t))),i.spans&&(r.spans=i.spans.map(s=>{const l=vS(s).data;return l&&(s.data=Rm(l,o,t)),s})),r}(Ae,u,p):Ae))}(l,o,t,r,this,s).then(p=>{if(null===p)return p;const y={...s.getPropagationContext(),...r?r.getPropagationContext():void 0};if((!p.contexts||!p.contexts.trace)&&y){const{traceId:w,spanId:I,parentSpanId:P,dsc:F}=y;p.contexts={trace:{trace_id:w,span_id:I,parent_span_id:P},...p.contexts};const V=F||Ite(w,this,r);p.sdkProcessingMetadata={dynamicSamplingContext:V,...p.sdkProcessingMetadata}}return p})}_captureEvent(o,t={},r){return this._processEvent(o,t,r).then(s=>s.event_id,s=>{if(xr){const l=s;"log"===l.logLevel?ei.log(l.message):ei.warn(l)}})}_processEvent(o,t,r){const s=this.getOptions(),{sampleRate:l}=s,u=ene(o),p=Xte(o),y=o.type||"error",A=`before send for type \`${y}\``;if(p&&"number"==typeof l&&Math.random()>l)return this.recordDroppedEvent("sample_rate","error",o),MH(new ah(`Discarding event because it's not included in the random sample (sampling rate = ${l})`,"log"));const w="replay_event"===y?"replay":y;return this._prepareEvent(o,t,r,(o.sdkProcessingMetadata||{}).capturedSpanIsolationScope).then(F=>{if(null===F)throw this.recordDroppedEvent("event_processor",w,o),new ah("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return F;const oe=function Mtt(i,o,t){const{beforeSend:r,beforeSendTransaction:s}=i;return Xte(o)&&r?r(o,t):ene(o)&&s?s(o,t):o}(s,F,t);return function wtt(i,o){const t=`${o} must return \`null\` or a valid event.`;if(BP(i))return i.then(r=>{if(!iC(r)&&null!==r)throw new ah(t);return r},r=>{throw new ah(`${o} rejected with ${r}`)});if(!iC(i)&&null!==i)throw new ah(t);return i}(oe,A)}).then(F=>{if(null===F)throw this.recordDroppedEvent("before_send",w,o),new ah(`${A} returned \`null\`, will not send event.`,"log");const V=r&&r.getSession();!u&&V&&this._updateSessionFromEvent(V,F);const oe=F.transaction_info;if(u&&oe&&F.transaction!==o.transaction){const Ae="custom";F.transaction_info={...oe,source:Ae}}return this.sendEvent(F,t),F}).then(null,F=>{throw F instanceof ah?F:(this.captureException(F,{data:{__sentry__:!0},originalException:F}),new ah(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ${F}`))})}_process(o){this._numProcessing++,o.then(t=>(this._numProcessing--,t),t=>(this._numProcessing--,t))}_sendEnvelope(o){if(this.emit("beforeEnvelope",o),this._isEnabled()&&this._transport)return this._transport.send(o).then(null,t=>{xr&&ei.error("Error while sending event:",t)});xr&&ei.error("Transport disabled")}_clearOutcomes(){const o=this._outcomes;return this._outcomes={},Object.keys(o).map(t=>{const[r,s]=t.split(":");return{reason:r,category:s,quantity:o[t]}})}}{constructor(o){tne(o,"browser",["browser"],hr.SENTRY_SDK_SOURCE||"npm"),super(o),o.sendClientReports&&hr.document&&hr.document.addEventListener("visibilitychange",()=>{"hidden"===hr.document.visibilityState&&this._flushOutcomes()})}eventFromException(o,t){return function Ntt(i,o,t,r){const l=jH(i,o,t&&t.syntheticException||void 0,r);return _S(l),l.level="error",t&&t.event_id&&(l.event_id=t.event_id),aC(l)}(this._options.stackParser,o,t,this._options.attachStacktrace)}eventFromMessage(o,t="info",r){return function Ltt(i,o,t="info",r,s){const u=ZH(i,o,r&&r.syntheticException||void 0,s);return u.level=t,r&&r.event_id&&(u.event_id=r.event_id),aC(u)}(this._options.stackParser,o,t,r,this._options.attachStacktrace)}captureUserFeedback(o){if(!this._isEnabled())return void(Ug&&ei.warn("SDK not enabled, will not capture user feedback."));const t=function Htt(i,{metadata:o,tunnel:t,dsn:r}){const s={event_id:i.event_id,sent_at:(new Date).toISOString(),...o&&o.sdk&&{sdk:{name:o.sdk.name,version:o.sdk.version}},...!!t&&!!r&&{dsn:AS(r)}},l=function $tt(i){return[{type:"user_report"},i]}(i);return dC(s,[l])}(o,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(t)}_prepareEvent(o,t,r){return o.platform=o.platform||"javascript",super._prepareEvent(o,t,r)}_flushOutcomes(){const o=this._clearOutcomes();if(0===o.length)return void(Ug&&ei.log("No outcomes to send"));if(!this._dsn)return void(Ug&&ei.log("No dsn provided, will not send outcomes"));Ug&&ei.log("Sending outcomes:",o);const t=function ktt(i,o,t){return dC(o?{dsn:o}:{},[[{type:"client_report"},{timestamp:t||bS(),discarded_events:i}]])}(o,this._options.tunnel&&AS(this._dsn));this._sendEnvelope(t)}}function jtt(){"console"in Bo&&yH.forEach(function(i){i in Bo.console&&js(Bo.console,i,function(o){return LP[i]=o,function(...t){Ju("console",{args:t,level:i});const s=LP[i];s&&s.apply(Bo.console,t)}})})}const pC=Bo;let one,zH,GH;function ztt(){if(!pC.document)return;const i=Ju.bind(null,"dom"),o=rne(i,!0);pC.document.addEventListener("click",o,!1),pC.document.addEventListener("keypress",o,!1),["EventTarget","Node"].forEach(t=>{const r=pC[t]&&pC[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(js(r,"addEventListener",function(s){return function(l,u,p){if("click"===l||"keypress"==l)try{const y=this,A=y.__sentry_instrumentation_handlers__=y.__sentry_instrumentation_handlers__||{},w=A[l]=A[l]||{refCount:0};if(!w.handler){const I=rne(i);w.handler=I,s.call(this,l,I,p)}w.refCount++}catch{}return s.call(this,l,u,p)}}),js(r,"removeEventListener",function(s){return function(l,u,p){if("click"===l||"keypress"==l)try{const y=this,A=y.__sentry_instrumentation_handlers__||{},w=A[l];w&&(w.refCount--,w.refCount<=0&&(s.call(this,l,w.handler,p),w.handler=void 0,delete A[l]),0===Object.keys(A).length&&delete y.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,u,p)}}))})}function rne(i,o=!1){return t=>{if(!t||t._sentryCaptured)return;const r=function Jtt(i){try{return i.target}catch{return null}}(t);if(function qtt(i,o){return!("keypress"!==i||o&&o.tagName&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName||o.isContentEditable))}(t.type,r))return;mS(t,"_sentryCaptured",!0),r&&!r._sentryId&&mS(r,"_sentryId",$d());const s="keypress"===t.type?"input":t.type;(function Gtt(i){if(i.type!==zH)return!1;try{if(!i.target||i.target._sentryId!==GH)return!1}catch{}return!0})(t)||(i({event:t,name:s,global:o}),zH=t.type,GH=r?r._sentryId:void 0),clearTimeout(one),one=pC.setTimeout(()=>{GH=void 0,zH=void 0},1e3)}}const Qtt=Bo,xS="__sentry_xhr_v3__";function Ktt(){if(!Qtt.XMLHttpRequest)return;const i=XMLHttpRequest.prototype;js(i,"open",function(o){return function(...t){const r=Date.now(),s=Fg(t[0])?t[0].toUpperCase():void 0,l=function Xtt(i){if(Fg(i))return i;try{return i.toString()}catch{}}(t[1]);if(!s||!l)return o.apply(this,t);this[xS]={method:s,url:l,request_headers:{}},"POST"===s&&l.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const p=this[xS];if(p&&4===this.readyState){try{p.status_code=this.status}catch{}Ju("xhr",{args:[s,l],endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?js(this,"onreadystatechange",function(p){return function(...y){return u(),p.apply(this,y)}}):this.addEventListener("readystatechange",u),js(this,"setRequestHeader",function(p){return function(...y){const[A,w]=y,I=this[xS];return I&&Fg(A)&&Fg(w)&&(I.request_headers[A.toLowerCase()]=w),p.apply(this,y)}}),o.apply(this,t)}}),js(i,"send",function(o){return function(...t){const r=this[xS];return r?(void 0!==t[0]&&(r.body=t[0]),Ju("xhr",{args:[r.method,r.url],startTimestamp:Date.now(),xhr:this}),o.apply(this,t)):o.apply(this,t)}})}function tnt(){!function Wet(){if("string"==typeof EdgeRuntime)return!0;if(!FH())return!1;if(BH(GP.fetch))return!0;let i=!1;const o=GP.document;if(o&&"function"==typeof o.createElement)try{const t=o.createElement("iframe");t.hidden=!0,o.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(i=BH(t.contentWindow.fetch)),o.head.removeChild(t)}catch(t){fS&&ei.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i}()||js(Bo,"fetch",function(i){return function(...o){const{method:t,url:r}=function nnt(i){if(0===i.length)return{method:"GET",url:""};if(2===i.length){const[t,r]=i;return{url:ane(t),method:qH(r,"method")?String(r.method).toUpperCase():"GET"}}const o=i[0];return{url:ane(o),method:qH(o,"method")?String(o.method).toUpperCase():"GET"}}(o),s={args:o,fetchData:{method:t,url:r},startTimestamp:Date.now()};return Ju("fetch",{...s}),i.apply(Bo,o).then(l=>(Ju("fetch",{...s,endTimestamp:Date.now(),response:l}),l),l=>{throw Ju("fetch",{...s,endTimestamp:Date.now(),error:l}),l})}})}function qH(i,o){return!!i&&"object"==typeof i&&!!i[o]}function ane(i){return"string"==typeof i?i:i?qH(i,"url")?i.url:i.toString?i.toString():"":""}const int=["fatal","error","warning","log","info","debug"];function sne(i){return"warn"===i?"warning":int.includes(i)?i:"log"}function JH(i){if(!i)return{};const o=i.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!o)return{};const t=o[6]||"",r=o[8]||"";return{host:o[4],path:o[5],protocol:o[2],search:t,hash:r,relative:o[5]+t+r}}const lne="Breadcrumbs",cne=(i={})=>{const o={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...i};return{name:lne,setupOnce(){},setup(t){o.console&&function Ytt(i){const o="console";Z0(o,i),V0(o,jtt)}(function ant(i){return function(t){if(Is()!==i)return;const r={category:"console",data:{arguments:t.args,logger:"console"},level:sne(t.level),message:nte(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;r.message=`Assertion failed: ${nte(t.args.slice(1)," ")||"console.assert"}`,r.data.arguments=t.args.slice(1)}j0(r,{input:t.args,level:t.level})}}(t)),o.dom&&function Vtt(i){Z0("dom",i),V0("dom",ztt)}(function rnt(i,o){return function(r){if(Is()!==i)return;let s,l,u="object"==typeof o?o.serializeAttribute:void 0,p="object"==typeof o&&"number"==typeof o.maxStringLength?o.maxStringLength:void 0;p&&p>1024&&(Ug&&ei.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${p} was configured. Sentry will use 1024 instead.`),p=1024),"string"==typeof u&&(u=[u]);try{const A=r.event,w=function dnt(i){return!!i&&!!i.target}(A)?A.target:A;s=tte(w,{keyAttrs:u,maxStringLength:p}),l=function ZXe(i){if(!oC.HTMLElement)return null;let o=i;for(let r=0;r<5;r++){if(!o)return null;if(o instanceof HTMLElement&&o.dataset.sentryComponent)return o.dataset.sentryComponent;o=o.parentNode}return null}(w)}catch{s="<unknown>"}if(0===s.length)return;const y={category:`ui.${r.name}`,message:s};l&&(y.data={"ui.component_name":l}),j0(y,{event:r.event,name:r.name,global:r.global})}}(t,o.dom)),o.xhr&&function Wtt(i){Z0("xhr",i),V0("xhr",Ktt)}(function snt(i){return function(t){if(Is()!==i)return;const{startTimestamp:r,endTimestamp:s}=t,l=t.xhr[xS];if(!r||!s||!l)return;const{method:u,url:p,status_code:y,body:A}=l;j0({category:"xhr",data:{method:u,url:p,status_code:y},type:"http"},{xhr:t.xhr,input:A,startTimestamp:r,endTimestamp:s})}}(t)),o.fetch&&function ent(i){const o="fetch";Z0(o,i),V0(o,tnt)}(function lnt(i){return function(t){if(Is()!==i)return;const{startTimestamp:r,endTimestamp:s}=t;if(s&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)j0({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:r,endTimestamp:s});else{const l=t.response;j0({category:"fetch",data:{...t.fetchData,status_code:l&&l.status},type:"http"},{input:t.args,response:l,startTimestamp:r,endTimestamp:s})}}}(t)),o.history&&Gte(function cnt(i){return function(t){if(Is()!==i)return;let r=t.from,s=t.to;const l=JH(hr.location.href);let u=r?JH(r):void 0;const p=JH(s);(!u||!u.path)&&(u=l),l.protocol===p.protocol&&l.host===p.host&&(s=p.relative),l.protocol===u.protocol&&l.host===u.host&&(r=u.relative),j0({category:"navigation",data:{from:r,to:s}})}}(t)),o.sentry&&t.on&&t.on("beforeSendEvent",function ont(i){return function(t){Is()===i&&j0({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:Nm(t)},{event:t})}}(t))}}};Fm(lne,cne);const une=()=>{let i;return{name:"Dedupe",setupOnce(){},processEvent(o){if(o.type)return o;try{if(function unt(i,o){return!(!o||!function pnt(i,o){const t=i.message,r=o.message;return!(!t&&!r||t&&!r||!t&&r||t!==r||!hne(i,o)||!pne(i,o))}(i,o)&&!function hnt(i,o){const t=gne(o),r=gne(i);return!!(t&&r&&t.type===r.type&&t.value===r.value&&hne(i,o)&&pne(i,o))}(i,o))}(o,i))return Ug&&ei.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return i=o}}};function pne(i,o){let t=fne(i),r=fne(o);if(!t&&!r)return!0;if(t&&!r||!t&&r||r.length!==t.length)return!1;for(let s=0;s<r.length;s++){const l=r[s],u=t[s];if(l.filename!==u.filename||l.lineno!==u.lineno||l.colno!==u.colno||l.function!==u.function)return!1}return!0}function hne(i,o){let t=i.fingerprint,r=o.fingerprint;if(!t&&!r)return!0;if(t&&!r||!t&&r)return!1;try{return t.join("")===r.join("")}catch{return!1}}function gne(i){return i.exception&&i.exception.values&&i.exception.values[0]}function fne(i){const o=i.exception;if(o)try{return o.values[0].stacktrace.frames}catch{return}}Fm("Dedupe",une);let WP=null;function fnt(){WP=Bo.onerror,Bo.onerror=function(i,o,t,r,s){return Ju("error",{column:r,error:s,line:t,msg:i,url:o}),!(!WP||WP.__SENTRY_LOADER__)&&WP.apply(this,arguments)},Bo.onerror.__SENTRY_INSTRUMENTED__=!0}let KP=null;function _nt(){KP=Bo.onunhandledrejection,Bo.onunhandledrejection=function(i){return Ju("unhandledrejection",i),!(KP&&!KP.__SENTRY_LOADER__)||KP.apply(this,arguments)},Bo.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const mne="GlobalHandlers",_ne=(i={})=>{const o={onerror:!0,onunhandledrejection:!0,...i};return{name:mne,setupOnce(){Error.stackTraceLimit=50},setup(t){o.onerror&&(function bnt(i){!function gnt(i){const o="error";Z0(o,i),V0(o,fnt)}(o=>{const{stackParser:t,attachStacktrace:r}=yne();if(Is()!==i||ine())return;const{msg:s,url:l,line:u,column:p,error:y}=o,A=void 0===y&&Fg(s)?function Ant(i,o,t,r){let l=CH(i)?i.message:i,u="Error";const p=l.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return p&&(u=p[1],l=p[2]),bne({exception:{values:[{type:u,value:l}]}},o,t,r)}(s,l,u,p):bne(jH(t,y||s,void 0,r,!1),l,u,p);A.level="error",Ate(A,{originalException:y,mechanism:{handled:!1,type:"onerror"}})})}(t),vne("onerror")),o.onunhandledrejection&&(function vnt(i){!function mnt(i){const o="unhandledrejection";Z0(o,i),V0(o,_nt)}(o=>{const{stackParser:t,attachStacktrace:r}=yne();if(Is()!==i||ine())return;const s=function ynt(i){if(xH(i))return i;const o=i;try{if("reason"in o)return o.reason;if("detail"in o&&"reason"in o.detail)return o.detail.reason}catch{}return i}(o),l=xH(s)?function Cnt(i){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(i)}`}]}}}(s):jH(t,s,void 0,r,!0);l.level="error",Ate(l,{originalException:s,mechanism:{handled:!1,type:"onunhandledrejection"}})})}(t),vne("onunhandledrejection"))}}};function bne(i,o,t,r){const s=i.exception=i.exception||{},l=s.values=s.values||[],u=l[0]=l[0]||{},p=u.stacktrace=u.stacktrace||{},y=p.frames=p.frames||[],A=isNaN(parseInt(r,10))?void 0:r,w=isNaN(parseInt(t,10))?void 0:t,I=Fg(o)&&o.length>0?o:function jXe(){try{return oC.document.location.href}catch{return""}}();return 0===y.length&&y.push({colno:A,filename:I,function:"?",in_app:!0,lineno:w}),i}function vne(i){Ug&&ei.log(`Global Handler attached: ${i}`)}function yne(){const i=Is();return i&&i.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}Fm(mne,_ne);const Cne="HttpContext",Ane=()=>({name:Cne,setupOnce(){},preprocessEvent(i){if(!hr.navigator&&!hr.location&&!hr.document)return;const o=i.request&&i.request.url||hr.location&&hr.location.href,{referrer:t}=hr.document||{},{userAgent:r}=hr.navigator||{},s={...i.request&&i.request.headers,...t&&{Referer:t},...r&&{"User-Agent":r}},l={...i.request,...o&&{url:o},headers:s};i.request=l}});function xnt(i,o,t=250,r,s,l,u){if(!(l.exception&&l.exception.values&&u&&U0(u.originalException,Error)))return;const p=l.exception.values.length>0?l.exception.values[l.exception.values.length-1]:void 0;p&&(l.exception.values=function Tnt(i,o){return i.map(t=>(t.value&&(t.value=rC(t.value,o)),t))}(QH(i,o,s,u.originalException,r,l.exception.values,p,0),t))}function QH(i,o,t,r,s,l,u,p){if(l.length>=t+1)return l;let y=[...l];if(U0(r[s],Error)){xne(u,p);const A=i(o,r[s]),w=y.length;Tne(A,s,w,p),y=QH(i,o,t,r[s],s,[A,...y],A,w)}return Array.isArray(r.errors)&&r.errors.forEach((A,w)=>{if(U0(A,Error)){xne(u,p);const I=i(o,A),P=y.length;Tne(I,`errors[${w}]`,P,p),y=QH(i,o,t,A,s,[I,...y],I,P)}}),y}function xne(i,o){i.mechanism=i.mechanism||{type:"generic",handled:!0},i.mechanism={...i.mechanism,..."AggregateError"===i.type&&{is_exception_group:!0},exception_id:o}}function Tne(i,o,t,r){i.mechanism=i.mechanism||{type:"generic",handled:!0},i.mechanism={...i.mechanism,type:"chained",source:o,exception_id:t,parent_id:r}}Fm(Cne,Ane);const Sne="LinkedErrors",wne=(i={})=>{const o=i.limit||5,t=i.key||"cause";return{name:Sne,setupOnce(){},preprocessEvent(r,s,l){const u=l.getOptions();xnt(nne,u.stackParser,u.maxValueLength,t,o,r,s)}}},Mnt=(Fm(Sne,wne),["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"]),Dne=(i={})=>{const o={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...i};return{name:"TryCatch",setupOnce(){o.setTimeout&&js(hr,"setTimeout",kne),o.setInterval&&js(hr,"setInterval",kne),o.requestAnimationFrame&&js(hr,"requestAnimationFrame",Dnt),o.XMLHttpRequest&&"XMLHttpRequest"in hr&&js(XMLHttpRequest.prototype,"send",knt);const t=o.eventTarget;t&&(Array.isArray(t)?t:Mnt).forEach(Int)}}};function kne(i){return function(...o){return o[0]=uC(o[0],{mechanism:{data:{function:Lm(i)},handled:!1,type:"instrument"}}),i.apply(this,o)}}function Dnt(i){return function(o){return i.apply(this,[uC(o,{mechanism:{data:{function:"requestAnimationFrame",handler:Lm(i)},handled:!1,type:"instrument"}})])}}function knt(i){return function(...o){const t=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(s=>{s in t&&"function"==typeof t[s]&&js(t,s,function(l){const u={mechanism:{data:{function:s,handler:Lm(l)},handled:!1,type:"instrument"}},p=TH(l);return p&&(u.mechanism.data.handler=Lm(p)),uC(l,u)})}),i.apply(this,o)}}function Int(i){const t=hr[i]&&hr[i].prototype;!t||!t.hasOwnProperty||!t.hasOwnProperty("addEventListener")||(js(t,"addEventListener",function(r){return function(s,l,u){try{"function"==typeof l.handleEvent&&(l.handleEvent=uC(l.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Lm(l),target:i},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[s,uC(l,{mechanism:{data:{function:"addEventListener",handler:Lm(l),target:i},handled:!1,type:"instrument"}}),u])}}),js(t,"removeEventListener",function(r){return function(s,l,u){const p=l;try{const y=p&&p.__sentry_wrapped__;y&&r.call(this,s,y,u)}catch{}return r.call(this,s,p,u)}}))}function TS(i,o,t,r){const s={filename:i,function:o,in_app:!0};return void 0!==t&&(s.lineno=t),void 0!==r&&(s.colno=r),s}Fm("TryCatch",Dne);const Rnt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Fnt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Bnt=[30,i=>{const o=Rnt.exec(i);if(o){if(o[2]&&0===o[2].indexOf("eval")){const l=Fnt.exec(o[2]);l&&(o[2]=l[1],o[3]=l[2],o[4]=l[3])}const[r,s]=Ine(o[1]||"?",o[2]);return TS(s,r,o[3]?+o[3]:void 0,o[4]?+o[4]:void 0)}}],Hnt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,$nt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Unt=[50,i=>{const o=Hnt.exec(i);if(o){if(o[3]&&o[3].indexOf(" > eval")>-1){const l=$nt.exec(o[3]);l&&(o[1]=o[1]||"eval",o[3]=l[1],o[4]=l[2],o[5]="")}let r=o[3],s=o[1]||"?";return[s,r]=Ine(s,r),TS(r,s,o[4]?+o[4]:void 0,o[5]?+o[5]:void 0)}}],Ynt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,jnt=[40,i=>{const o=Ynt.exec(i);return o?TS(o[2],o[1]||"?",+o[3],o[4]?+o[4]:void 0):void 0}],znt=_te(Bnt,Unt,jnt),Ine=(i,o)=>{const t=-1!==i.indexOf("safari-extension"),r=-1!==i.indexOf("safari-web-extension");return t||r?[-1!==i.indexOf("@")?i.split("@")[0]:"?",t?`safari-extension:${o}`:`safari-web-extension:${o}`]:[i,o]};function Ene(i,o,t=function Gnt(i){const o=[];function r(u){return o.splice(o.indexOf(u),1)[0]}return{$:o,add:function s(u){if(!function t(){return void 0===i||o.length<i}())return MH(new ah("Not adding Promise because buffer limit was reached."));const p=u();return-1===o.indexOf(p)&&o.push(p),p.then(()=>r(p)).then(null,()=>r(p).then(null,()=>{})),p},drain:function l(u){return new jc((p,y)=>{let A=o.length;if(!A)return p(!0);const w=setTimeout(()=>{u&&u>0&&p(!1)},u);o.forEach(I=>{aC(I).then(()=>{--A||(clearTimeout(w),p(!0))},y)})})}}}(i.bufferSize||30)){let r={};function l(u){const p=[];if(HH(u,(I,P)=>{const F=Jte(P);if(function Wnt(i,o,t=Date.now()){return function Qnt(i,o){return i[o]||i.all||0}(i,o)>t}(r,F)){const V=Pne(I,P);i.recordDroppedEvent("ratelimit_backoff",F,V)}else p.push(I)}),0===p.length)return aC();const y=dC(u[0],p),A=I=>{HH(y,(P,F)=>{const V=Pne(P,F);i.recordDroppedEvent(I,Jte(F),V)})};return t.add(()=>o({body:att(y,i.textEncoder)}).then(I=>(void 0!==I.statusCode&&(I.statusCode<200||I.statusCode>=300)&&xr&&ei.warn(`Sentry responded with status code ${I.statusCode} to sent event.`),r=function Knt(i,{statusCode:o,headers:t},r=Date.now()){const s={...i},l=t&&t["x-sentry-rate-limits"],u=t&&t["retry-after"];if(l)for(const p of l.trim().split(",")){const[y,A,,,w]=p.split(":",5),I=parseInt(y,10),P=1e3*(isNaN(I)?60:I);if(A)for(const F of A.split(";"))"metric_bucket"===F?(!w||w.split(";").includes("custom"))&&(s[F]=r+P):s[F]=r+P;else s.all=r+P}else u?s.all=r+function Jnt(i,o=Date.now()){const t=parseInt(`${i}`,10);if(!isNaN(t))return 1e3*t;const r=Date.parse(`${i}`);return isNaN(r)?6e4:r-o}(u,r):429===o&&(s.all=r+6e4);return s}(r,I),I),I=>{throw A("network_error"),I})).then(I=>I,I=>{if(I instanceof ah)return xr&&ei.error("Skipped sending event because buffer is full."),A("queue_overflow"),aC();throw I})}return l.__sentry__baseTransport__=!0,{send:l,flush:u=>t.drain(u)}}function Pne(i,o){if("event"===o||"transaction"===o)return Array.isArray(i)?i[1]:void 0}let SS;function nit(i,o=function eit(){if(SS)return SS;if(BH(hr.fetch))return SS=hr.fetch.bind(hr);const i=hr.document;let o=hr.fetch;if(i&&"function"==typeof i.createElement)try{const t=i.createElement("iframe");t.hidden=!0,i.head.appendChild(t);const r=t.contentWindow;r&&r.fetch&&(o=r.fetch),i.head.removeChild(t)}catch(t){Ug&&ei.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return SS=o.bind(hr)}()){let t=0,r=0;return Ene(i,function s(l){const u=l.body.length;t+=u,r++;const p={body:l.body,method:"POST",referrerPolicy:"origin",headers:i.headers,keepalive:t<=6e4&&r<15,...i.fetchOptions};try{return o(i.url,p).then(y=>(t-=u,r--,{statusCode:y.status,headers:{"x-sentry-rate-limits":y.headers.get("X-Sentry-Rate-Limits"),"retry-after":y.headers.get("Retry-After")}}))}catch(y){return function tit(){SS=void 0}(),t-=u,r--,MH(y)}})}function oit(i){return Ene(i,function o(t){return new jc((r,s)=>{const l=new XMLHttpRequest;l.onerror=s,l.onreadystatechange=()=>{4===l.readyState&&r({statusCode:l.status,headers:{"x-sentry-rate-limits":l.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":l.getResponseHeader("Retry-After")}})},l.open("POST",i.url);for(const u in i.headers)Object.prototype.hasOwnProperty.call(i.headers,u)&&l.setRequestHeader(u,i.headers[u]);l.send(t.body)})})}const rit=[Ute(),Vte(),Dne(),cne(),_ne(),wne(),une(),Ane()];function One(i){return[...rit]}function ait(i={}){void 0===i.defaultIntegrations&&(i.defaultIntegrations=One()),void 0===i.release&&("string"==typeof __SENTRY_RELEASE__&&(i.release=__SENTRY_RELEASE__),hr.SENTRY_RELEASE&&hr.SENTRY_RELEASE.id&&(i.release=hr.SENTRY_RELEASE.id)),void 0===i.autoSessionTracking&&(i.autoSessionTracking=!0),void 0===i.sendClientReports&&(i.sendClientReports=!0);const o={...i,stackParser:eet(i.stackParser||znt),integrations:Net(i),transport:i.transport||(FH()?nit:oit)};(function qet(i,o){!0===o.debug&&(xr?ei.enable():RP(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),sC().update(o.initialScope);const r=new i(o);(function Jet(i){const t=rh().getStackTop();t.client=i,t.scope.setClient(i)})(r),function Qet(i){i.init?i.init():i.setupIntegrations&&i.setupIntegrations()}(r)})(Utt,o),i.autoSessionTracking&&function sit(){typeof hr.document>"u"?Ug&&ei.warn("Session tracking in non-browser environment with @sentry/browser is not supported."):(Ste({ignoreDuration:!0}),Dte(),Gte(({from:i,to:o})=>{void 0!==i&&i!==o&&(Ste({ignoreDuration:!0}),Dte())}))}()}const wS=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function XP(i){return i&&i.Math==Math?i:void 0}const sa="object"==typeof globalThis&&XP(globalThis)||"object"==typeof window&&XP(window)||"object"==typeof self&&XP(self)||"object"==typeof global&&XP(global)||function(){return this}()||{};function WH(){return sa}function Nne(i,o,t){const r=t||sa,s=r.__SENTRY__=r.__SENTRY__||{};return s[i]||(s[i]=o())}const Lne=["debug","info","warn","error","log","assert","trace"],Rne={};function Fne(i){if(!("console"in sa))return i();const o=sa.console,t={},r=Object.keys(Rne);r.forEach(s=>{const l=Rne[s];t[s]=o[s],o[s]=l});try{return i()}finally{r.forEach(s=>{o[s]=t[s]})}}const un=function cit(){let i=!1;const o={enable:()=>{i=!0},disable:()=>{i=!1},isEnabled:()=>i};return Lne.forEach(wS?t=>{o[t]=(...r)=>{i&&Fne(()=>{sa.console[t](`Sentry Logger [${t}]:`,...r)})}}:t=>{o[t]=()=>{}}),o}();function KH(){return Date.now()/1e3}const MS=function dit(){const{performance:i}=sa;if(!i||!i.now)return KH;const o=Date.now()-i.now(),t=i.timeOrigin??o;return()=>(t+i.now())/1e3}();let e4;const Ud=(()=>{const{performance:i}=sa;if(!i||!i.now)return void(e4="none");const o=36e5,t=i.now(),r=Date.now(),s=i.timeOrigin?Math.abs(i.timeOrigin+t-r):o,l=s<o,u=i.timing&&i.timing.navigationStart,y="number"==typeof u?Math.abs(u+t-r):o;return l||y<o?s<=y?(e4="timeOrigin",i.timeOrigin):(e4="navigationStart",u):(e4="dateNow",r)})(),Co=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Hne=Object.prototype.toString;function gC(i,o){return Hne.call(i)===`[object ${o}]`}function Bm(i){return gC(i,"String")}function XH(i){return gC(i,"Object")}function e$(i){return Boolean(i&&i.then&&"function"==typeof i.then)}function DS(i,o){try{return i instanceof o}catch{return!1}}function z0(i,o,t){if(!(o in i))return;const r=i[o],s=t(r);"function"==typeof s&&function git(i,o){try{i.prototype=o.prototype=o.prototype||{},t$(i,"__sentry_original__",o)}catch{}}(s,r),i[o]=s}function t$(i,o,t){try{Object.defineProperty(i,o,{value:t,writable:!0,configurable:!0})}catch{wS&&un.log(`Failed to add non-enumerable property "${o}" to object`,i)}}function Yd(i){return n$(i,new Map)}function n$(i,o){if(function mit(i){if(!XH(i))return!1;try{const o=Object.getPrototypeOf(i).constructor.name;return!o||"Object"===o}catch{return!0}}(i)){const t=o.get(i);if(void 0!==t)return t;const r={};o.set(i,r);for(const s of Object.keys(i))typeof i[s]<"u"&&(r[s]=n$(i[s],o));return r}if(Array.isArray(i)){const t=o.get(i);if(void 0!==t)return t;const r=[];return o.set(i,r),i.forEach(s=>{r.push(n$(s,o))}),r}return i}const i$="baggage",_it=/^sentry-/;function jne(i){if(i)return function yit(i){if(0!==Object.keys(i).length)return Object.entries(i).reduce((o,[t,r],s)=>{const l=`${encodeURIComponent(t)}=${encodeURIComponent(r)}`,u=0===s?l:`${o},${l}`;return u.length>8192?(wS&&un.warn(`Not adding key: ${t} with val: ${r} to baggage header due to exceeding baggage size limits.`),o):u},"")}(Object.entries(i).reduce((t,[r,s])=>(s&&(t[`sentry-${r}`]=s),t),{}))}function Zne(i){return i.split(",").map(o=>o.split("=").map(t=>decodeURIComponent(t.trim()))).reduce((o,[t,r])=>(o[t]=r,o),{})}function rs(){const o=sa.crypto||sa.msCrypto;let t=()=>16*Math.random();try{if(o&&o.randomUUID)return o.randomUUID().replace(/-/g,"");o&&o.getRandomValues&&(t=()=>{const r=new Uint8Array(1);return o.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(15&t())>>r/4).toString(16))}const xit=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Tit(i,o){const t=function zne(i){if(!i)return;const o=i.match(xit);if(!o)return;let t;return"1"===o[3]?t=!0:"0"===o[3]&&(t=!1),{traceId:o[1],parentSampled:t,parentSpanId:o[2]}}(i),r=function vit(i){if(!Bm(i)&&!Array.isArray(i))return;let o={};if(Array.isArray(i))o=i.reduce((r,s)=>{const l=Zne(s);for(const u of Object.keys(l))r[u]=l[u];return r},{});else{if(!i)return;o=Zne(i)}const t=Object.entries(o).reduce((r,[s,l])=>(s.match(_it)&&(r[s.slice("sentry-".length)]=l),r),{});return Object.keys(t).length>0?t:void 0}(o),{traceId:s,parentSpanId:l,parentSampled:u}=t||{};return t?{traceId:s||rs(),parentSpanId:l||rs().substring(16),spanId:rs().substring(16),sampled:u,dsc:r||{}}:{traceId:s||rs(),spanId:rs().substring(16)}}function o$(i=rs(),o=rs().substring(16),t){let r="";return void 0!==t&&(r=t?"-1":"-0"),`${i}-${o}${r}`}function r$(i){const{spanId:o,traceId:t}=i.spanContext(),{data:r,op:s,parent_span_id:l,status:u,tags:p,origin:y}=Es(i);return Yd({data:r,op:s,parent_span_id:l,span_id:o,status:u,tags:p,trace_id:t,origin:y})}function t4(i){const{traceId:o,spanId:t}=i.spanContext();return o$(o,t,a$(i))}function n4(i){return"number"==typeof i?qne(i):Array.isArray(i)?i[0]+i[1]/1e9:i instanceof Date?qne(i.getTime()):MS()}function qne(i){return i>9999999999?i/1e3:i}function Es(i){return function wit(i){return"function"==typeof i.getSpanJSON}(i)?i.getSpanJSON():"function"==typeof i.toJSON?i.toJSON():{}}function a$(i){const{traceFlags:o}=i.spanContext();return Boolean(1&o)}const Hm="sentry.source",fC="sentry.sample_rate",i4="sentry.op",mC="sentry.origin";function o4(i){return i.transaction}var Wne;function s$(i,o){i.setTag("http.status_code",String(o)),i.setData("http.response.status_code",o);const t=function Dit(i){if(i<400&&i>=100)return"ok";if(i>=400&&i<500)switch(i){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(i>=500&&i<600)switch(i){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}(o);"unknown_error"!==t&&i.setStatus(t)}!function(i){i.Ok="ok",i.DeadlineExceeded="deadline_exceeded",i.Unauthenticated="unauthenticated",i.PermissionDenied="permission_denied",i.NotFound="not_found",i.ResourceExhausted="resource_exhausted",i.InvalidArgument="invalid_argument",i.Unimplemented="unimplemented",i.Unavailable="unavailable",i.InternalError="internal_error",i.UnknownError="unknown_error",i.Cancelled="cancelled",i.AlreadyExists="already_exists",i.FailedPrecondition="failed_precondition",i.Aborted="aborted",i.OutOfRange="out_of_range",i.DataLoss="data_loss"}(Wne||(Wne={}));class Kne{constructor(o=1e3){this._maxlen=o,this.spans=[]}add(o){this.spans.length>this._maxlen?o.spanRecorder=void 0:this.spans.push(o)}}class r4{constructor(o={}){this._traceId=o.traceId||rs(),this._spanId=o.spanId||rs().substring(16),this._startTime=o.startTimestamp||MS(),this.tags=o.tags?{...o.tags}:{},this.data=o.data?{...o.data}:{},this.instrumenter=o.instrumenter||"sentry",this._attributes={},this.setAttributes({[mC]:o.origin||"manual",[i4]:o.op,...o.attributes}),this._name=o.name||o.description,o.parentSpanId&&(this._parentSpanId=o.parentSpanId),"sampled"in o&&(this._sampled=o.sampled),o.status&&(this._status=o.status),o.endTimestamp&&(this._endTime=o.endTimestamp),void 0!==o.exclusiveTime&&(this._exclusiveTime=o.exclusiveTime),this._measurements=o.measurements?{...o.measurements}:{}}get name(){return this._name||""}set name(o){this.updateName(o)}get description(){return this._name}set description(o){this._name=o}get traceId(){return this._traceId}set traceId(o){this._traceId=o}get spanId(){return this._spanId}set spanId(o){this._spanId=o}set parentSpanId(o){this._parentSpanId=o}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(o){this._sampled=o}get attributes(){return this._attributes}set attributes(o){this._attributes=o}get startTimestamp(){return this._startTime}set startTimestamp(o){this._startTime=o}get endTimestamp(){return this._endTime}set endTimestamp(o){this._endTime=o}get status(){return this._status}set status(o){this._status=o}get op(){return this._attributes[i4]}set op(o){this.setAttribute(i4,o)}get origin(){return this._attributes[mC]}set origin(o){this.setAttribute(mC,o)}spanContext(){const{_spanId:o,_traceId:t,_sampled:r}=this;return{spanId:o,traceId:t,traceFlags:r?1:0}}startChild(o){const t=new r4({...o,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});t.spanRecorder=this.spanRecorder,t.spanRecorder&&t.spanRecorder.add(t);const r=o4(this);if(t.transaction=r,Co&&r){const p=`[Tracing] Starting '${o&&o.op||"< unknown op >"}' span on transaction '${Es(t).description||"< unknown name >"}' (${r.spanContext().spanId}).`;un.log(p),this._logMessage=p}return t}setTag(o,t){return this.tags={...this.tags,[o]:t},this}setData(o,t){return this.data={...this.data,[o]:t},this}setAttribute(o,t){void 0===t?delete this._attributes[o]:this._attributes[o]=t}setAttributes(o){Object.keys(o).forEach(t=>this.setAttribute(t,o[t]))}setStatus(o){return this._status=o,this}setHttpStatus(o){return s$(this,o),this}setName(o){this.updateName(o)}updateName(o){return this._name=o,this}isSuccess(){return"ok"===this._status}finish(o){return this.end(o)}end(o){if(this._endTime)return;const t=o4(this);if(Co&&t&&t.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&un.log(r.replace("Starting","Finishing"))}this._endTime=n4(o)}toTraceparent(){return t4(this)}toContext(){return Yd({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(o){return this.data=o.data||{},this._name=o.name||o.description,this._endTime=o.endTimestamp,this.op=o.op,this._parentSpanId=o.parentSpanId,this._sampled=o.sampled,this._spanId=o.spanId||this._spanId,this._startTime=o.startTimestamp||this._startTime,this._status=o.status,this.tags=o.tags||{},this._traceId=o.traceId||this._traceId,this}getTraceContext(){return r$(this)}getSpanJSON(){return Yd({data:this._getData(),description:this._name,op:this._attributes[i4],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[mC],_metrics_summary:void 0,profile_id:this._attributes.profile_id,exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:o,_attributes:t}=this,r=Object.keys(o).length>0,s=Object.keys(t).length>0;if(r||s)return r&&s?{...o,...t}:r?o:t}}const Xne="production";var Yg;!function(i){i[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED"}(Yg||(Yg={}));class sh{constructor(o){sh.prototype.__init.call(this),sh.prototype.__init2.call(this),sh.prototype.__init3.call(this),sh.prototype.__init4.call(this),this._state=Yg.PENDING,this._handlers=[];try{o(this._resolve,this._reject)}catch(t){this._reject(t)}}then(o,t){return new sh((r,s)=>{this._handlers.push([!1,l=>{if(o)try{r(o(l))}catch(u){s(u)}else r(l)},l=>{if(t)try{r(t(l))}catch(u){s(u)}else s(l)}]),this._executeHandlers()})}catch(o){return this.then(t=>t,o)}finally(o){return new sh((t,r)=>{let s,l;return this.then(u=>{l=!1,s=u,o&&o()},u=>{l=!0,s=u,o&&o()}).then(()=>{l?r(s):t(s)})})}__init(){this._resolve=o=>{this._setResult(Yg.RESOLVED,o)}}__init2(){this._reject=o=>{this._setResult(Yg.REJECTED,o)}}__init3(){this._setResult=(o,t)=>{if(this._state===Yg.PENDING){if(e$(t))return void t.then(this._resolve,this._reject);this._state=o,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Yg.PENDING)return;const o=this._handlers.slice();this._handlers=[],o.forEach(t=>{t[0]||(this._state===Yg.RESOLVED&&t[1](this._value),this._state===Yg.REJECTED&&t[2](this._value),t[0]=!0)})}}}function l$(i,o,t,r=0){return new sh((s,l)=>{const u=i[r];if(null===o||"function"!=typeof u)s(o);else{const p=u({...o},t);Co&&u.id&&null===p&&un.log(`Event processor "${u.id}" dropped event`),e$(p)?p.then(y=>l$(i,y,t,r+1).then(s)).then(null,l):l$(i,p,t,r+1).then(s).then(null,l)}})}function a4(i,o={}){if(o.user&&(!i.ipAddress&&o.user.ip_address&&(i.ipAddress=o.user.ip_address),!i.did&&!o.did&&(i.did=o.user.id||o.user.email||o.user.username)),i.timestamp=o.timestamp||MS(),o.abnormal_mechanism&&(i.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(i.ignoreDuration=o.ignoreDuration),o.sid&&(i.sid=32===o.sid.length?o.sid:rs()),void 0!==o.init&&(i.init=o.init),!i.did&&o.did&&(i.did=`${o.did}`),"number"==typeof o.started&&(i.started=o.started),i.ignoreDuration)i.duration=void 0;else if("number"==typeof o.duration)i.duration=o.duration;else{const t=i.timestamp-i.started;i.duration=t>=0?t:0}o.release&&(i.release=o.release),o.environment&&(i.environment=o.environment),!i.ipAddress&&o.ipAddress&&(i.ipAddress=o.ipAddress),!i.userAgent&&o.userAgent&&(i.userAgent=o.userAgent),"number"==typeof o.errors&&(i.errors=o.errors),o.status&&(i.status=o.status)}function jd(){return $m().getClient()}function lh(){return $m().getScope()}function u$(i,o,t){const r=o.getOptions(),{publicKey:s}=o.getDsn()||{},{segment:l}=t&&t.getUser()||{},u=Yd({environment:r.environment||Xne,release:r.release,user_segment:l,public_key:s,trace_id:i});return o.emit&&o.emit("createDsc",u),u}function _C(i){const o=jd();if(!o)return{};const t=u$(Es(i).trace_id||"",o,lh()),r=o4(i);if(!r)return t;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:l,source:u}=r.metadata;null!=l&&(t.sample_rate=`${l}`);const p=Es(r);return u&&"url"!==u&&(t.transaction=p.description),t.sampled=String(a$(r)),o.emit&&o.emit("createDsc",t),t}class G0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=oie()}static clone(o){return o?o.clone():new G0}clone(){const o=new G0;return o._breadcrumbs=[...this._breadcrumbs],o._tags={...this._tags},o._extra={...this._extra},o._contexts={...this._contexts},o._user=this._user,o._level=this._level,o._span=this._span,o._session=this._session,o._transactionName=this._transactionName,o._fingerprint=this._fingerprint,o._eventProcessors=[...this._eventProcessors],o._requestSession=this._requestSession,o._attachments=[...this._attachments],o._sdkProcessingMetadata={...this._sdkProcessingMetadata},o._propagationContext={...this._propagationContext},o._client=this._client,o}setClient(o){this._client=o}getClient(){return this._client}addScopeListener(o){this._scopeListeners.push(o)}addEventProcessor(o){return this._eventProcessors.push(o),this}setUser(o){return this._user=o||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&a4(this._session,{user:o}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(o){return this._requestSession=o,this}setTags(o){return this._tags={...this._tags,...o},this._notifyScopeListeners(),this}setTag(o,t){return this._tags={...this._tags,[o]:t},this._notifyScopeListeners(),this}setExtras(o){return this._extra={...this._extra,...o},this._notifyScopeListeners(),this}setExtra(o,t){return this._extra={...this._extra,[o]:t},this._notifyScopeListeners(),this}setFingerprint(o){return this._fingerprint=o,this._notifyScopeListeners(),this}setLevel(o){return this._level=o,this._notifyScopeListeners(),this}setTransactionName(o){return this._transactionName=o,this._notifyScopeListeners(),this}setContext(o,t){return null===t?delete this._contexts[o]:this._contexts[o]=t,this._notifyScopeListeners(),this}setSpan(o){return this._span=o,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const o=this._span;return o&&o.transaction}setSession(o){return o?this._session=o:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(o){if(!o)return this;const t="function"==typeof o?o(this):o;if(t instanceof G0){const r=t.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(XH(t)){const r=o;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=oie(),this}addBreadcrumb(o,t){const r="number"==typeof t?t:100;if(r<=0)return this;const s={timestamp:KH(),...o},l=this._breadcrumbs;return l.push(s),this._breadcrumbs=l.length>r?l.slice(-r):l,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(o){return this._attachments.push(o),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:o,_attachments:t,_contexts:r,_tags:s,_extra:l,_user:u,_level:p,_fingerprint:y,_eventProcessors:A,_propagationContext:w,_sdkProcessingMetadata:I,_transactionName:P,_span:F}=this;return{breadcrumbs:o,attachments:t,contexts:r,tags:s,extra:l,user:u,level:p,fingerprint:y||[],eventProcessors:A,propagationContext:w,sdkProcessingMetadata:I,transactionName:P,span:F}}applyToEvent(o,t={},r=[]){return function Oit(i,o){const{fingerprint:t,span:r,breadcrumbs:s,sdkProcessingMetadata:l}=o;(function Nit(i,o){const{extra:t,tags:r,user:s,contexts:l,level:u,transactionName:p}=o,y=Yd(t);y&&Object.keys(y).length&&(i.extra={...y,...i.extra});const A=Yd(r);A&&Object.keys(A).length&&(i.tags={...A,...i.tags});const w=Yd(s);w&&Object.keys(w).length&&(i.user={...w,...i.user});const I=Yd(l);I&&Object.keys(I).length&&(i.contexts={...I,...i.contexts}),u&&(i.level=u),p&&(i.transaction=p)})(i,o),r&&function Fit(i,o){i.contexts={trace:r$(o),...i.contexts};const t=o4(o);if(t){i.sdkProcessingMetadata={dynamicSamplingContext:_C(o),...i.sdkProcessingMetadata};const r=Es(t).description;r&&(i.tags={transaction:r,...i.tags})}}(i,r),function Bit(i,o){i.fingerprint=i.fingerprint?function Ait(i){return Array.isArray(i)?i:[i]}(i.fingerprint):[],o&&(i.fingerprint=i.fingerprint.concat(o)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint}(i,t),function Lit(i,o){const t=[...i.breadcrumbs||[],...o];i.breadcrumbs=t.length?t:void 0}(i,s),function Rit(i,o){i.sdkProcessingMetadata={...i.sdkProcessingMetadata,...o}}(i,l)}(o,this.getScopeData()),l$([...r,...Nne("globalEventProcessors",()=>[]),...this._eventProcessors],o,t)}setSDKProcessingMetadata(o){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...o},this}setPropagationContext(o){return this._propagationContext=o,this}getPropagationContext(){return this._propagationContext}captureException(o,t){const r=t&&t.event_id?t.event_id:rs();if(!this._client)return un.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(o,{originalException:o,syntheticException:s,...t,event_id:r},this),r}captureMessage(o,t,r){const s=r&&r.event_id?r.event_id:rs();if(!this._client)return un.warn("No client configured on scope - will not capture message!"),s;const l=new Error(o);return this._client.captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s},this),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:rs();return this._client?(this._client.captureEvent(o,{...t,event_id:r},this),r):(un.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(o=>{o(this)}),this._notifyingListeners=!1)}}function oie(){return{traceId:rs(),spanId:rs().substring(16)}}const p$=parseFloat("7.114.0"),$it=100;class h${constructor(o,t,r,s=p$){let l,u;this._version=s,t?l=t:(l=new G0,l.setClient(o)),r?u=r:(u=new G0,u.setClient(o)),this._stack=[{scope:l}],o&&this.bindClient(o),this._isolationScope=u}isOlderThan(o){return this._version<o}bindClient(o){const t=this.getStackTop();t.client=o,t.scope.setClient(o),o&&o.setupIntegrations&&o.setupIntegrations()}pushScope(){const o=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:o}),o}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(o){const t=this.pushScope();let r;try{r=o(t)}catch(s){throw this.popScope(),s}return e$(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(o,t){const r=this._lastEventId=t&&t.event_id?t.event_id:rs(),s=new Error("Sentry syntheticException");return this.getScope().captureException(o,{originalException:o,syntheticException:s,...t,event_id:r}),r}captureMessage(o,t,r){const s=this._lastEventId=r&&r.event_id?r.event_id:rs(),l=new Error(o);return this.getScope().captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s}),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:rs();return o.type||(this._lastEventId=r),this.getScope().captureEvent(o,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(o,t){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:u=$it}=s.getOptions&&s.getOptions()||{};if(u<=0)return;const y={timestamp:KH(),...o},A=l?Fne(()=>l(y,t)):y;null!==A&&(s.emit&&s.emit("beforeAddBreadcrumb",A,t),r.addBreadcrumb(A,u))}setUser(o){this.getScope().setUser(o),this.getIsolationScope().setUser(o)}setTags(o){this.getScope().setTags(o),this.getIsolationScope().setTags(o)}setExtras(o){this.getScope().setExtras(o),this.getIsolationScope().setExtras(o)}setTag(o,t){this.getScope().setTag(o,t),this.getIsolationScope().setTag(o,t)}setExtra(o,t){this.getScope().setExtra(o,t),this.getIsolationScope().setExtra(o,t)}setContext(o,t){this.getScope().setContext(o,t),this.getIsolationScope().setContext(o,t)}configureScope(o){const{scope:t,client:r}=this.getStackTop();r&&o(t)}run(o){const t=rie(this);try{o(this)}finally{rie(t)}}getIntegration(o){const t=this.getClient();if(!t)return null;try{return t.getIntegration(o)}catch{return Co&&un.warn(`Cannot retrieve integration ${o.id} from the current Hub`),null}}startTransaction(o,t){const r=this._callExtensionMethod("startTransaction",o,t);return Co&&!r&&(this.getClient()?un.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):un.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(o=!1){if(o)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,r=t.getSession();r&&function Iit(i,o){let t={};o?t={status:o}:"ok"===i.status&&(t={status:"exited"}),a4(i,t)}(r),this._sendSessionUpdate(),t.setSession()}startSession(o){const{scope:t,client:r}=this.getStackTop(),{release:s,environment:l=Xne}=r&&r.getOptions()||{},{userAgent:u}=sa.navigator||{},p=function kit(i){const o=MS(),t={sid:rs(),init:!0,timestamp:o,started:o,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function Eit(i){return Yd({sid:`${i.sid}`,init:i.init,started:new Date(1e3*i.started).toISOString(),timestamp:new Date(1e3*i.timestamp).toISOString(),status:i.status,errors:i.errors,did:"number"==typeof i.did||"string"==typeof i.did?`${i.did}`:void 0,duration:i.duration,abnormal_mechanism:i.abnormal_mechanism,attrs:{release:i.release,environment:i.environment,ip_address:i.ipAddress,user_agent:i.userAgent}})}(t)};return i&&a4(t,i),t}({release:s,environment:l,user:t.getUser(),...u&&{userAgent:u},...o}),y=t.getSession&&t.getSession();return y&&"ok"===y.status&&a4(y,{status:"exited"}),this.endSession(),t.setSession(p),p}shouldSendDefaultPii(){const o=this.getClient(),t=o&&o.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:o,client:t}=this.getStackTop(),r=o.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(o,...t){const s=q0().__SENTRY__;if(s&&s.extensions&&"function"==typeof s.extensions[o])return s.extensions[o].apply(this,t);Co&&un.warn(`Extension method ${o} couldn't be found, doing nothing.`)}}function q0(){return sa.__SENTRY__=sa.__SENTRY__||{extensions:{},hub:void 0},sa}function rie(i){const o=q0(),t=l4(o);return f$(o,i),t}function $m(){const i=q0();if(i.__SENTRY__&&i.__SENTRY__.acs){const o=i.__SENTRY__.acs.getCurrentHub();if(o)return o}return function aie(i=q0()){return(!function sie(i){return!!(i&&i.__SENTRY__&&i.__SENTRY__.hub)}(i)||l4(i).isOlderThan(p$))&&f$(i,new h$),l4(i)}(i)}function g$(){return $m().getIsolationScope()}function l4(i){return Nne("hub",()=>new h$,i)}function f$(i,o){return!!i&&((i.__SENTRY__=i.__SENTRY__||{}).hub=o,!0)}function bC(i){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;const o=jd(),t=i||o&&o.getOptions();return!!t&&(t.enableTracing||"tracesSampleRate"in t||"tracesSampler"in t)}function lie(i){if(!bC())return;const o=function d4(i){if(i.startTime){const o={...i};return o.startTimestamp=n4(i.startTime),delete o.startTime,o}return i}(i),t=$m(),r=i.scope?i.scope.getSpan():m$();if(i.onlyIfParent&&!r)return;const u=(i.scope||lh()).clone();return function c4(i,{parentSpan:o,spanContext:t,forceTransaction:r,scope:s}){if(!bC())return;const l=g$();let u;if(o&&!r)u=o.startChild(t);else if(o){const p=_C(o),{traceId:y,spanId:A}=o.spanContext(),w=a$(o);u=i.startTransaction({traceId:y,parentSpanId:A,parentSampled:w,...t,metadata:{dynamicSamplingContext:p,...t.metadata}})}else{const{traceId:p,dsc:y,parentSpanId:A,sampled:w}={...l.getPropagationContext(),...s.getPropagationContext()};u=i.startTransaction({traceId:p,parentSpanId:A,parentSampled:w,...t,metadata:{dynamicSamplingContext:y,...t.metadata}})}return s.setSpan(u),function Uit(i,o,t){i&&(t$(i,die,t),t$(i,cie,o))}(u,s,l),u}(t,{parentSpan:r,spanContext:o,forceTransaction:i.forceTransaction,scope:u})}function m$(){return lh().getSpan()}const cie="_sentryScope",die="_sentryIsolationScope";class uie extends r4{constructor(o,t){super(o),this._contexts={},this._hub=t||$m(),this._name=o.name||"",this._metadata={...o.metadata},this._trimEnd=o.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(o){this.setName(o)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[Hm]&&{source:this._attributes[Hm]},...this._attributes[fC]&&{sampleRate:this._attributes[fC]}}}set metadata(o){this._metadata=o}setName(o,t="custom"){this._name=o,this.setAttribute(Hm,t)}updateName(o){return this._name=o,this}initSpanRecorder(o=1e3){this.spanRecorder||(this.spanRecorder=new Kne(o)),this.spanRecorder.add(this)}setContext(o,t){null===t?delete this._contexts[o]:this._contexts[o]=t}setMeasurement(o,t,r=""){this._measurements[o]={value:t,unit:r}}setMetadata(o){this._metadata={...this._metadata,...o}}end(o){const t=n4(o),r=this._finishTransaction(t);if(r)return this._hub.captureEvent(r)}toContext(){return Yd({...super.toContext(),name:this._name,trimEnd:this._trimEnd})}updateWithContext(o){return super.updateWithContext(o),this._name=o.name||"",this._trimEnd=o.trimEnd,this}getDynamicSamplingContext(){return _C(this)}setHub(o){this._hub=o}getProfileId(){if(void 0!==this._contexts&&void 0!==this._contexts.profile)return this._contexts.profile.profile_id}_finishTransaction(o){if(void 0!==this._endTime)return;this._name||(Co&&un.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>"),super.end(o);const t=this._hub.getClient();if(t&&t.emit&&t.emit("finishTransaction",this),!0!==this._sampled)return Co&&un.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),void(t&&t.recordDroppedEvent("sample_rate","transaction"));const r=this.spanRecorder?this.spanRecorder.spans.filter(w=>w!==this&&Es(w).timestamp):[];if(this._trimEnd&&r.length>0){const w=r.map(I=>Es(I).timestamp).filter(Boolean);this._endTime=w.reduce((I,P)=>I>P?I:P)}const{scope:s,isolationScope:l}=function Yit(i){return{scope:i[cie],isolationScope:i[die]}}(this),{metadata:u}=this,{source:p}=u,y={contexts:{...this._contexts,trace:r$(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...u,capturedSpanScope:s,capturedSpanIsolationScope:l,...Yd({dynamicSamplingContext:_C(this)})},_metrics_summary:void 0,...p&&{transaction_info:{source:p}}};return Object.keys(this._measurements).length>0&&(Co&&un.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),y.measurements=this._measurements),Co&&un.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),y}}const u4={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},vC=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Zit extends Kne{constructor(o,t,r,s){super(s),this._pushActivity=o,this._popActivity=t,this.transactionSpanId=r}add(o){if(o.spanContext().spanId!==this.transactionSpanId){const t=o.end;o.end=(...r)=>(this._popActivity(o.spanContext().spanId),t.apply(o,r)),void 0===Es(o).timestamp&&this._pushActivity(o.spanContext().spanId)}super.add(o)}}class Vit extends uie{constructor(o,t,r=u4.idleTimeout,s=u4.finalTimeout,l=u4.heartbeatInterval,u=!1,p=!1){super(o,t),this._idleHub=t,this._idleTimeout=r,this._finalTimeout=s,this._heartbeatInterval=l,this._onScope=u,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=vC[4],this._autoFinishAllowed=!p,u&&(Co&&un.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),t.getScope().setSpan(this)),p||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=vC[3],this.end())},this._finalTimeout)}end(o){const t=n4(o);if(this._finished=!0,this.activities={},"ui.action.click"===this.op&&this.setAttribute("finishReason",this._finishReason),this.spanRecorder){Co&&un.log("[Tracing] finishing IdleTransaction",new Date(1e3*t).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,t);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Es(r).timestamp||(r.setStatus("cancelled"),r.end(t),Co&&un.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:s,timestamp:l}=Es(r),u=s&&s<t,y=l&&s&&l-s<(this._finalTimeout+this._idleTimeout)/1e3;if(Co){const A=JSON.stringify(r,void 0,2);u?y||un.log("[Tracing] discarding Span since it finished after Transaction final timeout",A):un.log("[Tracing] discarding Span since it happened after Transaction was finished",A)}return u&&y}),Co&&un.log("[Tracing] flushing IdleTransaction")}else Co&&un.log("[Tracing] No active IdleTransaction");if(this._onScope){const r=this._idleHub.getScope();r.getTransaction()===this&&r.setSpan(void 0)}return super.end(o)}registerBeforeFinishCallback(o){this._beforeFinishCallbacks.push(o)}initSpanRecorder(o){this.spanRecorder||(this.spanRecorder=new Zit(s=>{this._finished||this._pushActivity(s)},s=>{this._finished||this._popActivity(s)},this.spanContext().spanId,o),Co&&un.log("Starting heartbeat"),this._pingHeartbeat()),this.spanRecorder.add(this)}cancelIdleTimeout(o,{restartOnChildSpanChange:t}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=!1===t,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,0===Object.keys(this.activities).length&&this._idleTimeoutCanceledPermanently&&(this._finishReason=vC[5],this.end(o)))}setFinishReason(o){this._finishReason=o}sendAutoFinishSignal(){this._autoFinishAllowed||(Co&&un.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(o){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&0===Object.keys(this.activities).length&&(this._finishReason=vC[1],this.end(o))},this._idleTimeout)}_pushActivity(o){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),Co&&un.log(`[Tracing] pushActivity: ${o}`),this.activities[o]=!0,Co&&un.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(o){if(this.activities[o]&&(Co&&un.log(`[Tracing] popActivity ${o}`),delete this.activities[o],Co&&un.log("[Tracing] new activities count",Object.keys(this.activities).length)),0===Object.keys(this.activities).length){const t=MS();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=vC[5],this.end(t)):this._restartIdleTimeout(t+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const o=Object.keys(this.activities).join("");o===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=o,this._heartbeatCounter>=3?this._autoFinishAllowed&&(Co&&un.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=vC[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){Co&&un.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}const _$="<anonymous>";function fie(i){try{return i&&"function"==typeof i&&i.name||_$}catch{return _$}}const yC={},mie={};function ES(i,o){yC[i]=yC[i]||[],yC[i].push(o)}function PS(i,o){mie[i]||(o(),mie[i]=!0)}function jg(i,o){const t=i&&yC[i];if(t)for(const r of t)try{r(o)}catch(s){wS&&un.error(`Error while triggering instrumentation handler.\nType: ${i}\nName: ${fie(r)}\nError:`,s)}}let p4=null;function Jit(){p4=sa.onerror,sa.onerror=function(i,o,t,r,s){return jg("error",{column:r,error:s,line:t,msg:i,url:o}),!(!p4||p4.__SENTRY_LOADER__)&&p4.apply(this,arguments)},sa.onerror.__SENTRY_INSTRUMENTED__=!0}let h4=null;function Wit(){h4=sa.onunhandledrejection,sa.onunhandledrejection=function(i){return jg("unhandledrejection",i),!(h4&&!h4.__SENTRY_LOADER__)||h4.apply(this,arguments)},sa.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function J0(i){return(i||$m()).getScope().getTransaction()}let _ie=!1;function b$(){const i=J0();if(i){const o="internal_error";Co&&un.log(`[Tracing] Transaction: ${o} -> Global error occured`),i.setStatus(o)}}function bie(i,o,t){if(!bC(o))return i.sampled=!1,i;if(void 0!==i.sampled)return i.setAttribute(fC,Number(i.sampled)),i;let r;return"function"==typeof o.tracesSampler?(r=o.tracesSampler(t),i.setAttribute(fC,Number(r))):void 0!==t.parentSampled?r=t.parentSampled:typeof o.tracesSampleRate<"u"?(r=o.tracesSampleRate,i.setAttribute(fC,Number(r))):(r=1,i.setAttribute(fC,r)),vie(r)?r?(i.sampled=Math.random()<r,i.sampled?(Co&&un.log(`[Tracing] starting ${i.op} transaction - ${Es(i).description}`),i):(Co&&un.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(r)})`),i)):(Co&&un.log("[Tracing] Discarding transaction because "+("function"==typeof o.tracesSampler?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0")),i.sampled=!1,i):(Co&&un.warn("[Tracing] Discarding transaction because of invalid sample rate."),i.sampled=!1,i)}function vie(i){return function hit(i){return"number"==typeof i&&i!=i}(i)||"number"!=typeof i&&"boolean"!=typeof i?(Co&&un.warn(`[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),!1):!(i<0||i>1)||(Co&&un.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${i}.`),!1)}function Xit(){const o=this.getScope().getSpan();return o?{"sentry-trace":t4(o)}:{}}function eot(i,o){const t=this.getClient(),r=t&&t.getOptions()||{},s=r.instrumenter||"sentry",l=i.instrumenter||"sentry";s!==l&&(Co&&un.error(`A transaction was started with instrumenter=\`${l}\`, but the SDK is configured with the \`${s}\` instrumenter.\nThe transaction will not be sampled. Please use the ${s} instrumentation to start transactions.`),i.sampled=!1);let u=new uie(i,this);return u=bie(u,r,{name:i.name,parentSampled:i.parentSampled,transactionContext:i,attributes:{...i.data,...i.attributes},...o}),u.isRecording()&&u.initSpanRecorder(r._experiments&&r._experiments.maxSpans),t&&t.emit&&t.emit("startTransaction",u),u}function yie(i,o,t,r,s,l,u,p=!1){const y=i.getClient(),A=y&&y.getOptions()||{};let w=new Vit(o,i,t,r,u,s,p);return w=bie(w,A,{name:o.name,parentSampled:o.parentSampled,transactionContext:o,attributes:{...o.data,...o.attributes},...l}),w.isRecording()&&w.initSpanRecorder(A._experiments&&A._experiments.maxSpans),y&&y.emit&&y.emit("startTransaction",w),w}b$.tag="sentry_tracingErrorCallback";const g4=WH(),OS=sa;let f4;function oot(){if(!function not(){const i=g4.chrome;return!(i&&i.app&&i.app.runtime||!("history"in g4)||!g4.history.pushState||!g4.history.replaceState)}())return;const i=OS.onpopstate;function o(t){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const l=f4,u=String(s);f4=u,jg("history",{from:l,to:u})}return t.apply(this,r)}}OS.onpopstate=function(...t){const r=OS.location.href,s=f4;if(f4=r,jg("history",{from:s,to:r}),i)try{return i.apply(this,t)}catch{}},z0(OS.history,"pushState",o),z0(OS.history,"replaceState",o)}const CC=WH();function m4(i,o={}){if(!i)return"<unknown>";try{let t=i;const r=5,s=[];let l=0,u=0;const p=" > ",y=p.length;let A;const w=Array.isArray(o)?o:o.keyAttrs,I=!Array.isArray(o)&&o.maxStringLength||80;for(;t&&l++<r&&(A=aot(t,w),!("html"===A||l>1&&u+s.length*y+A.length>=I));)s.push(A),u+=A.length,t=t.parentNode;return s.reverse().join(p)}catch{return"<unknown>"}}function aot(i,o){const t=i,r=[];let s,l,u,p,y;if(!t||!t.tagName)return"";if(CC.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;r.push(t.tagName.toLowerCase());const A=o&&o.length?o.filter(I=>t.getAttribute(I)).map(I=>[I,t.getAttribute(I)]):null;if(A&&A.length)A.forEach(I=>{r.push(`[${I[0]}="${I[1]}"]`)});else if(t.id&&r.push(`#${t.id}`),s=t.className,s&&Bm(s))for(l=s.split(/\s+/),y=0;y<l.length;y++)r.push(`.${l[y]}`);const w=["aria-label","type","name","title","alt"];for(y=0;y<w.length;y++)u=w[y],p=t.getAttribute(u),p&&r.push(`[${u}="${p}"]`);return r.join("")}function lot(i){if(!CC.HTMLElement)return null;let o=i;for(let r=0;r<5;r++){if(!o)return null;if(o instanceof HTMLElement&&o.dataset.sentryComponent)return o.dataset.sentryComponent;o=o.parentNode}return null}const Zr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,vi=sa,NS=(i,o,t)=>{let r,s;return l=>{o.value>=0&&(l||t)&&(s=o.value-(r||0),(s||void 0===r)&&(r=o.value,o.delta=s,i(o)))}},_4=()=>vi.__WEB_VITALS_POLYFILL__?vi.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||(()=>{const i=vi.performance.timing,o=vi.performance.navigation.type,t={entryType:"navigation",startTime:0,type:2==o?"back_forward":1===o?"reload":"navigate"};for(const r in i)"navigationStart"!==r&&"toJSON"!==r&&(t[r]=Math.max(i[r]-i.navigationStart,0));return t})()):vi.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],v$=()=>{const i=_4();return i&&i.activationStart||0},LS=(i,o)=>{const t=_4();let r="navigate";return t&&(r=vi.document&&vi.document.prerendering||v$()>0?"prerender":t.type.replace(/_/g,"-")),{name:i,value:typeof o>"u"?-1:o,rating:"good",delta:0,entries:[],id:`v3-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},AC=(i,o,t)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(i)){const r=new PerformanceObserver(s=>{o(s.getEntries())});return r.observe(Object.assign({type:i,buffered:!0},t||{})),r}}catch{}},RS=(i,o)=>{const t=r=>{("pagehide"===r.type||"hidden"===vi.document.visibilityState)&&(i(r),o&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};vi.document&&(addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0))};let b4=-1;const y$=()=>(b4<0&&(vi.document&&vi.document.visibilityState&&(b4="hidden"!==vi.document.visibilityState||vi.document.prerendering?1/0:0),RS(({timeStamp:i})=>{b4=i},!0)),{get firstHiddenTime(){return b4}});let Cie=0,C$=1/0,v4=0;const mot=i=>{i.forEach(o=>{o.interactionId&&(C$=Math.min(C$,o.interactionId),v4=Math.max(v4,o.interactionId),Cie=v4?(v4-C$)/7+1:0)})};let A$;const Aie=()=>A$?Cie:performance.interactionCount||0,Zg=[],x$={},Tie=i=>{const t=x$[i.interactionId];if(t||Zg.length<10||i.duration>Zg[Zg.length-1].latency){if(t)t.entries.push(i),t.latency=Math.max(t.latency,i.duration);else{const r={id:i.interactionId,latency:i.duration,entries:[i]};x$[r.id]=r,Zg.push(r)}Zg.sort((r,s)=>s.latency-r.latency),Zg.splice(10).forEach(r=>{delete x$[r.id]})}},Sie={},T$=i=>{!vi.document||(vi.document.prerendering?addEventListener("prerenderingchange",()=>T$(i),!0):"complete"!==vi.document.readyState?addEventListener("load",()=>T$(i),!0):setTimeout(i,0))},FS={},y4={};let wie,Mie,Die,kie,Iie;function Eie(i,o=!1){return BS("lcp",i,kot,Die,o)}function xC(i,o){return Pie(i,o),y4[i]||(function Pot(i){const o={};"event"===i&&(o.durationThreshold=0),AC(i,t=>{TC(i,{entries:t})},o)}(i),y4[i]=!0),Oie(i,o)}function TC(i,o){const t=FS[i];if(t&&t.length)for(const r of t)try{r(o)}catch(s){Zr&&un.error(`Error while triggering instrumentation handler.\nType: ${i}\nName: ${fie(r)}\nError:`,s)}}function Mot(){return((i,o={})=>{const t=LS("CLS",0);let r,s=0,l=[];const u=y=>{y.forEach(A=>{if(!A.hadRecentInput){const w=l[0],I=l[l.length-1];s&&0!==l.length&&A.startTime-I.startTime<1e3&&A.startTime-w.startTime<5e3?(s+=A.value,l.push(A)):(s=A.value,l=[A]),s>t.value&&(t.value=s,t.entries=l,r&&r())}})},p=AC("layout-shift",u);if(p){r=NS(i,t,o.reportAllChanges);const y=()=>{u(p.takeRecords()),r(!0)};return RS(y),y}})(i=>{TC("cls",{metric:i}),wie=i},{reportAllChanges:!0})}function Dot(){return(i=>{const o=y$(),t=LS("FID");let r;const s=p=>{p.startTime<o.firstHiddenTime&&(t.value=p.processingStart-p.startTime,t.entries.push(p),r(!0))},l=p=>{p.forEach(s)},u=AC("first-input",l);r=NS(i=>{TC("fid",{metric:i}),Mie=i},t),u&&RS(()=>{l(u.takeRecords()),u.disconnect()},!0)})()}function kot(){return(i=>{const o=y$(),t=LS("LCP");let r;const s=u=>{const p=u[u.length-1];if(p){const y=Math.max(p.startTime-v$(),0);y<o.firstHiddenTime&&(t.value=y,t.entries=[p],r())}},l=AC("largest-contentful-paint",s);if(l){r=NS(i=>{TC("lcp",{metric:i}),Die=i},t);const u=()=>{Sie[t.id]||(s(l.takeRecords()),l.disconnect(),Sie[t.id]=!0,r(!0))};return["keydown","click"].forEach(p=>{vi.document&&addEventListener(p,u,{once:!0,capture:!0})}),RS(u,!0),u}})()}function Iot(){return((i,o)=>{o=o||{};const t=LS("TTFB"),r=NS(i=>{TC("ttfb",{metric:i}),kie=i},t,o.reportAllChanges);T$(()=>{const s=_4();if(s){if(t.value=Math.max(s.responseStart-v$(),0),t.value<0||t.value>performance.now())return;t.entries=[s],r(!0)}})})()}function Eot(){return((i,o)=>{o=o||{},"interactionCount"in performance||A$||(A$=AC("event",mot,{type:"event",buffered:!0,durationThreshold:0}));const t=LS("INP");let r;const s=u=>{u.forEach(y=>{y.interactionId&&Tie(y),"first-input"===y.entryType&&!Zg.some(w=>w.entries.some(I=>y.duration===I.duration&&y.startTime===I.startTime))&&Tie(y)});const p=(()=>{const i=Math.min(Zg.length-1,Math.floor(Aie()/50));return Zg[i]})();p&&p.latency!==t.value&&(t.value=p.latency,t.entries=p.entries,r())},l=AC("event",s,{durationThreshold:o.durationThreshold||40});r=NS(i,t,o.reportAllChanges),l&&(l.observe({type:"first-input",buffered:!0}),RS(()=>{s(l.takeRecords()),t.value<0&&Aie()>0&&(t.value=0,t.entries=[]),r(!0)}))})(i=>{TC("inp",{metric:i}),Iie=i})}function BS(i,o,t,r,s=!1){let l;return Pie(i,o),y4[i]||(l=t(),y4[i]=!0),r&&o({metric:r}),Oie(i,o,s?l:void 0)}function Pie(i,o){FS[i]=FS[i]||[],FS[i].push(o)}function Oie(i,o,t){return()=>{t&&t();const r=FS[i];if(!r)return;const s=r.indexOf(o);-1!==s&&r.splice(s,1)}}function jot(i){return[{type:"span"},i]}function C4(i){if(!i)return{};const o=i.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!o)return{};const t=o[6]||"",r=o[8]||"";return{host:o[4],path:o[5],protocol:o[2],search:t,hash:r,relative:o[5]+t+r}}function w$(i){return"number"==typeof i&&isFinite(i)}function SC(i,{startTimestamp:o,...t}){return o&&i.startTimestamp>o&&(i.startTimestamp=o),i.startChild({startTimestamp:o,...t})}function as(i){return i/1e3}function M$(){return vi&&vi.addEventListener&&vi.performance}let ch,HS,Lie=0,ya={};const Rie={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function A4(i,o,t,r,s,l){const u=l?o[l]:o[`${t}End`],p=o[`${t}Start`];!p||!u||SC(i,{op:"browser",origin:"auto.browser.browser.metrics",description:s||t,startTimestamp:r+as(p),endTimestamp:r+as(u)})}function D$(i,o,t,r){const s=o[t];null!=s&&s<2147483647&&(i[r]=s)}const x4=WH();function Bie(i){return i&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(i.toString())}function prt(){!function drt(){if("string"==typeof EdgeRuntime)return!0;if(!function Fie(){if(!("fetch"in x4))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(Bie(x4.fetch))return!0;let i=!1;const o=x4.document;if(o&&"function"==typeof o.createElement)try{const t=o.createElement("iframe");t.hidden=!0,o.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(i=Bie(t.contentWindow.fetch)),o.head.removeChild(t)}catch(t){wS&&un.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i}()||z0(sa,"fetch",function(i){return function(...o){const{method:t,url:r}=function hrt(i){if(0===i.length)return{method:"GET",url:""};if(2===i.length){const[t,r]=i;return{url:Hie(t),method:k$(r,"method")?String(r.method).toUpperCase():"GET"}}const o=i[0];return{url:Hie(o),method:k$(o,"method")?String(o.method).toUpperCase():"GET"}}(o),s={args:o,fetchData:{method:t,url:r},startTimestamp:Date.now()};return jg("fetch",{...s}),i.apply(sa,o).then(l=>(jg("fetch",{...s,endTimestamp:Date.now(),response:l}),l),l=>{throw jg("fetch",{...s,endTimestamp:Date.now(),error:l}),l})}})}function k$(i,o){return!!i&&"object"==typeof i&&!!i[o]}function Hie(i){return"string"==typeof i?i:i?k$(i,"url")?i.url:i.toString?i.toString():"":""}const grt=sa,$S="__sentry_xhr_v3__";function mrt(){if(!grt.XMLHttpRequest)return;const i=XMLHttpRequest.prototype;z0(i,"open",function(o){return function(...t){const r=Date.now(),s=Bm(t[0])?t[0].toUpperCase():void 0,l=function _rt(i){if(Bm(i))return i;try{return i.toString()}catch{}}(t[1]);if(!s||!l)return o.apply(this,t);this[$S]={method:s,url:l,request_headers:{}},"POST"===s&&l.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const p=this[$S];if(p&&4===this.readyState){try{p.status_code=this.status}catch{}jg("xhr",{args:[s,l],endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?z0(this,"onreadystatechange",function(p){return function(...y){return u(),p.apply(this,y)}}):this.addEventListener("readystatechange",u),z0(this,"setRequestHeader",function(p){return function(...y){const[A,w]=y,I=this[$S];return I&&Bm(A)&&Bm(w)&&(I.request_headers[A.toLowerCase()]=w),p.apply(this,y)}}),o.apply(this,t)}}),z0(i,"send",function(o){return function(...t){const r=this[$S];return r?(void 0!==t[0]&&(r.body=t[0]),jg("xhr",{args:[r.method,r.url],startTimestamp:Date.now(),xhr:this}),o.apply(this,t)):o.apply(this,t)}})}const I$=["localhost",/^\/(?!\/)/],E$={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:I$,tracePropagationTargets:I$};function Trt(i){const{traceFetch:o,traceXHR:t,tracePropagationTargets:r,tracingOrigins:s,shouldCreateSpanForRequest:l,enableHTTPTimings:u}={traceFetch:E$.traceFetch,traceXHR:E$.traceXHR,...i},p="function"==typeof l?l:w=>!0,y=w=>function Drt(i,o){return function vrt(i,o=[],t=!1){return o.some(r=>function brt(i,o,t=!1){return!!Bm(i)&&(function pit(i){return gC(i,"RegExp")}(o)?o.test(i):!!Bm(o)&&(t?i===o:i.includes(o)))}(i,r,t))}(i,o||I$)}(w,r||s),A={};o&&function urt(i){const o="fetch";ES(o,i),PS(o,prt)}(w=>{const I=function yrt(i,o,t,r,s="auto.http.browser"){if(!bC()||!i.fetchData)return;const l=o(i.fetchData.url);if(i.endTimestamp&&l){const F=i.fetchData.__span;if(!F)return;const V=r[F];return void(V&&(function xrt(i,o){if(o.response){s$(i,o.response.status);const t=o.response&&o.response.headers&&o.response.headers.get("content-length");if(t){const r=parseInt(t);r>0&&i.setAttribute("http.response_content_length",r)}}else o.error&&i.setStatus("internal_error");i.end()}(V,i),delete r[F]))}const u=lh(),p=jd(),{method:y,url:A}=i.fetchData,w=function Art(i){try{return new URL(i).href}catch{return}}(A),I=w?C4(w).host:void 0,P=l?lie({name:`${y} ${A}`,onlyIfParent:!0,attributes:{url:A,type:"fetch","http.method":y,"http.url":w,"server.address":I,[mC]:s},op:"http.client"}):void 0;if(P&&(i.fetchData.__span=P.spanContext().spanId,r[P.spanContext().spanId]=P),t(i.fetchData.url)&&p){const F=i.args[0];i.args[1]=i.args[1]||{};const V=i.args[1];V.headers=function Crt(i,o,t,r,s){const l=s||t.getSpan(),u=g$(),{traceId:p,spanId:y,sampled:A,dsc:w}={...u.getPropagationContext(),...t.getPropagationContext()},I=l?t4(l):o$(p,y,A),P=jne(w||(l?_C(l):u$(p,o,t))),F=r.headers||(typeof Request<"u"&&DS(i,Request)?i.headers:void 0);if(F){if(typeof Headers<"u"&&DS(F,Headers)){const V=new Headers(F);return V.append("sentry-trace",I),P&&V.append(i$,P),V}if(Array.isArray(F)){const V=[...F,["sentry-trace",I]];return P&&V.push([i$,P]),V}{const V="baggage"in F?F.baggage:void 0,oe=[];return Array.isArray(V)?oe.push(...V):V&&oe.push(V),P&&oe.push(P),{...F,"sentry-trace":I,baggage:oe.length>0?oe.join(","):void 0}}}return{"sentry-trace":I,baggage:P}}(F,p,u,V,P)}return P}(w,p,y,A);if(I){const P=Uie(w.fetchData.url),F=P?C4(P).host:void 0;I.setAttributes({"http.url":P,"server.address":F})}u&&I&&$ie(I)}),t&&function frt(i){ES("xhr",i),PS("xhr",mrt)}(w=>{const I=function krt(i,o,t,r){const s=i.xhr,l=s&&s[$S];if(!bC()||!s||s.__sentry_own_request__||!l)return;const u=o(l.url);if(i.endTimestamp&&u){const F=s.__sentry_xhr_span_id__;if(!F)return;const V=r[F];return void(V&&void 0!==l.status_code&&(s$(V,l.status_code),V.end(),delete r[F]))}const p=lh(),y=g$(),A=Uie(l.url),w=A?C4(A).host:void 0,I=u?lie({name:`${l.method} ${l.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":l.method,"http.url":A,url:l.url,"server.address":w,[mC]:"auto.http.browser"},op:"http.client"}):void 0;I&&(s.__sentry_xhr_span_id__=I.spanContext().spanId,r[s.__sentry_xhr_span_id__]=I);const P=jd();if(s.setRequestHeader&&t(l.url)&&P){const{traceId:F,spanId:V,sampled:oe,dsc:Ae}={...y.getPropagationContext(),...p.getPropagationContext()};!function Irt(i,o,t){try{i.setRequestHeader("sentry-trace",o),t&&i.setRequestHeader(i$,t)}catch{}}(s,I?t4(I):o$(F,V,oe),jne(Ae||(I?_C(I):u$(F,P,p))))}return I}(w,p,y,A);u&&I&&$ie(I)})}function $ie(i){const{url:o}=Es(i).data||{};if(!o||"string"!=typeof o)return;const t=xC("resource",({entries:r})=>{r.forEach(s=>{(function Srt(i){return"resource"===i.entryType&&"initiatorType"in i&&"string"==typeof i.nextHopProtocol&&("fetch"===i.initiatorType||"xmlhttprequest"===i.initiatorType)})(s)&&s.name.endsWith(o)&&(function Mrt(i){const{name:o,version:t}=function wrt(i){let o="unknown",t="unknown",r="";for(const s of i){if("/"===s){[o,t]=i.split("/");break}if(!isNaN(Number(s))){o="h"===r?"http":r,t=i.split(r)[1];break}r+=s}return r===i&&(o=r),{name:o,version:t}}(i.nextHopProtocol),r=[];return r.push(["network.protocol.version",t],["network.protocol.name",o]),Ud?[...r,["http.request.redirect_start",dh(i.redirectStart)],["http.request.fetch_start",dh(i.fetchStart)],["http.request.domain_lookup_start",dh(i.domainLookupStart)],["http.request.domain_lookup_end",dh(i.domainLookupEnd)],["http.request.connect_start",dh(i.connectStart)],["http.request.secure_connection_start",dh(i.secureConnectionStart)],["http.request.connection_end",dh(i.connectEnd)],["http.request.request_start",dh(i.requestStart)],["http.request.response_start",dh(i.responseStart)],["http.request.response_end",dh(i.responseEnd)]]:r}(s).forEach(u=>i.setAttribute(...u)),setTimeout(t))})})}function dh(i=0){return((Ud||performance.timeOrigin)+i)/1e3}function Uie(i){try{return new URL(i,vi.location.origin).href}catch{return}}const Prt={...u4,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroundSpan:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...E$},Ort=(i={})=>{const o=!(!Zr||!i.tracePropagationTargets&&!i.tracingOrigins);(function tot(){const i=q0();!i.__SENTRY__||(i.__SENTRY__.extensions=i.__SENTRY__.extensions||{},i.__SENTRY__.extensions.startTransaction||(i.__SENTRY__.extensions.startTransaction=eot),i.__SENTRY__.extensions.traceHeaders||(i.__SENTRY__.extensions.traceHeaders=Xit),function Kit(){_ie||(_ie=!0,function qit(i){const o="error";ES(o,i),PS(o,Jit)}(b$),function Qit(i){const o="unhandledrejection";ES(o,i),PS(o,Wit)}(b$))}())})(),!i.tracePropagationTargets&&i.tracingOrigins&&(i.tracePropagationTargets=i.tracingOrigins);const t={...Prt,...i},r=function zot(){const i=M$();if(i&&Ud){i.mark&&vi.performance.mark("sentry-tracing-init");const o=function Kot(){return function Sot(i){return BS("fid",i,Dot,Mie)}(({metric:i})=>{const o=i.entries[i.entries.length-1];if(!o)return;const t=as(Ud),r=as(o.startTime);Zr&&un.log("[Measurements] Adding FID"),ya.fid={value:i.value,unit:"millisecond"},ya["mark.fid"]={value:t+r,unit:"second"}})}(),t=function Qot(){return function xot(i,o=!1){return BS("cls",i,Mot,wie,o)}(({metric:i})=>{const o=i.entries[i.entries.length-1];!o||(Zr&&un.log("[Measurements] Adding CLS"),ya.cls={value:i.value,unit:""},HS=o)},!0)}(),r=function Wot(){return Eie(({metric:i})=>{const o=i.entries[i.entries.length-1];!o||(Zr&&un.log("[Measurements] Adding LCP"),ya.lcp={value:i.value,unit:"millisecond"},ch=o)},!0)}(),s=function Xot(){return function Tot(i){return BS("ttfb",i,Iot,kie)}(({metric:i})=>{!i.entries[i.entries.length-1]||(Zr&&un.log("[Measurements] Adding TTFB"),ya.ttfb={value:i.value,unit:"millisecond"})})}();return()=>{o(),t(),r(),s()}}return()=>{}}(),s={};t.enableInp&&function Jot(i,o){if(M$()&&Ud){const r=function ert(i,o){return function wot(i){return BS("inp",i,Eot,Iie)}(({metric:t})=>{if(void 0===t.value)return;const r=t.entries.find(Be=>Be.duration===t.value&&void 0!==Rie[Be.name]),s=jd();if(!r||!s)return;const l=Rie[r.name],u=s.getOptions(),p=as(Ud+r.startTime),y=as(t.value),A=void 0!==r.interactionId?i[r.interactionId]:void 0;if(void 0===A)return;const{routeName:w,parentContext:I,activeTransaction:P,user:F,replayId:V}=A,oe=void 0!==F?F.email||F.id||F.ip_address:void 0,Ae=void 0!==P?P.getProfileId():void 0,ue=new r4({startTimestamp:p,endTimestamp:p+y,op:`ui.interaction.${l}`,name:m4(r.target),attributes:{release:u.release,environment:u.environment,transaction:w,...void 0!==oe&&""!==oe?{user:oe}:{},...void 0!==Ae?{profile_id:Ae}:{},...void 0!==V?{replay_id:V}:{}},exclusiveTime:t.value,measurements:{inp:{value:t.value,unit:"millisecond"}}}),Se=function crt(i,o,t){if(!bC(o))return!1;let r;return r=void 0!==i&&"function"==typeof o.tracesSampler?o.tracesSampler({transactionContext:i,name:i.name,parentSampled:i.parentSampled,attributes:{...i.data,...i.attributes},location:vi.location}):void 0!==i&&void 0!==i.sampled?i.sampled:typeof o.tracesSampleRate<"u"?o.tracesSampleRate:1,vie(r)?!0===r?t:!1===r?0:r*t:(Zr&&un.warn("[Tracing] Discarding interaction span because of invalid sample rate."),!1)}(I,u,o);if(Se&&Math.random()<Se){const Be=ue?function Yot(i,o){const t={sent_at:(new Date).toISOString()};return o&&(t.dsn=function Lot(i,o=!1){const{host:t,path:r,pass:s,port:l,projectId:u,protocol:p,publicKey:y}=i;return`${p}://${y}${o&&s?`:${s}`:""}@${t}${l?`:${l}`:""}/${r&&`${r}/`}${u}`}(o)),function Bot(i,o=[]){return[i,o]}(t,i.map(jot))}([ue],s.getDsn()):void 0,Me=s&&s.getTransport();Me&&Be&&Me.send(Be).then(null,He=>{Zr&&un.error("Error while sending interaction:",He)})}})}(i,o);return()=>{r()}}return()=>{}}(s,t.interactionsSampleRate),t.enableLongTask&&function Got(){xC("longtask",({entries:i})=>{for(const o of i){const t=J0();if(!t)return;const r=as(Ud+o.startTime),s=as(o.duration);t.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s})}})}(),t._experiments.enableInteractions&&function qot(){xC("event",({entries:i})=>{for(const o of i){const t=J0();if(!t)return;if("click"===o.name){const r=as(Ud+o.startTime),s=as(o.duration),l={description:m4(o.target),op:`ui.interaction.${o.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+s},u=lot(o.target);u&&(l.attributes={"ui.component_name":u}),t.startChild(l)}}})}();const l={name:void 0,context:void 0};function u(p){const y=$m(),{beforeStartSpan:A,idleTimeout:w,finalTimeout:I,heartbeatInterval:P}=t,F="pageload"===p.op;let V;if(F){const Se=F?Yie("sentry-trace"):"",Be=F?Yie("baggage"):void 0,{traceId:Me,dsc:He,parentSpanId:Ye,sampled:Le}=Tit(Se,Be);V={traceId:Me,parentSpanId:Ye,parentSampled:Le,...p,metadata:{...p.metadata,dynamicSamplingContext:He},trimEnd:!0}}else V={trimEnd:!0,...p};const oe=A?A(V):V;oe.metadata=oe.name!==V.name?{...oe.metadata,source:"custom"}:oe.metadata,l.name=oe.name,l.context=oe,!1===oe.sampled&&Zr&&un.log(`[Tracing] Will not send ${oe.op} transaction because of beforeNavigate.`),Zr&&un.log(`[Tracing] Starting ${oe.op} transaction on scope`);const{location:Ae}=vi,ue=yie(y,oe,w,I,!0,{location:Ae},P,F);return F&&vi.document&&(vi.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(vi.document.readyState)&&ue.sendAutoFinishSignal()}),["interactive","complete"].includes(vi.document.readyState)&&ue.sendAutoFinishSignal()),ue.registerBeforeFinishCallback(Se=>{r(),function trt(i){const o=M$();if(!o||!vi.performance.getEntries||!Ud)return;Zr&&un.log("[Tracing] Adding & adjusting spans using Performance API");const t=as(Ud),r=o.getEntries(),{op:s,start_timestamp:l}=Es(i);if(r.slice(Lie).forEach(u=>{const p=as(u.startTime),y=as(u.duration);if(!("navigation"===i.op&&l&&t+p<l))switch(u.entryType){case"navigation":!function irt(i,o,t){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{A4(i,o,r,t)}),A4(i,o,"secureConnection",t,"TLS/SSL","connectEnd"),A4(i,o,"fetch",t,"cache","domainLookupStart"),A4(i,o,"domainLookup",t,"DNS"),function ort(i,o,t){o.responseEnd&&(SC(i,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:t+as(o.requestStart),endTimestamp:t+as(o.responseEnd)}),SC(i,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:t+as(o.responseStart),endTimestamp:t+as(o.responseEnd)}))}(i,o,t)}(i,u,t);break;case"mark":case"paint":case"measure":{!function nrt(i,o,t,r,s){const l=s+t;SC(i,{description:o.name,endTimestamp:l+r,op:o.entryType,origin:"auto.resource.browser.metrics",startTimestamp:l})}(i,u,p,y,t);const A=y$(),w=u.startTime<A.firstHiddenTime;"first-paint"===u.name&&w&&(Zr&&un.log("[Measurements] Adding FP"),ya.fp={value:u.startTime,unit:"millisecond"}),"first-contentful-paint"===u.name&&w&&(Zr&&un.log("[Measurements] Adding FCP"),ya.fcp={value:u.startTime,unit:"millisecond"});break}case"resource":!function rrt(i,o,t,r,s,l){if("xmlhttprequest"===o.initiatorType||"fetch"===o.initiatorType)return;const u=C4(t),p={};D$(p,o,"transferSize","http.response_transfer_size"),D$(p,o,"encodedBodySize","http.response_content_length"),D$(p,o,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in o&&(p["resource.render_blocking_status"]=o.renderBlockingStatus),u.protocol&&(p["url.scheme"]=u.protocol.split(":").pop()),u.host&&(p["server.address"]=u.host),p["url.same_origin"]=t.includes(vi.location.origin);const y=l+r,A=y+s;SC(i,{description:t.replace(vi.location.origin,""),endTimestamp:A,op:o.initiatorType?`resource.${o.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:y,data:p})}(i,u,u.name,p,y,t)}}),Lie=Math.max(r.length-1,0),function art(i){const o=vi.navigator;if(!o)return;const t=o.connection;t&&(t.effectiveType&&i.setTag("effectiveConnectionType",t.effectiveType),t.type&&i.setTag("connectionType",t.type),w$(t.rtt)&&(ya["connection.rtt"]={value:t.rtt,unit:"millisecond"})),w$(o.deviceMemory)&&i.setTag("deviceMemory",`${o.deviceMemory} GB`),w$(o.hardwareConcurrency)&&i.setTag("hardwareConcurrency",String(o.hardwareConcurrency))}(i),"pageload"===s){(function lrt(i){const o=_4();if(!o)return;const{responseStart:t,requestStart:r}=o;r<=t&&(Zr&&un.log("[Measurements] Adding TTFB Request Time"),i["ttfb.requestTime"]={value:t-r,unit:"millisecond"})})(ya),["fcp","fp","lcp"].forEach(p=>{if(!ya[p]||!l||t>=l)return;const y=ya[p].value,A=t+as(y),w=Math.abs(1e3*(A-l));Zr&&un.log(`[Measurements] Normalized ${p} from ${y} to ${w} (${w-y})`),ya[p].value=w});const u=ya["mark.fid"];u&&ya.fid&&(SC(i,{description:"first input delay",endTimestamp:u.value+as(ya.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:u.value}),delete ya["mark.fid"]),"fcp"in ya||delete ya.cls,Object.keys(ya).forEach(p=>{!function Zot(i,o,t){const r=J0();r&&r.setMeasurement(i,o,t)}(p,ya[p].value,ya[p].unit)}),function srt(i){ch&&(Zr&&un.log("[Measurements] Adding LCP Data"),ch.element&&i.setTag("lcp.element",m4(ch.element)),ch.id&&i.setTag("lcp.id",ch.id),ch.url&&i.setTag("lcp.url",ch.url.trim().slice(0,200)),i.setTag("lcp.size",ch.size)),HS&&HS.sources&&(Zr&&un.log("[Measurements] Adding CLS Data"),HS.sources.forEach((o,t)=>i.setTag(`cls.source.${t+1}`,m4(o.node))))}(i)}ch=void 0,HS=void 0,ya={}}(Se)}),ue}return{name:"BrowserTracing",setupOnce:()=>{},afterAllSetup(p){const y=p.getOptions(),{markBackgroundSpan:A,traceFetch:w,traceXHR:I,shouldCreateSpanForRequest:P,enableHTTPTimings:F,_experiments:V}=t,oe=y&&y.tracePropagationTargets,Ae=oe||t.tracePropagationTargets;Zr&&o&&oe&&un.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.");let ue,Se=vi.location&&vi.location.href;p.on&&(p.on("startNavigationSpan",Be=>{ue&&(Zr&&un.log(`[Tracing] Finishing current transaction with op: ${Es(ue).op}`),ue.end()),ue=u({op:"navigation",...Be})}),p.on("startPageLoadSpan",Be=>{ue&&(Zr&&un.log(`[Tracing] Finishing current transaction with op: ${Es(ue).op}`),ue.end()),ue=u({op:"pageload",...Be})})),t.instrumentPageLoad&&p.emit&&vi.location&&function Nrt(i,o){if(!i.emit)return;i.emit("startPageLoadSpan",o);const t=m$();t&&Es(t)}(p,{name:vi.location.pathname,startTimestamp:Ud?Ud/1e3:void 0,origin:"auto.pageload.browser",attributes:{[Hm]:"url"}}),t.instrumentNavigation&&p.emit&&vi.location&&function iot(i){const o="history";ES(o,i),PS(o,oot)}(({to:Be,from:Me})=>{void 0===Me&&Se&&-1!==Se.indexOf(Be)?Se=void 0:Me!==Be&&(Se=void 0,function Lrt(i,o){if(!i.emit)return;i.emit("startNavigationSpan",o);const t=m$();t&&Es(t)}(p,{name:vi.location.pathname,origin:"auto.navigation.browser",attributes:{[Hm]:"url"}}))}),A&&function cot(){vi.document?vi.document.addEventListener("visibilitychange",()=>{const i=J0();if(vi.document.hidden&&i){const o="cancelled",{op:t,status:r}=Es(i);Zr&&un.log(`[Tracing] Transaction: ${o} -> since tab moved to the background, op: ${t}`),r||i.setStatus(o),i.setTag("visibilitychange","document.hidden"),i.end()}}):Zr&&un.warn("[Tracing] Could not set up background tab detection due to lack of global document")}(),V.enableInteractions&&function Rrt(i,o){let t;const r=()=>{const{idleTimeout:s,finalTimeout:l,heartbeatInterval:u}=i,p="ui.action.click",y=J0();if(y&&y.op&&["navigation","pageload"].includes(y.op))return void(Zr&&un.warn(`[Tracing] Did not create ${p} transaction because a pageload or navigation transaction is in progress.`));if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!o.name)return void(Zr&&un.warn(`[Tracing] Did not create ${p} transaction because _latestRouteName is missing.`));const{location:A}=vi,w={name:o.name,op:p,trimEnd:!0,data:{[Hm]:o.context?Hrt(o.context):"url"}};t=yie($m(),w,s,l,!0,{location:A},u)};["click"].forEach(s=>{vi.document&&addEventListener(s,r,{once:!1,capture:!0})})}(t,l),t.enableInp&&function Brt(i,o){const t=({entries:r})=>{const s=jd(),l=void 0!==s&&void 0!==s.getIntegrationByName?s.getIntegrationByName("Replay"):void 0,u=void 0!==l?l.getReplayId():void 0,p=J0(),y=lh(),A=void 0!==y?y.getUser():void 0;r.forEach(w=>{if(function Frt(i){return"duration"in i}(w)){const I=w.interactionId;if(void 0===I)return;const P=i[I],F=w.duration,V=w.startTime,oe=Object.keys(i),Ae=oe.length>0?oe.reduce((ue,Se)=>i[ue].duration<i[Se].duration?ue:Se):void 0;if("first-input"===w.entryType&&oe.map(Se=>i[Se]).some(Se=>Se.duration===F&&Se.startTime===V)||!I)return;if(P)P.duration=Math.max(P.duration,F);else if(oe.length<10||void 0===Ae||F>i[Ae].duration){const ue=o.name,Se=o.context;ue&&Se&&(Ae&&Object.keys(i).length>=10&&delete i[Ae],i[I]={routeName:ue,duration:F,parentContext:Se,user:A,activeTransaction:p,replayId:u,startTime:V})}}})};xC("event",t),xC("first-input",t)}(s,l),Trt({traceFetch:w,traceXHR:I,tracePropagationTargets:Ae,shouldCreateSpanForRequest:P,enableHTTPTimings:F})},options:t}};function Yie(i){const o=function sot(i){return CC.document&&CC.document.querySelector?CC.document.querySelector(i):null}(`meta[name=${i}]`);return o?o.getAttribute("content"):void 0}function Hrt(i){return i.attributes&&i.attributes[Hm]||i.data&&i.data[Hm]||i.metadata&&i.metadata.source}const $rt=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;typeof Zone<"u"&&Zone;let Zie,Qrt=!1;function P$(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}const zie=Object.prototype.toString;function wC(i,o){return zie.call(i)===`[object ${o}]`}function Q0(i){return wC(i,"String")}function O$(i){return wC(i,"Object")}function N$(i){return Boolean(i&&i.then&&"function"==typeof i.then)}function T4(i,o){try{return i instanceof o}catch{return!1}}function S4(i){return i&&i.Math==Math?i:void 0}const Fa="object"==typeof globalThis&&S4(globalThis)||"object"==typeof window&&S4(window)||"object"==typeof self&&S4(self)||"object"==typeof global&&S4(global)||function(){return this}()||{};function L$(){return Fa}function Gie(i,o,t){const r=t||Fa,s=r.__SENTRY__=r.__SENTRY__||{};return s[i]||(s[i]=o())}function Zc(){const o=Fa.crypto||Fa.msCrypto;let t=()=>16*Math.random();try{if(o&&o.randomUUID)return o.randomUUID().replace(/-/g,"");o&&o.getRandomValues&&(t=()=>{const r=new Uint8Array(1);return o.getRandomValues(r),r[0]})}catch{}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,r=>(r^(15&t())>>r/4).toString(16))}function w4(){return Date.now()/1e3}const Qie=function dat(){const{performance:i}=Fa;if(!i||!i.now)return w4;const o=Date.now()-i.now(),t=i.timeOrigin??o;return()=>(t+i.now())/1e3}();let M4;const uat=(()=>{const{performance:i}=Fa;if(!i||!i.now)return void(M4="none");const o=36e5,t=i.now(),r=Date.now(),s=i.timeOrigin?Math.abs(i.timeOrigin+t-r):o,l=s<o,u=i.timing&&i.timing.navigationStart,y="number"==typeof u?Math.abs(u+t-r):o;return l||y<o?s<=y?(M4="timeOrigin",i.timeOrigin):(M4="navigationStart",u):(M4="dateNow",r)})(),D4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wie=["debug","info","warn","error","log","assert","trace"],Kie={};function US(i){if(!("console"in Fa))return i();const o=Fa.console,t={},r=Object.keys(Kie);r.forEach(s=>{const l=Kie[s];t[s]=o[s],o[s]=l});try{return i()}finally{r.forEach(s=>{o[s]=t[s]})}}const Ki=function hat(){let i=!1;const o={enable:()=>{i=!0},disable:()=>{i=!1},isEnabled:()=>i};return Wie.forEach(D4?t=>{o[t]=(...r)=>{i&&US(()=>{Fa.console[t](`Sentry Logger [${t}]:`,...r)})}}:t=>{o[t]=()=>{}}),o}(),R$="production",k4=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var Vg;!function(i){i[i.PENDING=0]="PENDING",i[i.RESOLVED=1]="RESOLVED",i[i.REJECTED=2]="REJECTED"}(Vg||(Vg={}));class uh{constructor(o){uh.prototype.__init.call(this),uh.prototype.__init2.call(this),uh.prototype.__init3.call(this),uh.prototype.__init4.call(this),this._state=Vg.PENDING,this._handlers=[];try{o(this._resolve,this._reject)}catch(t){this._reject(t)}}then(o,t){return new uh((r,s)=>{this._handlers.push([!1,l=>{if(o)try{r(o(l))}catch(u){s(u)}else r(l)},l=>{if(t)try{r(t(l))}catch(u){s(u)}else s(l)}]),this._executeHandlers()})}catch(o){return this.then(t=>t,o)}finally(o){return new uh((t,r)=>{let s,l;return this.then(u=>{l=!1,s=u,o&&o()},u=>{l=!0,s=u,o&&o()}).then(()=>{l?r(s):t(s)})})}__init(){this._resolve=o=>{this._setResult(Vg.RESOLVED,o)}}__init2(){this._reject=o=>{this._setResult(Vg.REJECTED,o)}}__init3(){this._setResult=(o,t)=>{if(this._state===Vg.PENDING){if(N$(t))return void t.then(this._resolve,this._reject);this._state=o,this._value=t,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Vg.PENDING)return;const o=this._handlers.slice();this._handlers=[],o.forEach(t=>{t[0]||(this._state===Vg.RESOLVED&&t[1](this._value),this._state===Vg.REJECTED&&t[2](this._value),t[0]=!0)})}}}function F$(){return Gie("globalEventProcessors",()=>[])}function I4(i,o,t,r=0){return new uh((s,l)=>{const u=i[r];if(null===o||"function"!=typeof u)s(o);else{const p=u({...o},t);k4&&u.id&&null===p&&Ki.log(`Event processor "${u.id}" dropped event`),N$(p)?p.then(y=>I4(i,y,t,r+1).then(s)).then(null,l):I4(i,p,t,r+1).then(s).then(null,l)}})}const MC=L$();function B$(i,o={}){if(!i)return"<unknown>";try{let t=i;const r=5,s=[];let l=0,u=0;const p=" > ",y=p.length;let A;const w=Array.isArray(o)?o:o.keyAttrs,I=!Array.isArray(o)&&o.maxStringLength||80;for(;t&&l++<r&&(A=fat(t,w),!("html"===A||l>1&&u+s.length*y+A.length>=I));)s.push(A),u+=A.length,t=t.parentNode;return s.reverse().join(p)}catch{return"<unknown>"}}function fat(i,o){const t=i,r=[];let s,l,u,p,y;if(!t||!t.tagName)return"";if(MC.HTMLElement&&t instanceof HTMLElement&&t.dataset&&t.dataset.sentryComponent)return t.dataset.sentryComponent;r.push(t.tagName.toLowerCase());const A=o&&o.length?o.filter(I=>t.getAttribute(I)).map(I=>[I,t.getAttribute(I)]):null;if(A&&A.length)A.forEach(I=>{r.push(`[${I[0]}="${I[1]}"]`)});else if(t.id&&r.push(`#${t.id}`),s=t.className,s&&Q0(s))for(l=s.split(/\s+/),y=0;y<l.length;y++)r.push(`.${l[y]}`);const w=["aria-label","type","name","title","alt"];for(y=0;y<w.length;y++)u=w[y],p=t.getAttribute(u),p&&r.push(`[${u}="${p}"]`);return r.join("")}function ph(i,o,t){if(!(o in i))return;const r=i[o],s=t(r);"function"==typeof s&&function mat(i,o){try{i.prototype=o.prototype=o.prototype||{},H$(i,"__sentry_original__",o)}catch{}}(s,r),i[o]=s}function H$(i,o,t){try{Object.defineProperty(i,o,{value:t,writable:!0,configurable:!0})}catch{D4&&Ki.log(`Failed to add non-enumerable property "${o}" to object`,i)}}function eoe(i){try{return function nat(i){return typeof Element<"u"&&T4(i,Element)}(i)?B$(i):Object.prototype.toString.call(i)}catch{return"<unknown>"}}function toe(i){if("object"==typeof i&&null!==i){const o={};for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&(o[t]=i[t]);return o}return{}}function hh(i){return $$(i,new Map)}function $$(i,o){if(function _at(i){if(!O$(i))return!1;try{const o=Object.getPrototypeOf(i).constructor.name;return!o||"Object"===o}catch{return!0}}(i)){const t=o.get(i);if(void 0!==t)return t;const r={};o.set(i,r);for(const s of Object.keys(i))typeof i[s]<"u"&&(r[s]=$$(i[s],o));return r}if(Array.isArray(i)){const t=o.get(i);if(void 0!==t)return t;const r=[];return o.set(i,r),i.forEach(s=>{r.push($$(s,o))}),r}return i}function E4(i,o={}){if(o.user&&(!i.ipAddress&&o.user.ip_address&&(i.ipAddress=o.user.ip_address),!i.did&&!o.did&&(i.did=o.user.id||o.user.email||o.user.username)),i.timestamp=o.timestamp||Qie(),o.abnormal_mechanism&&(i.abnormal_mechanism=o.abnormal_mechanism),o.ignoreDuration&&(i.ignoreDuration=o.ignoreDuration),o.sid&&(i.sid=32===o.sid.length?o.sid:Zc()),void 0!==o.init&&(i.init=o.init),!i.did&&o.did&&(i.did=`${o.did}`),"number"==typeof o.started&&(i.started=o.started),i.ignoreDuration)i.duration=void 0;else if("number"==typeof o.duration)i.duration=o.duration;else{const t=i.timestamp-i.started;i.duration=t>=0?t:0}o.release&&(i.release=o.release),o.environment&&(i.environment=o.environment),!i.ipAddress&&o.ipAddress&&(i.ipAddress=o.ipAddress),!i.userAgent&&o.userAgent&&(i.userAgent=o.userAgent),"number"==typeof o.errors&&(i.errors=o.errors),o.status&&(i.status=o.status)}function noe(i){return i.transaction}function Aat(i){const{spanId:o,traceId:t}=i.spanContext(),{data:r,op:s,parent_span_id:l,status:u,tags:p,origin:y}=W0(i);return hh({data:r,op:s,parent_span_id:l,span_id:o,status:u,tags:p,trace_id:t,origin:y})}function W0(i){return function xat(i){return"function"==typeof i.getSpanJSON}(i)?i.getSpanJSON():"function"==typeof i.toJSON?i.toJSON():{}}function Sat(i){const o=Zs();if(!o)return{};const t=function Tat(i,o,t){const r=o.getOptions(),{publicKey:s}=o.getDsn()||{},{segment:l}=t&&t.getUser()||{},u=hh({environment:r.environment||R$,release:r.release,user_segment:l,public_key:s,trace_id:i});return o.emit&&o.emit("createDsc",u),u}(W0(i).trace_id||"",o,Um()),r=noe(i);if(!r)return t;const s=r&&r._frozenDynamicSamplingContext;if(s)return s;const{sampleRate:l,source:u}=r.metadata;null!=l&&(t.sample_rate=`${l}`);const p=W0(r);return u&&"url"!==u&&(t.transaction=p.description),t.sampled=String(function ooe(i){const{traceFlags:o}=i.spanContext();return Boolean(1&o)}(r)),o.emit&&o.emit("createDsc",t),t}function roe(i,o){const{fingerprint:t,span:r,breadcrumbs:s,sdkProcessingMetadata:l}=o;(function wat(i,o){const{extra:t,tags:r,user:s,contexts:l,level:u,transactionName:p}=o,y=hh(t);y&&Object.keys(y).length&&(i.extra={...y,...i.extra});const A=hh(r);A&&Object.keys(A).length&&(i.tags={...A,...i.tags});const w=hh(s);w&&Object.keys(w).length&&(i.user={...w,...i.user});const I=hh(l);I&&Object.keys(I).length&&(i.contexts={...I,...i.contexts}),u&&(i.level=u),p&&(i.transaction=p)})(i,o),r&&function kat(i,o){i.contexts={trace:Aat(o),...i.contexts};const t=noe(o);if(t){i.sdkProcessingMetadata={dynamicSamplingContext:Sat(o),...i.sdkProcessingMetadata};const r=W0(t).description;r&&(i.tags={transaction:r,...i.tags})}}(i,r),function Iat(i,o){i.fingerprint=i.fingerprint?function cat(i){return Array.isArray(i)?i:[i]}(i.fingerprint):[],o&&(i.fingerprint=i.fingerprint.concat(o)),i.fingerprint&&!i.fingerprint.length&&delete i.fingerprint}(i,t),function Mat(i,o){const t=[...i.breadcrumbs||[],...o];i.breadcrumbs=t.length?t:void 0}(i,s),function Dat(i,o){i.sdkProcessingMetadata={...i.sdkProcessingMetadata,...o}}(i,l)}function aoe(i,o){const{extra:t,tags:r,user:s,contexts:l,level:u,sdkProcessingMetadata:p,breadcrumbs:y,fingerprint:A,eventProcessors:w,attachments:I,propagationContext:P,transactionName:F,span:V}=o;YS(i,"extra",t),YS(i,"tags",r),YS(i,"user",s),YS(i,"contexts",l),YS(i,"sdkProcessingMetadata",p),u&&(i.level=u),F&&(i.transactionName=F),V&&(i.span=V),y.length&&(i.breadcrumbs=[...i.breadcrumbs,...y]),A.length&&(i.fingerprint=[...i.fingerprint,...A]),w.length&&(i.eventProcessors=[...i.eventProcessors,...w]),I.length&&(i.attachments=[...i.attachments,...I]),i.propagationContext={...i.propagationContext,...P}}function YS(i,o,t){if(t&&Object.keys(t).length){i[o]={...i[o]};for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(i[o][r]=t[r])}}let P4;class zg{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=soe()}static clone(o){return o?o.clone():new zg}clone(){const o=new zg;return o._breadcrumbs=[...this._breadcrumbs],o._tags={...this._tags},o._extra={...this._extra},o._contexts={...this._contexts},o._user=this._user,o._level=this._level,o._span=this._span,o._session=this._session,o._transactionName=this._transactionName,o._fingerprint=this._fingerprint,o._eventProcessors=[...this._eventProcessors],o._requestSession=this._requestSession,o._attachments=[...this._attachments],o._sdkProcessingMetadata={...this._sdkProcessingMetadata},o._propagationContext={...this._propagationContext},o._client=this._client,o}setClient(o){this._client=o}getClient(){return this._client}addScopeListener(o){this._scopeListeners.push(o)}addEventProcessor(o){return this._eventProcessors.push(o),this}setUser(o){return this._user=o||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&E4(this._session,{user:o}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(o){return this._requestSession=o,this}setTags(o){return this._tags={...this._tags,...o},this._notifyScopeListeners(),this}setTag(o,t){return this._tags={...this._tags,[o]:t},this._notifyScopeListeners(),this}setExtras(o){return this._extra={...this._extra,...o},this._notifyScopeListeners(),this}setExtra(o,t){return this._extra={...this._extra,[o]:t},this._notifyScopeListeners(),this}setFingerprint(o){return this._fingerprint=o,this._notifyScopeListeners(),this}setLevel(o){return this._level=o,this._notifyScopeListeners(),this}setTransactionName(o){return this._transactionName=o,this._notifyScopeListeners(),this}setContext(o,t){return null===t?delete this._contexts[o]:this._contexts[o]=t,this._notifyScopeListeners(),this}setSpan(o){return this._span=o,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const o=this._span;return o&&o.transaction}setSession(o){return o?this._session=o:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(o){if(!o)return this;const t="function"==typeof o?o(this):o;if(t instanceof zg){const r=t.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),t.getRequestSession()&&(this._requestSession=t.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(O$(t)){const r=o;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=soe(),this}addBreadcrumb(o,t){const r="number"==typeof t?t:100;if(r<=0)return this;const s={timestamp:w4(),...o},l=this._breadcrumbs;return l.push(s),this._breadcrumbs=l.length>r?l.slice(-r):l,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(o){return this._attachments.push(o),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:o,_attachments:t,_contexts:r,_tags:s,_extra:l,_user:u,_level:p,_fingerprint:y,_eventProcessors:A,_propagationContext:w,_sdkProcessingMetadata:I,_transactionName:P,_span:F}=this;return{breadcrumbs:o,attachments:t,contexts:r,tags:s,extra:l,user:u,level:p,fingerprint:y||[],eventProcessors:A,propagationContext:w,sdkProcessingMetadata:I,transactionName:P,span:F}}applyToEvent(o,t={},r=[]){return roe(o,this.getScopeData()),I4([...r,...F$(),...this._eventProcessors],o,t)}setSDKProcessingMetadata(o){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...o},this}setPropagationContext(o){return this._propagationContext=o,this}getPropagationContext(){return this._propagationContext}captureException(o,t){const r=t&&t.event_id?t.event_id:Zc();if(!this._client)return Ki.warn("No client configured on scope - will not capture exception!"),r;const s=new Error("Sentry syntheticException");return this._client.captureException(o,{originalException:o,syntheticException:s,...t,event_id:r},this),r}captureMessage(o,t,r){const s=r&&r.event_id?r.event_id:Zc();if(!this._client)return Ki.warn("No client configured on scope - will not capture message!"),s;const l=new Error(o);return this._client.captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s},this),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:Zc();return this._client?(this._client.captureEvent(o,{...t,event_id:r},this),r):(Ki.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(o=>{o(this)}),this._notifyingListeners=!1)}}function soe(){return{traceId:Zc(),spanId:Zc().substring(16)}}const U$=parseFloat("7.114.0"),Oat=100;class Y${constructor(o,t,r,s=U$){let l,u;this._version=s,t?l=t:(l=new zg,l.setClient(o)),r?u=r:(u=new zg,u.setClient(o)),this._stack=[{scope:l}],o&&this.bindClient(o),this._isolationScope=u}isOlderThan(o){return this._version<o}bindClient(o){const t=this.getStackTop();t.client=o,t.scope.setClient(o),o&&o.setupIntegrations&&o.setupIntegrations()}pushScope(){const o=this.getScope().clone();return this.getStack().push({client:this.getClient(),scope:o}),o}popScope(){return!(this.getStack().length<=1||!this.getStack().pop())}withScope(o){const t=this.pushScope();let r;try{r=o(t)}catch(s){throw this.popScope(),s}return N$(r)?r.then(s=>(this.popScope(),s),s=>{throw this.popScope(),s}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(o,t){const r=this._lastEventId=t&&t.event_id?t.event_id:Zc(),s=new Error("Sentry syntheticException");return this.getScope().captureException(o,{originalException:o,syntheticException:s,...t,event_id:r}),r}captureMessage(o,t,r){const s=this._lastEventId=r&&r.event_id?r.event_id:Zc(),l=new Error(o);return this.getScope().captureMessage(o,t,{originalException:o,syntheticException:l,...r,event_id:s}),s}captureEvent(o,t){const r=t&&t.event_id?t.event_id:Zc();return o.type||(this._lastEventId=r),this.getScope().captureEvent(o,{...t,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(o,t){const{scope:r,client:s}=this.getStackTop();if(!s)return;const{beforeBreadcrumb:l=null,maxBreadcrumbs:u=Oat}=s.getOptions&&s.getOptions()||{};if(u<=0)return;const y={timestamp:w4(),...o},A=l?US(()=>l(y,t)):y;null!==A&&(s.emit&&s.emit("beforeAddBreadcrumb",A,t),r.addBreadcrumb(A,u))}setUser(o){this.getScope().setUser(o),this.getIsolationScope().setUser(o)}setTags(o){this.getScope().setTags(o),this.getIsolationScope().setTags(o)}setExtras(o){this.getScope().setExtras(o),this.getIsolationScope().setExtras(o)}setTag(o,t){this.getScope().setTag(o,t),this.getIsolationScope().setTag(o,t)}setExtra(o,t){this.getScope().setExtra(o,t),this.getIsolationScope().setExtra(o,t)}setContext(o,t){this.getScope().setContext(o,t),this.getIsolationScope().setContext(o,t)}configureScope(o){const{scope:t,client:r}=this.getStackTop();r&&o(t)}run(o){const t=loe(this);try{o(this)}finally{loe(t)}}getIntegration(o){const t=this.getClient();if(!t)return null;try{return t.getIntegration(o)}catch{return k4&&Ki.warn(`Cannot retrieve integration ${o.id} from the current Hub`),null}}startTransaction(o,t){const r=this._callExtensionMethod("startTransaction",o,t);return k4&&!r&&(this.getClient()?Ki.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"):Ki.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(o=!1){if(o)return this.endSession();this._sendSessionUpdate()}endSession(){const t=this.getStackTop().scope,r=t.getSession();r&&function vat(i,o){let t={};o?t={status:o}:"ok"===i.status&&(t={status:"exited"}),E4(i,t)}(r),this._sendSessionUpdate(),t.setSession()}startSession(o){const{scope:t,client:r}=this.getStackTop(),{release:s,environment:l=R$}=r&&r.getOptions()||{},{userAgent:u}=Fa.navigator||{},p=function bat(i){const o=Qie(),t={sid:Zc(),init:!0,timestamp:o,started:o,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function yat(i){return hh({sid:`${i.sid}`,init:i.init,started:new Date(1e3*i.started).toISOString(),timestamp:new Date(1e3*i.timestamp).toISOString(),status:i.status,errors:i.errors,did:"number"==typeof i.did||"string"==typeof i.did?`${i.did}`:void 0,duration:i.duration,abnormal_mechanism:i.abnormal_mechanism,attrs:{release:i.release,environment:i.environment,ip_address:i.ipAddress,user_agent:i.userAgent}})}(t)};return i&&E4(t,i),t}({release:s,environment:l,user:t.getUser(),...u&&{userAgent:u},...o}),y=t.getSession&&t.getSession();return y&&"ok"===y.status&&E4(y,{status:"exited"}),this.endSession(),t.setSession(p),p}shouldSendDefaultPii(){const o=this.getClient(),t=o&&o.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:o,client:t}=this.getStackTop(),r=o.getSession();r&&t&&t.captureSession&&t.captureSession(r)}_callExtensionMethod(o,...t){const s=DC().__SENTRY__;if(s&&s.extensions&&"function"==typeof s.extensions[o])return s.extensions[o].apply(this,t);k4&&Ki.warn(`Extension method ${o} couldn't be found, doing nothing.`)}}function DC(){return Fa.__SENTRY__=Fa.__SENTRY__||{extensions:{},hub:void 0},Fa}function loe(i){const o=DC(),t=O4(o);return j$(o,i),t}function kC(){const i=DC();if(i.__SENTRY__&&i.__SENTRY__.acs){const o=i.__SENTRY__.acs.getCurrentHub();if(o)return o}return function coe(i=DC()){return(!function doe(i){return!!(i&&i.__SENTRY__&&i.__SENTRY__.hub)}(i)||O4(i).isOlderThan(U$))&&j$(i,new Y$),O4(i)}(i)}function Nat(){return kC().getIsolationScope()}function O4(i){return Gie("hub",()=>new Y$,i)}function j$(i,o){return!!i&&((i.__SENTRY__=i.__SENTRY__||{}).hub=o,!0)}function Z$(i,o=0){return"string"!=typeof i||0===o||i.length<=o?i:`${i.slice(0,o)}...`}const V$="<anonymous>";function goe(i){try{return i&&"function"==typeof i&&i.name||V$}catch{return V$}}function Gg(i,o=100,t=1/0){try{return z$("",i,o,t)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function z$(i,o,t=1/0,r=1/0,s=function Fat(){const i="function"==typeof WeakSet,o=i?new WeakSet:[];return[function t(s){if(i)return!!o.has(s)||(o.add(s),!1);for(let l=0;l<o.length;l++)if(o[l]===s)return!0;return o.push(s),!1},function r(s){if(i)o.delete(s);else for(let l=0;l<o.length;l++)if(o[l]===s){o.splice(l,1);break}}]}()){const[l,u]=s;if(null==o||["number","boolean","string"].includes(typeof o)&&!function rat(i){return"number"==typeof i&&i!=i}(o))return o;const p=function Uat(i,o){try{if("domain"===i&&o&&"object"==typeof o&&o._events)return"[Domain]";if("domainEmitter"===i)return"[DomainEmitter]";if(typeof global<"u"&&o===global)return"[Global]";if(typeof window<"u"&&o===window)return"[Window]";if(typeof document<"u"&&o===document)return"[Document]";if(function aat(i){return!("object"!=typeof i||null===i||!i.__isVue&&!i._isVue)}(o))return"[VueViewModel]";if(function oat(i){return O$(i)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i}(o))return"[SyntheticEvent]";if("number"==typeof o&&o!=o)return"[NaN]";if("function"==typeof o)return`[Function: ${goe(o)}]`;if("symbol"==typeof o)return`[${String(o)}]`;if("bigint"==typeof o)return`[BigInt: ${String(o)}]`;const t=function Yat(i){const o=Object.getPrototypeOf(i);return o?o.constructor.name:"null prototype"}(o);return/^HTML(\w*)Element$/.test(t)?`[HTMLElement: ${t}]`:`[object ${t}]`}catch(t){return`**non-serializable** (${t})`}}(i,o);if(!p.startsWith("[object "))return p;if(o.__sentry_skip_normalization__)return o;const y="number"==typeof o.__sentry_override_normalization_depth__?o.__sentry_override_normalization_depth__:t;if(0===y)return p.replace("object ","");if(l(o))return"[Circular ~]";const A=o;if(A&&"function"==typeof A.toJSON)try{return z$("",A.toJSON(),y-1,r,s)}catch{}const w=Array.isArray(o)?[]:{};let I=0;const P=function Xie(i){if(function Xrt(i){switch(zie.call(i)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return T4(i,Error)}}(i))return{message:i.message,name:i.name,stack:i.stack,...toe(i)};if(function tat(i){return typeof Event<"u"&&T4(i,Event)}(i)){const o={type:i.type,target:eoe(i.target),currentTarget:eoe(i.currentTarget),...toe(i)};return typeof CustomEvent<"u"&&T4(i,CustomEvent)&&(o.detail=i.detail),o}return i}(o);for(const F in P)if(Object.prototype.hasOwnProperty.call(P,F)){if(I>=r){w[F]="[MaxProperties ~]";break}w[F]=z$(F,P[F],y-1,r,s),I++}return u(o),w}function Vat(i,o,t,r,s,l){const{normalizeDepth:u=3,normalizeMaxBreadth:p=1e3}=i,y={...o,event_id:o.event_id||t.event_id||Zc(),timestamp:o.timestamp||w4()},A=t.integrations||i.integrations.map(Ae=>Ae.name);(function zat(i,o){const{environment:t,release:r,dist:s,maxValueLength:l=250}=o;"environment"in i||(i.environment="environment"in o?t:R$),void 0===i.release&&void 0!==r&&(i.release=r),void 0===i.dist&&void 0!==s&&(i.dist=s),i.message&&(i.message=Z$(i.message,l));const u=i.exception&&i.exception.values&&i.exception.values[0];u&&u.value&&(u.value=Z$(u.value,l));const p=i.request;p&&p.url&&(p.url=Z$(p.url,l))})(y,i),function Jat(i,o){o.length>0&&(i.sdk=i.sdk||{},i.sdk.integrations=[...i.sdk.integrations||[],...o])}(y,A),void 0===o.type&&function Gat(i,o){const t=Fa._sentryDebugIds;if(!t)return;let r;const s=foe.get(o);s?r=s:(r=new Map,foe.set(o,r));const l=Object.keys(t).reduce((u,p)=>{let y;const A=r.get(p);A?y=A:(y=o(p),r.set(p,y));for(let w=y.length-1;w>=0;w--){const I=y[w];if(I.filename){u[I.filename]=t[p];break}}return u},{});try{i.exception.values.forEach(u=>{u.stacktrace.frames.forEach(p=>{p.filename&&(p.debug_id=l[p.filename])})})}catch{}}(y,i.stackParser);const w=function Wat(i,o){if(!o)return i;const t=i?i.clone():new zg;return t.update(o),t}(r,t.captureContext);t.mechanism&&function sat(i,o){const t=function qie(i){return i.exception&&i.exception.values?i.exception.values[0]:void 0}(i);if(!t)return;const s=t.mechanism;if(t.mechanism={type:"generic",handled:!0,...s,...o},o&&"data"in o){const l={...s&&s.data,...o.data};t.mechanism.data=l}}(y,t.mechanism);const I=s&&s.getEventProcessors?s.getEventProcessors():[],P=function Pat(){return P4||(P4=new zg),P4}().getScopeData();l&&aoe(P,l.getScopeData()),w&&aoe(P,w.getScopeData());const F=[...t.attachments||[],...P.attachments];return F.length&&(t.attachments=F),roe(y,P),I4([...I,...F$(),...P.eventProcessors],y,t).then(Ae=>(Ae&&function qat(i){const o={};try{i.exception.values.forEach(r=>{r.stacktrace.frames.forEach(s=>{s.debug_id&&(s.abs_path?o[s.abs_path]=s.debug_id:s.filename&&(o[s.filename]=s.debug_id),delete s.debug_id)})})}catch{}if(0===Object.keys(o).length)return;i.debug_meta=i.debug_meta||{},i.debug_meta.images=i.debug_meta.images||[];const t=i.debug_meta.images;Object.keys(o).forEach(r=>{t.push({type:"sourcemap",code_file:r,debug_id:o[r]})})}(Ae),"number"==typeof u&&u>0?function Qat(i,o,t){if(!i)return null;const r={...i,...i.breadcrumbs&&{breadcrumbs:i.breadcrumbs.map(s=>({...s,...s.data&&{data:Gg(s.data,o,t)}}))},...i.user&&{user:Gg(i.user,o,t)},...i.contexts&&{contexts:Gg(i.contexts,o,t)},...i.extra&&{extra:Gg(i.extra,o,t)}};return i.contexts&&i.contexts.trace&&r.contexts&&(r.contexts.trace=i.contexts.trace,i.contexts.trace.data&&(r.contexts.trace.data=Gg(i.contexts.trace.data,o,t))),i.spans&&(r.spans=i.spans.map(s=>{const l=W0(s).data;return l&&(s.data=Gg(l,o,t)),s})),r}(Ae,u,p):Ae))}const foe=new WeakMap;const est=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function moe(i,o){return kC().captureException(i,function Kat(i){if(i)return function Xat(i){return i instanceof zg||"function"==typeof i}(i)||function tst(i){return Object.keys(i).some(o=>est.includes(o))}(i)?{captureContext:i}:i}(o))}function ist(i,o){kC().setContext(i,o)}function Zs(){return kC().getClient()}function Um(){return kC().getScope()}function yoe(i){return"/"===i[i.length-1]?i.slice(0,-1):i}const IC={},Toe={};function N4(i,o){IC[i]=IC[i]||[],IC[i].push(o)}function L4(i,o){Toe[i]||(o(),Toe[i]=!0)}function Ym(i,o){const t=i&&IC[i];if(t)for(const r of t)try{r(o)}catch(s){D4&&Ki.error(`Error while triggering instrumentation handler.\nType: ${i}\nName: ${goe(r)}\nError:`,s)}}const hst=Fa,EC="__sentry_xhr_v3__";function fst(){if(!hst.XMLHttpRequest)return;const i=XMLHttpRequest.prototype;ph(i,"open",function(o){return function(...t){const r=Date.now(),s=Q0(t[0])?t[0].toUpperCase():void 0,l=function mst(i){if(Q0(i))return i;try{return i.toString()}catch{}}(t[1]);if(!s||!l)return o.apply(this,t);this[EC]={method:s,url:l,request_headers:{}},"POST"===s&&l.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const u=()=>{const p=this[EC];if(p&&4===this.readyState){try{p.status_code=this.status}catch{}Ym("xhr",{args:[s,l],endTimestamp:Date.now(),startTimestamp:r,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?ph(this,"onreadystatechange",function(p){return function(...y){return u(),p.apply(this,y)}}):this.addEventListener("readystatechange",u),ph(this,"setRequestHeader",function(p){return function(...y){const[A,w]=y,I=this[EC];return I&&Q0(A)&&Q0(w)&&(I.request_headers[A.toLowerCase()]=w),p.apply(this,y)}}),o.apply(this,t)}}),ph(i,"send",function(o){return function(...t){const r=this[EC];return r?(void 0!==t[0]&&(r.body=t[0]),Ym("xhr",{args:[r.method,r.url],startTimestamp:Date.now(),xhr:this}),o.apply(this,t)):o.apply(this,t)}})}const R4=L$();function woe(i){return i&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(i.toString())}function vst(){!function _st(){if("string"==typeof EdgeRuntime)return!0;if(!function Soe(){if(!("fetch"in R4))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}())return!1;if(woe(R4.fetch))return!0;let i=!1;const o=R4.document;if(o&&"function"==typeof o.createElement)try{const t=o.createElement("iframe");t.hidden=!0,o.head.appendChild(t),t.contentWindow&&t.contentWindow.fetch&&(i=woe(t.contentWindow.fetch)),o.head.removeChild(t)}catch(t){D4&&Ki.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return i}()||ph(Fa,"fetch",function(i){return function(...o){const{method:t,url:r}=function yst(i){if(0===i.length)return{method:"GET",url:""};if(2===i.length){const[t,r]=i;return{url:Moe(t),method:J$(r,"method")?String(r.method).toUpperCase():"GET"}}const o=i[0];return{url:Moe(o),method:J$(o,"method")?String(o.method).toUpperCase():"GET"}}(o),s={args:o,fetchData:{method:t,url:r},startTimestamp:Date.now()};return Ym("fetch",{...s}),i.apply(Fa,o).then(l=>(Ym("fetch",{...s,endTimestamp:Date.now(),response:l}),l),l=>{throw Ym("fetch",{...s,endTimestamp:Date.now(),error:l}),l})}})}function J$(i,o){return!!i&&"object"==typeof i&&!!i[o]}function Moe(i){return"string"==typeof i?i:i?J$(i,"url")?i.url:i.toString?i.toString():"":""}const PC=Fa;let Doe,Q$,W$;function xst(){if(!PC.document)return;const i=Ym.bind(null,"dom"),o=koe(i,!0);PC.document.addEventListener("click",o,!1),PC.document.addEventListener("keypress",o,!1),["EventTarget","Node"].forEach(t=>{const r=PC[t]&&PC[t].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(ph(r,"addEventListener",function(s){return function(l,u,p){if("click"===l||"keypress"==l)try{const y=this,A=y.__sentry_instrumentation_handlers__=y.__sentry_instrumentation_handlers__||{},w=A[l]=A[l]||{refCount:0};if(!w.handler){const I=koe(i);w.handler=I,s.call(this,l,I,p)}w.refCount++}catch{}return s.call(this,l,u,p)}}),ph(r,"removeEventListener",function(s){return function(l,u,p){if("click"===l||"keypress"==l)try{const y=this,A=y.__sentry_instrumentation_handlers__||{},w=A[l];w&&(w.refCount--,w.refCount<=0&&(s.call(this,l,w.handler,p),w.handler=void 0,delete A[l]),0===Object.keys(A).length&&delete y.__sentry_instrumentation_handlers__)}catch{}return s.call(this,l,u,p)}}))})}function koe(i,o=!1){return t=>{if(!t||t._sentryCaptured)return;const r=function wst(i){try{return i.target}catch{return null}}(t);if(function Sst(i,o){return!("keypress"!==i||o&&o.tagName&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName||o.isContentEditable))}(t.type,r))return;H$(t,"_sentryCaptured",!0),r&&!r._sentryId&&H$(r,"_sentryId",Zc());const s="keypress"===t.type?"input":t.type;(function Tst(i){if(i.type!==Q$)return!1;try{if(!i.target||i.target._sentryId!==W$)return!1}catch{}return!0})(t)||(i({event:t,name:s,global:o}),Q$=t.type,W$=r?r._sentryId:void 0),clearTimeout(Doe),Doe=PC.setTimeout(()=>{W$=void 0,Q$=void 0},1e3)}}const F4=L$(),jS=Fa;let B4;function kst(){if(!function Mst(){const i=F4.chrome;return!(i&&i.app&&i.app.runtime||!("history"in F4)||!F4.history.pushState||!F4.history.replaceState)}())return;const i=jS.onpopstate;function o(t){return function(...r){const s=r.length>2?r[2]:void 0;if(s){const l=B4,u=String(s);B4=u,Ym("history",{from:l,to:u})}return t.apply(this,r)}}jS.onpopstate=function(...t){const r=jS.location.href,s=B4;if(B4=r,Ym("history",{from:s,to:r}),i)try{return i.apply(this,t)}catch{}},ph(jS.history,"pushState",o),ph(jS.history,"replaceState",o)}function Pst(i,o=!1){const{host:t,path:r,pass:s,port:l,projectId:u,protocol:p,publicKey:y}=i;return`${p}://${y}${o&&s?`:${s}`:""}@${t}${l?`:${l}`:""}/${r&&`${r}/`}${u}`}function Zst(i,o,t=Date.now()){return function jst(i,o){return i[o]||i.all||0}(i,o)>t}function Vst(i,{statusCode:o,headers:t},r=Date.now()){const s={...i},l=t&&t["x-sentry-rate-limits"],u=t&&t["retry-after"];if(l)for(const p of l.trim().split(",")){const[y,A,,,w]=p.split(":",5),I=parseInt(y,10),P=1e3*(isNaN(I)?60:I);if(A)for(const F of A.split(";"))"metric_bucket"===F?(!w||w.split(";").includes("custom"))&&(s[F]=r+P):s[F]=r+P;else s.all=r+P}else u?s.all=r+function Yst(i,o=Date.now()){const t=parseInt(`${i}`,10);if(!isNaN(t))return 1e3*t;const r=Date.parse(`${i}`);return isNaN(r)?6e4:r-o}(u,r):429===o&&(s.all=r+6e4);return s}var zst=S(3731);function Eoe(){return typeof window<"u"&&(!(0,zst.KV)()||function Gst(){return void 0!==Fa.process&&"renderer"===Fa.process.type}())}const Tr=Fa,X$="sentryReplaySession",qst="replay_event",eU="Unable to send Replay",tU=2e7;function $4(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}var qa=(()=>(function(i){i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment"}(qa||(qa={})),qa))();function ZS(i){const o=$4([i,"optionalAccess",t=>t.host]);return Boolean($4([o,"optionalAccess",t=>t.shadowRoot])===i)}function VS(i){return"[object ShadowRoot]"===Object.prototype.toString.call(i)}function U4(i){try{const o=i.rules||i.cssRules;return o?function llt(i){return i.includes(" background-clip: text;")&&!i.includes(" -webkit-background-clip: text;")&&(i=i.replace(" background-clip: text;"," -webkit-background-clip: text; background-clip: text;")),i}(Array.from(o,Noe).join("")):null}catch{return null}}function Noe(i){let o;if(function ult(i){return"styleSheet"in i}(i))try{o=U4(i.styleSheet)||function clt(i){const{cssText:o}=i;if(o.split('"').length<3)return o;const t=["@import",`url(${JSON.stringify(i.href)})`];return""===i.layerName?t.push("layer"):i.layerName&&t.push(`layer(${i.layerName})`),i.supportsText&&t.push(`supports(${i.supportsText})`),i.media.length&&t.push(i.media.mediaText),t.join(" ")+";"}(i)}catch{}else if(function plt(i){return"selectorText"in i}(i)&&i.selectorText.includes(":"))return function dlt(i){return i.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}(i.cssText);return o||i.cssText}class Loe{constructor(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}getId(o){return o?function alt(i,o){return i??o()}($4([this,"access",r=>r.getMeta,"call",r=>r(o),"optionalAccess",r=>r.id]),()=>-1):-1}getNode(o){return this.idNodeMap.get(o)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(o){return this.nodeMetaMap.get(o)||null}removeNodeFromMap(o){const t=this.getId(o);this.idNodeMap.delete(t),o.childNodes&&o.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(o){return this.idNodeMap.has(o)}hasNode(o){return this.nodeMetaMap.has(o)}add(o,t){this.idNodeMap.set(t.id,o),this.nodeMetaMap.set(o,t)}replace(o,t){const r=this.getNode(o);if(r){const s=this.nodeMetaMap.get(r);s&&this.nodeMetaMap.set(t,s)}this.idNodeMap.set(o,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function Y4({maskInputOptions:i,tagName:o,type:t}){return"OPTION"===o&&(o="SELECT"),Boolean(i[o.toLowerCase()]||t&&i[t]||"password"===t||"INPUT"===o&&!t&&i.text)}function zS({isMasked:i,element:o,value:t,maskInputFn:r}){let s=t||"";return i?(r&&(s=r(s,o)),"*".repeat(s.length)):s}function OC(i){return i.toLowerCase()}function nU(i){return i.toUpperCase()}const Roe="__rrweb_original__";function iU(i){const o=i.type;return i.hasAttribute("data-rr-is-password")?"password":o?OC(o):null}function j4(i,o,t){return"INPUT"!==o||"radio"!==t&&"checkbox"!==t?i.value:i.getAttribute("value")||""}let flt=1;const mlt=new RegExp("[^a-z0-9-_:]");function oU(){return flt++}let NC,Foe;const vlt=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,ylt=/^(?:[a-z+]+:)?\/\//i,Clt=/^www\..*/i,Alt=/^(data:)([^,]*),(.*)/i;function Z4(i,o){return(i||"").replace(vlt,(t,r,s,l,u,p)=>{const y=s||u||p,A=r||l||"";if(!y)return t;if(ylt.test(y)||Clt.test(y))return`url(${A}${y}${A})`;if(Alt.test(y))return`url(${A}${y}${A})`;if("/"===y[0])return`url(${A}${function blt(i){let o="";return o=i.indexOf("//")>-1?i.split("/").slice(0,3).join("/"):i.split("/")[0],o=o.split("?")[0],o}(o)+y}${A})`;const w=o.split("/"),I=y.split("/");w.pop();for(const P of I)"."!==P&&(".."===P?w.pop():w.push(P));return`url(${A}${w.join("/")}${A})`})}const xlt=/^[^ \t\n\r\u000c]+/,Tlt=/^[, \t\n\r\u000c]+/;function LC(i,o){if(!o||""===o.trim())return o;const t=i.createElement("a");return t.href=o,t.href}function wlt(i){return Boolean("svg"===i.tagName||i.ownerSVGElement)}function rU(){const i=document.createElement("a");return i.href="",i.href}function Boe(i,o,t,r,s,l){return r&&("src"===t||"href"===t&&("use"!==o||"#"!==r[0])||"xlink:href"===t&&"#"!==r[0]||"background"===t&&("table"===o||"td"===o||"th"===o)?LC(i,r):"srcset"===t?function Slt(i,o){if(""===o.trim())return o;let t=0;function r(l){let u;const p=l.exec(o.substring(t));return p?(u=p[0],t+=u.length,u):""}const s=[];for(;r(Tlt),!(t>=o.length);){let l=r(xlt);if(","===l.slice(-1))l=LC(i,l.substring(0,l.length-1)),s.push(l);else{let u="";l=LC(i,l);let p=!1;for(;;){const y=o.charAt(t);if(""===y){s.push((l+u).trim());break}if(p)")"===y&&(p=!1);else{if(","===y){t+=1,s.push((l+u).trim());break}"("===y&&(p=!0)}u+=y,t+=1}}}return s.join(", ")}(i,r):"style"===t?Z4(r,rU()):"object"===o&&"data"===t?LC(i,r):"function"==typeof l?l(t,r,s):r)}function Hoe(i,o,t){return("video"===i||"audio"===i)&&"autoplay"===o}function K0(i,o,t=1/0,r=0){return!i||i.nodeType!==i.ELEMENT_NODE||r>t?-1:o(i)?r:K0(i.parentNode,o,t,r+1)}function RC(i,o){return t=>{const r=t;if(null===r)return!1;try{if(i)if("string"==typeof i){if(r.matches(`.${i}`))return!0}else if(function Dlt(i,o){for(let t=i.classList.length;t--;)if(o.test(i.classList[t]))return!0;return!1}(r,i))return!0;return!(!o||!r.matches(o))}catch{return!1}}}function FC(i,o,t,r,s,l){try{const u=i.nodeType===i.ELEMENT_NODE?i:i.parentElement;if(null===u)return!1;if("INPUT"===u.tagName){const A=u.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(A))return!0}let p=-1,y=-1;if(l){if(y=K0(u,RC(r,s)),y<0)return!0;p=K0(u,RC(o,t),y>=0?y:1/0)}else{if(p=K0(u,RC(o,t)),p<0)return!1;y=K0(u,RC(r,s),p>=0?p:1/0)}return p>=0?!(y>=0)||p<=y:!(y>=0||!l)}catch{}return!!l}function Sr(i){return null==i?"":i.toLowerCase()}function BC(i,o){const{doc:t,mirror:r,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:p,maskTextClass:y,unmaskTextClass:A,maskTextSelector:w,unmaskTextSelector:I,skipChild:P=!1,inlineStylesheet:F=!0,maskInputOptions:V={},maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOMOptions:Se,dataURLOptions:Be={},inlineImages:Me=!1,recordCanvas:He=!1,onSerialize:Ye,onIframeLoad:Le,iframeLoadTimeout:tt=5e3,onStylesheetLoad:kt,stylesheetLoadTimeout:Ke=5e3,keepIframeSrcFn:Re=(()=>!1),newlyAddedElement:ot=!1}=o;let{preserveWhiteSpace:Ze=!0}=o;const At=function Elt(i,o){const{doc:t,mirror:r,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:p,maskAttributeFn:y,maskTextClass:A,unmaskTextClass:w,maskTextSelector:I,unmaskTextSelector:P,inlineStylesheet:F,maskInputOptions:V={},maskTextFn:oe,maskInputFn:Ae,dataURLOptions:ue={},inlineImages:Se,recordCanvas:Be,keepIframeSrcFn:Me,newlyAddedElement:He=!1}=o,Ye=function Plt(i,o){if(!o.hasNode(i))return;const t=o.getId(i);return 1===t?void 0:t}(t,r);switch(i.nodeType){case i.DOCUMENT_NODE:return"CSS1Compat"!==i.compatMode?{type:qa.Document,childNodes:[],compatMode:i.compatMode}:{type:qa.Document,childNodes:[]};case i.DOCUMENT_TYPE_NODE:return{type:qa.DocumentType,name:i.name,publicId:i.publicId,systemId:i.systemId,rootId:Ye};case i.ELEMENT_NODE:return function Nlt(i,o){const{doc:t,blockClass:r,blockSelector:s,unblockSelector:l,inlineStylesheet:u,maskInputOptions:p={},maskAttributeFn:y,maskInputFn:A,dataURLOptions:w={},inlineImages:I,recordCanvas:P,keepIframeSrcFn:F,newlyAddedElement:V=!1,rootId:oe,maskTextClass:ue,unmaskTextClass:Se,maskTextSelector:Be,unmaskTextSelector:Me}=o,He=function Mlt(i,o,t,r){try{if(r&&i.matches(r))return!1;if("string"==typeof o){if(i.classList.contains(o))return!0}else for(let s=i.classList.length;s--;)if(o.test(i.classList[s]))return!0;if(t)return i.matches(t)}catch{}return!1}(i,r,s,l),Ye=function _lt(i){if(i instanceof HTMLFormElement)return"form";const o=OC(i.tagName);return mlt.test(o)?"div":o}(i);let Le={};const tt=i.attributes.length;for(let Ke=0;Ke<tt;Ke++){const Re=i.attributes[Ke];Re.name&&!Hoe(Ye,Re.name)&&(Le[Re.name]=Boe(t,Ye,OC(Re.name),Re.value,i,y))}if("link"===Ye&&u){const Ke=Array.from(t.styleSheets).find(ot=>ot.href===i.href);let Re=null;Ke&&(Re=U4(Ke)),Re&&(delete Le.rel,delete Le.href,Le._cssText=Z4(Re,Ke.href))}if("style"===Ye&&i.sheet&&!(i.innerText||i.textContent||"").trim().length){const Ke=U4(i.sheet);Ke&&(Le._cssText=Z4(Ke,rU()))}if("input"===Ye||"textarea"===Ye||"select"===Ye||"option"===Ye){const Ke=i,Re=iU(Ke),ot=j4(Ke,nU(Ye),Re),Ze=Ke.checked;if("submit"!==Re&&"button"!==Re&&ot){const At=FC(Ke,ue,Be,Se,Me,Y4({type:Re,tagName:nU(Ye),maskInputOptions:p}));Le.value=zS({isMasked:At,element:Ke,value:ot,maskInputFn:A})}Ze&&(Le.checked=Ze)}if("option"===Ye&&(i.selected&&!p.select?Le.selected=!0:delete Le.selected),"canvas"===Ye&&P)if("2d"===i.__context)(function glt(i){const o=i.getContext("2d");if(!o)return!0;for(let r=0;r<i.width;r+=50)for(let s=0;s<i.height;s+=50){const l=o.getImageData;if(new Uint32Array((Roe in l?l[Roe]:l).call(o,r,s,Math.min(50,i.width-r),Math.min(50,i.height-s)).data.buffer).some(y=>0!==y))return!1}return!0})(i)||(Le.rr_dataURL=i.toDataURL(w.type,w.quality));else if(!("__context"in i)){const Ke=i.toDataURL(w.type,w.quality),Re=document.createElement("canvas");Re.width=i.width,Re.height=i.height,Ke!==Re.toDataURL(w.type,w.quality)&&(Le.rr_dataURL=Ke)}if("img"===Ye&&I){NC||(NC=t.createElement("canvas"),Foe=NC.getContext("2d"));const Ke=i,Re=Ke.crossOrigin;Ke.crossOrigin="anonymous";const ot=()=>{Ke.removeEventListener("load",ot);try{NC.width=Ke.naturalWidth,NC.height=Ke.naturalHeight,Foe.drawImage(Ke,0,0),Le.rr_dataURL=NC.toDataURL(w.type,w.quality)}catch(Ze){console.warn(`Cannot inline img src=${Ke.currentSrc}! Error: ${Ze}`)}Re?Le.crossOrigin=Re:Ke.removeAttribute("crossorigin")};Ke.complete&&0!==Ke.naturalWidth?ot():Ke.addEventListener("load",ot)}if(("audio"===Ye||"video"===Ye)&&(Le.rr_mediaState=i.paused?"paused":"played",Le.rr_mediaCurrentTime=i.currentTime),V||(i.scrollLeft&&(Le.rr_scrollLeft=i.scrollLeft),i.scrollTop&&(Le.rr_scrollTop=i.scrollTop)),He){const{width:Ke,height:Re}=i.getBoundingClientRect();Le={class:Le.class,rr_width:`${Ke}px`,rr_height:`${Re}px`}}let kt;"iframe"===Ye&&!F(Le.src)&&(i.contentDocument||(Le.rr_src=Le.src),delete Le.src);try{customElements.get(Ye)&&(kt=!0)}catch{}return{type:qa.Element,tagName:Ye,attributes:Le,childNodes:[],isSVG:wlt(i)||void 0,needBlock:He,rootId:oe,isCustom:kt}}(i,{doc:t,blockClass:s,blockSelector:l,unblockSelector:u,inlineStylesheet:F,maskAttributeFn:y,maskInputOptions:V,maskInputFn:Ae,dataURLOptions:ue,inlineImages:Se,recordCanvas:Be,keepIframeSrcFn:Me,newlyAddedElement:He,rootId:Ye,maskAllText:p,maskTextClass:A,unmaskTextClass:w,maskTextSelector:I,unmaskTextSelector:P});case i.TEXT_NODE:return function Olt(i,o){const{maskAllText:t,maskTextClass:r,unmaskTextClass:s,maskTextSelector:l,unmaskTextSelector:u,maskTextFn:p,maskInputOptions:y,maskInputFn:A,rootId:w}=o,I=i.parentNode&&i.parentNode.tagName;let P=i.textContent;const F="STYLE"===I||void 0,V="SCRIPT"===I||void 0,oe="TEXTAREA"===I||void 0;if(F&&P){try{i.nextSibling||i.previousSibling||$4([i,"access",ue=>ue.parentNode,"access",ue=>ue.sheet,"optionalAccess",ue=>ue.cssRules])&&(P=U4(i.parentNode.sheet))}catch(ue){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${ue}`,i)}P=Z4(P,rU())}V&&(P="SCRIPT_PLACEHOLDER");const Ae=FC(i,r,l,s,u,t);return!F&&!V&&!oe&&P&&Ae&&(P=p?p(P,i.parentElement):P.replace(/[\S]/g,"*")),oe&&P&&(y.textarea||Ae)&&(P=A?A(P,i.parentNode):P.replace(/[\S]/g,"*")),"OPTION"===I&&P&&(P=zS({isMasked:FC(i,r,l,s,u,Y4({type:null,tagName:I,maskInputOptions:y})),element:i,value:P,maskInputFn:A})),{type:qa.Text,textContent:P||"",isStyle:F,rootId:w}}(i,{maskAllText:p,maskTextClass:A,unmaskTextClass:w,maskTextSelector:I,unmaskTextSelector:P,maskTextFn:oe,maskInputOptions:V,maskInputFn:Ae,rootId:Ye});case i.CDATA_SECTION_NODE:return{type:qa.CDATA,textContent:"",rootId:Ye};case i.COMMENT_NODE:return{type:qa.Comment,textContent:i.textContent||"",rootId:Ye};default:return!1}}(i,{doc:t,mirror:r,blockClass:s,blockSelector:l,maskAllText:p,unblockSelector:u,maskTextClass:y,unmaskTextClass:A,maskTextSelector:w,unmaskTextSelector:I,inlineStylesheet:F,maskInputOptions:V,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,dataURLOptions:Be,inlineImages:Me,recordCanvas:He,keepIframeSrcFn:Re,newlyAddedElement:ot});if(!At)return console.warn(i,"not serialized"),null;let Xe;Xe=r.hasNode(i)?r.getId(i):function Llt(i,o){if(o.comment&&i.type===qa.Comment)return!0;if(i.type===qa.Element){if(o.script&&("script"===i.tagName||"link"===i.tagName&&("preload"===i.attributes.rel||"modulepreload"===i.attributes.rel)&&"script"===i.attributes.as||"link"===i.tagName&&"prefetch"===i.attributes.rel&&"string"==typeof i.attributes.href&&i.attributes.href.endsWith(".js")))return!0;if(o.headFavicon&&("link"===i.tagName&&"shortcut icon"===i.attributes.rel||"meta"===i.tagName&&(Sr(i.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===Sr(i.attributes.name)||"icon"===Sr(i.attributes.rel)||"apple-touch-icon"===Sr(i.attributes.rel)||"shortcut icon"===Sr(i.attributes.rel))))return!0;if("meta"===i.tagName){if(o.headMetaDescKeywords&&Sr(i.attributes.name).match(/^description|keywords$/))return!0;if(o.headMetaSocial&&(Sr(i.attributes.property).match(/^(og|twitter|fb):/)||Sr(i.attributes.name).match(/^(og|twitter):/)||"pinterest"===Sr(i.attributes.name)))return!0;if(o.headMetaRobots&&("robots"===Sr(i.attributes.name)||"googlebot"===Sr(i.attributes.name)||"bingbot"===Sr(i.attributes.name)))return!0;if(o.headMetaHttpEquiv&&void 0!==i.attributes["http-equiv"])return!0;if(o.headMetaAuthorship&&("author"===Sr(i.attributes.name)||"generator"===Sr(i.attributes.name)||"framework"===Sr(i.attributes.name)||"publisher"===Sr(i.attributes.name)||"progid"===Sr(i.attributes.name)||Sr(i.attributes.property).match(/^article:/)||Sr(i.attributes.property).match(/^product:/)))return!0;if(o.headMetaVerification&&("google-site-verification"===Sr(i.attributes.name)||"yandex-verification"===Sr(i.attributes.name)||"csrf-token"===Sr(i.attributes.name)||"p:domain_verify"===Sr(i.attributes.name)||"verify-v1"===Sr(i.attributes.name)||"verification"===Sr(i.attributes.name)||"shopify-checkout-api-token"===Sr(i.attributes.name)))return!0}}return!1}(At,Se)||!Ze&&At.type===qa.Text&&!At.isStyle&&!At.textContent.replace(/^\s+|\s+$/gm,"").length?-2:oU();const Oe=Object.assign(At,{id:Xe});if(r.add(i,Oe),-2===Xe)return null;Ye&&Ye(i);let ze=!P;if(Oe.type===qa.Element){ze=ze&&!Oe.needBlock,delete Oe.needBlock;const it=i.shadowRoot;it&&VS(it)&&(Oe.isShadowHost=!0)}if((Oe.type===qa.Document||Oe.type===qa.Element)&&ze){Se.headWhitespace&&Oe.type===qa.Element&&"head"===Oe.tagName&&(Ze=!1);const it={doc:t,mirror:r,blockClass:s,blockSelector:l,maskAllText:p,unblockSelector:u,maskTextClass:y,unmaskTextClass:A,maskTextSelector:w,unmaskTextSelector:I,skipChild:P,inlineStylesheet:F,maskInputOptions:V,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOMOptions:Se,dataURLOptions:Be,inlineImages:Me,recordCanvas:He,preserveWhiteSpace:Ze,onSerialize:Ye,onIframeLoad:Le,iframeLoadTimeout:tt,onStylesheetLoad:kt,stylesheetLoadTimeout:Ke,keepIframeSrcFn:Re};for(const ct of Array.from(i.childNodes)){const yt=BC(ct,it);yt&&Oe.childNodes.push(yt)}if(function slt(i){return i.nodeType===i.ELEMENT_NODE}(i)&&i.shadowRoot)for(const ct of Array.from(i.shadowRoot.childNodes)){const yt=BC(ct,it);yt&&(VS(i.shadowRoot)&&(yt.isShadow=!0),Oe.childNodes.push(yt))}}return i.parentNode&&ZS(i.parentNode)&&VS(i.parentNode)&&(Oe.isShadow=!0),Oe.type===qa.Element&&"iframe"===Oe.tagName&&function klt(i,o,t){const r=i.contentWindow;if(!r)return;let l,s=!1;try{l=r.document.readyState}catch{return}if("complete"!==l){const p=setTimeout(()=>{s||(o(),s=!0)},t);return void i.addEventListener("load",()=>{clearTimeout(p),s=!0,o()})}const u="about:blank";if(r.location.href!==u||i.src===u||""===i.src)return setTimeout(o,0),i.addEventListener("load",o);i.addEventListener("load",o)}(i,()=>{const it=i.contentDocument;if(it&&Le){const ct=BC(it,{doc:it,mirror:r,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:p,maskTextClass:y,unmaskTextClass:A,maskTextSelector:w,unmaskTextSelector:I,skipChild:!1,inlineStylesheet:F,maskInputOptions:V,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOMOptions:Se,dataURLOptions:Be,inlineImages:Me,recordCanvas:He,preserveWhiteSpace:Ze,onSerialize:Ye,onIframeLoad:Le,iframeLoadTimeout:tt,onStylesheetLoad:kt,stylesheetLoadTimeout:Ke,keepIframeSrcFn:Re});ct&&Le(i,ct)}},tt),Oe.type===qa.Element&&"link"===Oe.tagName&&"stylesheet"===Oe.attributes.rel&&function Ilt(i,o,t){let s,r=!1;try{s=i.sheet}catch{return}if(s)return;const l=setTimeout(()=>{r||(o(),r=!0)},t);i.addEventListener("load",()=>{clearTimeout(l),r=!0,o()})}(i,()=>{if(kt){const it=BC(i,{doc:t,mirror:r,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:p,maskTextClass:y,unmaskTextClass:A,maskTextSelector:w,unmaskTextSelector:I,skipChild:!1,inlineStylesheet:F,maskInputOptions:V,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOMOptions:Se,dataURLOptions:Be,inlineImages:Me,recordCanvas:He,preserveWhiteSpace:Ze,onSerialize:Ye,onIframeLoad:Le,iframeLoadTimeout:tt,onStylesheetLoad:kt,stylesheetLoadTimeout:Ke,keepIframeSrcFn:Re});it&&kt(i,it)}},Ke),Oe}function jm(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}function Ll(i,o,t=document){const r={capture:!0,passive:!0};return t.addEventListener(i,o,r),()=>t.removeEventListener(i,o,r)}const HC="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let $oe={map:{},getId:()=>(console.error(HC),-1),getNode:()=>(console.error(HC),null),removeNodeFromMap(){console.error(HC)},has:()=>(console.error(HC),!1),reset(){console.error(HC)}};function qS(i,o,t={}){let r=null,s=0;return function(...l){const u=Date.now();!s&&!1===t.leading&&(s=u);const p=o-(u-s),y=this;p<=0||p>o?(r&&(function jlt(...i){dU("clearTimeout")(...i)}(r),r=null),s=u,i.apply(y,l)):!r&&!1!==t.trailing&&(r=z4(()=>{s=!1===t.leading?0:Date.now(),r=null,i.apply(y,l)},p))}}function Uoe(i,o,t,r,s=window){const l=s.Object.getOwnPropertyDescriptor(i,o);return s.Object.defineProperty(i,o,r?t:{set(u){z4(()=>{t.set.call(this,u)},0),l&&l.set&&l.set.call(this,u)}}),()=>Uoe(i,o,l||{},!0)}function aU(i,o,t){try{if(!(o in i))return()=>{};const r=i[o],s=t(r);return"function"==typeof s&&(s.prototype=s.prototype||{},Object.defineProperties(s,{__rrweb_original__:{enumerable:!1,value:r}})),i[o]=s,()=>{i[o]=r}}catch{return()=>{}}}typeof window<"u"&&window.Proxy&&window.Reflect&&($oe=new Proxy($oe,{get:(i,o,t)=>("map"===o&&console.error(HC),Reflect.get(i,o,t))}));let V4=Date.now;function Yoe(i){const o=i.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:void 0!==i.pageXOffset?i.pageXOffset:jm([o,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollLeft])||jm([o,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollLeft])||jm([o,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollLeft])||0,top:o.scrollingElement?o.scrollingElement.scrollTop:void 0!==i.pageYOffset?i.pageYOffset:jm([o,"optionalAccess",t=>t.documentElement,"access",t=>t.scrollTop])||jm([o,"optionalAccess",t=>t.body,"optionalAccess",t=>t.parentElement,"optionalAccess",t=>t.scrollTop])||jm([o,"optionalAccess",t=>t.body,"optionalAccess",t=>t.scrollTop])||0}}function joe(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function Zoe(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Voe(i){return i?i.nodeType===i.ELEMENT_NODE?i:i.parentElement:null}function Qu(i,o,t,r,s){if(!i)return!1;const l=Voe(i);if(!l)return!1;const u=RC(o,t);if(!s){const A=r&&l.matches(r);return u(l)&&!A}const p=K0(l,u);let y=-1;return!(p<0)&&(r&&(y=K0(l,RC(null,r))),p>-1&&y<0||p<y)}function sU(i,o){return-2===o.getId(i)}function zoe(i,o){if(ZS(i))return!1;const t=o.getId(i);return!o.has(t)||(!i.parentNode||i.parentNode.nodeType!==i.DOCUMENT_NODE)&&(!i.parentNode||zoe(i.parentNode,o))}function lU(i){return Boolean(i.changedTouches)}function Goe(i,o){return Boolean("IFRAME"===i.nodeName&&o.getMeta(i))}function qoe(i,o){return Boolean("LINK"===i.nodeName&&i.nodeType===i.ELEMENT_NODE&&i.getAttribute&&"stylesheet"===i.getAttribute("rel")&&o.getMeta(i))}function cU(i){return Boolean(jm([i,"optionalAccess",o=>o.shadowRoot]))}/[1-9][0-9]{12}/.test(Date.now().toString())||(V4=()=>(new Date).getTime());class Hlt{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(o){return function Krt(i,o){return i??o()}(this.styleIDMap.get(o),()=>-1)}has(o){return this.styleIDMap.has(o)}add(o,t){if(this.has(o))return this.getId(o);let r;return r=void 0===t?this.id++:t,this.styleIDMap.set(o,r),this.idStyleMap.set(r,o),r}getStyle(o){return this.idStyleMap.get(o)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function Joe(i){let o=null;return jm([i,"access",t=>t.getRootNode,"optionalCall",t=>t(),"optionalAccess",t=>t.nodeType])===Node.DOCUMENT_FRAGMENT_NODE&&i.getRootNode().host&&(o=i.getRootNode().host),o}function Qoe(i){const o=i.ownerDocument;return!!o&&(o.contains(i)||function Ult(i){const o=i.ownerDocument;if(!o)return!1;const t=function $lt(i){let t,o=i;for(;t=Joe(o);)o=t;return o}(i);return o.contains(t)}(i))}const Woe={};function dU(i){const o=Woe[i];if(o)return o;const t=window.document;let r=window[i];if(t&&"function"==typeof t.createElement)try{const s=t.createElement("iframe");s.hidden=!0,t.head.appendChild(s);const l=s.contentWindow;l&&l[i]&&(r=l[i]),t.head.removeChild(s)}catch{}return Woe[i]=r.bind(window)}function z4(...i){return dU("setTimeout")(...i)}var Ii=(i=>(i[i.DomContentLoaded=0]="DomContentLoaded",i[i.Load=1]="Load",i[i.FullSnapshot=2]="FullSnapshot",i[i.IncrementalSnapshot=3]="IncrementalSnapshot",i[i.Meta=4]="Meta",i[i.Custom=5]="Custom",i[i.Plugin=6]="Plugin",i))(Ii||{}),Ei=(i=>(i[i.Mutation=0]="Mutation",i[i.MouseMove=1]="MouseMove",i[i.MouseInteraction=2]="MouseInteraction",i[i.Scroll=3]="Scroll",i[i.ViewportResize=4]="ViewportResize",i[i.Input=5]="Input",i[i.TouchMove=6]="TouchMove",i[i.MediaInteraction=7]="MediaInteraction",i[i.StyleSheetRule=8]="StyleSheetRule",i[i.CanvasMutation=9]="CanvasMutation",i[i.Font=10]="Font",i[i.Log=11]="Log",i[i.Drag=12]="Drag",i[i.StyleDeclaration=13]="StyleDeclaration",i[i.Selection=14]="Selection",i[i.AdoptedStyleSheet=15]="AdoptedStyleSheet",i[i.CustomElement=16]="CustomElement",i))(Ei||{}),Rl=(i=>(i[i.MouseUp=0]="MouseUp",i[i.MouseDown=1]="MouseDown",i[i.Click=2]="Click",i[i.ContextMenu=3]="ContextMenu",i[i.DblClick=4]="DblClick",i[i.Focus=5]="Focus",i[i.Blur=6]="Blur",i[i.TouchStart=7]="TouchStart",i[i.TouchMove_Departed=8]="TouchMove_Departed",i[i.TouchEnd=9]="TouchEnd",i[i.TouchCancel=10]="TouchCancel",i))(Rl||{}),qg=(i=>(i[i.Mouse=0]="Mouse",i[i.Pen=1]="Pen",i[i.Touch=2]="Touch",i))(qg||{});function Zlt(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}function Koe(i){return"__ln"in i}class Vlt{constructor(){this.length=0,this.head=null,this.tail=null}get(o){if(o>=this.length)throw new Error("Position outside of list range");let t=this.head;for(let r=0;r<o;r++)t=Zlt([t,"optionalAccess",s=>s.next])||null;return t}addNode(o){const t={value:o,previous:null,next:null};if(o.__ln=t,o.previousSibling&&Koe(o.previousSibling)){const r=o.previousSibling.__ln.next;t.next=r,t.previous=o.previousSibling.__ln,o.previousSibling.__ln.next=t,r&&(r.previous=t)}else if(o.nextSibling&&Koe(o.nextSibling)&&o.nextSibling.__ln.previous){const r=o.nextSibling.__ln.previous;t.previous=r,t.next=o.nextSibling.__ln,o.nextSibling.__ln.previous=t,r&&(r.next=t)}else this.head&&(this.head.previous=t),t.next=this.head,this.head=t;null===t.next&&(this.tail=t),this.length++}removeNode(o){const t=o.__ln;!this.head||(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),o.__ln&&delete o.__ln,this.length--)}}const Xoe=(i,o)=>`${i}@${o}`;class zlt{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=o=>{o.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const o=[],t=new Set,r=new Vlt,s=y=>{let A=y,w=-2;for(;-2===w;)A=A&&A.nextSibling,w=A&&this.mirror.getId(A);return w},l=y=>{if(!y.parentNode||!Qoe(y))return;const A=ZS(y.parentNode)?this.mirror.getId(Joe(y)):this.mirror.getId(y.parentNode),w=s(y);if(-1===A||-1===w)return r.addNode(y);const I=BC(y,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:P=>{Goe(P,this.mirror)&&this.iframeManager.addIframe(P),qoe(P,this.mirror)&&this.stylesheetManager.trackLinkElement(P),cU(y)&&this.shadowDomManager.addShadowRoot(y.shadowRoot,this.doc)},onIframeLoad:(P,F)=>{this.iframeManager.attachIframe(P,F),this.shadowDomManager.observeAttachShadow(P)},onStylesheetLoad:(P,F)=>{this.stylesheetManager.attachLinkElement(P,F)}});I&&(o.push({parentId:A,nextId:w,node:I}),t.add(I.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const y of this.movedSet)ere(this.removes,y,this.mirror)&&!this.movedSet.has(y.parentNode)||l(y);for(const y of this.addedSet)!nre(this.droppedSet,y)&&!ere(this.removes,y,this.mirror)||nre(this.movedSet,y)?l(y):this.droppedSet.add(y);let u=null;for(;r.length;){let y=null;if(u){const A=this.mirror.getId(u.value.parentNode),w=s(u.value);-1!==A&&-1!==w&&(y=u)}if(!y){let A=r.tail;for(;A;){const w=A;if(A=A.previous,w){const I=this.mirror.getId(w.value.parentNode);if(-1===s(w.value))continue;if(-1!==I){y=w;break}{const F=w.value;if(F.parentNode&&F.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&-1!==this.mirror.getId(F.parentNode.host)){y=w;break}}}}}if(!y){for(;r.head;)r.removeNode(r.head.value);break}u=y.previous,r.removeNode(y.value),l(y.value)}const p={texts:this.texts.map(y=>({id:this.mirror.getId(y.node),value:y.value})).filter(y=>!t.has(y.id)).filter(y=>this.mirror.has(y.id)),attributes:this.attributes.map(y=>{const{attributes:A}=y;if("string"==typeof A.style){const w=JSON.stringify(y.styleDiff),I=JSON.stringify(y._unchangedStyles);w.length<A.style.length&&(w+I).split("var(").length===A.style.split("var(").length&&(A.style=y.styleDiff)}return{id:this.mirror.getId(y.node),attributes:A}}).filter(y=>!t.has(y.id)).filter(y=>this.mirror.has(y.id)),removes:this.removes,adds:o};!p.texts.length&&!p.attributes.length&&!p.removes.length&&!p.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(p))},this.processMutation=o=>{if(!sU(o.target,this.mirror))switch(o.type){case"characterData":{const t=o.target.textContent;!Qu(o.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&t!==o.oldValue&&this.texts.push({value:FC(o.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&t?this.maskTextFn?this.maskTextFn(t,Voe(o.target)):t.replace(/[\S]/g,"*"):t,node:o.target});break}case"attributes":{const t=o.target;let r=o.attributeName,s=o.target.getAttribute(r);if("value"===r){const u=iU(t),p=t.tagName;s=j4(t,p,u);const y=Y4({maskInputOptions:this.maskInputOptions,tagName:p,type:u});s=zS({isMasked:FC(o.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,y),element:t,value:s,maskInputFn:this.maskInputFn})}if(Qu(o.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||s===o.oldValue)return;let l=this.attributeMap.get(o.target);if("IFRAME"===t.tagName&&"src"===r&&!this.keepIframeSrcFn(s)){if(t.contentDocument)return;r="rr_src"}if(l||(l={node:o.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(l),this.attributeMap.set(o.target,l)),"type"===r&&"INPUT"===t.tagName&&"password"===(o.oldValue||"").toLowerCase()&&t.setAttribute("data-rr-is-password","true"),!Hoe(t.tagName,r)&&(l.attributes[r]=Boe(this.doc,OC(t.tagName),OC(r),s,t,this.maskAttributeFn),"style"===r)){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}const u=this.unattachedDoc.createElement("span");o.oldValue&&u.setAttribute("style",o.oldValue);for(const p of Array.from(t.style)){const y=t.style.getPropertyValue(p),A=t.style.getPropertyPriority(p);y!==u.style.getPropertyValue(p)||A!==u.style.getPropertyPriority(p)?l.styleDiff[p]=""===A?y:[y,A]:l._unchangedStyles[p]=[y,A]}for(const p of Array.from(u.style))""===t.style.getPropertyValue(p)&&(l.styleDiff[p]=!1)}break}case"childList":if(Qu(o.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;o.addedNodes.forEach(t=>this.genAdds(t,o.target)),o.removedNodes.forEach(t=>{const r=this.mirror.getId(t),s=ZS(o.target)?this.mirror.getId(o.target.host):this.mirror.getId(o.target);Qu(o.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||sU(t,this.mirror)||!function Flt(i,o){return-1!==o.getId(i)}(t,this.mirror)||(this.addedSet.has(t)?(uU(this.addedSet,t),this.droppedSet.add(t)):this.addedSet.has(o.target)&&-1===r||zoe(o.target,this.mirror)||(this.movedSet.has(t)&&this.movedMap[Xoe(r,s)]?uU(this.movedSet,t):this.removes.push({parentId:s,id:r,isShadow:!(!ZS(o.target)||!VS(o.target))||void 0})),this.mapRemoves.push(t))})}},this.genAdds=(o,t)=>{if(!this.processedNodeManager.inOtherBuffer(o,this)&&!this.addedSet.has(o)&&!this.movedSet.has(o)){if(this.mirror.hasNode(o)){if(sU(o,this.mirror))return;this.movedSet.add(o);let r=null;t&&this.mirror.hasNode(t)&&(r=this.mirror.getId(t)),r&&-1!==r&&(this.movedMap[Xoe(this.mirror.getId(o),r)]=!0)}else this.addedSet.add(o),this.droppedSet.delete(o);Qu(o,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(o.childNodes.forEach(r=>this.genAdds(r)),cU(o)&&o.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,o)}))}}}init(o){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(t=>{this[t]=o[t]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function uU(i,o){i.delete(o),o.childNodes.forEach(t=>uU(i,t))}function ere(i,o,t){return 0!==i.length&&tre(i,o,t)}function tre(i,o,t){const{parentNode:r}=o;if(!r)return!1;const s=t.getId(r);return!!i.some(l=>l.id===s)||tre(i,r,t)}function nre(i,o){return 0!==i.size&&ire(i,o)}function ire(i,o){const{parentNode:t}=o;return!!t&&(!!i.has(t)||ire(i,t))}let JS;const ro=i=>JS?(...t)=>{try{return i(...t)}catch(r){if(JS&&!0===JS(r))return()=>{};throw r}}:i;function gh(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}const $C=[];function QS(i){try{if("composedPath"in i){const o=i.composedPath();if(o.length)return o[0]}else if("path"in i&&i.path.length)return i.path[0]}catch{}return i&&i.target}function ore(i,o){const t=new zlt;$C.push(t),t.init(i);let r=window.MutationObserver||window.__rrMutationObserver;const s=gh([window,"optionalAccess",u=>u.Zone,"optionalAccess",u=>u.__symbol__,"optionalCall",u=>u("MutationObserver")]);s&&window[s]&&(r=window[s]);const l=new r(ro(u=>{i.onMutation&&!1===i.onMutation(u)||t.processMutations.bind(t)(u)}));return l.observe(o,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),l}function rre({scrollCb:i,doc:o,mirror:t,blockClass:r,blockSelector:s,unblockSelector:l,sampling:u}){return Ll("scroll",ro(qS(ro(y=>{const A=QS(y);if(!A||Qu(A,r,s,l,!0))return;const w=t.getId(A);if(A===o&&o.defaultView){const I=Yoe(o.defaultView);i({id:w,x:I.left,y:I.top})}else i({id:w,x:A.scrollLeft,y:A.scrollTop})}),u.scroll||100)),o)}const Klt=["INPUT","TEXTAREA","SELECT"],are=new WeakMap;function Xlt({inputCb:i,doc:o,mirror:t,blockClass:r,blockSelector:s,unblockSelector:l,ignoreClass:u,ignoreSelector:p,maskInputOptions:y,maskInputFn:A,sampling:w,userTriggeredOnInput:I,maskTextClass:P,unmaskTextClass:F,maskTextSelector:V,unmaskTextSelector:oe}){function Ae(Le){let tt=QS(Le);const kt=Le.isTrusted,Ke=tt&&nU(tt.tagName);if("OPTION"===Ke&&(tt=tt.parentElement),!tt||!Ke||Klt.indexOf(Ke)<0||Qu(tt,r,s,l,!0))return;const Re=tt;if(Re.classList.contains(u)||p&&Re.matches(p))return;const ot=iU(tt);let Ze=j4(Re,Ke,ot),At=!1;const Xe=Y4({maskInputOptions:y,tagName:Ke,type:ot}),Oe=FC(tt,P,V,F,oe,Xe);("radio"===ot||"checkbox"===ot)&&(At=tt.checked),Ze=zS({isMasked:Oe,element:tt,value:Ze,maskInputFn:A}),ue(tt,I?{text:Ze,isChecked:At,userTriggered:kt}:{text:Ze,isChecked:At});const ze=tt.name;"radio"===ot&&ze&&At&&o.querySelectorAll(`input[type="radio"][name="${ze}"]`).forEach(it=>{if(it!==tt){const ct=zS({isMasked:Oe,element:it,value:j4(it,Ke,ot),maskInputFn:A});ue(it,I?{text:ct,isChecked:!At,userTriggered:!1}:{text:ct,isChecked:!At})}})}function ue(Le,tt){const kt=are.get(Le);if(!kt||kt.text!==tt.text||kt.isChecked!==tt.isChecked){are.set(Le,tt);const Ke=t.getId(Le);ro(i)({...tt,id:Ke})}}const Be=("last"===w.input?["change"]:["input","change"]).map(Le=>Ll(Le,ro(Ae),o)),Me=o.defaultView;if(!Me)return()=>{Be.forEach(Le=>Le())};const He=Me.Object.getOwnPropertyDescriptor(Me.HTMLInputElement.prototype,"value");return He&&He.set&&Be.push(...[[Me.HTMLInputElement.prototype,"value"],[Me.HTMLInputElement.prototype,"checked"],[Me.HTMLSelectElement.prototype,"value"],[Me.HTMLTextAreaElement.prototype,"value"],[Me.HTMLSelectElement.prototype,"selectedIndex"],[Me.HTMLOptionElement.prototype,"selected"]].map(Le=>Uoe(Le[0],Le[1],{set(){ro(Ae)({target:this,isTrusted:!1})}},!1,Me))),ro(()=>{Be.forEach(Le=>Le())})}function G4(i){return function t(r,s){if(q4("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||q4("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||q4("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||q4("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const u=Array.from(r.parentRule.cssRules).indexOf(r);s.unshift(u)}else if(r.parentStyleSheet){const u=Array.from(r.parentStyleSheet.cssRules).indexOf(r);s.unshift(u)}return s}(i,[])}function Zm(i,o,t){let r,s;return i?(i.ownerNode?r=o.getId(i.ownerNode):s=t.getId(i),{styleId:s,id:r}):{}}function sre({mirror:i,stylesheetManager:o},t){let r=null;r=i.getId("#document"===t.nodeName?t:t.host);const s=gh("#document"===t.nodeName?[t,"access",u=>u.defaultView,"optionalAccess",u=>u.Document]:[t,"access",u=>u.ownerDocument,"optionalAccess",u=>u.defaultView,"optionalAccess",u=>u.ShadowRoot]),l=gh([s,"optionalAccess",u=>u.prototype])?Object.getOwnPropertyDescriptor(gh([s,"optionalAccess",u=>u.prototype]),"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&s&&l?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){return gh([l,"access",u=>u.get,"optionalAccess",u=>u.call,"call",u=>u(this)])},set(u){const p=gh([l,"access",y=>y.set,"optionalAccess",y=>y.call,"call",y=>y(this,u)]);if(null!==r&&-1!==r)try{o.adoptStyleSheets(u,r)}catch{}return p}}),ro(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})})):()=>{}}function act(i,o={}){const t=i.doc.defaultView;if(!t)return()=>{};const r=ore(i,i.doc),s=function Jlt({mousemoveCb:i,sampling:o,doc:t,mirror:r}){if(!1===o.mousemove)return()=>{};const s="number"==typeof o.mousemove?o.mousemove:50,l="number"==typeof o.mousemoveCallback?o.mousemoveCallback:500;let p,u=[];const y=qS(ro(I=>{const P=Date.now()-p;i(u.map(F=>(F.timeOffset-=P,F)),I),u=[],p=null}),l),A=ro(qS(ro(I=>{const P=QS(I),{clientX:F,clientY:V}=lU(I)?I.changedTouches[0]:I;p||(p=V4()),u.push({x:F,y:V,id:r.getId(P),timeOffset:V4()-p}),y(typeof DragEvent<"u"&&I instanceof DragEvent?Ei.Drag:I instanceof MouseEvent?Ei.MouseMove:Ei.TouchMove)}),s,{trailing:!1})),w=[Ll("mousemove",A,t),Ll("touchmove",A,t),Ll("drag",A,t)];return ro(()=>{w.forEach(I=>I())})}(i),l=function Qlt({mouseInteractionCb:i,doc:o,mirror:t,blockClass:r,blockSelector:s,unblockSelector:l,sampling:u}){if(!1===u.mouseInteraction)return()=>{};const p=!0===u.mouseInteraction||void 0===u.mouseInteraction?{}:u.mouseInteraction,y=[];let A=null;return Object.keys(Rl).filter(I=>Number.isNaN(Number(I))&&!I.endsWith("_Departed")&&!1!==p[I]).forEach(I=>{let P=OC(I);const F=(I=>P=>{const F=QS(P);if(Qu(F,r,s,l,!0))return;let V=null,oe=I;if("pointerType"in P){switch(P.pointerType){case"mouse":V=qg.Mouse;break;case"touch":V=qg.Touch;break;case"pen":V=qg.Pen}V===qg.Touch&&(Rl[I]===Rl.MouseDown?oe="TouchStart":Rl[I]===Rl.MouseUp&&(oe="TouchEnd"))}else lU(P)&&(V=qg.Touch);null!==V?(A=V,(oe.startsWith("Touch")&&V===qg.Touch||oe.startsWith("Mouse")&&V===qg.Mouse)&&(V=null)):Rl[I]===Rl.Click&&(V=A,A=null);const Ae=lU(P)?P.changedTouches[0]:P;if(!Ae)return;const ue=t.getId(F),{clientX:Se,clientY:Be}=Ae;ro(i)({type:Rl[oe],id:ue,x:Se,y:Be,...null!==V&&{pointerType:V}})})(I);if(window.PointerEvent)switch(Rl[I]){case Rl.MouseDown:case Rl.MouseUp:P=P.replace("mouse","pointer");break;case Rl.TouchStart:case Rl.TouchEnd:return}y.push(Ll(P,F,o))}),ro(()=>{y.forEach(I=>I())})}(i),u=rre(i),p=function Wlt({viewportResizeCb:i},{win:o}){let t=-1,r=-1;return Ll("resize",ro(qS(ro(()=>{const l=joe(),u=Zoe();(t!==l||r!==u)&&(i({width:Number(u),height:Number(l)}),t=l,r=u)}),200)),o)}(i,{win:t}),y=Xlt(i),A=function nct({mediaInteractionCb:i,blockClass:o,blockSelector:t,unblockSelector:r,mirror:s,sampling:l,doc:u}){const p=ro(A=>qS(ro(w=>{const I=QS(w);if(!I||Qu(I,o,t,r,!0))return;const{currentTime:P,volume:F,muted:V,playbackRate:oe}=I;i({type:A,id:s.getId(I),currentTime:P,volume:F,muted:V,playbackRate:oe})}),l.media||500)),y=[Ll("play",p(0),u),Ll("pause",p(1),u),Ll("seeked",p(2),u),Ll("volumechange",p(3),u),Ll("ratechange",p(4),u)];return ro(()=>{y.forEach(A=>A())})}(i),w=function ect({styleSheetRuleCb:i,mirror:o,stylesheetManager:t},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const s=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(s,{apply:ro((w,I,P)=>{const[F,V]=P,{id:oe,styleId:Ae}=Zm(I,o,t.styleMirror);return(oe&&-1!==oe||Ae&&-1!==Ae)&&i({id:oe,styleId:Ae,adds:[{rule:F,index:V}]}),w.apply(I,P)})});const l=r.CSSStyleSheet.prototype.deleteRule;let u,p;r.CSSStyleSheet.prototype.deleteRule=new Proxy(l,{apply:ro((w,I,P)=>{const[F]=P,{id:V,styleId:oe}=Zm(I,o,t.styleMirror);return(V&&-1!==V||oe&&-1!==oe)&&i({id:V,styleId:oe,removes:[{index:F}]}),w.apply(I,P)})}),r.CSSStyleSheet.prototype.replace&&(u=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(u,{apply:ro((w,I,P)=>{const[F]=P,{id:V,styleId:oe}=Zm(I,o,t.styleMirror);return(V&&-1!==V||oe&&-1!==oe)&&i({id:V,styleId:oe,replace:F}),w.apply(I,P)})})),r.CSSStyleSheet.prototype.replaceSync&&(p=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(p,{apply:ro((w,I,P)=>{const[F]=P,{id:V,styleId:oe}=Zm(I,o,t.styleMirror);return(V&&-1!==V||oe&&-1!==oe)&&i({id:V,styleId:oe,replaceSync:F}),w.apply(I,P)})}));const y={};J4("CSSGroupingRule")?y.CSSGroupingRule=r.CSSGroupingRule:(J4("CSSMediaRule")&&(y.CSSMediaRule=r.CSSMediaRule),J4("CSSConditionRule")&&(y.CSSConditionRule=r.CSSConditionRule),J4("CSSSupportsRule")&&(y.CSSSupportsRule=r.CSSSupportsRule));const A={};return Object.entries(y).forEach(([w,I])=>{A[w]={insertRule:I.prototype.insertRule,deleteRule:I.prototype.deleteRule},I.prototype.insertRule=new Proxy(A[w].insertRule,{apply:ro((P,F,V)=>{const[oe,Ae]=V,{id:ue,styleId:Se}=Zm(F.parentStyleSheet,o,t.styleMirror);return(ue&&-1!==ue||Se&&-1!==Se)&&i({id:ue,styleId:Se,adds:[{rule:oe,index:[...G4(F),Ae||0]}]}),P.apply(F,V)})}),I.prototype.deleteRule=new Proxy(A[w].deleteRule,{apply:ro((P,F,V)=>{const[oe]=V,{id:Ae,styleId:ue}=Zm(F.parentStyleSheet,o,t.styleMirror);return(Ae&&-1!==Ae||ue&&-1!==ue)&&i({id:Ae,styleId:ue,removes:[{index:[...G4(F),oe]}]}),P.apply(F,V)})})}),ro(()=>{r.CSSStyleSheet.prototype.insertRule=s,r.CSSStyleSheet.prototype.deleteRule=l,u&&(r.CSSStyleSheet.prototype.replace=u),p&&(r.CSSStyleSheet.prototype.replaceSync=p),Object.entries(y).forEach(([w,I])=>{I.prototype.insertRule=A[w].insertRule,I.prototype.deleteRule=A[w].deleteRule})})}(i,{win:t}),I=sre(i,i.doc),P=function tct({styleDeclarationCb:i,mirror:o,ignoreCSSAttributes:t,stylesheetManager:r},{win:s}){const l=s.CSSStyleDeclaration.prototype.setProperty;s.CSSStyleDeclaration.prototype.setProperty=new Proxy(l,{apply:ro((p,y,A)=>{const[w,I,P]=A;if(t.has(w))return l.apply(y,[w,I,P]);const{id:F,styleId:V}=Zm(gh([y,"access",oe=>oe.parentRule,"optionalAccess",oe=>oe.parentStyleSheet]),o,r.styleMirror);return(F&&-1!==F||V&&-1!==V)&&i({id:F,styleId:V,set:{property:w,value:I,priority:P},index:G4(y.parentRule)}),p.apply(y,A)})});const u=s.CSSStyleDeclaration.prototype.removeProperty;return s.CSSStyleDeclaration.prototype.removeProperty=new Proxy(u,{apply:ro((p,y,A)=>{const[w]=A;if(t.has(w))return u.apply(y,[w]);const{id:I,styleId:P}=Zm(gh([y,"access",F=>F.parentRule,"optionalAccess",F=>F.parentStyleSheet]),o,r.styleMirror);return(I&&-1!==I||P&&-1!==P)&&i({id:I,styleId:P,remove:{property:w},index:G4(y.parentRule)}),p.apply(y,A)})}),ro(()=>{s.CSSStyleDeclaration.prototype.setProperty=l,s.CSSStyleDeclaration.prototype.removeProperty=u})}(i,{win:t}),F=i.collectFonts?function ict({fontCb:i,doc:o}){const t=o.defaultView;if(!t)return()=>{};const r=[],s=new WeakMap,l=t.FontFace;t.FontFace=function(y,A,w){const I=new l(y,A,w);return s.set(I,{family:y,buffer:"string"!=typeof A,descriptors:w,fontSource:"string"==typeof A?A:JSON.stringify(Array.from(new Uint8Array(A)))}),I};const u=aU(o.fonts,"add",function(p){return function(y){return z4(ro(()=>{const A=s.get(y);A&&(i(A),s.delete(y))}),0),p.apply(this,[y])}});return r.push(()=>{t.FontFace=l}),r.push(u),ro(()=>{r.forEach(p=>p())})}(i):()=>{},V=function oct(i){const{doc:o,mirror:t,blockClass:r,blockSelector:s,unblockSelector:l,selectionCb:u}=i;let p=!0;const y=ro(()=>{const A=o.getSelection();if(!A||p&&gh([A,"optionalAccess",P=>P.isCollapsed]))return;p=A.isCollapsed||!1;const w=[],I=A.rangeCount||0;for(let P=0;P<I;P++){const F=A.getRangeAt(P),{startContainer:V,startOffset:oe,endContainer:Ae,endOffset:ue}=F;Qu(V,r,s,l,!0)||Qu(Ae,r,s,l,!0)||w.push({start:t.getId(V),startOffset:oe,end:t.getId(Ae),endOffset:ue})}u({ranges:w})});return y(),Ll("selectionchange",y)}(i),oe=function rct({doc:i,customElementCb:o}){const t=i.defaultView;return t&&t.customElements?aU(t.customElements,"define",function(s){return function(l,u,p){try{o({define:{name:l}})}catch{}return s.apply(this,[l,u,p])}}):()=>{}}(i),Ae=[];for(const ue of i.plugins)Ae.push(ue.observer(ue.callback,t,ue.options));return ro(()=>{$C.forEach(ue=>ue.reset()),r.disconnect(),s(),l(),u(),p(),y(),A(),w(),I(),P(),F(),V(),oe(),Ae.forEach(ue=>ue())})}function q4(i){return typeof window[i]<"u"}function J4(i){return Boolean(typeof window[i]<"u"&&window[i].prototype&&"insertRule"in window[i].prototype&&"deleteRule"in window[i].prototype)}class pU{constructor(o){this.generateIdFn=o,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(o,t,r,s){const l=r||this.getIdToRemoteIdMap(o),u=s||this.getRemoteIdToIdMap(o);let p=l.get(t);return p||(p=this.generateIdFn(),l.set(t,p),u.set(p,t)),p}getIds(o,t){const r=this.getIdToRemoteIdMap(o),s=this.getRemoteIdToIdMap(o);return t.map(l=>this.getId(o,l,r,s))}getRemoteId(o,t,r){const s=r||this.getRemoteIdToIdMap(o);return"number"!=typeof t?t:s.get(t)||-1}getRemoteIds(o,t){const r=this.getRemoteIdToIdMap(o);return t.map(s=>this.getRemoteId(o,s,r))}reset(o){if(!o)return this.iframeIdToRemoteIdMap=new WeakMap,void(this.iframeRemoteIdToIdMap=new WeakMap);this.iframeIdToRemoteIdMap.delete(o),this.iframeRemoteIdToIdMap.delete(o)}getIdToRemoteIdMap(o){let t=this.iframeIdToRemoteIdMap.get(o);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(o,t)),t}getRemoteIdToIdMap(o){let t=this.iframeRemoteIdToIdMap.get(o);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(o,t)),t}}function lre(i){let o,t=i[0],r=1;for(;r<i.length;){const s=i[r],l=i[r+1];if(r+=2,("optionalAccess"===s||"optionalCall"===s)&&null==t)return;"access"===s||"optionalAccess"===s?(o=t,t=l(t)):("call"===s||"optionalCall"===s)&&(t=l((...u)=>t.call(o,...u)),o=void 0)}return t}class sct{constructor(){this.crossOriginIframeMirror=new pU(oU),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class lct{constructor(o){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new pU(oU),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=o.mutationCb,this.wrappedEmit=o.wrappedEmit,this.stylesheetManager=o.stylesheetManager,this.recordCrossOriginIframes=o.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new pU(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=o.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(o){this.iframes.set(o,!0),o.contentWindow&&this.crossOriginIframeMap.set(o.contentWindow,o)}addLoadListener(o){this.loadListener=o}attachIframe(o,t){this.mutationCb({adds:[{parentId:this.mirror.getId(o),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),lre([this,"access",r=>r.loadListener,"optionalCall",r=>r(o)]),o.contentDocument&&o.contentDocument.adoptedStyleSheets&&o.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(o.contentDocument.adoptedStyleSheets,this.mirror.getId(o.contentDocument))}handleMessage(o){const t=o;if("rrweb"!==t.data.type||t.origin!==t.data.origin||!o.source)return;const s=this.crossOriginIframeMap.get(o.source);if(!s)return;const l=this.transformCrossOriginEvent(s,t.data.event);l&&this.wrappedEmit(l,t.data.isCheckout)}transformCrossOriginEvent(o,t){switch(t.type){case Ii.FullSnapshot:{this.crossOriginIframeMirror.reset(o),this.crossOriginIframeStyleMirror.reset(o),this.replaceIdOnNode(t.data.node,o);const r=t.data.node.id;return this.crossOriginIframeRootIdMap.set(o,r),this.patchRootIdOnNode(t.data.node,r),{timestamp:t.timestamp,type:Ii.IncrementalSnapshot,data:{source:Ei.Mutation,adds:[{parentId:this.mirror.getId(o),nextId:null,node:t.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case Ii.Meta:case Ii.Load:case Ii.DomContentLoaded:return!1;case Ii.Plugin:return t;case Ii.Custom:return this.replaceIds(t.data.payload,o,["id","parentId","previousId","nextId"]),t;case Ii.IncrementalSnapshot:switch(t.data.source){case Ei.Mutation:return t.data.adds.forEach(r=>{this.replaceIds(r,o,["parentId","nextId","previousId"]),this.replaceIdOnNode(r.node,o);const s=this.crossOriginIframeRootIdMap.get(o);s&&this.patchRootIdOnNode(r.node,s)}),t.data.removes.forEach(r=>{this.replaceIds(r,o,["parentId","id"])}),t.data.attributes.forEach(r=>{this.replaceIds(r,o,["id"])}),t.data.texts.forEach(r=>{this.replaceIds(r,o,["id"])}),t;case Ei.Drag:case Ei.TouchMove:case Ei.MouseMove:return t.data.positions.forEach(r=>{this.replaceIds(r,o,["id"])}),t;case Ei.ViewportResize:return!1;case Ei.MediaInteraction:case Ei.MouseInteraction:case Ei.Scroll:case Ei.CanvasMutation:case Ei.Input:return this.replaceIds(t.data,o,["id"]),t;case Ei.StyleSheetRule:case Ei.StyleDeclaration:return this.replaceIds(t.data,o,["id"]),this.replaceStyleIds(t.data,o,["styleId"]),t;case Ei.Font:return t;case Ei.Selection:return t.data.ranges.forEach(r=>{this.replaceIds(r,o,["start","end"])}),t;case Ei.AdoptedStyleSheet:return this.replaceIds(t.data,o,["id"]),this.replaceStyleIds(t.data,o,["styleIds"]),lre([t,"access",r=>r.data,"access",r=>r.styles,"optionalAccess",r=>r.forEach,"call",r=>r(s=>{this.replaceStyleIds(s,o,["styleId"])})]),t}}return!1}replace(o,t,r,s){for(const l of s)!Array.isArray(t[l])&&"number"!=typeof t[l]||(t[l]=Array.isArray(t[l])?o.getIds(r,t[l]):o.getId(r,t[l]));return t}replaceIds(o,t,r){return this.replace(this.crossOriginIframeMirror,o,t,r)}replaceStyleIds(o,t,r){return this.replace(this.crossOriginIframeStyleMirror,o,t,r)}replaceIdOnNode(o,t){this.replaceIds(o,t,["id","rootId"]),"childNodes"in o&&o.childNodes.forEach(r=>{this.replaceIdOnNode(r,t)})}patchRootIdOnNode(o,t){o.type!==qa.Document&&!o.rootId&&(o.rootId=t),"childNodes"in o&&o.childNodes.forEach(r=>{this.patchRootIdOnNode(r,t)})}}class cct{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class dct{constructor(o){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=o.mutationCb,this.scrollCb=o.scrollCb,this.bypassOptions=o.bypassOptions,this.mirror=o.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(o,t){if(!VS(o)||this.shadowDoms.has(o))return;this.shadowDoms.add(o);const r=ore({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},o);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(rre({...this.bypassOptions,scrollCb:this.scrollCb,doc:o,mirror:this.mirror})),z4(()=>{o.adoptedStyleSheets&&o.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(o.adoptedStyleSheets,this.mirror.getId(o.host)),this.restoreHandlers.push(sre({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},o))},0)}observeAttachShadow(o){!o.contentWindow||!o.contentDocument||this.patchAttachShadow(o.contentWindow.Element,o.contentDocument)}patchAttachShadow(o,t){const r=this;this.restoreHandlers.push(aU(o.prototype,"attachShadow",function(s){return function(l){const u=s.call(this,l);return this.shadowRoot&&Qoe(this)&&r.addShadowRoot(this.shadowRoot,t),u}}))}reset(){this.restoreHandlers.forEach(o=>{try{o()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}class cre{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}}class uct{constructor(o){this.trackedLinkElements=new WeakSet,this.styleMirror=new Hlt,this.mutationCb=o.mutationCb,this.adoptedStyleSheetCb=o.adoptedStyleSheetCb}attachLinkElement(o,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(o)}trackLinkElement(o){this.trackedLinkElements.has(o)||(this.trackedLinkElements.add(o),this.trackStylesheetInLinkElement(o))}adoptStyleSheets(o,t){if(0===o.length)return;const r={id:t,styleIds:[]},s=[];for(const l of o){let u;this.styleMirror.has(l)?u=this.styleMirror.getId(l):(u=this.styleMirror.add(l),s.push({styleId:u,rules:Array.from(l.rules||CSSRule,(p,y)=>({rule:Noe(p),index:y}))})),r.styleIds.push(u)}s.length>0&&(r.styles=s),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(o){}}class pct{constructor(){this.nodeMap=new WeakMap,this.loop=!0,this.periodicallyClear()}periodicallyClear(){!function Ylt(...i){dU("requestAnimationFrame")(...i)}(()=>{this.clear(),this.loop&&this.periodicallyClear()})}inOtherBuffer(o,t){const r=this.nodeMap.get(o);return r&&Array.from(r).some(s=>s!==t)}add(o,t){this.nodeMap.set(o,(this.nodeMap.get(o)||new Set).add(t))}clear(){this.nodeMap=new WeakMap}destroy(){this.loop=!1}}let Ca,Q4;const Wu=function hlt(){return new Loe}();function Vm(i={}){const{emit:o,checkoutEveryNms:t,checkoutEveryNth:r,blockClass:s="rr-block",blockSelector:l=null,unblockSelector:u=null,ignoreClass:p="rr-ignore",ignoreSelector:y=null,maskAllText:A=!1,maskTextClass:w="rr-mask",unmaskTextClass:I=null,maskTextSelector:P=null,unmaskTextSelector:F=null,inlineStylesheet:V=!0,maskAllInputs:oe,maskInputOptions:Ae,slimDOMOptions:ue,maskAttributeFn:Se,maskInputFn:Be,maskTextFn:Me,maxCanvasSize:He=null,packFn:Ye,sampling:Le={},dataURLOptions:tt={},mousemoveWait:kt,recordCanvas:Ke=!1,recordCrossOriginIframes:Re=!1,recordAfter:ot=("DOMContentLoaded"===i.recordAfter?i.recordAfter:"load"),userTriggeredOnInput:Ze=!1,collectFonts:At=!1,inlineImages:Xe=!1,plugins:Oe,keepIframeSrcFn:ze=(()=>!1),ignoreCSSAttributes:it=new Set([]),errorHandler:ct,onMutation:yt,getCanvasManager:Nn}=i;!function Glt(i){JS=i}(ct);const Vt=!Re||window.parent===window;let yi=!1;if(!Vt)try{window.parent.document&&(yi=!1)}catch{yi=!0}if(Vt&&!o)throw new Error("emit function is required");void 0!==kt&&void 0===Le.mousemove&&(Le.mousemove=kt),Wu.reset();const Mn=!0===oe?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:void 0!==Ae?Ae:{},Ao=!0===ue||"all"===ue?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===ue,headMetaDescKeywords:"all"===ue}:ue||{};!function Blt(i=window){"NodeList"in i&&!i.NodeList.prototype.forEach&&(i.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in i&&!i.DOMTokenList.prototype.forEach&&(i.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...o)=>{let t=o[0];if(!(0 in o))throw new TypeError("1 argument is required");do{if(this===t)return!0}while(t=t&&t.parentNode);return!1})}();let ho,Vn=0;const Vr=fo=>{for(const ss of Oe||[])ss.eventProcessor&&(fo=ss.eventProcessor(fo));return Ye&&!yi&&(fo=Ye(fo)),fo};Ca=(fo,ss)=>{const Fi=fo;if(Fi.timestamp=V4(),P$([$C,"access",wr=>wr[0],"optionalAccess",wr=>wr.isFrozen,"call",wr=>wr()])&&Fi.type!==Ii.FullSnapshot&&!(Fi.type===Ii.IncrementalSnapshot&&Fi.data.source===Ei.Mutation)&&$C.forEach(wr=>wr.unfreeze()),Vt)P$([o,"optionalCall",wr=>wr(Vr(Fi),ss)]);else if(yi){const wr={type:"rrweb",event:Vr(Fi),origin:window.location.origin,isCheckout:ss};window.parent.postMessage(wr,"*")}if(Fi.type===Ii.FullSnapshot)ho=Fi,Vn=0;else if(Fi.type===Ii.IncrementalSnapshot){if(Fi.data.source===Ei.Mutation&&Fi.data.isAttachIframe)return;Vn++;const so=t&&ho&&Fi.timestamp-ho.timestamp>t;(r&&Vn>=r||so)&&eb(!0)}};const tr=fo=>{Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.Mutation,...fo}})},fr=fo=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.Scroll,...fo}}),ao=fo=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.CanvasMutation,...fo}}),go=new uct({mutationCb:tr,adoptedStyleSheetCb:fo=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.AdoptedStyleSheet,...fo}})}),Lr="boolean"==typeof __RRWEB_EXCLUDE_IFRAME__&&__RRWEB_EXCLUDE_IFRAME__?new sct:new lct({mirror:Wu,mutationCb:tr,stylesheetManager:go,recordCrossOriginIframes:Re,wrappedEmit:Ca});for(const fo of Oe||[])fo.getMirror&&fo.getMirror({nodeMirror:Wu,crossOriginIframeMirror:Lr.crossOriginIframeMirror,crossOriginIframeStyleMirror:Lr.crossOriginIframeStyleMirror});const Jm=new pct,Qm=function gct(i,o){try{return i?i(o):new cre}catch{return console.warn("Unable to initialize CanvasManager"),new cre}}(Nn,{mirror:Wu,win:window,mutationCb:fo=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.CanvasMutation,...fo}}),recordCanvas:Ke,blockClass:s,blockSelector:l,unblockSelector:u,maxCanvasSize:He,sampling:Le.canvas,dataURLOptions:tt,errorHandler:ct}),mh="boolean"==typeof __RRWEB_EXCLUDE_SHADOW_DOM__&&__RRWEB_EXCLUDE_SHADOW_DOM__?new cct:new dct({mutationCb:tr,scrollCb:fr,bypassOptions:{onMutation:yt,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:A,maskTextClass:w,unmaskTextClass:I,maskTextSelector:P,unmaskTextSelector:F,inlineStylesheet:V,maskInputOptions:Mn,dataURLOptions:tt,maskAttributeFn:Se,maskTextFn:Me,maskInputFn:Be,recordCanvas:Ke,inlineImages:Xe,sampling:Le,slimDOMOptions:Ao,iframeManager:Lr,stylesheetManager:go,canvasManager:Qm,keepIframeSrcFn:ze,processedNodeManager:Jm},mirror:Wu}),eb=(fo=!1)=>{Ca({type:Ii.Meta,data:{href:window.location.href,width:Zoe(),height:joe()}},fo),go.reset(),mh.init(),$C.forEach(Fi=>Fi.lock());const ss=function Rlt(i,o){const{mirror:t=new Loe,blockClass:r="rr-block",blockSelector:s=null,unblockSelector:l=null,maskAllText:u=!1,maskTextClass:p="rr-mask",unmaskTextClass:y=null,maskTextSelector:A=null,unmaskTextSelector:w=null,inlineStylesheet:I=!0,inlineImages:P=!1,recordCanvas:F=!1,maskAllInputs:V=!1,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOM:Se=!1,dataURLOptions:Be,preserveWhiteSpace:Me,onSerialize:He,onIframeLoad:Ye,iframeLoadTimeout:Le,onStylesheetLoad:tt,stylesheetLoadTimeout:kt,keepIframeSrcFn:Ke=(()=>!1)}=o||{};return BC(i,{doc:i,mirror:t,blockClass:r,blockSelector:s,unblockSelector:l,maskAllText:u,maskTextClass:p,unmaskTextClass:y,maskTextSelector:A,unmaskTextSelector:w,skipChild:!1,inlineStylesheet:I,maskInputOptions:!0===V?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:!1===V?{}:V,maskAttributeFn:oe,maskTextFn:Ae,maskInputFn:ue,slimDOMOptions:!0===Se||"all"===Se?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===Se,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===Se?{}:Se,dataURLOptions:Be,inlineImages:P,recordCanvas:F,preserveWhiteSpace:Me,onSerialize:He,onIframeLoad:Ye,iframeLoadTimeout:Le,onStylesheetLoad:tt,stylesheetLoadTimeout:kt,keepIframeSrcFn:Ke,newlyAddedElement:!1})}(document,{mirror:Wu,blockClass:s,blockSelector:l,unblockSelector:u,maskAllText:A,maskTextClass:w,unmaskTextClass:I,maskTextSelector:P,unmaskTextSelector:F,inlineStylesheet:V,maskAllInputs:Mn,maskAttributeFn:Se,maskInputFn:Be,maskTextFn:Me,slimDOM:Ao,dataURLOptions:tt,recordCanvas:Ke,inlineImages:Xe,onSerialize:Fi=>{Goe(Fi,Wu)&&Lr.addIframe(Fi),qoe(Fi,Wu)&&go.trackLinkElement(Fi),cU(Fi)&&mh.addShadowRoot(Fi.shadowRoot,document)},onIframeLoad:(Fi,wr)=>{Lr.attachIframe(Fi,wr),mh.observeAttachShadow(Fi)},onStylesheetLoad:(Fi,wr)=>{go.attachLinkElement(Fi,wr)},keepIframeSrcFn:ze});if(!ss)return console.warn("Failed to snapshot the document");Ca({type:Ii.FullSnapshot,data:{node:ss,initialOffset:Yoe(window)}}),$C.forEach(Fi=>Fi.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&go.adoptStyleSheets(document.adoptedStyleSheets,Wu.getId(document))};Q4=eb;try{const fo=[],ss=wr=>ro(act)({onMutation:yt,mutationCb:tr,mousemoveCb:(so,Ku)=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ku,positions:so}}),mouseInteractionCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.MouseInteraction,...so}}),scrollCb:fr,viewportResizeCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.ViewportResize,...so}}),inputCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.Input,...so}}),mediaInteractionCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.MediaInteraction,...so}}),styleSheetRuleCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.StyleSheetRule,...so}}),styleDeclarationCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.StyleDeclaration,...so}}),canvasMutationCb:ao,fontCb:so=>Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.Font,...so}}),selectionCb:so=>{Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.Selection,...so}})},customElementCb:so=>{Ca({type:Ii.IncrementalSnapshot,data:{source:Ei.CustomElement,...so}})},blockClass:s,ignoreClass:p,ignoreSelector:y,maskAllText:A,maskTextClass:w,unmaskTextClass:I,maskTextSelector:P,unmaskTextSelector:F,maskInputOptions:Mn,inlineStylesheet:V,sampling:Le,recordCanvas:Ke,inlineImages:Xe,userTriggeredOnInput:Ze,collectFonts:At,doc:wr,maskAttributeFn:Se,maskInputFn:Be,maskTextFn:Me,keepIframeSrcFn:ze,blockSelector:l,unblockSelector:u,slimDOMOptions:Ao,dataURLOptions:tt,mirror:Wu,iframeManager:Lr,stylesheetManager:go,shadowDomManager:mh,processedNodeManager:Jm,canvasManager:Qm,ignoreCSSAttributes:it,plugins:P$([Oe,"optionalAccess",so=>so.filter,"call",so=>so(Ku=>Ku.observer),"optionalAccess",so=>so.map,"call",so=>so(Ku=>({observer:Ku.observer,options:Ku.options,callback:iO=>Ca({type:Ii.Plugin,data:{plugin:Ku.name,payload:iO}})}))])||[]},{});Lr.addLoadListener(wr=>{try{fo.push(ss(wr.contentDocument))}catch(so){console.warn(so)}});const Fi=()=>{eb(),fo.push(ss(document))};return"interactive"===document.readyState||"complete"===document.readyState?Fi():(fo.push(Ll("DOMContentLoaded",()=>{Ca({type:Ii.DomContentLoaded,data:{}}),"DOMContentLoaded"===ot&&Fi()})),fo.push(Ll("load",()=>{Ca({type:Ii.Load,data:{}}),"load"===ot&&Fi()},window))),()=>{fo.forEach(wr=>wr()),Jm.destroy(),Q4=void 0,function qlt(){JS=void 0}()}}catch(fo){console.warn(fo)}}function hU(i){return i>9999999999?i:1e3*i}function gU(i){return i>9999999999?i/1e3:i}function WS(i,o){"sentry.transaction"!==o.category&&(["ui.click","ui.input"].includes(o.category)?i.triggerUserActivity():i.checkAndHandleExpiredSession(),i.addUpdate(()=>(i.throttledAddEvent({type:Ii.Custom,timestamp:1e3*(o.timestamp||0),data:{tag:"breadcrumb",payload:Gg(o,10,1e3)}}),"console"===o.category)))}function dre(i){return i.closest("button,a")||i}function ure(i){const o=pre(i);return o&&o instanceof Element?dre(o):o}function pre(i){return function bct(i){return"object"==typeof i&&!!i&&"target"in i}(i)?i.target:i}let zm;Vm.mirror=Wu,Vm.takeFullSnapshot=function hct(i){if(!Q4)throw new Error("please take full snapshot after start recording");Q4(i)};class Act{constructor(o,t,r=WS){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=t.timeout/1e3,this._threshold=t.threshold/1e3,this._scollTimeout=t.scrollTimeout/1e3,this._replay=o,this._ignoreSelector=t.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const o=function vct(i){return zm||(zm=[],function yct(){ph(Tr,"open",function(i){return function(...o){if(zm)try{zm.forEach(t=>t())}catch{}return i.apply(Tr,o)}})}()),zm.push(i),()=>{const o=zm?zm.indexOf(i):-1;o>-1&&zm.splice(o,1)}}(()=>{this._lastMutation=hre()});this._teardown=()=>{o(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(o,t){if(function Tct(i,o){return!!(!xct.includes(i.tagName)||"INPUT"===i.tagName&&!["submit","button"].includes(i.getAttribute("type")||"")||"A"===i.tagName&&(i.hasAttribute("download")||i.hasAttribute("target")&&"_self"!==i.getAttribute("target"))||o&&i.matches(o))}(t,this._ignoreSelector)||!function Sct(i){return!(!i.data||"number"!=typeof i.data.nodeId||!i.timestamp)}(o))return;const r={timestamp:gU(o.timestamp),clickBreadcrumb:o,clickCount:0,node:t};this._clicks.some(s=>s.node===r.node&&Math.abs(s.timestamp-r.timestamp)<1)||(this._clicks.push(r),1===this._clicks.length&&this._scheduleCheckClicks())}registerMutation(o=Date.now()){this._lastMutation=gU(o)}registerScroll(o=Date.now()){this._lastScroll=gU(o)}registerClick(o){const t=dre(o);this._handleMultiClick(t)}_handleMultiClick(o){this._getClicks(o).forEach(t=>{t.clickCount++})}_getClicks(o){return this._clicks.filter(t=>t.node===o)}_checkClicks(){const o=[],t=hre();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=t&&o.push(r)});for(const r of o){const s=this._clicks.indexOf(r);s>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(s,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(o){const t=this._replay,l=!(o.scrollAfter&&o.scrollAfter<=this._scollTimeout||o.mutationAfter&&o.mutationAfter<=this._threshold),{clickCount:u,clickBreadcrumb:p}=o;if(l){const y=1e3*Math.min(o.mutationAfter||this._timeout,this._timeout),A=y<1e3*this._timeout?"mutation":"timeout",w={type:"default",message:p.message,timestamp:p.timestamp,category:"ui.slowClickDetected",data:{...p.data,url:Tr.location.href,route:t.getCurrentRoute(),timeAfterClickMs:y,endReason:A,clickCount:u||1}};this._addBreadcrumbEvent(t,w)}else if(u>1){const y={type:"default",message:p.message,timestamp:p.timestamp,category:"ui.multiClick",data:{...p.data,url:Tr.location.href,route:t.getCurrentRoute(),clickCount:u,metric:!0}};this._addBreadcrumbEvent(t,y)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=setTimeout(()=>this._checkClicks(),1e3)}}const xct=["A","BUTTON","INPUT"];function hre(){return Date.now()/1e3}function fh(i){return{timestamp:Date.now()/1e3,type:"default",...i}}var KS=(()=>(function(i){i[i.Document=0]="Document",i[i.DocumentType=1]="DocumentType",i[i.Element=2]="Element",i[i.Text=3]="Text",i[i.CDATA=4]="CDATA",i[i.Comment=5]="Comment"}(KS||(KS={})),KS))();const kct=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function Ict(i){const o={};for(const t in i)if(kct.has(t)){let r=t;("data-testid"===t||"data-test-id"===t)&&(r="testId"),o[r]=i[t]}return o}function gre(i,o){const t=Vm.mirror.getId(i),r=t&&Vm.mirror.getNode(t),s=r&&Vm.mirror.getMeta(r),l=s&&function Nct(i){return i.type===KS.Element}(s)?s:null;return{message:o,data:l?{nodeId:t,node:{id:t,tagName:l.tagName,textContent:Array.from(l.childNodes).map(u=>u.type===KS.Text&&u.textContent).filter(Boolean).map(u=>u.trim()).join(""),attributes:Ict(l.attributes)}}:{}}}const fre={resource:function Yct(i){const{entryType:o,initiatorType:t,name:r,responseEnd:s,startTime:l,decodedBodySize:u,encodedBodySize:p,responseStatus:y,transferSize:A}=i;return["fetch","xmlhttprequest"].includes(t)?null:{type:`${o}.${t}`,start:UC(l),end:UC(s),name:r,data:{size:A,statusCode:y,decodedBodySize:u,encodedBodySize:p}}},paint:function $ct(i){const{duration:o,entryType:t,name:r,startTime:s}=i,l=UC(s);return{type:t,name:r,start:l,end:l+o,data:void 0}},navigation:function Uct(i){const{entryType:o,name:t,decodedBodySize:r,duration:s,domComplete:l,encodedBodySize:u,domContentLoadedEventStart:p,domContentLoadedEventEnd:y,domInteractive:A,loadEventStart:w,loadEventEnd:I,redirectCount:P,startTime:F,transferSize:V,type:oe}=i;return 0===s?null:{type:`${o}.${oe}`,start:UC(F),end:UC(l),name:t,data:{size:V,decodedBodySize:r,encodedBodySize:u,duration:s,domInteractive:A,domContentLoadedEventStart:p,domContentLoadedEventEnd:y,loadEventStart:w,loadEventEnd:I,domComplete:l,redirectCount:P}}}};function Hct(i){return fre[i.entryType]?fre[i.entryType](i):null}function UC(i){return((uat||Tr.performance.timeOrigin)+i)/1e3}const gr=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Fl(i,o){!gr||(Ki.info(i),o&&mre(i))}function YC(i,o){!gr||(Ki.info(i),o&&setTimeout(()=>{mre(i)},0))}function mre(i){!function nst(i,o){kC().addBreadcrumb(i,o)}({category:"console",data:{logger:"replay"},level:"info",message:i},{level:"info"})}class fU extends Error{constructor(){super(`Event buffer exceeded maximum size of ${tU}.`)}}class _re{constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}addEvent(o){var t=this;return sn(function*(){const r=JSON.stringify(o).length;if(t._totalSize+=r,t._totalSize>tU)throw new fU;t.events.push(o)})()}finish(){return new Promise(o=>{const t=this.events;this.clear(),o(JSON.stringify(t))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){const o=this.events.map(t=>t.timestamp).sort()[0];return o?hU(o):null}}class Gct{constructor(o){this._worker=o,this._id=0}ensureReady(){return this._ensureReadyPromise||(this._ensureReadyPromise=new Promise((o,t)=>{this._worker.addEventListener("message",({data:r})=>{r.success?o():t()},{once:!0}),this._worker.addEventListener("error",r=>{t(r)},{once:!0})})),this._ensureReadyPromise}destroy(){Fl("[Replay] Destroying compression worker"),this._worker.terminate()}postMessage(o,t){const r=this._getAndIncrementId();return new Promise((s,l)=>{const u=({data:p})=>{const y=p;if(y.method===o&&y.id===r){if(this._worker.removeEventListener("message",u),!y.success)return gr&&Ki.error("[Replay]",y.response),void l(new Error("Error in compression worker"));s(y.response)}};this._worker.addEventListener("message",u),this._worker.postMessage({id:r,method:o,arg:t})})}_getAndIncrementId(){return this._id++}}class qct{constructor(o){this._worker=new Gct(o),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(o){const t=hU(o.timestamp);(!this._earliestTimestamp||t<this._earliestTimestamp)&&(this._earliestTimestamp=t);const r=JSON.stringify(o);return this._totalSize+=r.length,this._totalSize>tU?Promise.reject(new fU):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,o=>{gr&&Ki.warn('[Replay] Sending "clear" message to worker failed',o)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(o){return this._worker.postMessage("addEvent",o)}_finishRequest(){var o=this;return sn(function*(){const t=yield o._worker.postMessage("finish");return o._earliestTimestamp=null,o._totalSize=0,t})()}}class Jct{constructor(o){this._fallback=new _re,this._compression=new qct(o),this._used=this._fallback,this._ensureWorkerIsLoadedPromise=this._ensureWorkerIsLoaded()}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(o){this._used.hasCheckout=o}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(o){return this._used.addEvent(o)}finish(){var o=this;return sn(function*(){return yield o.ensureWorkerIsLoaded(),o._used.finish()})()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}_ensureWorkerIsLoaded(){var o=this;return sn(function*(){try{yield o._compression.ensureReady()}catch{return void Fl("[Replay] Failed to load the compression worker, falling back to simple buffer")}yield o._switchToCompressionWorker()})()}_switchToCompressionWorker(){var o=this;return sn(function*(){const{events:t,hasCheckout:r}=o._fallback,s=[];for(const l of t)s.push(o._compression.addEvent(l));o._compression.hasCheckout=r,o._used=o._compression;try{yield Promise.all(s)}catch(l){gr&&Ki.warn("[Replay] Failed to add events when switching buffers.",l)}})()}}function mU(){try{return"sessionStorage"in Tr&&!!Tr.sessionStorage}catch{return!1}}function bre(i){return void 0!==i&&Math.random()<i}function vre(i){const o=Date.now();return{id:i.id||Zc(),started:i.started||o,lastActivity:i.lastActivity||o,segmentId:i.segmentId||0,sampled:i.sampled,previousSessionId:i.previousSessionId}}function _U(i){if(mU())try{Tr.sessionStorage.setItem(X$,JSON.stringify(i))}catch{}}function yre({sessionSampleRate:i,allowBuffering:o,stickySession:t=!1},{previousSessionId:r}={}){const s=function tdt(i,o){return bre(i)?"session":!!o&&"buffer"}(i,o),l=vre({sampled:s,previousSessionId:r});return t&&_U(l),l}function bU(i,o,t=+new Date){return null===i||void 0===o||o<0||0!==o&&i+o<=t}function Cre(i,{maxReplayDuration:o,sessionIdleExpire:t,targetTime:r=Date.now()}){return bU(i.started,o,r)||bU(i.lastActivity,t,r)}function Are(i,{sessionIdleExpire:o,maxReplayDuration:t}){return!(!Cre(i,{sessionIdleExpire:o,maxReplayDuration:t})||"buffer"===i.sampled&&0===i.segmentId)}function vU({traceInternals:i,sessionIdleExpire:o,maxReplayDuration:t,previousSessionId:r},s){const l=s.stickySession&&function ndt(i){if(!mU())return null;try{const o=Tr.sessionStorage.getItem(X$);if(!o)return null;const t=JSON.parse(o);return YC("[Replay] Loading existing session",i),vre(t)}catch{return null}}(i);return l?Are(l,{sessionIdleExpire:o,maxReplayDuration:t})?(YC("[Replay] Session in sessionStorage is expired, creating new one..."),yre(s,{previousSessionId:l.id})):l:(YC("[Replay] Creating new session",i),yre(s,{previousSessionId:r}))}function yU(i,o,t){return!!Tre(i,o)&&(xre(i,o,t),!0)}function xre(i,o,t){return CU.apply(this,arguments)}function CU(){return CU=sn(function*(i,o,t){if(!i.eventBuffer)return null;try{t&&"buffer"===i.recordingMode&&i.eventBuffer.clear(),t&&(i.eventBuffer.hasCheckout=!0);const s=rdt(o,i.getOptions().beforeAddRecordingEvent);return s?yield i.eventBuffer.addEvent(s):void 0}catch(r){const s=r&&r instanceof fU?"addEventSizeExceeded":"addEvent";gr&&Ki.error(r),yield i.stop({reason:s});const l=Zs();l&&l.recordDroppedEvent("internal_sdk_error","replay")}}),CU.apply(this,arguments)}function Tre(i,o){if(!i.eventBuffer||i.isPaused()||!i.isEnabled())return!1;const t=hU(o.timestamp);return!(t+i.timeouts.sessionIdlePause<Date.now()||t>i.getContext().initialTimestamp+i.getOptions().maxReplayDuration&&(Fl(`[Replay] Skipping event with timestamp ${t} because it is after maxReplayDuration`,i.getOptions()._experiments.traceInternals),1))}function rdt(i,o){try{if("function"==typeof o&&function idt(i){return i.type===Ii.Custom}(i))return o(i)}catch(t){return gr&&Ki.error("[Replay] An error occured in the `beforeAddRecordingEvent` callback, skipping the event...",t),null}return i}function AU(i){return!i.type}function xU(i){return"transaction"===i.type}function Sre(i){return"feedback"===i.type}function wre(i){const o=function cdt(){const i=Zs();if(!i)return!1;const o=i.getTransport();return o&&o.send.__sentry__baseTransport__||!1}();return(t,r)=>{if(!i.isEnabled()||!AU(t)&&!xU(t))return;const s=r&&r.statusCode;if(!o||!(!s||s<200||s>=300)){if(xU(t))return void function sdt(i,o){const t=i.getContext();o.contexts&&o.contexts.trace&&o.contexts.trace.trace_id&&t.traceIds.size<100&&t.traceIds.add(o.contexts.trace.trace_id)}(i,t);!function ldt(i,o){const t=i.getContext();if(o.event_id&&t.errorIds.size<100&&t.errorIds.add(o.event_id),"buffer"!==i.recordingMode||!o.tags||!o.tags.replayId)return;const{beforeErrorSampling:r}=i.getOptions();"function"==typeof r&&!r(o)||setTimeout(()=>{i.sendBufferedReplayOrFlush()})}(i,t)}}}function W4(i,o){return o.map(({type:t,start:r,end:s,name:l,data:u})=>{const p=i.throttledAddEvent({type:Ii.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:t,description:l,startTimestamp:r,endTimestamp:s,data:u}}});return"string"==typeof p?Promise.resolve(null):p})}function K4(i,o){!i.isEnabled()||null!==o&&(function bdt(i,o){return(!gr||!i.getOptions()._experiments.traceInternals)&&function rst(i,o){const t=o&&function lst(i){return void 0!==i.getClient}(o)?o.getClient():o,r=t&&t.getDsn(),s=t&&t.getOptions().tunnel;return function sst(i,o){return!!o&&i.includes(o.host)}(i,r)||function ast(i,o){return!!o&&yoe(i)===yoe(o)}(i,s)}(o,Zs())}(i,o.name)||i.addUpdate(()=>(W4(i,[o]),!0)))}function X4(i,o){if(i)try{if("string"==typeof i)return o.encode(i).length;if(i instanceof URLSearchParams)return o.encode(i.toString()).length;if(i instanceof FormData){const t=Ire(i);return o.encode(t).length}if(i instanceof Blob)return i.size;if(i instanceof ArrayBuffer)return i.byteLength}catch{}}function Mre(i){if(!i)return;const o=parseInt(i,10);return isNaN(o)?void 0:o}function Dre(i){try{if("string"==typeof i)return[i];if(i instanceof URLSearchParams)return[i.toString()];if(i instanceof FormData)return[Ire(i)];if(!i)return[void 0]}catch{return gr&&Ki.warn("[Replay] Failed to serialize body",i),[void 0,"BODY_PARSE_ERROR"]}return gr&&Ki.info("[Replay] Skipping network body because of body type",i),[void 0,"UNPARSEABLE_BODY_TYPE"]}function eO(i,o){if(!i)return{headers:{},size:void 0,_meta:{warnings:[o]}};const t={...i._meta};return t.warnings=[...t.warnings||[],o],i._meta=t,i}function kre(i,o){if(!o)return null;const{startTimestamp:t,endTimestamp:r,url:s,method:l,statusCode:u,request:p,response:y}=o;return{type:i,start:t/1e3,end:r/1e3,name:s,data:hh({method:l,statusCode:u,request:p,response:y})}}function XS(i){return{headers:{},size:i,_meta:{warnings:["URL_SKIPPED"]}}}function Gm(i,o,t){if(!o&&0===Object.keys(i).length)return;if(!o)return{headers:i};if(!t)return{headers:i,size:o};const r={headers:i,size:o},{body:s,warnings:l}=function xdt(i){if(!i||"string"!=typeof i)return{body:i};const o=i.length>15e4,t=function Tdt(i){const o=i[0],t=i[i.length-1];return"["===o&&"]"===t||"{"===o&&"}"===t}(i);if(o){const r=i.slice(0,15e4);return t?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}\u2026`,warnings:["TEXT_TRUNCATED"]}}if(t)try{return{body:JSON.parse(i)}}catch{}return{body:i}}(t);return r.body=s,l&&l.length>0&&(r._meta={warnings:l}),r}function TU(i,o){return Object.keys(i).reduce((t,r)=>{const s=r.toLowerCase();return o.includes(s)&&i[r]&&(t[s]=i[r]),t},{})}function Ire(i){return new URLSearchParams(i).toString()}function tO(i,o){const t=function Sdt(i,o=Tr.document.baseURI){if(i.startsWith("http://")||i.startsWith("https://")||i.startsWith(Tr.location.origin))return i;const t=new URL(i,o);if(t.origin!==new URL(o).origin)return i;const r=t.href;return!i.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}(i);return function Rat(i,o=[],t=!1){return o.some(r=>function Lat(i,o,t=!1){return!!Q0(i)&&(function iat(i){return wC(i,"RegExp")}(o)?o.test(i):!!Q0(o)&&(t?i===o:i.includes(o)))}(i,r,t))}(t,o)}function SU(){return SU=sn(function*(i,o,t){try{const s=kre("resource.fetch",yield Ddt(i,o,t));K4(t.replay,s)}catch(r){gr&&Ki.error("[Replay] Failed to capture fetch breadcrumb",r)}}),SU.apply(this,arguments)}function Ddt(i,o,t){return wU.apply(this,arguments)}function wU(){return wU=sn(function*(i,o,t){const r=Date.now(),{startTimestamp:s=r,endTimestamp:l=r}=o,{url:u,method:p,status_code:y=0,request_body_size:A,response_body_size:w}=i.data,I=tO(u,t.networkDetailAllowUrls)&&!tO(u,t.networkDetailDenyUrls);return{startTimestamp:s,endTimestamp:l,url:u,method:p,statusCode:y,request:I?kdt(t,o.input,A):XS(A),response:yield Idt(I,t,o.response,w)}}),wU.apply(this,arguments)}function kdt({networkCaptureBodies:i,networkRequestHeaders:o},t,r){const s=t?function Odt(i,o){return 1===i.length&&"string"!=typeof i[0]?Ore(i[0],o):2===i.length?Ore(i[1],o):{}}(t,o):{};if(!i)return Gm(s,r,void 0);const l=Ere(t),[u,p]=Dre(l),y=Gm(s,r,u);return p?eO(y,p):y}function Idt(i,o,t,r){return MU.apply(this,arguments)}function MU(){return MU=sn(function*(i,{networkCaptureBodies:o,textEncoder:t,networkResponseHeaders:r},s,l){if(!i&&void 0!==l)return XS(l);const u=s?Pre(s.headers,r):{};if(!s||!o&&void 0!==l)return Gm(u,l,void 0);const[p,y]=yield Pdt(s),A=Edt(p,{networkCaptureBodies:o,textEncoder:t,responseBodySize:l,captureDetails:i,headers:u});return y?eO(A,y):A}),MU.apply(this,arguments)}function Edt(i,{networkCaptureBodies:o,textEncoder:t,responseBodySize:r,captureDetails:s,headers:l}){try{const u=i&&i.length&&void 0===r?X4(i,t):r;return s?Gm(l,u,o?i:void 0):XS(u)}catch(u){return gr&&Ki.warn("[Replay] Failed to serialize response body",u),Gm(l,r,void 0)}}function Pdt(i){return DU.apply(this,arguments)}function DU(){return DU=sn(function*(i){const o=Ndt(i);if(!o)return[void 0,"BODY_PARSE_ERROR"];try{return[yield Ldt(o)]}catch(t){return gr&&Ki.warn("[Replay] Failed to get text body from response",t),[void 0,"BODY_PARSE_ERROR"]}}),DU.apply(this,arguments)}function Ere(i=[]){if(2===i.length&&"object"==typeof i[1])return i[1].body}function Pre(i,o){const t={};return o.forEach(r=>{i.get(r)&&(t[r]=i.get(r))}),t}function Ore(i,o){if(!i)return{};const t=i.headers;return t?t instanceof Headers?Pre(t,o):Array.isArray(t)?{}:TU(t,o):{}}function Ndt(i){try{return i.clone()}catch(o){gr&&Ki.warn("[Replay] Failed to clone response body",o)}}function Ldt(i){return new Promise((o,t)=>{const r=setTimeout(()=>t(new Error("Timeout while trying to read response body")),500);(function Rdt(i){return kU.apply(this,arguments)})(i).then(s=>o(s),s=>t(s)).finally(()=>clearTimeout(r))})}function kU(){return kU=sn(function*(i){return yield i.text()}),kU.apply(this,arguments)}function IU(){return IU=sn(function*(i,o,t){try{const s=kre("resource.xhr",Hdt(i,o,t));K4(t.replay,s)}catch(r){gr&&Ki.error("[Replay] Failed to capture xhr breadcrumb",r)}}),IU.apply(this,arguments)}function Hdt(i,o,t){const r=Date.now(),{startTimestamp:s=r,endTimestamp:l=r,input:u,xhr:p}=o,{url:y,method:A,status_code:w=0,request_body_size:I,response_body_size:P}=i.data;if(!y)return null;if(!p||!tO(y,t.networkDetailAllowUrls)||tO(y,t.networkDetailDenyUrls))return{startTimestamp:s,endTimestamp:l,url:y,method:A,statusCode:w,request:XS(I),response:XS(P)};const F=p[EC],V=F?TU(F.request_headers,t.networkRequestHeaders):{},oe=TU(function $dt(i){const o=i.getAllResponseHeaders();return o?o.split("\r\n").reduce((t,r)=>{const[s,l]=r.split(": ");return t[s.toLowerCase()]=l,t},{}):{}}(p),t.networkResponseHeaders),[Ae,ue]=t.networkCaptureBodies?Dre(u):[void 0],[Se,Be]=t.networkCaptureBodies?function Udt(i){const o=[];try{return[i.responseText]}catch(t){o.push(t)}try{return function Ydt(i,o){try{if("string"==typeof i)return[i];if(i instanceof Document)return[i.body.outerHTML];if("json"===o&&i&&"object"==typeof i)return[JSON.stringify(i)];if(!i)return[void 0]}catch{return gr&&Ki.warn("[Replay] Failed to serialize body",i),[void 0,"BODY_PARSE_ERROR"]}return gr&&Ki.info("[Replay] Skipping network body because of body type",i),[void 0,"UNPARSEABLE_BODY_TYPE"]}(i.response,i.responseType)}catch(t){o.push(t)}return gr&&Ki.warn("[Replay] Failed to get xhr response body",...o),[void 0]}(p):[void 0],Me=Gm(V,I,Ae),He=Gm(oe,P,Se);return{startTimestamp:s,endTimestamp:l,url:y,method:A,statusCode:w,request:ue?eO(Me,ue):Me,response:Be?eO(He,Be):He}}function Zdt(i){const o=Zs();try{const t=new TextEncoder,{networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:l,networkRequestHeaders:u,networkResponseHeaders:p}=i.getOptions(),y={replay:i,textEncoder:t,networkDetailAllowUrls:r,networkDetailDenyUrls:s,networkCaptureBodies:l,networkRequestHeaders:u,networkResponseHeaders:p};o&&o.on?o.on("beforeAddBreadcrumb",(A,w)=>function Vdt(i,o,t){if(o.data)try{(function zdt(i){return"xhr"===i.category})(o)&&function qdt(i){return i&&i.xhr}(t)&&(function Bdt(i,o,t){const{xhr:r,input:s}=o;if(!r)return;const l=X4(s,t.textEncoder),u=r.getResponseHeader("content-length")?Mre(r.getResponseHeader("content-length")):function jdt(i,o,t){try{return X4("json"===o&&i&&"object"==typeof i?JSON.stringify(i):i,t)}catch{return}}(r.response,r.responseType,t.textEncoder);void 0!==l&&(i.data.request_body_size=l),void 0!==u&&(i.data.response_body_size=u)}(o,t,i),function Fdt(i,o,t){IU.apply(this,arguments)}(o,t,i)),function Gdt(i){return"fetch"===i.category}(o)&&function Jdt(i){return i&&i.response}(t)&&(function Mdt(i,o,t){const{input:r,response:s}=o,u=X4(r?Ere(r):void 0,t.textEncoder),p=s?Mre(s.headers.get("content-length")):void 0;void 0!==u&&(i.data.request_body_size=u),void 0!==p&&(i.data.response_body_size=p)}(o,t,i),function wdt(i,o,t){SU.apply(this,arguments)}(o,t,i))}catch{gr&&Ki.warn("Error when enriching network breadcrumb")}}(y,A,w)):(function bst(i){const o="fetch";N4(o,i),L4(o,vst)}(function ydt(i){return o=>{if(!i.isEnabled())return;const t=function vdt(i){const{startTimestamp:o,endTimestamp:t,fetchData:r,response:s}=i;if(!t)return null;const{method:l,url:u}=r;return{type:"resource.fetch",start:o/1e3,end:t/1e3,name:u,data:{method:l,statusCode:s?s.status:void 0}}}(o);K4(i,t)}}(i)),function gst(i){N4("xhr",i),L4("xhr",fst)}(function Adt(i){return o=>{if(!i.isEnabled())return;const t=function Cdt(i){const{startTimestamp:o,endTimestamp:t,xhr:r}=i,s=r[EC];if(!o||!t||!s)return null;const{method:l,url:u,status_code:p}=s;return void 0===u?null:{type:"resource.xhr",name:u,start:o/1e3,end:t/1e3,data:{method:l,statusCode:p}}}(o);K4(i,t)}}(i)))}catch{}}let Nre=null;function eut(i){const o=Um(),t=Zs();o.addScopeListener((i=>o=>{if(!i.isEnabled())return;const t=function Kdt(i){const o=i.getLastBreadcrumb&&i.getLastBreadcrumb();return Nre===o||!o||(Nre=o,!function Qdt(i){return!!i.category}(o)||["fetch","xhr","sentry.event","sentry.transaction"].includes(o.category)||o.category.startsWith("ui."))?null:"console"===o.category?function Xdt(i){const o=i.data&&i.data.arguments;if(!Array.isArray(o)||0===o.length)return fh(i);let t=!1;const r=o.map(s=>{if(!s)return s;if("string"==typeof s)return s.length>5e3?(t=!0,`${s.slice(0,5e3)}\u2026`):s;if("object"==typeof s)try{const l=Gg(s,7);return JSON.stringify(l).length>5e3?(t=!0,`${JSON.stringify(l,null,2).slice(0,5e3)}\u2026`):l}catch{}return s});return fh({...i,data:{...i.data,arguments:r,...t?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}(o):fh(o)}(o);!t||WS(i,t)})(i)),function Ast(i){N4("dom",i),L4("dom",xst)}((i=>o=>{if(!i.isEnabled())return;const t=function Pct(i){const{target:o,message:t}=function Oct(i){const o="click"===i.name;let t,r=null;try{r=o?ure(i.event):pre(i.event),t=B$(r,{maxStringLength:200})||"<unknown>"}catch{t="<unknown>"}return{target:r,message:t}}(i);return fh({category:`ui.${i.name}`,...gre(o,t)})}(o);if(!t)return;const r="click"===o.name,s=r?o.event:void 0;r&&i.clickDetector&&s&&s.target&&!s.altKey&&!s.metaKey&&!s.ctrlKey&&!s.shiftKey&&function Cct(i,o,t){i.handleClick(o,t)}(i.clickDetector,t,ure(o.event)),WS(i,t)})(i)),function Dst(i){const o="history";N4(o,i),L4(o,kst)}(function _dt(i){return o=>{if(!i.isEnabled())return;const t=function mdt(i){const{from:o,to:t}=i,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:t,data:{previous:o}}}(o);null!==t&&(i.getContext().urls.push(t.name),i.triggerUserActivity(),i.addUpdate(()=>(W4(i,[t]),!1)))}}(i)),Zdt(i);const r=function fdt(i,o=!1){const t=o?wre(i):void 0;return Object.assign((r,s)=>i.isEnabled()?function adt(i){return"replay_event"===i.type}(r)?(delete r.breadcrumbs,r):(AU(r)||xU(r)||Sre(r))&&i.checkAndHandleExpiredSession()?Sre(r)?(i.flush(),r.contexts.feedback.replay_id=i.getSessionId(),function hdt(i,o){i.triggerUserActivity(),i.addUpdate(()=>!o.timestamp||(i.throttledAddEvent({type:Ii.Custom,timestamp:1e3*o.timestamp,data:{tag:"breadcrumb",payload:{timestamp:o.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:o.event_id}}}}),!1))}(i,r),r):function pdt(i,o){return!(i.type||!i.exception||!i.exception.values||!i.exception.values.length||!o.originalException||!o.originalException.__rrweb__)}(r,s)&&!i.getOptions()._experiments.captureExceptions?(gr&&Ki.log("[Replay] Ignoring error from rrweb internals",r),null):((function gdt(i,o){return!("buffer"!==i.recordingMode||o.message===eU||!o.exception||o.type)&&bre(i.getOptions().errorSampleRate)}(i,r)||"session"===i.recordingMode)&&(r.tags={...r.tags,replayId:i.getSessionId()}),t&&t(r,{statusCode:200}),r):r:r,{id:"Replay"})}(i,!Lre(t));t&&t.addEventProcessor?t.addEventProcessor(r):function ust(i){const o=Zs();!o||!o.addEventProcessor||o.addEventProcessor(i)}(r),Lre(t)&&(t.on("beforeSendEvent",function ddt(i){return o=>{!i.isEnabled()||!AU(o)||function udt(i,o){const t=o.exception&&o.exception.values&&o.exception.values[0].value;"string"==typeof t&&(t.match(/reactjs\.org\/docs\/error-decoder\.html\?invariant=(418|419|422|423|425)/)||t.match(/(does not match server-rendered HTML|Hydration failed because)/i))&&WS(i,fh({category:"replay.hydrate-error"}))}(i,o)}}(i)),t.on("afterSendEvent",wre(i)),t.on("createDsc",s=>{const l=i.getSessionId();l&&i.isEnabled()&&"session"===i.recordingMode&&i.checkAndHandleExpiredSession()&&(s.replay_id=l)}),t.on("startTransaction",s=>{i.lastTransaction=s}),t.on("finishTransaction",s=>{i.lastTransaction=s}),t.on("beforeSendFeedback",(s,l)=>{const u=i.getSessionId();l&&l.includeReplay&&i.isEnabled()&&u&&s.contexts&&s.contexts.feedback&&(s.contexts.feedback.replay_id=u)}))}function Lre(i){return!(!i||!i.on)}function EU(){return EU=sn(function*(i){try{return Promise.all(W4(i,[nut(Tr.performance.memory)]))}catch{return[]}}),EU.apply(this,arguments)}function nut(i){const{jsHeapSizeLimit:o,totalJSHeapSize:t,usedJSHeapSize:r}=i,s=Date.now()/1e3;return{type:"memory",name:"memory",start:s,end:s,data:{memory:{jsHeapSizeLimit:o,totalJSHeapSize:t,usedJSHeapSize:r}}}}function out(i){let o=!1;return(t,r)=>{if(!i.checkAndHandleExpiredSession())return void(gr&&Ki.warn("[Replay] Received replay event after session expired."));const s=r||!o;o=!0,i.clickDetector&&function wct(i,o){try{if(!function Mct(i){return 3===i.type}(o))return;const{source:t}=o.data;if(t===Ei.Mutation&&i.registerMutation(o.timestamp),t===Ei.Scroll&&i.registerScroll(o.timestamp),function Dct(i){return i.data.source===Ei.MouseInteraction}(o)){const{type:r,id:s}=o.data,l=Vm.mirror.getNode(s);l instanceof HTMLElement&&r===Rl.Click&&i.registerClick(l)}}catch{}}(i.clickDetector,t),i.addUpdate(()=>{if("buffer"===i.recordingMode&&s&&i.setInitialState(),!yU(i,t,s))return!0;if(!s)return!1;if(function aut(i,o){!o||!i.session||0!==i.session.segmentId||yU(i,function rut(i){const o=i.getOptions();return{type:Ii.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:i.isRecordingCanvas(),sessionSampleRate:o.sessionSampleRate,errorSampleRate:o.errorSampleRate,useCompressionOption:o.useCompression,blockAllMedia:o.blockAllMedia,maskAllText:o.maskAllText,maskAllInputs:o.maskAllInputs,useCompression:!!i.eventBuffer&&"worker"===i.eventBuffer.type,networkDetailHasUrls:o.networkDetailAllowUrls.length>0,networkCaptureBodies:o.networkCaptureBodies,networkRequestHasHeaders:o.networkRequestHeaders.length>0,networkResponseHasHeaders:o.networkResponseHeaders.length>0}}}}(i),!1)}(i,s),i.session&&i.session.previousSessionId)return!0;if("buffer"===i.recordingMode&&i.session&&i.eventBuffer){const l=i.eventBuffer.getEarliestTimestamp();l&&(Fl(`[Replay] Updating session start time to earliest event in buffer to ${new Date(l)}`,i.getOptions()._experiments.traceInternals),i.session.started=l,i.getOptions().stickySession&&_U(i.session))}return"session"===i.recordingMode&&i.flush(),!0})}}function sut(i,o,t,r){return function Lst(i,o=[]){return[i,o]}(function $st(i,o,t,r){const s=i.sdkProcessingMetadata&&i.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:i.event_id,sent_at:(new Date).toISOString(),...o&&{sdk:o},...!!t&&r&&{dsn:Pst(r)},...s&&{trace:hh({...s})}}}(i,function Hst(i){if(!i||!i.sdk)return;const{name:o,version:t}=i.sdk;return{name:o,version:t}}(i),r,t),[[{type:"replay_event"},i],[{type:"replay_recording",length:"string"==typeof o?(new TextEncoder).encode(o).length:o.length},o]])}function lut({recordingData:i,headers:o}){let t;const r=`${JSON.stringify(o)}\n`;if("string"==typeof i)t=`${r}${i}`;else{const l=(new TextEncoder).encode(r);t=new Uint8Array(l.length+i.length),t.set(l),t.set(i,l.length)}return t}function cut(i){return PU.apply(this,arguments)}function PU(){return PU=sn(function*({client:i,scope:o,replayId:t,event:r}){const l={event_id:t,integrations:"object"!=typeof i._integrations||null===i._integrations||Array.isArray(i._integrations)?void 0:Object.keys(i._integrations)};i.emit&&i.emit("preprocessEvent",r,l);const u=yield Vat(i.getOptions(),r,l,o,i,Nat());if(!u)return null;u.platform=u.platform||"javascript";const p=i.getSdkMetadata&&i.getSdkMetadata(),{name:y,version:A}=p&&p.sdk||{};return u.sdk={...u.sdk,name:y||"sentry.javascript.unknown",version:A||"0.0.0"},u}),PU.apply(this,arguments)}function dut(i){return OU.apply(this,arguments)}function OU(){return OU=sn(function*({recordingData:i,replayId:o,segmentId:t,eventContext:r,timestamp:s,session:l}){const u=lut({recordingData:i,headers:{segment_id:t}}),{urls:p,errorIds:y,traceIds:A,initialTimestamp:w}=r,I=Zs(),P=Um(),F=I&&I.getTransport(),V=I&&I.getDsn();if(!(I&&F&&V&&l.sampled))return;const oe={type:qst,replay_start_timestamp:w/1e3,timestamp:s/1e3,error_ids:y,trace_ids:A,urls:p,replay_id:o,segment_id:t,replay_type:l.sampled},Ae=yield cut({scope:P,client:I,replayId:o,event:oe});if(!Ae)return I.recordDroppedEvent("event_processor","replay",oe),void Fl("An event processor returned `null`, will not send event.");delete Ae.sdkProcessingMetadata;const ue=sut(Ae,u,V,I.getOptions().tunnel);let Se;try{Se=yield F.send(ue)}catch(Me){const He=new Error(eU);try{He.cause=Me}catch{}throw He}if(!Se)return Se;if("number"==typeof Se.statusCode&&(Se.statusCode<200||Se.statusCode>=300))throw new Rre(Se.statusCode);const Be=Vst({},Se);if(Zst(Be,"replay"))throw new Fre(Be);return Se}),OU.apply(this,arguments)}class Rre extends Error{constructor(o){super(`Transport returned status code ${o}`)}}class Fre extends Error{constructor(o){super("Rate limit hit"),this.rateLimits=o}}function Bre(i){return NU.apply(this,arguments)}function NU(){return NU=sn(function*(i,o={count:0,interval:5e3}){const{recordingData:t,options:r}=i;if(t.length)try{return yield dut(i),!0}catch(s){if(s instanceof Rre||s instanceof Fre)throw s;if(ist("Replays",{_retryCount:o.count}),gr&&r._experiments&&r._experiments.captureExceptions&&moe(s),o.count>=3){const l=new Error(`${eU} - max retries exceeded`);try{l.cause=s}catch{}throw l}return o.interval*=++o.count,new Promise((l,u)=>{setTimeout(sn(function*(){try{yield Bre(i,o),l(!0)}catch(p){u(p)}}),o.interval)})}}),NU.apply(this,arguments)}const Hre="__THROTTLED";class qm{constructor({options:o,recordingOptions:t}){qm.prototype.__init.call(this),qm.prototype.__init2.call(this),qm.prototype.__init3.call(this),qm.prototype.__init4.call(this),qm.prototype.__init5.call(this),qm.prototype.__init6.call(this),this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:3e5,sessionIdleExpire:9e5},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=t,this._options=o,this._debouncedFlush=function iut(i,o,t){let r,s,l;const u=t&&t.maxWait?Math.max(t.maxWait,o):0;function p(){return y(),r=i(),r}function y(){void 0!==s&&clearTimeout(s),void 0!==l&&clearTimeout(l),s=l=void 0}function w(){return s&&clearTimeout(s),s=setTimeout(p,o),u&&void 0===l&&(l=setTimeout(p,u)),r}return w.cancel=y,w.flush=function A(){return void 0!==s||void 0!==l?p():r},w}(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=function put(i,o,t){const r=new Map;let u=!1;return(...p)=>{const y=Math.floor(Date.now()/1e3);if((p=>{const y=p-t;r.forEach((A,w)=>{w<y&&r.delete(w)})})(y),[...r.values()].reduce((p,y)=>p+y,0)>=o){const w=u;return u=!0,w?"__SKIPPED":Hre}u=!1;const A=r.get(y)||0;return r.set(y,A+1),i(...p)}}((u,p)=>function odt(i,o,t){return Tre(i,o)?xre(i,o,t):Promise.resolve(null)}(this,u,p),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:s}=this.getOptions(),l=r?{threshold:Math.min(3e3,r),timeout:r,scrollTimeout:300,ignoreSelector:s?s.join(","):""}:void 0;l&&(this.clickDetector=new Act(this,l))}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return Boolean(this._canvas)}getOptions(){return this._options}initializeSampling(o){const{errorSampleRate:t,sessionSampleRate:r}=this._options;if(!(t<=0&&r<=0)){if(this._initializeSessionForSampling(o),!this.session)return void this._handleException(new Error("Unable to initialize and create session"));!1!==this.session.sampled&&(this.recordingMode="buffer"===this.session.sampled&&0===this.session.segmentId?"buffer":"session",YC(`[Replay] Starting replay in ${this.recordingMode} mode`,this._options._experiments.traceInternals),this._initializeRecording())}}start(){if(this._isEnabled&&"session"===this.recordingMode)throw new Error("Replay recording is already in progress");if(this._isEnabled&&"buffer"===this.recordingMode)throw new Error("Replay buffering is in progress, call `flush()` to save the replay");YC("[Replay] Starting replay in session mode",this._options._experiments.traceInternals);const o=vU({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=o,this._initializeRecording()}startBuffering(){if(this._isEnabled)throw new Error("Replay recording is already in progress");YC("[Replay] Starting replay in buffer mode",this._options._experiments.traceInternals);const o=vU({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=o,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const o=this._canvas;this._stopRecording=Vm({...this._recordingOptions,..."buffer"===this.recordingMode&&{checkoutEveryNms:6e4},emit:out(this),onMutation:this._onMutationHandler,...o?{recordCanvas:o.recordCanvas,getCanvasManager:o.getCanvasManager,sampling:o.sampling,dataURLOptions:o.dataURLOptions}:{}})}catch(o){this._handleException(o)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(o){return this._handleException(o),!1}}stop({forceFlush:o=!1,reason:t}={}){var r=this;return sn(function*(){if(r._isEnabled){r._isEnabled=!1;try{Fl("[Replay] Stopping Replay"+(t?` triggered by ${t}`:""),r._options._experiments.traceInternals),r._removeListeners(),r.stopRecording(),r._debouncedFlush.cancel(),o&&(yield r._flush({force:!0})),r.eventBuffer&&r.eventBuffer.destroy(),r.eventBuffer=null,function Xct(i){(function edt(){if(mU())try{Tr.sessionStorage.removeItem(X$)}catch{}})(),i.session=void 0}(r)}catch(s){r._handleException(s)}}})()}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),Fl("[Replay] Pausing replay",this._options._experiments.traceInternals))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),Fl("[Replay] Resuming replay",this._options._experiments.traceInternals))}sendBufferedReplayOrFlush({continueRecording:o=!0}={}){var t=this;return sn(function*(){if("session"===t.recordingMode)return t.flushImmediate();const r=Date.now();Fl("[Replay] Converting buffer to session",t._options._experiments.traceInternals),yield t.flushImmediate();const s=t.stopRecording();!o||!s||"session"!==t.recordingMode&&(t.recordingMode="session",t.session&&(t._updateUserActivity(r),t._updateSessionActivity(r),t._maybeSaveSession()),t.startRecording())})()}addUpdate(o){const t=o();"buffer"!==this.recordingMode&&!0!==t&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),this._stopRecording)this.checkAndHandleExpiredSession(),this._updateSessionActivity();else{if(!this._checkSession())return;this.resume()}}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return"buffer"===this.recordingMode?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(){return this.session&&this.session.id}checkAndHandleExpiredSession(){if(!(this._lastActivity&&bU(this._lastActivity,this.timeouts.sessionIdlePause)&&this.session&&"session"===this.session.sampled))return!!this._checkSession();this.pause()}setInitialState(){const t=`${Tr.location.origin}${Tr.location.pathname}${Tr.location.hash}${Tr.location.search}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=t,this._context.initialTimestamp=Date.now(),this._context.urls.push(t)}throttledAddEvent(o,t){const r=this._throttledAddEvent(o,t);if(r===Hre){const s=fh({category:"replay.throttled"});this.addUpdate(()=>!yU(this,{type:5,timestamp:s.timestamp||0,data:{tag:"breadcrumb",payload:s,metric:!0}}))}return r}getCurrentRoute(){const o=this.lastTransaction||Um().getTransaction(),r=(o&&W0(o).data||{})["sentry.source"];if(o&&r&&["route","custom"].includes(r))return W0(o).description}_initializeRecording(){this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=function Qct({useCompression:i,workerUrl:o}){if(i&&window.Worker){const t=function Wct(i){try{const o=i||function Kct(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?function zct(){const i=new Blob(['var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),a=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),s=function(t,e){for(var i=new n(31),a=0;a<31;++a)i[a]=e+=1<<t[a-1];var s=new r(i[30]);for(a=1;a<30;++a)for(var o=i[a];o<i[a+1];++o)s[o]=o-i[a]<<5|a;return{b:i,r:s}},o=s(e,2),f=o.b,h=o.r;f[28]=258,h[258]=28;for(var l=s(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,a=0,s=new n(r);a<i;++a)t[a]&&++s[t[a]-1];var o,f=new n(r);for(a=1;a<r;++a)f[a]=f[a-1]+s[a-1]<<1;if(e){o=new n(1<<r);var h=15-r;for(a=0;a<i;++a)if(t[a])for(var l=a<<4|t[a],c=r-t[a],v=f[t[a]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>h]=l}else for(o=new n(i),a=0;a<i;++a)t[a]&&(o[a]=u[f[t[a]-1]++]>>15-t[a]);return o},g=new t(288);for(c=0;c<144;++c)g[c]=8;for(c=144;c<256;++c)g[c]=9;for(c=256;c<280;++c)g[c]=7;for(c=280;c<288;++c)g[c]=8;var w=new t(32);for(c=0;c<32;++c)w[c]=5;var p=d(g,9,0),y=d(w,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==r||r<0)&&(r=0),(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},A=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},_=function(r,e){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var s=i.length,o=i.slice();if(!s)return{t:F,l:0};if(1==s){var f=new t(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort((function(t,n){return t.f-n.f})),i.push({s:-1,f:25001});var h=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:h.f+l.f,l:h,r:l};c!=s-1;)h=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:h.f+l.f,l:h,r:l};var d=o[0].s;for(a=1;a<s;++a)o[a].s>d&&(d=o[a].s);var g=new n(d+1),w=x(i[c-1],g,0);if(w>e){a=0;var p=0,y=w-e,m=1<<y;for(o.sort((function(t,n){return g[n.s]-g[t.s]||t.f-n.f}));a<s;++a){var b=o[a].s;if(!(g[b]>e))break;p+=m-(1<<w-g[b]),g[b]=e}for(p>>=y;p>0;){var M=o[a].s;g[M]<e?p-=1<<e-g[M]++-1:++a}for(;a>=0&&p;--a){var E=o[a].s;g[E]==e&&(--g[E],++p)}w=e}return{t:new t(g),l:w}},x=function(t,n,r){return-1==t.s?Math.max(x(t.l,n,r+1),x(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,a=t[0],s=1,o=function(t){e[i++]=t},f=1;f<=r;++f)if(t[f]==a&&f!=r)++s;else{if(!a&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(a),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(a);s=1,a=t[f]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var a=0;a<e;++a)t[i+a+4]=r[a];return 8*(i+4+e)},C=function(t,r,s,o,f,h,l,u,c,v,m){z(r,m++,s),++f[256];for(var b=_(f,15),M=b.t,E=b.l,x=_(h,15),C=x.t,U=x.l,F=D(M),I=F.c,S=F.n,L=D(C),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=_(q,7),H=G.t,J=G.l,K=19;K>4&&!H[a[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(f,g)+T(h,w)+l,X=T(f,M)+T(h,C)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(C,U,0),R=C;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[a[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=p,P=g,Q=y,R=w;for(B=0;B<u;++B){var rt=o[B];if(rt>255){A(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;A(r,m,Q[et]),m+=R[et],et>3&&(A(r,m,rt>>5&8191),m+=i[et])}else A(r,m,N[rt]),m+=P[rt]}return A(r,m,N[256]),m+P[256]},U=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,a=0|r.length,s=0;s!=a;){for(var o=Math.min(s+2655,a);s<o;++s)i+=e+=r[s];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(a,s,o,f,u){if(!u&&(u={l:1},s.dictionary)){var c=s.dictionary.subarray(-32768),v=new t(c.length+a.length);v.set(c),v.set(a,c.length),a=v,u.w=c.length}return function(a,s,o,f,u,c){var v=c.z||a.length,d=new t(f+v+5*(1+Math.ceil(v/7e3))+u),g=d.subarray(f,d.length-u),w=c.l,p=7&(c.r||0);if(s){p&&(g[0]=c.r>>3);for(var y=U[s-1],M=y>>13,E=8191&y,z=(1<<o)-1,A=c.p||new n(32768),_=c.h||new n(z+1),x=Math.ceil(o/3),D=2*x,T=function(t){return(a[t]^a[t+1]<<x^a[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=_[H];if(A[J]=K,_[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!w)){p=C(a,g,0,F,I,S,O,q,G,j-G,p),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(a[j+Q]==a[j+Q-W]){for(var $=0;$<Z&&a[j+$]==a[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-A[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=A[J])&32767}if(R){F[q++]=268435456|h[Q]<<18|l[R];var it=31&h[Q],at=31&l[R];O+=e[it]+i[at],++I[257+it],++S[at],B=j+Q,++L}else F[q++]=a[j],++I[a[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=a[j],++I[a[j]];p=C(a,g,w,F,I,S,O,q,G,j-G,p),w||(c.r=7&p|g[p/8|0]<<3,p-=7,c.h=_,c.p=A,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+w;j+=65535){var st=j+65535;st>=v&&(g[p/8|0]=w,st=v),p=k(g,p+1,a.subarray(j,st))}c.i=v}return b(d,0,f+m(p)+u)}(a,null==s.level?6:s.level,null==s.mem?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(a.length)))):12+s.mem,o,f,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var a=this.b.length-this.s.z;a&&(this.b.set(n.subarray(0,a),this.s.z),this.s.z=this.b.length,this.p(this.b,!1)),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(a),32768),this.s.z=n.length-a+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,a=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),s=a.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(a,n),O(a,s-8,r.d()),O(a,s-4,e),a}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(r){for(var e=new t(n.length),i=0;i<n.length;++i)e[i]=n.charCodeAt(i);return e}if(G)return G.encode(n);var a=n.length,s=new t(n.length+(n.length>>1)),o=0,f=function(t){s[o++]=t};for(i=0;i<a;++i){if(o+5>s.length){var h=new t(o+8+(a-i<<1));h.set(s),s=h}var l=n.charCodeAt(i);l<128||r?f(l):l<2048?(f(192|l>>6),f(128|63&l)):l>55295&&l<57344?(f(240|(l=65536+(1047552&l)|1023&n.charCodeAt(++i))>>18),f(128|l>>12&63),f(128|l>>6&63),f(128|63&l)):(f(224|l>>12),f(128|l>>6&63),f(128|63&l))}return b(s,0,o)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(let r=0,e=t.length;r<e;r++)n+=t[r].length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J(((t,n)=>{this.deflate.push(t,n)})),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",(function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}})),postMessage({id:void 0,method:"init",success:!0,response:void 0});']);return URL.createObjectURL(i)}():""}();if(!o)return;Fl("[Replay] Using compression worker"+(i?` from ${i}`:""));const t=new Worker(o);return new Jct(t)}catch{Fl("[Replay] Failed to create compression worker")}}(o);if(t)return t}return Fl("[Replay] Using simple buffer"),new _re}({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.startRecording()}_handleException(o){gr&&Ki.error("[Replay]",o),gr&&this._options._experiments&&this._options._experiments.captureExceptions&&moe(o)}_initializeSessionForSampling(o){const r=vU({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,traceInternals:this._options._experiments.traceInternals,previousSessionId:o},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:this._options.errorSampleRate>0});this.session=r}_checkSession(){if(!this.session)return!1;const o=this.session;return!Are(o,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})||(this._refreshSession(o),!1)}_refreshSession(o){var t=this;return sn(function*(){!t._isEnabled||(yield t.stop({reason:"refresh session"}),t.initializeSampling(o.id))})()}_addListeners(){try{Tr.document.addEventListener("visibilitychange",this._handleVisibilityChange),Tr.addEventListener("blur",this._handleWindowBlur),Tr.addEventListener("focus",this._handleWindowFocus),Tr.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(eut(this),this._hasInitializedCoreListeners=!0)}catch(o){this._handleException(o)}this._performanceCleanupCallback=function Zct(i){function o(s){i.performanceEntries.includes(s)||i.performanceEntries.push(s)}function t({entries:s}){s.forEach(o)}const r=[];return["navigation","paint","resource"].forEach(s=>{r.push(xC(s,t))}),r.push(Eie(({metric:s})=>{i.replayPerformanceEntries.push(function jct(i){const o=i.entries,t=o[o.length-1],r=t?t.element:void 0,s=i.value,l=UC(s);return{type:"largest-contentful-paint",name:"largest-contentful-paint",start:l,end:l,data:{value:s,size:s,nodeId:r?Vm.mirror.getId(r):void 0}}}(s))})),()=>{r.forEach(s=>s())}}(this)}_removeListeners(){try{Tr.document.removeEventListener("visibilitychange",this._handleVisibilityChange),Tr.removeEventListener("blur",this._handleWindowBlur),Tr.removeEventListener("focus",this._handleWindowFocus),Tr.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(o){this._handleException(o)}}__init(){this._handleVisibilityChange=()=>{"visible"===Tr.document.visibilityState?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()}}__init2(){this._handleWindowBlur=()=>{const o=fh({category:"ui.blur"});this._doChangeToBackgroundTasks(o)}}__init3(){this._handleWindowFocus=()=>{const o=fh({category:"ui.focus"});this._doChangeToForegroundTasks(o)}}__init4(){this._handleKeyboardEvent=o=>{!function Lct(i,o){if(!i.isEnabled())return;i.updateUserActivity();const t=function Rct(i){const{metaKey:o,shiftKey:t,ctrlKey:r,altKey:s,key:l,target:u}=i;if(!u||function Fct(i){return"INPUT"===i.tagName||"TEXTAREA"===i.tagName||i.isContentEditable}(u)||!l)return null;if(!(o||r||s)&&1===l.length)return null;const A=B$(u,{maxStringLength:200})||"<unknown>";return fh({category:"ui.keyDown",message:A,data:{...gre(u,A).data,metaKey:o,shiftKey:t,ctrlKey:r,altKey:s,key:l}})}(o);!t||WS(i,t)}(this,o)}}_doChangeToBackgroundTasks(o){!this.session||Cre(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})||(o&&this._createCustomBreadcrumb(o),this.conditionalFlush())}_doChangeToForegroundTasks(o){this.session&&(this.checkAndHandleExpiredSession()?o&&this._createCustomBreadcrumb(o):Fl("[Replay] Document has become active, but session has expired"))}_updateUserActivity(o=Date.now()){this._lastActivity=o}_updateSessionActivity(o=Date.now()){this.session&&(this.session.lastActivity=o,this._maybeSaveSession())}_createCustomBreadcrumb(o){this.addUpdate(()=>{this.throttledAddEvent({type:Ii.Custom,timestamp:o.timestamp||0,data:{tag:"breadcrumb",payload:o}})})}_addPerformanceEntries(){const o=function Bct(i){return i.map(Hct).filter(Boolean)}(this.performanceEntries).concat(this.replayPerformanceEntries);return this.performanceEntries=[],this.replayPerformanceEntries=[],Promise.all(W4(this,o))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:o,eventBuffer:t}=this;if(!o||!t||o.segmentId)return;const r=t.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const o={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),urls:this._context.urls};return this._clearContext(),o}_runFlush(){var o=this;return sn(function*(){const t=o.getSessionId();if(o.session&&o.eventBuffer&&t){if(yield o._addPerformanceEntries(),o.eventBuffer&&o.eventBuffer.hasEvents&&(yield function tut(i){return EU.apply(this,arguments)}(o),o.eventBuffer&&t===o.getSessionId()))try{o._updateInitialTimestampFromEventBuffer();const r=Date.now();if(r-o._context.initialTimestamp>o._options.maxReplayDuration+3e4)throw new Error("Session is too long, not sending replay");const s=o._popEventContext(),l=o.session.segmentId++;o._maybeSaveSession();const u=yield o.eventBuffer.finish();yield Bre({replayId:t,recordingData:u,segmentId:l,eventContext:s,session:o.session,options:o.getOptions(),timestamp:r})}catch(r){o._handleException(r),o.stop({reason:"sendReplay"});const s=Zs();s&&s.recordDroppedEvent("send_error","replay")}}else gr&&Ki.error("[Replay] No session or eventBuffer found to flush.")})()}__init5(){var o=this;this._flush=sn(function*({force:t=!1}={}){if(!o._isEnabled&&!t)return;if(!o.checkAndHandleExpiredSession())return void(gr&&Ki.error("[Replay] Attempting to finish replay event after session expired."));if(!o.session)return;const r=o.session.started,l=Date.now()-r;o._debouncedFlush.cancel();const u=l<o._options.minReplayDuration;if(u||l>o._options.maxReplayDuration+5e3)return Fl(`[Replay] Session duration (${Math.floor(l/1e3)}s) is too ${u?"short":"long"}, not sending replay.`,o._options._experiments.traceInternals),void(u&&o._debouncedFlush());const y=o.eventBuffer;if(y&&0===o.session.segmentId&&!y.hasCheckout&&Fl("[Replay] Flushing initial segment without checkout.",o._options._experiments.traceInternals),!o._flushLock)return o._flushLock=o._runFlush(),yield o._flushLock,void(o._flushLock=void 0);try{yield o._flushLock}catch(A){gr&&Ki.error(A)}finally{o._debouncedFlush()}})}_maybeSaveSession(){this.session&&this._options.stickySession&&_U(this.session)}__init6(){this._onMutationHandler=o=>{const t=o.length,r=this._options.mutationLimit,l=r&&t>r;if(t>this._options.mutationBreadcrumbLimit||l){const u=fh({category:"replay.mutations",data:{count:t,limit:l}});this._createCustomBreadcrumb(u)}return!l||(this.stop({reason:"mutationLimit",forceFlush:"session"===this.recordingMode}),!1)}}}function ew(i,o,t,r){const l=[...i,..."string"==typeof r?r.split(","):[],...o];return typeof t<"u"&&("string"==typeof t&&l.push(`.${t}`),US(()=>{console.warn("[Replay] You are using a deprecated configuration item for privacy. Read the documentation on how to use the new privacy configuration.")})),l.join(",")}const $re='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',fut=["content-length","content-type","accept"];let Ure=!1;class nO{static __initStatic(){this.id="Replay"}constructor({flushMinDelay:o=5e3,flushMaxDelay:t=5500,minReplayDuration:r=4999,maxReplayDuration:s=36e5,stickySession:l=!0,useCompression:u=!0,workerUrl:p,_experiments:y={},sessionSampleRate:A,errorSampleRate:w,maskAllText:I=!0,maskAllInputs:P=!0,blockAllMedia:F=!0,mutationBreadcrumbLimit:V=750,mutationLimit:oe=1e4,slowClickTimeout:Ae=7e3,slowClickIgnoreSelectors:ue=[],networkDetailAllowUrls:Se=[],networkDetailDenyUrls:Be=[],networkCaptureBodies:Me=!0,networkRequestHeaders:He=[],networkResponseHeaders:Ye=[],mask:Le=[],maskAttributes:tt=["title","placeholder"],unmask:kt=[],block:Ke=[],unblock:Re=[],ignore:ot=[],maskFn:Ze,beforeAddRecordingEvent:At,beforeErrorSampling:Xe,blockClass:Oe,blockSelector:ze,maskInputOptions:it,maskTextClass:ct,maskTextSelector:yt,ignoreClass:Nn}={}){this.name=nO.id;const Vt=function hut({mask:i,unmask:o,block:t,unblock:r,ignore:s,blockClass:l,blockSelector:u,maskTextClass:p,maskTextSelector:y,ignoreClass:A}){const F={maskTextSelector:ew(i,[".sentry-mask","[data-sentry-mask]"],p,y),unmaskTextSelector:ew(o,[".sentry-unmask","[data-sentry-unmask]"]),blockSelector:ew(t,[".sentry-block","[data-sentry-block]",'base[href="/"]'],l,u),unblockSelector:ew(r,[".sentry-unblock","[data-sentry-unblock]"]),ignoreSelector:ew(s,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'],A)};return l instanceof RegExp&&(F.blockClass=l),p instanceof RegExp&&(F.maskTextClass=p),F}({mask:Le,unmask:kt,block:Ke,unblock:Re,ignore:ot,blockClass:Oe,blockSelector:ze,maskTextClass:ct,maskTextSelector:yt,ignoreClass:Nn});if(this._recordingOptions={maskAllInputs:P,maskAllText:I,maskInputOptions:{...it||{},password:!0},maskTextFn:Ze,maskInputFn:Ze,maskAttributeFn:(yi,Mn,Ao)=>function gut({el:i,key:o,maskAttributes:t,maskAllText:r,privacyOptions:s,value:l}){return!r||s.unmaskTextSelector&&i.matches(s.unmaskTextSelector)?l:t.includes(o)||"value"===o&&"INPUT"===i.tagName&&["submit","button"].includes(i.getAttribute("type")||"")?l.replace(/[\S]/g,"*"):l}({maskAttributes:tt,maskAllText:I,privacyOptions:Vt,key:yi,value:Mn,el:Ao}),...Vt,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:yi=>{try{yi.__rrweb__=!0}catch{}}},this._initialOptions={flushMinDelay:o,flushMaxDelay:t,minReplayDuration:Math.min(r,15e3),maxReplayDuration:Math.min(s,36e5),stickySession:l,sessionSampleRate:A,errorSampleRate:w,useCompression:u,workerUrl:p,blockAllMedia:F,maskAllInputs:P,maskAllText:I,mutationBreadcrumbLimit:V,mutationLimit:oe,slowClickTimeout:Ae,slowClickIgnoreSelectors:ue,networkDetailAllowUrls:Se,networkDetailDenyUrls:Be,networkCaptureBodies:Me,networkRequestHeaders:Yre(He),networkResponseHeaders:Yre(Ye),beforeAddRecordingEvent:At,beforeErrorSampling:Xe,_experiments:y},"number"==typeof A&&(console.warn(`[Replay] You are passing \`sessionSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysSessionSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysSessionSampleRate: ${A} })`),this._initialOptions.sessionSampleRate=A),"number"==typeof w&&(console.warn(`[Replay] You are passing \`errorSampleRate\` to the Replay integration.\nThis option is deprecated and will be removed soon.\nInstead, configure \`replaysOnErrorSampleRate\` directly in the SDK init options, e.g.:\nSentry.init({ replaysOnErrorSampleRate: ${w} })`),this._initialOptions.errorSampleRate=w),this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${$re}`:$re),this._isInitialized&&Eoe())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return Ure}set _isInitialized(o){Ure=o}setupOnce(){!Eoe()||(this._setup(),setTimeout(()=>this._initialize()))}start(){!this._replay||this._replay.start()}startBuffering(){!this._replay||this._replay.startBuffering()}stop(){return this._replay?this._replay.stop({forceFlush:"session"===this._replay.recordingMode}):Promise.resolve()}flush(o){return this._replay&&this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(o):Promise.resolve()}getReplayId(){if(this._replay&&this._replay.isEnabled())return this._replay.getSessionId()}_initialize(){!this._replay||(this._maybeLoadFromReplayCanvasIntegration(),this._replay.initializeSampling())}_setup(){const o=function _ut(i){const o=Zs(),t=o&&o.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...hh(i)};return t?(null==i.sessionSampleRate&&null==i.errorSampleRate&&null==t.replaysSessionSampleRate&&null==t.replaysOnErrorSampleRate&&US(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),"number"==typeof t.replaysSessionSampleRate&&(r.sessionSampleRate=t.replaysSessionSampleRate),"number"==typeof t.replaysOnErrorSampleRate&&(r.errorSampleRate=t.replaysOnErrorSampleRate),r):(US(()=>{console.warn("SDK client is not available.")}),r)}(this._initialOptions);this._replay=new qm({options:o,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(){try{const t=Zs().getIntegrationByName("ReplayCanvas");if(!t)return;this._replay._canvas=t.getOptions()}catch{}}}function Yre(i){return[...fut,...i.map(o=>o.toLowerCase())]}nO.__initStatic(),function Urt(i){const o=Object.assign({defaultIntegrations:One().filter(t=>"TryCatch"!==t.name)},i);tne(o,"angular-ivy"),function Yrt(){const o=n.q4F&&n.q4F.major?parseInt(n.q4F.major,10):void 0;o&&(o<12&&$rt&&ei.warn(`This Sentry SDK does not officially support Angular ${o}.`,"This SDK only supports Angular 12 and above.","If you're using Angular 10 or 11, please use `@sentry/angular` instead.","Otherwise, please consider upgrading your Angular version."),function Aet(i,o){rh().setContext(i,o)}("angular",{version:o}))}(),ait(o)}({dsn:"https://b6439a87e4599201a4ce593875cb3bd1@www.promokit.app.br/2",integrations:[function Wrt(i={}){return!1!==i.instrumentNavigation&&(Zie=!0,Qrt=!0),Ort(Object.assign(Object.assign({},i),{instrumentNavigation:!1}))}(),new nO({maskAllText:!1,blockAllMedia:!1})],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/meucardapio.app.br:8443\/api/],replaysSessionSampleRate:.1,replaysOnErrorSampleRate:1}),(0,n.G48)(),od().bootstrapModule(PXe).catch(i=>console.error(i))},3608:(v,x,S)=>{"use strict";function U(Y,z,G,ne){var $e,fe=arguments.length,xe=fe<3?z:null===ne?ne=Object.getOwnPropertyDescriptor(z,G):ne;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)xe=Reflect.decorate(Y,z,G,ne);else for(var bt=Y.length-1;bt>=0;bt--)($e=Y[bt])&&(xe=(fe<3?$e(xe):fe>3?$e(z,G,xe):$e(z,G))||xe);return fe>3&&xe&&Object.defineProperty(z,G,xe),xe}function q(Y,z){return function(G,ne){z(G,ne,Y)}}function te(Y,z){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(Y,z)}S.d(x,{o0:()=>vc,aJ:()=>qr,a_:()=>pf});var vt=S(2560),Aa=S(719);function Bi(Y){return"string"==typeof Y}const xi=/\{(\d+)}?\}/g;class pn{constructor({name:z,message:G}){if(!z||!G)throw new Error("{ name: string, message: string } object is required!");this.name=z,this.message=G}formatMessage(...z){const G=Vc(z),ne=this.message.replace(xi,function(fe,xe){return G[parseInt(xe,10)]});return`${this.name}: ${ne}`}error(...z){return new Error(this.formatMessage(z))}}const Vc=function(Y){return Y.reduce((z,G)=>z.concat(G),[])},xa=(Y={NoLocale:"Missing locale info for '{0}'",NoCurrency:"Cannot determine currency information. Please load the locale currencies data.",NoSupplementalCurrency:"Cannot determine currency. Please load the supplemental currencyData.",NoCurrencyRegion:"No currency data for region '{0}'",NoCurrencyDisplay:"Cannot determine currency display information. Please load the locale currencies data. The default culture does not include the all currencies data.",NoGMTInfo:"Cannot determine locale GMT format. Please load the locale timeZoneNames data.",NoWeekData:"Cannot determine locale first day of week. Please load the supplemental weekData.",NoFirstDay:"Cannot determine locale first day of week. Please load the supplemental weekData. The default culture includes only the 'en-US' first day info.",NoValidCurrency:"Cannot determine a default currency for the {0} locale. Please specify explicitly the currency with the format options.",NoDateFieldNames:"Cannot determine the locale date field names. Please load the locale dateFields data."},Object.keys(Y).reduce(function(G,ne){return G[ne]=new pn({name:ne,message:Y[ne]}),G},{}));var Y;const jt={en:{name:"en",identity:{version:{_number:"$Revision: 12418 $",_cldrVersion:"29"},language:"en"},territory:"US",numbers:{symbols:{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},currencies:{BGN:{displayName:"Bulgarian Lev","displayName-count-one":"Bulgarian lev","displayName-count-other":"Bulgarian leva",symbol:"BGN"},EUR:{displayName:"Euro","displayName-count-one":"euro","displayName-count-other":"euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},USD:{displayName:"US Dollar","displayName-count-one":"US dollar","displayName-count-other":"US dollars",symbol:"$","symbol-alt-narrow":"$"}},localeCurrency:"USD",accounting:{patterns:["$n","($n)"],groupSize:[3]}},calendar:{gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",patterns:{d:"M/d/y",D:"EEEE, MMMM d, y",m:"MMM d",M:"MMMM d",y:"MMM y",Y:"MMMM y",F:"EEEE, MMMM d, y h:mm:ss a",g:"M/d/y h:mm a",G:"M/d/y h:mm:ss a",t:"h:mm a",T:"h:mm:ss a",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} 'at' {0}",long:"{1} 'at' {0}",medium:"{1}, {0}",short:"{1}, {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d","MMMMW-count-one":"'week' W 'of' MMMM","MMMMW-count-other":"'week' W 'of' MMMM",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y","yw-count-one":"'week' w 'of' Y","yw-count-other":"'week' w 'of' Y"}},timeFormats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateFormats:{full:"EEEE, MMMM d, y",long:"MMMM d, y",medium:"MMM d, y",short:"M/d/yy"},days:{format:{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},"stand-alone":{abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}},months:{format:{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},"stand-alone":{abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]}},quarters:{format:{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},"stand-alone":{abbreviated:["Q1","Q2","Q3","Q4"],narrow:["1","2","3","4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{format:{wide:{0:"Before Christ",1:"Anno Domini","0-alt-variant":"Before Common Era","1-alt-variant":"Common Era"},abbreviated:{0:"BC",1:"AD","0-alt-variant":"BCE","1-alt-variant":"CE"},narrow:{0:"B",1:"A","0-alt-variant":"BCE","1-alt-variant":"CE"}}},dateFields:{era:{wide:"era"},year:{wide:"year",short:"yr.",narrow:"yr."},quarter:{wide:"quarter",short:"qtr.",narrow:"qtr."},month:{wide:"month",short:"mo.",narrow:"mo."},week:{wide:"week",short:"wk.",narrow:"wk."},day:{wide:"day",short:"day",narrow:"day"},weekday:{wide:"day of the week"},dayperiod:{wide:"AM/PM"},hour:{wide:"hour",short:"hr.",narrow:"hr."},minute:{wide:"minute",short:"min.",narrow:"min."},second:{wide:"second",short:"sec.",narrow:"sec."},millisecond:{wide:"millisecond",short:"ms",narrow:"ms"},zone:{wide:"time zone"}}}},supplemental:{likelySubtags:{en:"en-Latn-US"},currencyData:{region:{US:[{USD:{_from:"1792-01-01"}}]}},weekData:{firstDay:{US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}};function Rr(Y){let z;return z=Bi(Y)?ir(Y):Y,z}function ir(Y){if(jt[Y])return jt[Y];if(jt.supplemental.likelySubtags){const G=Y.split("-"),ne=G[0],fe=G.slice(1),xe=function pi(Y,z){const G=jt.supplemental.likelySubtags;for(let ne=0;ne<z.length;ne++){let fe=G[Y+"-"+z[ne]];if(fe)return fe}if(G[Y])return G[Y]}(ne,fe),$e=xe?function nr(Y,z){const G=Y.split("-"),ne=G[0],fe=G[1],xe=G[2];return jt[Y]||-1!==z.indexOf(xe)&&jt[ne+"-"+xe]||-1!==z.indexOf(fe)&&jt[ne+"-"+fe]||jt[ne]}(xe,fe):null;if($e)return $e}throw xa.NoLocale.error(Y)}const mo="decimal",Ta="currency",zr="accounting",Zi="percent",ls="scientific",Ho=".",So="en",en="Formats-numberSystem-latn",Fr=/([#,0.]+)/g,lo=/\xa4/g;function co(Y){return Fr.lastIndex=0,Y.replace(lo,"$").replace(Fr,"n").split(";")}function qn(Y){return Fr.lastIndex=0,Fr.exec(Y.split(";")[0])[0].split(Ho)[0].split(",").slice(1).map(function(fe){return fe.length}).reverse()}function Gt(Y,z){for(let G in z)G.startsWith("unitPattern")&&(Y[G]=z[G].replace("{0}","n").replace("{1}","$"))}function mr(Y,z){const G=jt[Y],ne=G.numbers=G.numbers||{};ne.symbols=ne.symbols||{};for(let fe in z)if("symbols-numberSystem-latn"===fe)Object.assign(ne.symbols,z[fe]);else if(fe.includes(en)){const xe=fe.substr(0,fe.indexOf(en)),$e=z[fe].standard;ne[xe]={patterns:co($e)},xe===Ta?(ne[xe].groupSize=qn((z[mo+en]||z[fe]).standard),Gt(ne[xe],z[fe]),ne[zr]={patterns:co(z[fe][zr]),groupSize:ne[xe].groupSize}):ne[xe].groupSize=qn($e)}else"currencies"===fe&&(ne.currencies=z[fe])}const pc={s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},Li=/y+/g,qt=[["dateFormats","short"]],Zt={D:[["dateFormats","full"]],m:[["dateTimeFormats","availableFormats","MMMd"]],M:[["dateTimeFormats","availableFormats","MMMMd"]],y:[["dateTimeFormats","availableFormats","yMMM"]],Y:[["dateTimeFormats","availableFormats","yMMMM"]],F:[["dateFormats","full"],["timeFormats","medium"]],g:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","short"]],G:[["dateTimeFormats","availableFormats","yMd"],["timeFormats","medium"]],t:[["timeFormats","short"]],T:[["timeFormats","medium"]]};function Go(Y){let z=[],G=Object.getOwnPropertyNames(Y);for(let ne=0;ne<G.length;ne++)z.push(Y[G[ne]]);return z}function Ps(Y,z){const G={};for(let ne in Y){let fe=G[ne]={};for(let xe in Y[ne]){let $e=Y[ne][xe];fe[xe]=z?$e:Go($e)}}return G}function An(Y,z){const G=jt[Y].calendar;G.days=Ps(z.days),G.months=Ps(z.months),G.quarters=Ps(z.quarters),G.dayPeriods=Ps(z.dayPeriods,!0),G.eras=function or(Y){const z={},G=z.format={},ne={eraAbbr:"abbreviated",eraNames:"wide",eraNarrow:"narrow"};for(let fe in Y)G[ne[fe]]=Y[fe];return z}(z.eras)}function In(Y,z){const G=jt[Y].calendar,ne={};for(let fe in z){const[xe,$e="wide"]=fe.split("-"),bt=ne[xe]||{},Tt=z[fe].displayName;!Tt||(bt[$e]=Tt,ne[xe]=bt)}G.dateFields=ne}function cl(Y,z){const G=[];for(let ne=0;ne<Y.length;ne++){let fe=Y[ne],xe=z;for(let $e=0;$e<fe.length;$e++)xe=xe[fe[$e]];G.push(xe)}return G.join(" ")}function ge(Y,z){const G=jt[Y].calendar,ne=G.patterns={};ne.d=cl(qt,z).replace(Li,"y");for(let xe in Zt)ne[xe]=cl(Zt[xe],z);for(let xe in pc)ne[xe]=pc[xe];const fe=z.dateTimeFormats;G.dateTimeFormats={full:fe.full,long:fe.long,medium:fe.medium,short:fe.short,availableFormats:fe.availableFormats},G.timeFormats=z.timeFormats,G.dateFormats=z.dateFormats}function dt(Y,z){const G=jt[Y].calendar=jt[Y].calendar||{};for(let ne in z)"timeZoneNames"===ne?(G.gmtFormat=z[ne].gmtFormat,G.gmtZeroFormat=z[ne].gmtZeroFormat):"calendars"===ne&&z[ne].gregorian?(ge(Y,z[ne].gregorian),An(Y,z[ne].gregorian)):"fields"===ne&&In(Y,z.fields)}function Ot(Y){if(Y.territory)return Y.territory;const G=Y.identity;let ne;return ne=G&&G.territory?G.territory:function et(Y,z){const G=jt.supplemental.likelySubtags;let ne=Y.split("-");if(G){const xe=G[Y]||G[ne[0]];xe&&(ne=xe.split("-"))}if(z)for(let xe=ne.length-1;xe>=1;xe--){const $e=ne[xe];($e===z.variant||$e===z.script)&&ne.splice(xe,1)}const fe=ne.length;if(fe>1)return ne[fe-1].toUpperCase()}(Y.name,G),Y.territory=ne,ne}function tn(Y,z){for(let G in z)"numbers"===G?mr(Y,z[G]):"dates"===G&&dt(Y,z[G])}function We(Y,z){const{type:G,nameType:ne,standAlone:fe,lower:xe}=z,Tt=(xe?"lower-":"")+ne,ut=Rr(Y).calendar[G][fe?"stand-alone":"format"];let zt=ut[Tt];return!zt&&xe&&(zt=ut[Tt]=function Qe(Y){return Array.isArray(Y)?function Vi(Y){const z=[];for(let G=0;G<Y.length;G++)z.push(Y[G].toLowerCase());return z}(Y):function J(Y){const z={};for(let G in Y)z[G]=Y[G].toLowerCase();return z}(Y)}(ut[ne])),zt}function he(Y){const z=Y.split("-"),G=parseInt(z[0],10),ne=parseInt(z[1],10)-1,fe=parseInt(z[2],10);return new Date(G,ne,fe)}const{NoCurrency:_t,NoCurrencyDisplay:Rt,NoSupplementalCurrency:Ft,NoCurrencyRegion:wt,NoValidCurrency:rr}=xa,Hi="symbol",an={"001":"USD",150:"EUR"};function xn(Y,z,G){const fe=Rr(Y).numbers.currencies;if(!fe){if(G)throw _t.error();return}const xe=fe[z];if(xe)return xe;if(G)throw Rt.error()}function _o(Y,z){return z.length-Y.length}function cs(Y,z){const G=Rr(Y),ne=G.numbers;if(!ne.localeCurrency){const fe=function Os(Y,z=!0){if(an[Y])return an[Y];const G=jt.supplemental.currencyData;if(!G){if(z)throw Ft.error();return}const ne=G.region[Y];if(ne)return function Sa(Y){let z,G,ne,fe;for(let xe=0;xe<Y.length;xe++){const $e=Y[xe],bt=Object.keys($e)[0],Tt=$e[bt];if("XXX"!==bt&&"false"!==Tt._tender&&Tt._from)if(Tt._to){if(!ne){const ut=he(Tt._from),zt=he(Tt._to);(!G||G.to<zt||G.from<ut)&&(z=bt,G={from:ut,to:zt})}}else{const ut=he(Tt._from);(!fe||fe<ut)&&(ne=bt,fe=ut)}}return ne||z}(ne);if(z)throw wt.error(Y)}(Ot(G),z);if(!fe&&z)throw rr.error(G.name);ne.localeCurrency=fe}return ne.localeCurrency}const Yn=["sun","mon","tue","wed","thu","fri","sat"],{NoWeekData:Ja,NoFirstDay:Gc}=xa;function dl(Y){const z=Rr(Y);if(!isNaN(z.firstDay))return z.firstDay;const G=jt.supplemental.weekData;if(!G)throw Ja.error();const ne=G.firstDay[Ot(z)]||G.firstDay["001"];if(!ne)throw Gc.error();return z.firstDay=Yn.indexOf(ne),z.firstDay}const{NoWeekData:la}=xa;function ki(Y){return 1/Y==-1/0}function Vs(Y,z={}){return z.currency||(z.currency=cs(Y,!0)),function Bl(Y,z){const{value:G,currency:ne,currencyDisplay:fe=Hi}=z;if("code"===fe)return ne;const xe=xn(Y,ne,!0);let $e;return $e=fe===Hi?xe["symbol-alt-narrow"]||xe[Hi]:void 0===typeof G||1!==G?xe["displayName-count-other"]:xe["displayName-count-one"],$e}(Y,z)}function Xu(Y,z,G,ne,fe){const xe=fe.numbers.symbols,$e=Y.indexOf(xe.decimal),bt=ne.groupSize.slice();let Tt=bt.shift(),ut=-1!==$e?$e:G+1,zt=Y.substring(z,ut),Tn=Y;const Jn=zt.length;if(Jn>=Tt){let En=Jn,Uo=[];for(;En>-1;){let Br=zt.substring(En-Tt,En);Br&&Uo.push(Br),En-=Tt;let Ka=bt.shift();if(Tt=void 0!==Ka?Ka:Tt,0===Tt){Br=zt.substring(0,En),Br&&Uo.push(Br);break}}zt=Uo.reverse().join(xe.group),Tn=Y.substring(0,z)+zt+Y.substring(ut)}return Tn}function zi(Y){return Y===Ta||Y===zr}function gt(Y,z=2,G=!1){const ne=z-String(Y).length;let fe=Y;if(ne>0){const xe=new Array(ne+1).join("0");fe=G?Y+xe:xe+Y}return fe}function ul(Y,z){let G=Y,ne=z||0;return G=G.toString().split("e"),G=Math.round(Number(G[0]+"e"+(G[1]?Number(G[1])+ne:ne))),G=G.toString().split("e"),G=Number(G[0]+"e"+(G[1]?Number(G[1])-ne:-ne)),G.toFixed(Math.min(ne,20))}const Bt=/0+$/;function Ha(Y,z,G){const ne=G.numbers.symbols,{style:fe}=z,xe=zi(fe);if(fe===ls)return(void 0!==z.minimumFractionDigits?Y.toExponential(z.minimumFractionDigits):Y.toExponential()).replace(Ho,ne.decimal);let bt,$e=Y;xe&&(z.value=$e,bt=Vs(G,z)),fe===Zi&&($e*=100,bt=ne.percentSign);const{minimumFractionDigits:Tt,maximumFractionDigits:ut}=function pl(Y){let{minimumFractionDigits:z,maximumFractionDigits:G,style:ne}=Y;const fe=zi(ne);let xe;return fe&&(xe=function qo(Y){let z=2,G=2;const ne=((jt.supplemental.currencyData||{}).fractions||{})[Y];return ne&&ne._digits&&(G=z=parseInt(ne._digits,10)),{minimumFractionDigits:z,maximumFractionDigits:G}}(Y.currency)),void 0===z&&(z=fe?xe.minimumFractionDigits:0),void 0===G&&(G=ne===Zi?Math.max(z,0):fe?Math.max(z,xe.maximumFractionDigits):Math.max(z,3)),{minimumFractionDigits:z,maximumFractionDigits:G}}(z);$e=ul($e,ut);const zt=$e<0,Tn=ki(Y),Jn=$e.split(Ho);let En=Jn[0],Uo=gt(Jn[1]?Jn[1].replace(Bt,""):"",Tt,!0);zt&&(En=En.substring(1)),z.minimumIntegerDigits&&(En=gt(En,z.minimumIntegerDigits));let Ka,Br=!1!==z.useGrouping?Xu(En,0,En.length,z,G):En;if(Uo&&(Br+=ne.decimal+Uo),xe&&"name"===z.currencyDisplay)Ka=function Ge(Y,z){const G=Y.numbers.currency;let ne=1!==z?G["unitPattern-count-other"]:G["unitPattern-count-one"];return z<0&&(ne=ne.replace("n","-n")),ne}(G,Y);else{const br=z.patterns;Ka=zt||Tn?br[1]||"-"+br[0]:br[0]}return"n"!==Ka||zt?function ca(Y,z,G){let ne="";for(let fe=0,xe=z.length;fe<xe;fe++){let $e=z.charAt(fe);ne+="n"===$e?Y:"$"===$e||"%"===$e?G:$e}return ne}(Br,Ka,bt):Br}const ds=/(\\.)|(['][^']*[']?)|(["][^"]*["]?)/g;function zs(Y,z){const G=Y.format;-1!==G.indexOf("%")&&(Y.style=Zi,Y.symbol=z.numbers.symbols.percentSign,Y.number*=100),-1!==G.indexOf("$")&&(Y.style=Ta,Y.symbol=Vs(z))}function gc(Y){let z=Y.format;if(z.indexOf("'")>-1||z.indexOf('"')>-1||z.indexOf("\\")>-1){const G=Y.literals=[];Y.format=z.replace(ds,function(ne){const fe=ne.charAt(0).replace("\\",""),xe=ne.slice(1).replace(fe,"");return G.push(xe),"__??__"})}}const zd=/(\.(?:[0-9]*[1-9])?)0+$/g,uo=/\.$/,Pi=/\,/g;function Wm(Y,z,G){let ne;return ne=-1===Y&&-1!==z?z:-1!==Y&&-1===z?Y:G?Math.min(Y,z):Math.max(Y,z),ne}function Km(Y,z,G){const ne={negative:Y<0,number:Math.abs(Y),negativeZero:ki(Y),format:z};return function nb(Y){let{number:z,format:G}=Y;if(G=G.split(";"),(Y.negative||Y.negativeZero)&&G[1])G=G[1],Y.hasNegativeFormat=!0;else if(0===z){const ne=G[2];G=ne||G[0],ne&&function tb(Y){return-1===Y.indexOf("#")&&-1===Y.indexOf("0")}(ne)&&(Y.constant=ne)}else G=G[0];Y.format=G}(ne),ne.constant?ne.constant:(gc(ne),zs(ne,G),function ib(Y){Y.hasGroup=Y.format.indexOf(",")>-1,Y.hasGroup&&(Y.format=Y.format.replace(Pi,""))}(ne),function Gs(Y){let{number:z,format:G}=Y,ne=G.indexOf(Ho);if(-1!==ne){const fe=G.lastIndexOf("0")-ne,xe=G.lastIndexOf("#")-ne,$e=fe>-1,bt=xe>-1;let Tt=z.toString().split("e");Tt=Tt[1]?ul(z,Math.abs(Tt[1])):Tt[0],Tt=Tt.split(Ho)[1]||"";let ut=Tt.length,zt=-1;$e||bt?$e&&fe>xe?ut=fe:xe>fe&&(bt&&ut>xe?ut=xe:$e&&ut<fe&&(ut=fe),zt=$e?fe:0):(Y.format=G.substring(0,ne)+G.substring(ne+1),ne=-1,ut=0),ut>-1&&(z=ul(z,ut),zt>-1&&(z=function jC(Y,z){let G;return G=0===z?zd:new RegExp(`(\\.[0-9]{${z}}[1-9]*)0+$`,"g"),Y.replace(G,"$1").replace(uo,"")}(z,zt)))}else z=ul(z);Y.negative&&-1*z>=0&&!Y.negativeZero&&(Y.negative=!1),Y.number=z,Y.decimalIndex=ne}(ne),function Qg(Y){const z=Y.format;let G=z.indexOf("#"),ne=z.indexOf("0"),fe=Wm(G,ne,!0);G=z.lastIndexOf("#"),ne=z.lastIndexOf("0");let xe=Wm(G,ne);fe===z.length&&(xe=fe),Y.start=fe,Y.end=xe,Y.lastZeroIndex=ne}(ne),function rb(Y,z){let G=Y.number;return-1!==Y.start&&(G=function ob(Y,z){const{start:G,end:ne,negative:fe,negativeZero:xe,format:$e,decimalIndex:bt,lastZeroIndex:Tt,hasNegativeFormat:ut,hasGroup:zt}=Y;let Tn=Y.number;const Jn=Tn.toString().split(Ho),En=$e.length,Uo=Jn[0],Br=Jn[1]||"",Ka=Uo.length;let yc="";Tn=$e.substring(0,G),(fe||xe)&&!ut&&(Tn+="-");for(let br=G;br<En;br++){let su=$e.charAt(br);if(-1===bt){if(ne-br<Ka){Tn+=Uo;break}}else if(-1!==Tt&&Tt<br&&(yc=""),bt-br<=Ka&&bt-br>-1&&(Tn+=Uo,br=bt),bt===br){Tn+=(Br?z.numbers.symbols.decimal:"")+Br,br+=ne-bt+1;continue}"0"===su?(Tn+=su,yc=su):"#"===su&&(Tn+=yc)}return zt&&(Tn=Xu(Tn,G+(fe&&!ut?1:0),Math.max(ne,Ka+G),z.numbers.decimal,z)),ne>=G&&(Tn+=$e.substring(ne+1)),Tn}(Y,z),G=function Wg(Y,z,G){let ne=Y;if(z===Ta||z===Zi){ne="";for(let fe=0,xe=Y.length;fe<xe;fe++){let $e=Y.charAt(fe);ne+="$"===$e||"%"===$e?G:$e}}return ne}(G,Y.style,Y.symbol),G=function da(Y,z){let G=Y;if(z){const ne=z.length;for(let fe=0;fe<ne;fe++)G=G.replace("__??__",z[fe])}return G}(G,Y.literals)),G}(ne,G))}const ab=/^(n|c|p|e|a)(\d*)$/i;function bh(Y){let z;return z=Bi(Y)?function _h(Y){const z=ab.exec(Y);if(z){const G={style:mo};let ne=z[1].toLowerCase();return"c"===ne?G.style=Ta:"a"===ne?G.style=zr:"p"===ne?G.style=Zi:"e"===ne&&(G.style=ls),z[2]&&(G.minimumFractionDigits=G.maximumFractionDigits=parseInt(z[2],10)),G}}(Y):Y,z}function tp(Y,z="n",G=So){if(null==Y)return"";if(!isFinite(Y))return String(Y);const ne=ir(G),fe=bh(z);let xe;return xe=fe?Ha(Y,Object.assign({},ne.numbers[fe.style||mo],fe),ne):Km(Y,z,ne),xe}function Kg(Y){return"number"==typeof Y}const Xm=/[eE][\-+]?[0-9]+/,e_=/\u00A0/g;function $l(Y,z){if(z.length>1){const G=(z[1]||"").replace("$","").split("n");if(Y.indexOf(G[0])>-1&&Y.indexOf(G[1])>-1)return Y.replace(G[0],"").replace(G[1],"")}}const Jo=/\{(\d+)}/g;function qd(Y){const z=arguments;return Y.replace(Jo,(G,ne)=>z[parseInt(ne,10)+1])}const vh=[2,1,5,3,4],t_={[(-2).toString()]:8,[(-1).toString()]:6,[2..toString()]:6,[1..toString()]:3},Wa={numeric:1,"2-digit":2,short:3,long:4,narrow:5},Jd=/[hHmsSzZoOvVxX]/,hi=[{key:"era",specifier:"G"},{key:"year",specifier:"y"},{key:"month",specifier:"M"},{key:"day",specifier:"d"},{key:"weekday",specifier:"E"},{key:"hour",getSpecifier:function sb(Y){return Y.hour12?"h":"H"}},{key:"minute",specifier:"m"},{key:"second",specifier:"s"},{key:"timeZoneName",specifier:"z"}],Qd={e:"c",E:"c",M:"L",Q:"q"},Wc={},qs={};function ua(Y){return Wc[Y]||(Wc[Y]=new RegExp(Y+"+")),Wc[Y]}function mc(Y){const z=[];let G=Y.charAt(0),ne=G;for(let fe=1;fe<Y.length;fe++){let xe=Y.charAt(fe);xe===ne?G+=xe:(z.push(G),G=ne=xe)}return z.push(G),z}function hl(Y,z){const G=Y.length;let fe,xe,ne=-Number.MAX_VALUE;for(let $e in z){const bt=[];let Tt=$e.replace("v","z"),ut=0;for(let zt=0;zt<G;zt++){const Tn=Y[zt];let En=(ua(Tn[0]).exec(Tt)||[])[0];if(En){if(Tt=Tt.replace(En,""),En.length!==Tn.length){let Uo=Math.max(Math.min(vh[En.length]-vh[Tn.length],2),-2);ut-=t_[Uo]}}else ut-=120;if(bt.push(En),ut<ne)break}Tt.length&&(ut-=20*mc(Tt).length),ut>ne&&(ne=ut,fe=bt,xe=z[$e])}xe=xe.replace("v","z");for(let $e=0;$e<G;$e++){const bt=fe[$e];if(bt&&bt!==Y[$e]){const Tt=fe[$e][0];xe=xe.replace(ua(Tt),Y[$e]),Qd[Tt]&&(xe=xe.replace(ua(Qd[Tt]),Y[$e]))}}return xe}function Wd(Y,z){const G=z.calendar;let ne;if(Bi(Y))ne=G.patterns[Y]?G.patterns[Y]:Y;else if(Y){if(Y.pattern)return Y.pattern;let fe=Y.skeleton;fe||(Y.datetime?ne=qd(G.dateTimeFormats[Y.datetime],G.timeFormats[Y.datetime],G.dateFormats[Y.datetime]):Y.date?ne=G.dateFormats[Y.date]:Y.time?ne=G.timeFormats[Y.time]:fe=function Js(Y){let z=[];for(let G=0;G<hi.length;G++){let ne=hi[G],xe=Y[ne.key];if(xe){let $e=ne.specifier||ne.getSpecifier(Y);z.push($e.repeat(Wa[xe]))}}return z.join("")}(Y)),fe&&(ne=function us(Y,z){const G=z.calendar.dateTimeFormats.availableFormats;if(G[Y])return G[Y];if(qs[z.name]&&qs[z.name][Y])return qs[z.name][Y];const ne=Y.search(Jd);let fe;if(ne>0){const xe=Y.substr(0,ne),$e=Y.substr(ne);fe=qd(z.calendar.dateTimeFormats.short,G[$e]||hl(mc($e),G),G[xe]||hl(mc(xe),G))}else fe=hl(mc(Y),G);return function gl(Y,z,G){qs[G]||(qs[G]={}),qs[G][Y]=z}(Y,fe,z.name),fe}(fe,z))}return ne||(ne=G.patterns.d),ne}function ip(Y){let z;return Y<=3?z="abbreviated":4===Y?z="wide":5===Y?z="narrow":6===Y&&(z="short"),z}function $o(Y,z,G,ne,fe){return We(Y,{type:z,nameType:ip(G),standAlone:ne,lower:fe})}function Ah(Y){return"function"==typeof Y}function Qs(Y){return Boolean(Y)&&Ah(Y.getTime)&&Ah(Y.getMonth)}const Ul="hour",xh="zone",Th="weekday",op="quarter",Sh={G:"era",y:"year",q:op,Q:op,M:"month",L:"month",d:"day",E:Th,c:Th,e:Th,h:Ul,H:Ul,k:Ul,K:Ul,m:"minute",s:"second",S:"millisecond",a:"dayperiod",x:xh,X:xh,z:xh,Z:xh},Kc=/d{1,2}|E{1,6}|e{1,6}|c{3,6}|c{1}|M{1,5}|L{1,5}|y{1,4}|H{1,2}|h{1,2}|k{1,2}|K{1,2}|m{1,2}|a{1,5}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|x{1,5}|X{1,5}|G{1,5}|q{1,5}|Q{1,5}|"[^"]*"|'[^']*'/g;function nf(Y,z,G,ne){return z<=2?gt(Y+1,z):$o(G,"months",z,ne)[Y]}function st(Y,z,G,ne){const fe=Math.floor(Y.getMonth()/3);return z<3?fe+1:$o(G,"quarters",z,ne)[fe]}function fi(Y,z,G){const{shortHours:ne,optionalMinutes:fe,separator:xe,localizedName:$e,zZeroOffset:bt}=G,Tt=Y.getTimezoneOffset()/60;if(0===Tt&&bt)return"Z";const ut=Tt<=0?"+":"-",zt=Math.abs(Tt).toString().split("."),Tn=zt[1]||0;let Jn=ut+(ne?zt[0]:gt(zt[0],2));return(Tn||!fe)&&(Jn+=(xe?":":"")+gt(Tn,2)),$e&&(Jn=qd(0===Tt?z.calendar.gmtZeroFormat:z.calendar.gmtFormat,Jn)),Jn}function wh(Y,z,G,ne){let fe;return fe=z<3?function tf(Y,z,G){const ne=dl(G);let fe;return fe=Y<ne?7-ne+Y:Y-ne,fe+1}(Y.getDay(),0,G):$o(G,"days",z,ne)[Y.getDay()],fe}const Oo={};function _r(Y,z,G=So){if(!Qs(Y))return Y??"";const ne=ir(G);return Wd(z,ne).replace(Kc,function(xe){let bt,$e=xe.length;return bt=xe.includes("'")||xe.includes('"')?xe.slice(1,$e-1):Oo[xe[0]](Y,$e,ne),bt})}function rf(Y,z,G){const ne=Y.getTimezoneOffset(),fe=new Date(Y.getTime()+6e4*(z-G)),xe=fe.getTimezoneOffset();return new Date(fe.getTime()+6e4*(xe-ne))}Oo.d=function(Y,z){return gt(Y.getDate(),z)},Oo.E=function(Y,z,G){return $o(G,"days",z)[Y.getDay()]},Oo.M=function(Y,z,G){return nf(Y.getMonth(),z,G,!1)},Oo.L=function(Y,z,G){return nf(Y.getMonth(),z,G,!0)},Oo.y=function(Y,z){let G=Y.getFullYear();return 2===z&&(G%=100),gt(G,z)},Oo.h=function(Y,z){return gt(Y.getHours()%12||12,z)},Oo.H=function(Y,z){return gt(Y.getHours(),z)},Oo.k=function(Y,z){return gt(Y.getHours()||24,z)},Oo.K=function(Y,z){return gt(Y.getHours()%12,z)},Oo.m=function(Y,z){return gt(Y.getMinutes(),z)},Oo.s=function(Y,z){return gt(Y.getSeconds(),z)},Oo.S=function(Y,z){const G=Y.getMilliseconds();let ne;return ne=0!==G?gt(String(G/1e3).split(".")[1].substr(0,z),z,!0):gt("",z),ne},Oo.a=function(Y,z,G){return $o(G,"dayPeriods",z)[Y.getHours()<12?"am":"pm"]},Oo.z=function(Y,z,G){return fi(Y,G,{shortHours:z<4,optionalMinutes:z<4,separator:!0,localizedName:!0})},Oo.Z=function(Y,z,G){return fi(Y,G,{separator:z>3,localizedName:4===z,zZeroOffset:5===z})},Oo.x=function(Y,z,G){return fi(Y,G,{optionalMinutes:1===z,separator:3===z||5===z})},Oo.X=function(Y,z,G){return fi(Y,G,{optionalMinutes:1===z,separator:3===z||5===z,zZeroOffset:!0})},Oo.G=function(Y,z,G){let ne=Y.getFullYear()>=0?1:0;return $o(G,"eras",z)[ne]},Oo.e=wh,Oo.c=function(Y,z,G){return wh(Y,z,G,!0)},Oo.q=function(Y,z,G){return st(Y,z,G,!0)},Oo.Q=st;const Ws=/([+|\-]\d{1,2})(:?)(\d{2})?/,Kd=/^\/Date\((.*?)\)\/$/,Mh=/[+-]\d*/,ZC={2:/^\d{1,2}/,3:/^\d{1,3}/,4:/^\d{4}/},n_=/\d+/,af=/^ */,$a=/ *$/,fl=["yyyy/MM/dd HH:mm:ss","yyyy/MM/dd HH:mm","yyyy/MM/dd","E MMM dd yyyy HH:mm:ss","yyyy-MM-ddTHH:mm:ss.SSSSSSSXXX","yyyy-MM-ddTHH:mm:ss.SSSXXX","yyyy-MM-ddTHH:mm:ss.SSXXX","yyyy-MM-ddTHH:mm:ssXXX","yyyy-MM-ddTHH:mm:ss.SSSSSSS","yyyy-MM-ddTHH:mm:ss.SSS","yyyy-MM-ddTHH:mmXXX","yyyy-MM-ddTHH:mmX","yyyy-MM-ddTHH:mm:ss","yyyy-MM-ddTHH:mm","yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","yyyy-MM-dd","HH:mm:ss","HH:mm"],vo=["G","g","F","Y","y","M","m","D","d","y","T","t"];function Mr(Y,z,G){return!(Y>=z&&Y<=G)}function Dr(Y,z){let{format:G,idx:ne}=z,fe=0;for(;G[ne]===Y;)fe++,ne++;return fe>0&&(ne-=1),z.idx=ne,fe}function Ks(Y,z){let G=Y?ZC[Y]||new RegExp("^\\d{1,"+Y+"}"):n_,ne=z.value.substr(z.valueIdx,Y).match(G);return ne?(ne=ne[0],z.valueIdx+=ne.length,parseInt(ne,10)):null}function ed(Y,z,G){let xe,$e,ut,ne=0,fe=Y.length,bt=0,Tt=0;for(;ne<fe;ne++)xe=Y[ne],$e=xe.length,ut=z.value.substr(z.valueIdx,$e),G&&(ut=ut.toLowerCase()),ut===xe&&$e>bt&&(bt=$e,Tt=ne);return bt?(z.valueIdx+=bt,Tt+1):null}function sf(Y){let z=!1;return Y.value.charAt(Y.valueIdx)===Y.format[Y.idx]&&(Y.valueIdx++,z=!0),z}function td(Y,z,G){const{shortHours:ne,noSeparator:fe,optionalMinutes:xe,localizedName:$e,zLiteral:bt}=G;if(Y.UTC=!0,bt&&"Z"===Y.value.charAt(Y.valueIdx))return Y.valueIdx++,!1;if($e&&!ed(function Yl(Y){const{gmtFormat:z,gmtZeroFormat:G}=Y;if(!z)throw xa.NoGMTInfo.error();return[z.replace("{0}","").toLowerCase(),G.replace("{0}","").toLowerCase()]}(z.calendar),Y,!0))return!0;const Tt=Ws.exec(Y.value.substr(Y.valueIdx,6));if(!Tt)return!$e;const ut=Tt[1],zt=Tt[3],Tn=parseInt(ut,10),Jn=Tt[2];let En=parseInt(zt,10);if(isNaN(Tn)||!ne&&3!==ut.length||!xe&&isNaN(En)||fe&&Jn||(isNaN(En)&&(En=null),Mr(Tn,-12,13)||En&&Mr(En,0,59)))return!0;Y.valueIdx+=Tt[0].length,Y.hoursOffset=Tn,Y.minutesOffset=En}function Dh(Y,z,G){const ne=Dr(Y,z),fe=$o(G,"months",ne,"L"===Y,!0),xe=ne<3?Ks(2,z):ed(fe,z,!0);if(null===xe||Mr(xe,1,12))return!0;z.month=xe-1}function nd(Y,z,G){const ne=Dr(Y,z),fe=$o(G,"days",ne,"c"===Y,!0);let xe=ne<3?Ks(1,z):ed(fe,z,!0);if(!xe&&0!==xe||Mr(xe,1,7))return!0}const Gi={};function rp(Y,z){return`${af.exec(z)[0]}${Y}${$a.exec(z)[0]}`}function ap(Y,z,G){let ne=Wd(z,G).split("");const fe={format:ne,idx:0,value:rp(Y,z),valueIdx:0,year:null,month:null,day:null,hours:null,minutes:null,seconds:null,milliseconds:null},xe=ne.length;let $e=!1;for(;fe.idx<xe;fe.idx++){let bt=ne[fe.idx];if($e)"'"===bt&&($e=!1),sf(fe);else if(Gi[bt]){if(Gi[bt](fe,G))return null}else if("'"===bt)$e=!0,sf(fe);else if(!sf(fe))return null}return fe.valueIdx<Y.length?null:function kh(Y){let{year:z,month:G,day:ne,hours:fe,minutes:xe,seconds:$e,milliseconds:bt,pmHour:Tt,UTC:ut,hoursOffset:zt,minutesOffset:Tn}=Y;const Jn=null!==fe||null!==xe||$e||null,En=new Date;let Uo;return null===z&&null===G&&null===ne&&Jn?(z=En.getFullYear(),G=En.getMonth(),ne=En.getDate()):(null===z&&(z=En.getFullYear()),null===ne&&(ne=1)),Tt&&fe<12&&(fe+=12),ut?(zt&&(fe+=-zt),Tn&&(xe+=-Tn*(zt<0?-1:1)),Uo=new Date(Date.UTC(z,G,ne,fe,xe,$e,bt))):(Uo=new Date(z,G,ne,fe,xe,$e,bt),function Xc(Y,z){!z&&23===Y.getHours()&&Y.setHours(Y.getHours()+2)}(Uo,fe)),z<100&&Uo.setFullYear(z),Uo.getDate()!==ne&&void 0===ut?null:Uo}(fe)||null}Gi.d=function(Y){Dr("d",Y);const z=Ks(2,Y);if(null===z||Mr(z,1,31))return!0;null===Y.day&&(Y.day=z)},Gi.E=function(Y,z){if(null===ed($o(z,"days",Dr("E",Y),!1,!0),Y,!0))return!0},Gi.M=function(Y,z){return Dh("M",Y,z)},Gi.L=function(Y,z){return Dh("L",Y,z)},Gi.y=function(Y){const z=Dr("y",Y);let G=Ks(1===z?void 0:z,Y);if(null===G)return!0;if(2===z){const ne=(new Date).getFullYear();G=ne-ne%100+G,G>2029&&(G-=100)}Y.year=G},Gi.h=function(Y){Dr("h",Y);let z=Ks(2,Y);if(12===z&&(z=0),null===z||Mr(z,0,11))return!0;Y.hours=z},Gi.K=function(Y){Dr("K",Y);let z=Ks(2,Y);if(null===z||Mr(z,0,11))return!0;Y.hours=z},Gi.a=function(Y,z){let ne=$o(z,"dayPeriods",Dr("a",Y),!1,!0);const fe=ed([ne.pm],Y,!0);if(!fe&&!ed([ne.am],Y,!0))return!0;Y.pmHour=fe},Gi.H=function(Y){Dr("H",Y);const z=Ks(2,Y);if(null===z||Mr(z,0,23))return!0;Y.hours=z},Gi.k=function(Y){Dr("k",Y);let z=Ks(2,Y);if(null===z||Mr(z,1,24))return!0;Y.hours=24===z?0:z},Gi.m=function(Y){Dr("m",Y);const z=Ks(2,Y);if(null===z||Mr(z,0,59))return!0;Y.minutes=z},Gi.s=function(Y){Dr("s",Y);const z=Ks(2,Y);if(null===z||Mr(z,0,59))return!0;Y.seconds=z},Gi.S=function(Y){const z=Dr("S",Y),G=Y.value.substr(Y.valueIdx,z);let ne=null;if(isNaN(parseInt(G,10))||(ne=parseFloat("0."+G,10),ne=ul(ne,3),ne*=1e3,Y.valueIdx+=z),null===ne||Mr(ne,0,999))return!0;Y.milliseconds=ne},Gi.z=function(Y,z){const ne=Dr("z",Y)<4,fe=td(Y,z,{shortHours:ne,optionalMinutes:ne,localizedName:!0});if(fe)return fe},Gi.Z=function(Y,z){const G=Dr("Z",Y),ne=td(Y,z,{noSeparator:G<4,zLiteral:5===G,localizedName:4===G});if(ne)return ne},Gi.x=function(Y,z){const G=Dr("x",Y),ne=td(Y,z,{noSeparator:3!==G&&5!==G,optionalMinutes:1===G});if(ne)return ne},Gi.X=function(Y,z){const G=Dr("X",Y),ne=td(Y,z,{noSeparator:3!==G&&5!==G,optionalMinutes:1===G,zLiteral:!0});if(ne)return ne},Gi.G=function(Y,z){const ne=$o(z,"eras",Dr("G",Y),!1,!0);if(null===ed([ne[0],ne[1]],Y,!0))return!0},Gi.e=function(Y,z){return nd("e",Y,z)},Gi.c=function(Y,z){return nd("c",Y,z)};const lf={month:{type:"months",minLength:3,standAlone:"L"},quarter:{type:"quarters",minLength:3,standAlone:"q"},weekday:{type:"days",minLength:{E:0,c:3,e:3},standAlone:"c"},dayperiod:{type:"dayPeriods",minLength:0},era:{type:"eras",minLength:0}},i_="literal";function pa(Y,z){const G=Y[Y.length-1];G&&G.type===i_?G.pattern+=z:Y.push({type:i_,pattern:z})}function _c(Y){return"h"===Y||"K"===Y}const o_=/\{(\d+)(:[^\}]+)?\}/g;function r_(Y,z,G){if(z){if(Qs(Y))return _r(Y,z,G);if(Kg(Y))return tp(Y,z,G)}return Y??""}const cb={name:"@progress/kendo-angular-intl",productName:"Kendo UI for Angular",productCodes:["KENDOUIANGULAR","KENDOUICOMPLETE"],publishDate:1646219037,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"},jl="http://www.telerik.com/kendo-angular-ui/components/internationalization/troubleshooting/",cf={NoCurrency:`Solution: ${jl}#toc-no-currency`,NoCurrencyDisplay:`Solution: ${jl}#toc-no-currency-display`,NoCurrencyRegion:`Solution: ${jl}#toc-no-currency-region`,NoDateFieldNames:`Solution: ${jl}#toc-no-date-filed-names`,NoFirstDay:`Solution: ${jl}#toc-no-first-day`,NoGMTInfo:`Solution: ${jl}#toc-no-gmt-info`,NoLocale:`Solution: ${jl}#toc-no-locale`,NoValidCurrency:`Solution: ${jl}#toc-no-valid-currency`,NoWeekData:`Solution: ${jl}#toc-no-week-data`};function wa(Y){return function(...z){try{return Y.apply(null,z)}catch(G){throw G.message=function tu(Y){const z=Y.message,G=cf[Object.keys(cf).filter(ne=>0===z.indexOf(ne))[0]];return G?`${z} ${G}`:z}(G),G}}}const Ua=wa(We),ml=wa(function Un(Y,z=So){const ne=ir(z).calendar.dateFields;if(!ne)throw xa.NoDateFieldNames.error();const fe=ne[Y.type]||{};return fe[Y.nameType]||fe.wide}),df=wa(dl),db=wa(function lb(Y,z,G){return Y.replace(o_,function(ne,fe,xe){return r_(z[parseInt(fe,10)],xe?xe.substring(1):"",G)})}),Zl=wa(_r),nu=wa(tp),ub=(wa(function on(){const Y=arguments.length;for(let z=0;z<Y;z++){let G=arguments[z];if(G.main){let ne=Object.keys(G.main)[0],fe=G.main[ne],xe=jt[ne]=jt[ne]||{};xe.name=xe.name||ne,xe.identity=xe.identity||fe.identity,Ot(xe),tn(ne,fe)}else if(G.supplemental)if(G.supplemental.weekData)jt.supplemental.weekData={firstDay:G.supplemental.weekData.firstDay,weekendStart:G.supplemental.weekData.weekendStart,weekendEnd:G.supplemental.weekData.weekendEnd};else if(G.supplemental.likelySubtags)jt.supplemental.likelySubtags=Object.assign(jt.supplemental.likelySubtags,G.supplemental.likelySubtags);else if(G.supplemental.currencyData){const ne=jt.supplemental.currencyData;ne.region=Object.assign(ne.region||{},G.supplemental.currencyData.region),ne.fractions=Object.assign(ne.fractions||{},G.supplemental.currencyData.fractions)}}}),wa(function Hl(Y){return Rr(Y).numbers.symbols})),sp=wa(function eu(Y,z,G=So){if(!Y)return null;if(Qs(Y))return Y;let ne=String(Y).trim(),fe=function Eh(Y){if(Y&&0===Y.indexOf("/D")){let z=Kd.exec(Y);if(z){z=z[1];let G=Mh.exec(z.substring(1));return z=new Date(parseInt(z,10)),G&&(G=function Ih(Y){const z="-"===Y.substr(0,1)?-1:1;let G=Y.substring(1);return G=60*parseInt(G.substr(0,2),10)+parseInt(G.substring(2),10),z*G}(G[0]),z=rf(z,z.getTimezoneOffset(),0),z=rf(z,0,-1*G)),z}}}(ne);if(fe)return fe;const xe=ir(G);let $e=z||function Ph(Y){const z=[],G=Y.patterns,ne=vo.length;for(let fe=0;fe<ne;fe++)z.push(G[vo[fe]]);return z.concat(fl)}(xe.calendar);$e=Array.isArray($e)?$e:[$e];const bt=$e.length;for(let Tt=0;Tt<bt;Tt++)if(fe=ap(ne,$e[Tt],xe),fe)return fe;return fe}),uf=wa(function ef(Y,z=So,G={}){if(!Y&&0!==Y)return null;if(Kg(Y))return Y;const ne=ir(z),fe=ne.numbers.symbols;let bt,xe=Y.toString(),$e=G||{};if(Bi(G)&&($e={format:G},gc($e),xe=function Gd(Y,z){const G=z.literals;let ne=Y;if(G)for(let fe=0;fe<G.length;fe++)ne=ne.replace(G[fe],"");return ne}(xe,$e),zs($e,ne)),($e.style===Zi||xe.indexOf(fe.percentSign)>-1)&&(xe=xe.replace(fe.percentSign,""),bt=!0),Xm.test(xe))return xe=parseFloat(xe.replace(fe.decimal,Ho)),isNaN(xe)?null:xe;const{negative:Tt,number:ut}=function Xg(Y,z,G){const ne=bh(G)||{};let $e,fe=zi(ne.style),xe=Y;const bt=ne.currency||cs(z,fe);if(bt){const Tt=function bo(Y,z,G=!0){const ne=xn(Y,z,G);if(ne){if(!ne.displays){const fe=[z];for(let xe in ne)fe.push(ne[xe]);fe.sort(_o),ne.displays=fe}return ne.displays}}(z,bt,fe);if(Tt)for(let ut=0;ut<Tt.length;ut++){let zt=Tt[ut];if(xe.includes(zt)){xe=xe.replace(zt,""),fe=!0;break}}if(fe){const ut=$l(xe,z.numbers.currency.patterns)||$l(xe,z.numbers.accounting.patterns);ut&&($e=!0,xe=ut)}}return{number:xe,negative:$e}}(xe,ne,$e);xe=String(ut).trim();const zt=xe.indexOf("-");if(zt>0)return null;let Tn=zt>-1;return Tn=void 0!==Tt?Tt:Tn,xe=xe.replace("-","").replace(e_," ").split(fe.group.replace(e_," ")).join("").replace(fe.decimal,Ho),xe=parseFloat(xe),isNaN(xe)?xe=null:Tn&&(xe*=-1),xe&&bt&&(xe/=100),xe}),pb=wa(function Qo(Y,z=So){const ne=Wd(Y,ir(z)),fe=[];let xe=Kc.lastIndex=0,$e=Kc.exec(ne);for(;$e;){let bt=$e[0];if(xe<$e.index&&pa(fe,ne.substring(xe,$e.index)),bt.startsWith('"')||bt.startsWith("'"))pa(fe,bt);else{const Tt=bt[0],ut=Sh[Tt],zt={type:ut,pattern:bt};"hour"===ut&&(zt.hour12=_c(bt));const Tn=lf[ut];if(Tn){const Jn=Kg(Tn.minLength)?Tn.minLength:Tn.minLength[Tt],En=bt.length;En>=Jn&&(zt.names={type:Tn.type,nameType:ip(En),standAlone:Tn.standAlone===Tt})}fe.push(zt)}xe=Kc.lastIndex,$e=Kc.exec(ne)}return xe<ne.length&&pa(fe,ne.substring(xe)),fe}),hb=wa(r_),gb=wa(function hc(Y){const z=Rr(Y);if(z.weekendRange)return z.weekendRange;const G=jt.supplemental.weekData;if(!G)throw la.error();const ne=Ot(z),xe=G.weekendEnd[ne]||G.weekendEnd["001"];return z.weekendRange={start:Yn.indexOf(G.weekendStart[ne]||G.weekendStart["001"]),end:Yn.indexOf(xe)},z.weekendRange}),pf=Y=>function rn(Y){const z=Y.name,G=jt[z]=jt[z]||{},ne=jt.supplemental=jt.supplemental||{};Y.likelySubtags&&(ne.likelySubtags=Object.assign(ne.likelySubtags||{},Y.likelySubtags)),Y.currencyData&&(ne.currencyData=ne.currencyData||{},ne.currencyData.fractions=Object.assign(ne.currencyData.fractions||{},Y.currencyData));const fe=G.numbers;Object.assign(G,Y),fe&&Y.numbers&&(G.numbers=Object.assign({},fe,Y.numbers))}(Y),hf=/_/g;function id(Y){return new iu(Y)}let qr=class{constructor(){this.changes=new vt.vpe,(0,Aa.s)(cb)}notify(){this.changes.emit()}};qr.\u0275fac=function(z){return new(z||qr)},qr.\u0275prov=vt.Yz7({token:qr,factory:function(z){let G=null;return G=z?new z:id(vt.LFG(vt.soG)),G},providedIn:"root"}),qr.ngInjectableDef=(0,vt.Yz7)({factory:function(){return id((0,vt.LFG)(vt.soG))},token:qr,providedIn:"root"}),qr=U([te("design:paramtypes",[])],qr);let iu=(()=>{let Y=class extends qr{constructor(G){super(),this.localeId=G}get localeId(){return this.locale}set localeId(G){const ne=G.replace(hf,"-");ne!==this.locale&&(this.locale=ne,this.notify())}format(G,...ne){return db(G,ne,this.localeId)}toString(G,ne,fe){return hb(G,ne,fe||this.localeId)}formatDate(G,ne,fe){return Zl(G,ne,fe||this.localeId)}parseDate(G,ne,fe){return sp(G,ne,fe||this.localeId)}parseNumber(G,ne,fe){return uf(G,fe||this.localeId,ne)}formatNumber(G,ne,fe){return nu(G,ne,fe||this.localeId)}dateFieldName(G,ne){return ml(G,ne||this.localeId)}dateFormatNames(G,ne){return Ua(ne||this.localeId,G)}splitDateFormat(G,ne){return pb(G,ne||this.localeId)}numberSymbols(G){return ub(G||this.localeId)}firstDay(G){return df(G||this.localeId)}weekendRange(G){return gb(G||this.localeId)}};return Y.\u0275fac=function(G){return new(G||Y)(vt.LFG(vt.soG))},Y.\u0275prov=vt.Yz7({token:Y,factory:function(z){return Y.\u0275fac(z)}}),Y=U([q(0,(0,vt.tBr)(vt.soG)),te("design:paramtypes",[String])],Y),Y})(),vc=(()=>{let Y=class{};return Y.\u0275fac=function(G){return new(G||Y)},Y.\u0275mod=vt.oAB({type:Y}),Y.\u0275inj=vt.cJS({}),Y})()},4123:(v,x,S)=>{(0,S(3608).a_)({name:"pt",identity:{language:"pt"},territory:"BR",numbers:{symbols:{decimal:",",group:".",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"\xd7",perMille:"\u2030",infinity:"\u221e",nan:"NaN",timeSeparator:":"},decimal:{patterns:["n"],groupSize:[3]},scientific:{patterns:["nEn"],groupSize:[]},percent:{patterns:["n%"],groupSize:[3]},currency:{patterns:["$\xa0n"],groupSize:[3],"unitPattern-count-one":"n $","unitPattern-count-other":"n $"},accounting:{patterns:["$\xa0n"],groupSize:[3]},currencies:{ADP:{displayName:"Peseta de Andorra","displayName-count-one":"Peseta de Andorra","displayName-count-other":"Pesetas de Andorra",symbol:"ADP"},AED:{displayName:"Dirham dos Emirados \xc1rabes Unidos","displayName-count-one":"Dirham dos EAU","displayName-count-other":"Dirhams dos EAU",symbol:"AED"},AFA:{displayName:"Afegane (1927\u20132002)","displayName-count-one":"Afegane do Afeganist\xe3o (AFA)","displayName-count-other":"Afeganes do Afeganist\xe3o (AFA)",symbol:"AFA"},AFN:{displayName:"Afegane afeg\xe3o","displayName-count-one":"Afegane afeg\xe3o","displayName-count-other":"Afeganes afeg\xe3os",symbol:"AFN"},ALK:{displayName:"Lek Alban\xeas (1946\u20131965)","displayName-count-one":"Lek Alban\xeas (1946\u20131965)","displayName-count-other":"Leks Albaneses (1946\u20131965)",symbol:"ALK"},ALL:{displayName:"Lek alban\xeas","displayName-count-one":"Lek alban\xeas","displayName-count-other":"Leks albaneses",symbol:"ALL"},AMD:{displayName:"Dram arm\xeanio","displayName-count-one":"Dram arm\xeanio","displayName-count-other":"Drams arm\xeanios",symbol:"AMD"},ANG:{displayName:"Florim das Antilhas Holandesas","displayName-count-one":"Florim das Antilhas Holandesas","displayName-count-other":"Florins das Antilhas Holandesas",symbol:"ANG"},AOA:{displayName:"Kwanza angolano","displayName-count-one":"Kwanza angolano","displayName-count-other":"Kwanzas angolanos",symbol:"AOA","symbol-alt-narrow":"Kz"},AOK:{displayName:"Cuanza angolano (1977\u20131990)","displayName-count-one":"Kwanza angolano (AOK)","displayName-count-other":"Kwanzas angolanos (AOK)",symbol:"AOK"},AON:{displayName:"Novo cuanza angolano (1990\u20132000)","displayName-count-one":"Novo kwanza angolano (AON)","displayName-count-other":"Novos kwanzas angolanos (AON)",symbol:"AON"},AOR:{displayName:"Cuanza angolano reajustado (1995\u20131999)","displayName-count-one":"Kwanza angolano reajustado (AOR)","displayName-count-other":"Kwanzas angolanos reajustados (AOR)",symbol:"AOR"},ARA:{displayName:"Austral argentino","displayName-count-one":"Austral argentino","displayName-count-other":"Austrais argentinos",symbol:"ARA"},ARL:{displayName:"Peso lei argentino (1970\u20131983)","displayName-count-one":"Peso lei argentino (1970\u20131983)","displayName-count-other":"Pesos lei argentinos (1970\u20131983)",symbol:"ARL"},ARM:{displayName:"Peso argentino (1881\u20131970)","displayName-count-one":"Peso argentino (1881\u20131970)","displayName-count-other":"Pesos argentinos (1881\u20131970)",symbol:"ARM"},ARP:{displayName:"Peso argentino (1983\u20131985)","displayName-count-one":"Peso argentino (1983\u20131985)","displayName-count-other":"Pesos argentinos (1983\u20131985)",symbol:"ARP"},ARS:{displayName:"Peso argentino","displayName-count-one":"Peso argentino","displayName-count-other":"Pesos argentinos",symbol:"ARS","symbol-alt-narrow":"$"},ATS:{displayName:"Xelim austr\xedaco","displayName-count-one":"Schilling australiano","displayName-count-other":"Schillings australianos",symbol:"ATS"},AUD:{displayName:"D\xf3lar australiano","displayName-count-one":"D\xf3lar australiano","displayName-count-other":"D\xf3lares australianos",symbol:"AU$","symbol-alt-narrow":"$"},AWG:{displayName:"Florim arubano","displayName-count-one":"Florim arubano","displayName-count-other":"Florins arubanos",symbol:"AWG"},AZM:{displayName:"Manat azerbaijano (1993\u20132006)","displayName-count-one":"Manat do Azeibaij\xe3o (1993\u20132006)","displayName-count-other":"Manats do Azeibaij\xe3o (1993\u20132006)",symbol:"AZM"},AZN:{displayName:"Manat azeri","displayName-count-one":"Manat azeri","displayName-count-other":"Manats azeris",symbol:"AZN"},BAD:{displayName:"Dinar da B\xf3snia-Herzegovina (1992\u20131994)","displayName-count-one":"Dinar da B\xf3snia Herzegovina","displayName-count-other":"Dinares da B\xf3snia Herzegovina",symbol:"BAD"},BAM:{displayName:"Marco convers\xedvel da B\xf3snia e Herzegovina","displayName-count-one":"Marco convers\xedvel da B\xf3snia e Herzegovina","displayName-count-other":"Marcos convers\xedveis da B\xf3snia e Herzegovina",symbol:"BAM","symbol-alt-narrow":"KM"},BAN:{displayName:"Novo dinar da B\xf3snia-Herzegovina (1994\u20131997)","displayName-count-one":"Novo dinar da B\xf3snia-Herzegovina","displayName-count-other":"Novos dinares da B\xf3snia-Herzegovina",symbol:"BAN"},BBD:{displayName:"D\xf3lar barbadense","displayName-count-one":"D\xf3lar barbadense","displayName-count-other":"D\xf3lares barbadenses",symbol:"BBD","symbol-alt-narrow":"$"},BDT:{displayName:"Taka bengali","displayName-count-one":"Taka bengali","displayName-count-other":"Takas bengalis",symbol:"BDT","symbol-alt-narrow":"\u09f3"},BEC:{displayName:"Franco belga (convers\xedvel)","displayName-count-one":"Franco belga (convers\xedvel)","displayName-count-other":"Francos belgas (convers\xedveis)",symbol:"BEC"},BEF:{displayName:"Franco belga","displayName-count-one":"Franco belga","displayName-count-other":"Francos belgas",symbol:"BEF"},BEL:{displayName:"Franco belga (financeiro)","displayName-count-one":"Franco belga (financeiro)","displayName-count-other":"Francos belgas (financeiros)",symbol:"BEL"},BGL:{displayName:"Lev forte b\xfalgaro","displayName-count-one":"Lev forte b\xfalgaro","displayName-count-other":"Levs fortes b\xfalgaros",symbol:"BGL"},BGM:{displayName:"Lev socialista b\xfalgaro","displayName-count-one":"Lev socialista b\xfalgaro","displayName-count-other":"Levs socialistas b\xfalgaros",symbol:"BGM"},BGN:{displayName:"Lev b\xfalgaro","displayName-count-one":"Lev b\xfalgaro","displayName-count-other":"Levs b\xfalgaros",symbol:"BGN"},BGO:{displayName:"Lev b\xfalgaro (1879\u20131952)","displayName-count-one":"Lev b\xfalgaro (1879\u20131952)","displayName-count-other":"Levs b\xfalgaros (1879\u20131952)",symbol:"BGO"},BHD:{displayName:"Dinar bareinita","displayName-count-one":"Dinar bareinita","displayName-count-other":"Dinares bareinitas",symbol:"BHD"},BIF:{displayName:"Franco burundiano","displayName-count-one":"Franco burundiano","displayName-count-other":"Francos burundianos",symbol:"BIF"},BMD:{displayName:"D\xf3lar bermudense","displayName-count-one":"D\xf3lar bermudense","displayName-count-other":"D\xf3lares bermudenses",symbol:"BMD","symbol-alt-narrow":"$"},BND:{displayName:"D\xf3lar bruneano","displayName-count-one":"D\xf3lar bruneano","displayName-count-other":"D\xf3lares bruneanos",symbol:"BND","symbol-alt-narrow":"$"},BOB:{displayName:"Boliviano da Bol\xedvia","displayName-count-one":"Boliviano da Bol\xedvia","displayName-count-other":"Bolivianos da Bol\xedvia",symbol:"BOB","symbol-alt-narrow":"Bs"},BOL:{displayName:"Boliviano (1863\u20131963)","displayName-count-one":"Boliviano (1863\u20131963)","displayName-count-other":"Bolivianos (1863\u20131963)",symbol:"BOL"},BOP:{displayName:"Peso boliviano","displayName-count-one":"Peso boliviano","displayName-count-other":"Pesos bolivianos",symbol:"BOP"},BOV:{displayName:"Mvdol boliviano","displayName-count-one":"Mvdol boliviano","displayName-count-other":"Mvdols bolivianos",symbol:"BOV"},BRB:{displayName:"Cruzeiro novo brasileiro (1967\u20131986)","displayName-count-one":"Cruzeiro novo brasileiro (BRB)","displayName-count-other":"Cruzeiros novos brasileiros (BRB)",symbol:"BRB"},BRC:{displayName:"Cruzado brasileiro (1986\u20131989)","displayName-count-one":"Cruzado brasileiro","displayName-count-other":"Cruzados brasileiros",symbol:"BRC"},BRE:{displayName:"Cruzeiro brasileiro (1990\u20131993)","displayName-count-one":"Cruzeiro brasileiro (BRE)","displayName-count-other":"Cruzeiros brasileiros (BRE)",symbol:"BRE"},BRL:{displayName:"Real brasileiro","displayName-count-one":"Real brasileiro","displayName-count-other":"Reais brasileiros",symbol:"R$","symbol-alt-narrow":"R$"},BRN:{displayName:"Cruzado novo brasileiro (1989\u20131990)","displayName-count-one":"Cruzado novo brasileiro","displayName-count-other":"Cruzados novos brasileiros",symbol:"BRN"},BRR:{displayName:"Cruzeiro brasileiro (1993\u20131994)","displayName-count-one":"Cruzeiro brasileiro","displayName-count-other":"Cruzeiros brasileiros",symbol:"BRR"},BRZ:{displayName:"Cruzeiro brasileiro (1942\u20131967)","displayName-count-one":"Cruzeiro brasileiro antigo","displayName-count-other":"Cruzeiros brasileiros antigos",symbol:"BRZ"},BSD:{displayName:"D\xf3lar bahamense","displayName-count-one":"D\xf3lar bahamense","displayName-count-other":"D\xf3lares bahamenses",symbol:"BSD","symbol-alt-narrow":"$"},BTN:{displayName:"Ngultrum butan\xeas","displayName-count-one":"Ngultrum butan\xeas","displayName-count-other":"Ngultruns butaneses",symbol:"BTN"},BUK:{displayName:"Kyat birman\xeas","displayName-count-one":"Kyat burm\xeas","displayName-count-other":"Kyats burmeses",symbol:"BUK"},BWP:{displayName:"Pula botsuanesa","displayName-count-one":"Pula botsuanesa","displayName-count-other":"Pulas botsuanesas",symbol:"BWP","symbol-alt-narrow":"P"},BYB:{displayName:"Rublo novo bielo-russo (1994\u20131999)","displayName-count-one":"Novo rublo bielorusso (BYB)","displayName-count-other":"Novos rublos bielorussos (BYB)",symbol:"BYB"},BYN:{displayName:"Rublo bielorrusso","displayName-count-one":"Rublo bielorrusso","displayName-count-other":"Rublos bielorrussos",symbol:"BYN","symbol-alt-narrow":"\u0440."},BYR:{displayName:"Rublo bielorrusso (2000\u20132016)","displayName-count-one":"Rublo bielorrusso (2000\u20132016)","displayName-count-other":"Rublos bielorrussos (2000\u20132016)",symbol:"BYR"},BZD:{displayName:"D\xf3lar belizenho","displayName-count-one":"D\xf3lar belizenho","displayName-count-other":"D\xf3lares belizenhos",symbol:"BZD","symbol-alt-narrow":"$"},CAD:{displayName:"D\xf3lar canadense","displayName-count-one":"D\xf3lar canadense","displayName-count-other":"D\xf3lares canadenses",symbol:"CA$","symbol-alt-narrow":"$"},CDF:{displayName:"Franco congol\xeas","displayName-count-one":"Franco congol\xeas","displayName-count-other":"Francos congoleses",symbol:"CDF"},CHE:{displayName:"Euro WIR","displayName-count-one":"Euro WIR","displayName-count-other":"Euros WIR",symbol:"CHE"},CHF:{displayName:"Franco su\xed\xe7o","displayName-count-one":"Franco su\xed\xe7o","displayName-count-other":"Francos su\xed\xe7os",symbol:"CHF"},CHW:{displayName:"Franco WIR","displayName-count-one":"Franco WIR","displayName-count-other":"Francos WIR",symbol:"CHW"},CLE:{displayName:"Escudo chileno","displayName-count-one":"Escudo chileno","displayName-count-other":"Escudos chilenos",symbol:"CLE"},CLF:{displayName:"Unidades de Fomento chilenas","displayName-count-one":"Unidade de fomento chilena","displayName-count-other":"Unidades de fomento chilenas",symbol:"CLF"},CLP:{displayName:"Peso chileno","displayName-count-one":"Peso chileno","displayName-count-other":"Pesos chilenos",symbol:"CLP","symbol-alt-narrow":"$"},CNH:{displayName:"Yuan chin\xeas (offshore)","displayName-count-one":"Yuan chin\xeas (offshore)","displayName-count-other":"Yuans chineses (offshore)",symbol:"CNH"},CNX:{displayName:"D\xf3lar do Banco Popular da China","displayName-count-one":"D\xf3lar do Banco Popular da China","displayName-count-other":"D\xf3lares do Banco Popular da China",symbol:"CNX"},CNY:{displayName:"Yuan chin\xeas","displayName-count-one":"Yuan chin\xeas","displayName-count-other":"Yuans chineses",symbol:"CN\xa5","symbol-alt-narrow":"\xa5"},COP:{displayName:"Peso colombiano","displayName-count-one":"Peso colombiano","displayName-count-other":"Pesos colombianos",symbol:"COP","symbol-alt-narrow":"$"},COU:{displayName:"Unidade de Valor Real","displayName-count-one":"Unidade de valor real","displayName-count-other":"Unidades de valor real",symbol:"COU"},CRC:{displayName:"Col\xf3n costarriquenho","displayName-count-one":"Col\xf3n costarriquenho","displayName-count-other":"Col\xf3ns costarriquenhos",symbol:"CRC","symbol-alt-narrow":"\u20a1"},CSD:{displayName:"Dinar s\xe9rvio (2002\u20132006)","displayName-count-one":"Dinar antigo da S\xe9rvia","displayName-count-other":"Dinares antigos da S\xe9rvia",symbol:"CSD"},CSK:{displayName:"Coroa Forte checoslovaca","displayName-count-one":"Coroa forte tchecoslovaca","displayName-count-other":"Coroas fortes tchecoslovacas",symbol:"CSK"},CUC:{displayName:"Peso cubano convers\xedvel","displayName-count-one":"Peso cubano convers\xedvel","displayName-count-other":"Pesos cubanos convers\xedveis",symbol:"CUC","symbol-alt-narrow":"$"},CUP:{displayName:"Peso cubano","displayName-count-one":"Peso cubano","displayName-count-other":"Pesos cubanos",symbol:"CUP","symbol-alt-narrow":"$"},CVE:{displayName:"Escudo cabo-verdiano","displayName-count-one":"Escudo cabo-verdiano","displayName-count-other":"Escudos cabo-verdianos",symbol:"CVE"},CYP:{displayName:"Libra cipriota","displayName-count-one":"Libra cipriota","displayName-count-other":"Libras cipriotas",symbol:"CYP"},CZK:{displayName:"Coroa tcheca","displayName-count-one":"Coroa tcheca","displayName-count-other":"Coroas tchecas",symbol:"CZK","symbol-alt-narrow":"K\u010d"},DDM:{displayName:"Ostmark da Alemanha Oriental","displayName-count-one":"Marco da Alemanha Oriental","displayName-count-other":"Marcos da Alemanha Oriental",symbol:"DDM"},DEM:{displayName:"Marco alem\xe3o","displayName-count-one":"Marco alem\xe3o","displayName-count-other":"Marcos alem\xe3es",symbol:"DEM"},DJF:{displayName:"Franco djiboutiano","displayName-count-one":"Franco djiboutiano","displayName-count-other":"Francos djiboutianos",symbol:"DJF"},DKK:{displayName:"Coroa dinamarquesa","displayName-count-one":"Coroa dinamarquesa","displayName-count-other":"Coroas dinamarquesas",symbol:"DKK","symbol-alt-narrow":"kr"},DOP:{displayName:"Peso dominicano","displayName-count-one":"Peso dominicano","displayName-count-other":"Pesos dominicanos",symbol:"DOP","symbol-alt-narrow":"$"},DZD:{displayName:"Dinar argelino","displayName-count-one":"Dinar argelino","displayName-count-other":"Dinares argelinos",symbol:"DZD"},ECS:{displayName:"Sucre equatoriano","displayName-count-one":"Sucre equatoriano","displayName-count-other":"Sucres equatorianos",symbol:"ECS"},ECV:{displayName:"Unidade de Valor Constante (UVC) do Equador","displayName-count-one":"Unidade de valor constante equatoriana (UVC)","displayName-count-other":"Unidades de valor constante equatorianas (UVC)",symbol:"ECV"},EEK:{displayName:"Coroa estoniana","displayName-count-one":"Coroa estoniana","displayName-count-other":"Coroas estonianas",symbol:"EEK"},EGP:{displayName:"Libra eg\xedpcia","displayName-count-one":"Libra eg\xedpcia","displayName-count-other":"Libras eg\xedpcias",symbol:"EGP","symbol-alt-narrow":"E\xa3"},ERN:{displayName:"Nakfa da Eritreia","displayName-count-one":"Nakfa da Eritreia","displayName-count-other":"Nakfas da Eritreia",symbol:"ERN"},ESA:{displayName:"Peseta espanhola (conta A)","displayName-count-one":"Peseta espanhola (conta A)","displayName-count-other":"Pesetas espanholas (conta A)",symbol:"ESA"},ESB:{displayName:"Peseta espanhola (conta convers\xedvel)","displayName-count-one":"Peseta espanhola (conta convers\xedvel)","displayName-count-other":"Pesetas espanholas (conta convers\xedvel)",symbol:"ESB"},ESP:{displayName:"Peseta espanhola","displayName-count-one":"Peseta espanhola","displayName-count-other":"Pesetas espanholas",symbol:"ESP","symbol-alt-narrow":"\u20a7"},ETB:{displayName:"Birr et\xedope","displayName-count-one":"Birr et\xedope","displayName-count-other":"Birrs et\xedopes",symbol:"ETB"},EUR:{displayName:"Euro","displayName-count-one":"Euro","displayName-count-other":"Euros",symbol:"\u20ac","symbol-alt-narrow":"\u20ac"},FIM:{displayName:"Marca finlandesa","displayName-count-one":"Marco finland\xeas","displayName-count-other":"Marcos finlandeses",symbol:"FIM"},FJD:{displayName:"D\xf3lar fijiano","displayName-count-one":"D\xf3lar fijiano","displayName-count-other":"D\xf3lares fijianos",symbol:"FJD","symbol-alt-narrow":"$"},FKP:{displayName:"Libra malvinense","displayName-count-one":"Libra malvinense","displayName-count-other":"Libras malvinenses",symbol:"FKP","symbol-alt-narrow":"\xa3"},FRF:{displayName:"Franco franc\xeas","displayName-count-one":"Franco franc\xeas","displayName-count-other":"Francos franceses",symbol:"FRF"},GBP:{displayName:"Libra esterlina","displayName-count-one":"Libra esterlina","displayName-count-other":"Libras esterlinas",symbol:"\xa3","symbol-alt-narrow":"\xa3"},GEK:{displayName:"Cupom Lari georgiano","displayName-count-one":"Kupon larit da Ge\xf3rgia","displayName-count-other":"Kupon larits da Ge\xf3rgia",symbol:"GEK"},GEL:{displayName:"Lari georgiano","displayName-count-one":"Lari georgiano","displayName-count-other":"Laris georgianos",symbol:"GEL","symbol-alt-narrow":"\u20be","symbol-alt-variant":"\u20be"},GHC:{displayName:"Cedi de Gana (1979\u20132007)","displayName-count-one":"Cedi de Gana (1979\u20132007)","displayName-count-other":"Cedis de Gana (1979\u20132007)",symbol:"GHC"},GHS:{displayName:"Cedi gan\xeas","displayName-count-one":"Cedi gan\xeas","displayName-count-other":"Cedis ganeses",symbol:"GHS"},GIP:{displayName:"Libra de Gibraltar","displayName-count-one":"Libra de Gibraltar","displayName-count-other":"Libras de Gibraltar",symbol:"GIP","symbol-alt-narrow":"\xa3"},GMD:{displayName:"Dalasi gambiano","displayName-count-one":"Dalasi gambiano","displayName-count-other":"Dalasis gambianos",symbol:"GMD"},GNF:{displayName:"Franco guineano","displayName-count-one":"Franco guineano","displayName-count-other":"Francos guineanos",symbol:"GNF","symbol-alt-narrow":"FG"},GNS:{displayName:"Syli da Guin\xe9","displayName-count-one":"Syli guineano","displayName-count-other":"Sylis guineanos",symbol:"GNS"},GQE:{displayName:"Ekwele da Guin\xe9 Equatorial","displayName-count-one":"Ekwele da Guin\xe9 Equatorial","displayName-count-other":"Ekweles da Guin\xe9 Equatorial",symbol:"GQE"},GRD:{displayName:"Dracma grego","displayName-count-one":"Dracma grego","displayName-count-other":"Dracmas gregos",symbol:"GRD"},GTQ:{displayName:"Quetzal guatemalteco","displayName-count-one":"Quetzal guatemalteco","displayName-count-other":"Quetzais guatemaltecos",symbol:"GTQ","symbol-alt-narrow":"Q"},GWE:{displayName:"Escudo da Guin\xe9 Portuguesa","displayName-count-one":"Escudo da Guin\xe9 Portuguesa","displayName-count-other":"Escudos da Guin\xe9a Portuguesa",symbol:"GWE"},GWP:{displayName:"Peso da Guin\xe9-Bissau","displayName-count-one":"Peso de Guin\xe9-Bissau","displayName-count-other":"Pesos de Guin\xe9-Bissau",symbol:"GWP"},GYD:{displayName:"D\xf3lar guianense","displayName-count-one":"D\xf3lar guianense","displayName-count-other":"D\xf3lares guianenses",symbol:"GYD","symbol-alt-narrow":"$"},HKD:{displayName:"D\xf3lar de Hong Kong","displayName-count-one":"D\xf3lar de Hong Kong","displayName-count-other":"D\xf3lares de Hong Kong",symbol:"HK$","symbol-alt-narrow":"$"},HNL:{displayName:"Lempira hondurenha","displayName-count-one":"Lempira hondurenha","displayName-count-other":"Lempiras hondurenhas",symbol:"HNL","symbol-alt-narrow":"L"},HRD:{displayName:"Dinar croata","displayName-count-one":"Dinar croata","displayName-count-other":"Dinares croatas",symbol:"HRD"},HRK:{displayName:"Kuna croata","displayName-count-one":"Kuna croata","displayName-count-other":"Kunas croatas",symbol:"HRK","symbol-alt-narrow":"kn"},HTG:{displayName:"Gourde haitiano","displayName-count-one":"Gourde haitiano","displayName-count-other":"Gourdes haitianos",symbol:"HTG"},HUF:{displayName:"Florim h\xfangaro","displayName-count-one":"Florim h\xfangaro","displayName-count-other":"Florins h\xfangaros",symbol:"HUF","symbol-alt-narrow":"Ft"},IDR:{displayName:"Rupia indon\xe9sia","displayName-count-one":"Rupia indon\xe9sia","displayName-count-other":"Rupias indon\xe9sias",symbol:"IDR","symbol-alt-narrow":"Rp"},IEP:{displayName:"Libra irlandesa","displayName-count-one":"Libra irlandesa","displayName-count-other":"Libras irlandesas",symbol:"IEP"},ILP:{displayName:"Libra israelita","displayName-count-one":"Libra israelita","displayName-count-other":"Libras israelitas",symbol:"ILP"},ILR:{displayName:"Sheqel antigo israelita","displayName-count-one":"Sheqel antigo israelita","displayName-count-other":"Sheqels antigos israelitas",symbol:"ILR"},ILS:{displayName:"Novo shekel israelense","displayName-count-one":"Novo shekel israelense","displayName-count-other":"Novos shekels israelenses",symbol:"\u20aa","symbol-alt-narrow":"\u20aa"},INR:{displayName:"Rupia indiana","displayName-count-one":"Rupia indiana","displayName-count-other":"Rupias indianas",symbol:"\u20b9","symbol-alt-narrow":"\u20b9"},IQD:{displayName:"Dinar iraquiano","displayName-count-one":"Dinar iraquiano","displayName-count-other":"Dinares iraquianos",symbol:"IQD"},IRR:{displayName:"Rial iraniano","displayName-count-one":"Rial iraniano","displayName-count-other":"Riales iranianos",symbol:"IRR"},ISJ:{displayName:"Coroa antiga islandesa","displayName-count-one":"Coroa antiga islandesa","displayName-count-other":"Coroas antigas islandesas",symbol:"ISJ"},ISK:{displayName:"Coroa islandesa","displayName-count-one":"Coroa islandesa","displayName-count-other":"Coroas islandesas",symbol:"ISK","symbol-alt-narrow":"kr"},ITL:{displayName:"Lira italiana","displayName-count-one":"Lira italiana","displayName-count-other":"Liras italianas",symbol:"ITL"},JMD:{displayName:"D\xf3lar jamaicano","displayName-count-one":"D\xf3lar jamaicano","displayName-count-other":"D\xf3lares jamaicanos",symbol:"JMD","symbol-alt-narrow":"$"},JOD:{displayName:"Dinar jordaniano","displayName-count-one":"Dinar jordaniano","displayName-count-other":"Dinares jordanianos",symbol:"JOD"},JPY:{displayName:"Iene japon\xeas","displayName-count-one":"Iene japon\xeas","displayName-count-other":"Ienes japoneses",symbol:"JP\xa5","symbol-alt-narrow":"\xa5"},KES:{displayName:"Xelim queniano","displayName-count-one":"Xelim queniano","displayName-count-other":"Xelins quenianos",symbol:"KES"},KGS:{displayName:"Som quirguiz","displayName-count-one":"Som quirguiz","displayName-count-other":"Sons quirguizes",symbol:"KGS"},KHR:{displayName:"Riel cambojano","displayName-count-one":"Riel cambojano","displayName-count-other":"Rieles cambojanos",symbol:"KHR","symbol-alt-narrow":"\u17db"},KMF:{displayName:"Franco comoriano","displayName-count-one":"Franco comoriano","displayName-count-other":"Francos comorianos",symbol:"KMF","symbol-alt-narrow":"CF"},KPW:{displayName:"Won norte-coreano","displayName-count-one":"Won norte-coreano","displayName-count-other":"Wons norte-coreanos",symbol:"KPW","symbol-alt-narrow":"\u20a9"},KRH:{displayName:"Hwan da Coreia do Sul (1953\u20131962)","displayName-count-one":"Hwan da Coreia do Sul","displayName-count-other":"Hwans da Coreia do Sul",symbol:"KRH"},KRO:{displayName:"Won da Coreia do Sul (1945\u20131953)","displayName-count-one":"Won antigo da Coreia do Sul","displayName-count-other":"Wons antigos da Coreia do Sul",symbol:"KRO"},KRW:{displayName:"Won sul-coreano","displayName-count-one":"Won sul-coreano","displayName-count-other":"Wons sul-coreanos",symbol:"\u20a9","symbol-alt-narrow":"\u20a9"},KWD:{displayName:"Dinar kuwaitiano","displayName-count-one":"Dinar kuwaitiano","displayName-count-other":"Dinares kuwaitianos",symbol:"KWD"},KYD:{displayName:"D\xf3lar das Ilhas Cayman","displayName-count-one":"D\xf3lar das Ilhas Cayman","displayName-count-other":"D\xf3lares das Ilhas Cayman",symbol:"KYD","symbol-alt-narrow":"$"},KZT:{displayName:"Tenge cazaque","displayName-count-one":"Tenge cazaque","displayName-count-other":"Tenges cazaques",symbol:"KZT","symbol-alt-narrow":"\u20b8"},LAK:{displayName:"Kip laosiano","displayName-count-one":"Kip laosiano","displayName-count-other":"Kips laosianos",symbol:"LAK","symbol-alt-narrow":"\u20ad"},LBP:{displayName:"Libra libanesa","displayName-count-one":"Libra libanesa","displayName-count-other":"Libras libanesas",symbol:"LBP","symbol-alt-narrow":"L\xa3"},LKR:{displayName:"Rupia do Sri Lanka","displayName-count-one":"Rupia do Sri Lanka","displayName-count-other":"Rupias do Sri Lanka",symbol:"LKR","symbol-alt-narrow":"Rs"},LRD:{displayName:"D\xf3lar liberiano","displayName-count-one":"D\xf3lar liberiano","displayName-count-other":"D\xf3lares liberianos",symbol:"LRD","symbol-alt-narrow":"$"},LSL:{displayName:"Loti do Lesoto","displayName-count-one":"Loti do Lesoto","displayName-count-other":"Lotis do Lesoto",symbol:"LSL"},LTL:{displayName:"Litas lituano","displayName-count-one":"Litas lituano","displayName-count-other":"Litai lituanos",symbol:"LTL","symbol-alt-narrow":"Lt"},LTT:{displayName:"Talonas lituano","displayName-count-one":"Talonas lituanas","displayName-count-other":"Talonases lituanas",symbol:"LTT"},LUC:{displayName:"Franco convers\xedvel de Luxemburgo","displayName-count-one":"Franco convers\xedvel de Luxemburgo","displayName-count-other":"Francos convers\xedveis de Luxemburgo",symbol:"LUC"},LUF:{displayName:"Franco luxemburgu\xeas","displayName-count-one":"Franco de Luxemburgo","displayName-count-other":"Francos de Luxemburgo",symbol:"LUF"},LUL:{displayName:"Franco financeiro de Luxemburgo","displayName-count-one":"Franco financeiro de Luxemburgo","displayName-count-other":"Francos financeiros de Luxemburgo",symbol:"LUL"},LVL:{displayName:"Lats let\xe3o","displayName-count-one":"Lats let\xe3o","displayName-count-other":"Lati let\xf5es",symbol:"LVL","symbol-alt-narrow":"Ls"},LVR:{displayName:"Rublo let\xe3o","displayName-count-one":"Rublo da Let\xf4nia","displayName-count-other":"Rublos da Let\xf4nia",symbol:"LVR"},LYD:{displayName:"Dinar l\xedbio","displayName-count-one":"Dinar l\xedbio","displayName-count-other":"Dinares l\xedbios",symbol:"LYD"},MAD:{displayName:"Dirham marroquino","displayName-count-one":"Dirham marroquino","displayName-count-other":"Dirhams marroquinos",symbol:"MAD"},MAF:{displayName:"Franco marroquino","displayName-count-one":"Franco marroquino","displayName-count-other":"Francos marroquinos",symbol:"MAF"},MCF:{displayName:"Franco monegasco","displayName-count-one":"Franco monegasco","displayName-count-other":"Francos monegascos",symbol:"MCF"},MDC:{displayName:"Cupon mold\xe1vio","displayName-count-one":"Cupon mold\xe1vio","displayName-count-other":"Cupon mold\xe1vio",symbol:"MDC"},MDL:{displayName:"Leu mold\xe1vio","displayName-count-one":"Leu mold\xe1vio","displayName-count-other":"Leus mold\xe1vios",symbol:"MDL"},MGA:{displayName:"Ariary malgaxe","displayName-count-one":"Ariary malgaxe","displayName-count-other":"Ariarys malgaxes",symbol:"MGA","symbol-alt-narrow":"Ar"},MGF:{displayName:"Franco de Madagascar","displayName-count-one":"Franco de Madagascar","displayName-count-other":"Francos de Madagascar",symbol:"MGF"},MKD:{displayName:"Dinar maced\xf4nio","displayName-count-one":"Dinar maced\xf4nio","displayName-count-other":"Dinares maced\xf4nios",symbol:"MKD"},MKN:{displayName:"Dinar maced\xf4nio (1992\u20131993)","displayName-count-one":"Dinar maced\xf4nio (1992\u20131993)","displayName-count-other":"Dinares maced\xf4nios (1992\u20131993)",symbol:"MKN"},MLF:{displayName:"Franco de Mali","displayName-count-one":"Franco de Mali","displayName-count-other":"Francos de Mali",symbol:"MLF"},MMK:{displayName:"Quiat de Myanmar","displayName-count-one":"Quiat de Myanmar","displayName-count-other":"Quiat de Myanmar",symbol:"MMK","symbol-alt-narrow":"K"},MNT:{displayName:"Tugrik mongol","displayName-count-one":"Tugrik mongol","displayName-count-other":"Tugriks mong\xf3is",symbol:"MNT","symbol-alt-narrow":"\u20ae"},MOP:{displayName:"Pataca de Macau","displayName-count-one":"Pataca de Macau","displayName-count-other":"Patacas de Macau",symbol:"MOP"},MRO:{displayName:"Ouguiya mauritana (1973\u20132017)","displayName-count-one":"Ouguiya mauritana (1973\u20132017)","displayName-count-other":"Ouguiyas mauritanas (1973\u20132017)",symbol:"MRO"},MRU:{displayName:"Ouguiya mauritana","displayName-count-one":"Ouguiya mauritana","displayName-count-other":"Ouguiyas mauritanas",symbol:"MRU"},MTL:{displayName:"Lira maltesa","displayName-count-one":"Lira Maltesa","displayName-count-other":"Liras maltesas",symbol:"MTL"},MTP:{displayName:"Libra maltesa","displayName-count-one":"Libra maltesa","displayName-count-other":"Libras maltesas",symbol:"MTP"},MUR:{displayName:"Rupia mauriciana","displayName-count-one":"Rupia mauriciana","displayName-count-other":"Rupias mauricianas",symbol:"MUR","symbol-alt-narrow":"Rs"},MVP:{displayName:"MVP",symbol:"MVP"},MVR:{displayName:"Rupia maldivana","displayName-count-one":"Rupia maldivana","displayName-count-other":"Rupias maldivanas",symbol:"MVR"},MWK:{displayName:"Kwacha malauiana","displayName-count-one":"Kwacha malauiana","displayName-count-other":"Kwachas malauianas",symbol:"MWK"},MXN:{displayName:"Peso mexicano","displayName-count-one":"Peso mexicano","displayName-count-other":"Pesos mexicanos",symbol:"MX$","symbol-alt-narrow":"$"},MXP:{displayName:"Peso Prata mexicano (1861\u20131992)","displayName-count-one":"Peso de prata mexicano (1861\u20131992)","displayName-count-other":"Pesos de prata mexicanos (1861\u20131992)",symbol:"MXP"},MXV:{displayName:"Unidade Mexicana de Investimento (UDI)","displayName-count-one":"Unidade de investimento mexicana (UDI)","displayName-count-other":"Unidades de investimento mexicanas (UDI)",symbol:"MXV"},MYR:{displayName:"Ringgit malaio","displayName-count-one":"Ringgit malaio","displayName-count-other":"Ringgits malaios",symbol:"MYR","symbol-alt-narrow":"RM"},MZE:{displayName:"Escudo de Mo\xe7ambique","displayName-count-one":"Escudo de Mo\xe7ambique","displayName-count-other":"Escudos de Mo\xe7ambique",symbol:"MZE"},MZM:{displayName:"Metical de Mo\xe7ambique (1980\u20132006)","displayName-count-one":"Metical antigo de Mo\xe7ambique","displayName-count-other":"Meticales antigos de Mo\xe7ambique",symbol:"MZM"},MZN:{displayName:"Metical mo\xe7ambicano","displayName-count-one":"Metical mo\xe7ambicano","displayName-count-other":"Meticais mo\xe7ambicanos",symbol:"MZN"},NAD:{displayName:"D\xf3lar namibiano","displayName-count-one":"D\xf3lar namibiano","displayName-count-other":"D\xf3lares namibianos",symbol:"NAD","symbol-alt-narrow":"$"},NGN:{displayName:"Naira nigeriana","displayName-count-one":"Naira nigeriana","displayName-count-other":"Nairas nigerianas",symbol:"NGN","symbol-alt-narrow":"\u20a6"},NIC:{displayName:"C\xf3rdoba nicaraguense (1988\u20131991)","displayName-count-one":"C\xf3rdoba nicaraguense (1988\u20131991)","displayName-count-other":"C\xf3rdobas nicaraguense (1988\u20131991)",symbol:"NIC"},NIO:{displayName:"C\xf3rdoba nicaraguense","displayName-count-one":"C\xf3rdoba nicaraguense","displayName-count-other":"C\xf3rdobas nicaraguenses",symbol:"NIO","symbol-alt-narrow":"C$"},NLG:{displayName:"Florim holand\xeas","displayName-count-one":"Florim holand\xeas","displayName-count-other":"Florins holandeses",symbol:"NLG"},NOK:{displayName:"Coroa norueguesa","displayName-count-one":"Coroa norueguesa","displayName-count-other":"Coroas norueguesas",symbol:"NOK","symbol-alt-narrow":"kr"},NPR:{displayName:"Rupia nepalesa","displayName-count-one":"Rupia nepalesa","displayName-count-other":"Rupias nepalesas",symbol:"NPR","symbol-alt-narrow":"Rs"},NZD:{displayName:"D\xf3lar neozeland\xeas","displayName-count-one":"D\xf3lar neozeland\xeas","displayName-count-other":"D\xf3lares neozelandeses",symbol:"NZ$","symbol-alt-narrow":"$"},OMR:{displayName:"Rial omanense","displayName-count-one":"Rial omanense","displayName-count-other":"Riales omanenses",symbol:"OMR"},PAB:{displayName:"Balboa panamenho","displayName-count-one":"Balboa panamenho","displayName-count-other":"Balboas panamenhos",symbol:"PAB"},PEI:{displayName:"Inti peruano","displayName-count-one":"Inti peruano","displayName-count-other":"Intis peruanos",symbol:"PEI"},PEN:{displayName:"Novo sol peruano","displayName-count-one":"Novo sol peruano","displayName-count-other":"Novos s\xf3is peruanos",symbol:"PEN"},PES:{displayName:"Sol peruano (1863\u20131965)","displayName-count-one":"Sol peruano (1863\u20131965)","displayName-count-other":"S\xf3is peruanos (1863\u20131965)",symbol:"PES"},PGK:{displayName:"Kina papu\xe1sia","displayName-count-one":"Kina papu\xe1sia","displayName-count-other":"Kinas papu\xe1sias",symbol:"PGK"},PHP:{displayName:"Peso filipino","displayName-count-one":"Peso filipino","displayName-count-other":"Pesos filipinos",symbol:"PHP","symbol-alt-narrow":"\u20b1"},PKR:{displayName:"Rupia paquistanesa","displayName-count-one":"Rupia paquistanesa","displayName-count-other":"Rupias paquistanesas",symbol:"PKR","symbol-alt-narrow":"Rs"},PLN:{displayName:"Zloty polon\xeas","displayName-count-one":"Zloty polon\xeas","displayName-count-other":"Zlotys poloneses",symbol:"PLN","symbol-alt-narrow":"z\u0142"},PLZ:{displayName:"Zloti polon\xeas (1950\u20131995)","displayName-count-one":"Zloti polon\xeas (1950\u20131995)","displayName-count-other":"Zlotis poloneses (1950\u20131995)",symbol:"PLZ"},PTE:{displayName:"Escudo portugu\xeas","displayName-count-one":"Escudo portugu\xeas","displayName-count-other":"Escudos portugueses",symbol:"Esc."},PYG:{displayName:"Guarani paraguaio","displayName-count-one":"Guarani paraguaio","displayName-count-other":"Guaranis paraguaios",symbol:"PYG","symbol-alt-narrow":"\u20b2"},QAR:{displayName:"Rial catariano","displayName-count-one":"Rial catariano","displayName-count-other":"Riales catarianos",symbol:"QAR"},RHD:{displayName:"D\xf3lar rodesiano","displayName-count-one":"D\xf3lar da Rod\xe9sia","displayName-count-other":"D\xf3lares da Rod\xe9sia",symbol:"RHD"},ROL:{displayName:"Leu romeno (1952\u20132006)","displayName-count-one":"Leu antigo da Rom\xeania","displayName-count-other":"Leus antigos da Rom\xeania",symbol:"ROL"},RON:{displayName:"Leu romeno","displayName-count-one":"Leu romeno","displayName-count-other":"Leus romenos",symbol:"RON","symbol-alt-narrow":"L"},RSD:{displayName:"Dinar s\xe9rvio","displayName-count-one":"Dinar s\xe9rvio","displayName-count-other":"Dinares s\xe9rvios",symbol:"RSD"},RUB:{displayName:"Rublo russo","displayName-count-one":"Rublo russo","displayName-count-other":"Rublos russos",symbol:"RUB","symbol-alt-narrow":"\u20bd"},RUR:{displayName:"Rublo russo (1991\u20131998)","displayName-count-one":"Rublo russo (1991\u20131998)","displayName-count-other":"Rublos russos (1991\u20131998)",symbol:"RUR","symbol-alt-narrow":"\u0440."},RWF:{displayName:"Franco ruand\xeas","displayName-count-one":"Franco ruand\xeas","displayName-count-other":"Francos ruandeses",symbol:"RWF","symbol-alt-narrow":"RF"},SAR:{displayName:"Riyal saudita","displayName-count-one":"Riyal saudita","displayName-count-other":"Riyales sauditas",symbol:"SAR"},SBD:{displayName:"D\xf3lar das Ilhas Salom\xe3o","displayName-count-one":"D\xf3lar das Ilhas Salom\xe3o","displayName-count-other":"D\xf3lares das Ilhas Salom\xe3o",symbol:"SBD","symbol-alt-narrow":"$"},SCR:{displayName:"Rupia seichelense","displayName-count-one":"Rupia seichelense","displayName-count-other":"Rupias seichelenses",symbol:"SCR"},SDD:{displayName:"Dinar sudan\xeas (1992\u20132007)","displayName-count-one":"Dinar antigo do Sud\xe3o","displayName-count-other":"Dinares antigos do Sud\xe3o",symbol:"SDD"},SDG:{displayName:"Libra sudanesa","displayName-count-one":"Libra sudanesa","displayName-count-other":"Libras sudanesas",symbol:"SDG"},SDP:{displayName:"Libra sudanesa (1957\u20131998)","displayName-count-one":"Libra antiga sudanesa","displayName-count-other":"Libras antigas sudanesas",symbol:"SDP"},SEK:{displayName:"Coroa sueca","displayName-count-one":"Coroa sueca","displayName-count-other":"Coroas suecas",symbol:"SEK","symbol-alt-narrow":"kr"},SGD:{displayName:"D\xf3lar singapuriano","displayName-count-one":"D\xf3lar singapuriano","displayName-count-other":"D\xf3lares singapurianos",symbol:"SGD","symbol-alt-narrow":"$"},SHP:{displayName:"Libra de Santa Helena","displayName-count-one":"Libra de Santa Helena","displayName-count-other":"Libras de Santa Helena",symbol:"SHP","symbol-alt-narrow":"\xa3"},SIT:{displayName:"Tolar Bons esloveno","displayName-count-one":"Tolar da Eslov\xeania","displayName-count-other":"Tolares da Eslov\xeania",symbol:"SIT"},SKK:{displayName:"Coroa eslovaca","displayName-count-one":"Coroa eslovaca","displayName-count-other":"Coroas eslovacas",symbol:"SKK"},SLL:{displayName:"Leone de Serra Leoa","displayName-count-one":"Leone de Serra Leoa","displayName-count-other":"Leones de Serra Leoa",symbol:"SLL"},SOS:{displayName:"Xelim somali","displayName-count-one":"Xelim somali","displayName-count-other":"Xelins somalis",symbol:"SOS"},SRD:{displayName:"D\xf3lar surinam\xeas","displayName-count-one":"D\xf3lar surinam\xeas","displayName-count-other":"D\xf3lares surinameses",symbol:"SRD","symbol-alt-narrow":"$"},SRG:{displayName:"Florim do Suriname","displayName-count-one":"Florim do Suriname","displayName-count-other":"Florins do Suriname",symbol:"SRG"},SSP:{displayName:"Libra sul-sudanesa","displayName-count-one":"Libra sul-sudanesa","displayName-count-other":"Libras sul-sudanesas",symbol:"SSP","symbol-alt-narrow":"\xa3"},STD:{displayName:"Dobra de S\xe3o Tom\xe9 e Pr\xedncipe (1977\u20132017)","displayName-count-one":"Dobra de S\xe3o Tom\xe9 e Pr\xedncipe (1977\u20132017)","displayName-count-other":"Dobras de S\xe3o Tom\xe9 e Pr\xedncipe (1977\u20132017)",symbol:"STD"},STN:{displayName:"Dobra de S\xe3o Tom\xe9 e Pr\xedncipe","displayName-count-one":"Dobra de S\xe3o Tom\xe9 e Pr\xedncipe","displayName-count-other":"Dobras de S\xe3o Tom\xe9 e Pr\xedncipe",symbol:"STN","symbol-alt-narrow":"Db"},SUR:{displayName:"Rublo sovi\xe9tico","displayName-count-one":"Rublo sovi\xe9tico","displayName-count-other":"Rublos sovi\xe9ticos",symbol:"SUR"},SVC:{displayName:"Colom salvadorenho","displayName-count-one":"Colon de El Salvador","displayName-count-other":"Colons de El Salvador",symbol:"SVC"},SYP:{displayName:"Libra s\xedria","displayName-count-one":"Libra s\xedria","displayName-count-other":"Libras s\xedrias",symbol:"SYP","symbol-alt-narrow":"S\xa3"},SZL:{displayName:"Lilangeni suazi","displayName-count-one":"Lilangeni suazi","displayName-count-other":"Lilangenis suazis",symbol:"SZL"},THB:{displayName:"Baht tailand\xeas","displayName-count-one":"Baht tailand\xeas","displayName-count-other":"Bahts tailandeses",symbol:"\u0e3f","symbol-alt-narrow":"\u0e3f"},TJR:{displayName:"Rublo do Tadjiquist\xe3o","displayName-count-one":"Rublo do Tajaquist\xe3o","displayName-count-other":"Rublos do Tajaquist\xe3o",symbol:"TJR"},TJS:{displayName:"Somoni tadjique","displayName-count-one":"Somoni tadjique","displayName-count-other":"Somonis tadjiques",symbol:"TJS"},TMM:{displayName:"Manat do Turcomenist\xe3o (1993\u20132009)","displayName-count-one":"Manat do Turcomenist\xe3o (1993\u20132009)","displayName-count-other":"Manats do Turcomenist\xe3o (1993\u20132009)",symbol:"TMM"},TMT:{displayName:"Manat turcomeno","displayName-count-one":"Manat turcomeno","displayName-count-other":"Manats turcomenos",symbol:"TMT"},TND:{displayName:"Dinar tunisiano","displayName-count-one":"Dinar tunisiano","displayName-count-other":"Dinares tunisianos",symbol:"TND"},TOP:{displayName:"Pa\u02bbanga tonganesa","displayName-count-one":"Pa\u02bbanga tonganesa","displayName-count-other":"Pa\u02bbangas tonganesas",symbol:"TOP","symbol-alt-narrow":"T$"},TPE:{displayName:"Escudo timorense","displayName-count-one":"Escudo do Timor","displayName-count-other":"Escudos do Timor",symbol:"TPE"},TRL:{displayName:"Lira turca (1922\u20132005)","displayName-count-one":"Lira turca antiga","displayName-count-other":"Liras turcas antigas",symbol:"TRL"},TRY:{displayName:"Lira turca","displayName-count-one":"Lira turca","displayName-count-other":"Liras turcas",symbol:"TRY","symbol-alt-narrow":"\u20ba","symbol-alt-variant":"TL"},TTD:{displayName:"D\xf3lar de Trinidad e Tobago","displayName-count-one":"D\xf3lar de Trinidad e Tobago","displayName-count-other":"D\xf3lares de Trinidad e Tobago",symbol:"TTD","symbol-alt-narrow":"$"},TWD:{displayName:"Novo d\xf3lar taiwan\xeas","displayName-count-one":"Novo d\xf3lar taiwan\xeas","displayName-count-other":"Novos d\xf3lares taiwaneses",symbol:"NT$","symbol-alt-narrow":"NT$"},TZS:{displayName:"Xelim tanzaniano","displayName-count-one":"Xelim tanzaniano","displayName-count-other":"Xelins tanzanianos",symbol:"TZS"},UAH:{displayName:"Hryvnia ucraniano","displayName-count-one":"Hryvnia ucraniano","displayName-count-other":"Hryvnias ucranianos",symbol:"UAH","symbol-alt-narrow":"\u20b4"},UAK:{displayName:"Karbovanetz ucraniano","displayName-count-one":"Karbovanetz da Ucr\xe2nia","displayName-count-other":"Karbovanetzs da Ucr\xe2nia",symbol:"UAK"},UGS:{displayName:"Xelim ugandense (1966\u20131987)","displayName-count-one":"Shilling de Uganda (1966\u20131987)","displayName-count-other":"Shillings de Uganda (1966\u20131987)",symbol:"UGS"},UGX:{displayName:"Xelim ugandense","displayName-count-one":"Xelim ugandense","displayName-count-other":"Xelins ugandenses",symbol:"UGX"},USD:{displayName:"D\xf3lar americano","displayName-count-one":"D\xf3lar americano","displayName-count-other":"D\xf3lares americanos",symbol:"US$","symbol-alt-narrow":"$"},USN:{displayName:"D\xf3lar norte-americano (Dia seguinte)","displayName-count-one":"D\xf3lar americano (dia seguinte)","displayName-count-other":"D\xf3lares americanos (dia seguinte)",symbol:"USN"},USS:{displayName:"D\xf3lar norte-americano (Mesmo dia)","displayName-count-one":"D\xf3lar americano (mesmo dia)","displayName-count-other":"D\xf3lares americanos (mesmo dia)",symbol:"USS"},UYI:{displayName:"Peso uruguaio en unidades indexadas","displayName-count-one":"Peso uruguaio em unidades indexadas","displayName-count-other":"Pesos uruguaios em unidades indexadas",symbol:"UYI"},UYP:{displayName:"Peso uruguaio (1975\u20131993)","displayName-count-one":"Peso uruguaio (1975\u20131993)","displayName-count-other":"Pesos uruguaios (1975\u20131993)",symbol:"UYP"},UYU:{displayName:"Peso uruguaio","displayName-count-one":"Peso uruguaio","displayName-count-other":"Pesos uruguaios",symbol:"UYU","symbol-alt-narrow":"$"},UYW:{displayName:"UYW",symbol:"UYW"},UZS:{displayName:"Som uzbeque","displayName-count-one":"Som uzbeque","displayName-count-other":"Sons uzbeques",symbol:"UZS"},VEB:{displayName:"Bol\xedvar venezuelano (1871\u20132008)","displayName-count-one":"Bol\xedvar venezuelano (1871\u20132008)","displayName-count-other":"Bol\xedvares venezuelanos (1871\u20132008)",symbol:"VEB"},VEF:{displayName:"Bol\xedvar venezuelano (2008\u20132018)","displayName-count-one":"Bol\xedvar venezuelano (2008\u20132018)","displayName-count-other":"Bol\xedvares venezuelanos (2008\u20132018)",symbol:"VEF","symbol-alt-narrow":"Bs"},VES:{displayName:"Bol\xedvar venezuelano","displayName-count-one":"Bol\xedvar venezuelano","displayName-count-other":"Bol\xedvares venezuelanos",symbol:"VES"},VND:{displayName:"Dong vietnamita","displayName-count-one":"Dong vietnamita","displayName-count-other":"Dongs vietnamitas",symbol:"\u20ab","symbol-alt-narrow":"\u20ab"},VNN:{displayName:"Dong vietnamita (1978\u20131985)","displayName-count-one":"Dong vietnamita (1978\u20131985)","displayName-count-other":"Dong vietnamita (1978\u20131985)",symbol:"VNN"},VUV:{displayName:"Vatu de Vanuatu","displayName-count-one":"Vatu de Vanuatu","displayName-count-other":"Vatus de Vanuatu",symbol:"VUV"},WST:{displayName:"Tala samoano","displayName-count-one":"Tala samoano","displayName-count-other":"Talas samoanos",symbol:"WST"},XAF:{displayName:"Franco CFA de BEAC","displayName-count-one":"Franco CFA de BEAC","displayName-count-other":"Francos CFA de BEAC",symbol:"FCFA"},XAG:{displayName:"Prata","displayName-count-one":"Prata","displayName-count-other":"Pratas",symbol:"XAG"},XAU:{displayName:"Ouro","displayName-count-one":"Ouro","displayName-count-other":"Ouros",symbol:"XAU"},XBA:{displayName:"Unidade Composta Europeia","displayName-count-one":"Unidade de composi\xe7\xe3o europeia","displayName-count-other":"Unidades de composi\xe7\xe3o europeias",symbol:"XBA"},XBB:{displayName:"Unidade Monet\xe1ria Europeia","displayName-count-one":"Unidade monet\xe1ria europeia","displayName-count-other":"Unidades monet\xe1rias europeias",symbol:"XBB"},XBC:{displayName:"Unidade de Conta Europeia (XBC)","displayName-count-one":"Unidade europeia de conta (XBC)","displayName-count-other":"Unidades europeias de conta (XBC)",symbol:"XBC"},XBD:{displayName:"Unidade de Conta Europeia (XBD)","displayName-count-one":"Unidade europeia de conta (XBD)","displayName-count-other":"Unidades europeias de conta (XBD)",symbol:"XBD"},XCD:{displayName:"D\xf3lar do Caribe Oriental","displayName-count-one":"D\xf3lar do Caribe Oriental","displayName-count-other":"D\xf3lares do Caribe Oriental",symbol:"EC$","symbol-alt-narrow":"$"},XDR:{displayName:"Direitos Especiais de Giro","displayName-count-one":"Direitos de desenho especiais","displayName-count-other":"Direitos de desenho especiais",symbol:"XDR"},XEU:{displayName:"Unidade de Moeda Europeia","displayName-count-one":"Unidade de moeda europeia","displayName-count-other":"Unidades de moedas europeias",symbol:"XEU"},XFO:{displayName:"Franco-ouro franc\xeas","displayName-count-one":"Franco de ouro franc\xeas","displayName-count-other":"Francos de ouro franceses",symbol:"XFO"},XFU:{displayName:"Franco UIC franc\xeas","displayName-count-one":"Franco UIC franc\xeas","displayName-count-other":"Francos UIC franceses",symbol:"XFU"},XOF:{displayName:"Franco CFA de BCEAO","displayName-count-one":"Franco CFA de BCEAO","displayName-count-other":"Francos CFA de BCEAO",symbol:"CFA"},XPD:{displayName:"Pal\xe1dio","displayName-count-one":"Pal\xe1dio","displayName-count-other":"Pal\xe1dios",symbol:"XPD"},XPF:{displayName:"Franco CFP","displayName-count-one":"Franco CFP","displayName-count-other":"Francos CFP",symbol:"CFPF"},XPT:{displayName:"Platina","displayName-count-one":"Platina","displayName-count-other":"Platinas",symbol:"XPT"},XRE:{displayName:"Fundos RINET","displayName-count-one":"Fundos RINET","displayName-count-other":"Fundos RINET",symbol:"XRE"},XSU:{displayName:"XSU",symbol:"XSU"},XTS:{displayName:"C\xf3digo de Moeda de Teste","displayName-count-one":"C\xf3digo de moeda de teste","displayName-count-other":"C\xf3digos de moeda de teste",symbol:"XTS"},XUA:{displayName:"XUA",symbol:"XUA"},XXX:{displayName:"Moeda desconhecida","displayName-count-one":"(unidade monet\xe1ria desconhecida)","displayName-count-other":"(moedas desconhecidas)",symbol:"\xa4"},YDD:{displayName:"Dinar iemenita","displayName-count-one":"Dinar do I\xeamen","displayName-count-other":"Dinares do I\xeamen",symbol:"YDD"},YER:{displayName:"Rial iemenita","displayName-count-one":"Rial iemenita","displayName-count-other":"Riales iemenitas",symbol:"YER"},YUD:{displayName:"Dinar forte iugoslavo (1966\u20131990)","displayName-count-one":"Dinar forte iugoslavo","displayName-count-other":"Dinares fortes iugoslavos",symbol:"YUD"},YUM:{displayName:"Dinar noviy iugoslavo (1994\u20132002)","displayName-count-one":"Dinar noviy da Iugosl\xe1via","displayName-count-other":"Dinares noviy da Iugosl\xe1via",symbol:"YUM"},YUN:{displayName:"Dinar convers\xedvel iugoslavo (1990\u20131992)","displayName-count-one":"Dinar convers\xedvel da Iugosl\xe1via","displayName-count-other":"Dinares convers\xedveis da Iugosl\xe1via",symbol:"YUN"},YUR:{displayName:"Dinar reformado iugoslavo (1992\u20131993)","displayName-count-one":"Dinar iugoslavo reformado","displayName-count-other":"Dinares iugoslavos reformados",symbol:"YUR"},ZAL:{displayName:"Rand sul-africano (financeiro)","displayName-count-one":"Rand da \xc1frica do Sul (financeiro)","displayName-count-other":"Rands da \xc1frica do Sul (financeiro)",symbol:"ZAL"},ZAR:{displayName:"Rand sul-africano","displayName-count-one":"Rand sul-africano","displayName-count-other":"Rands sul-africanos",symbol:"ZAR","symbol-alt-narrow":"R"},ZMK:{displayName:"Cuacha zambiano (1968\u20132012)","displayName-count-one":"Kwacha da Z\xe2mbia (1968\u20132012)","displayName-count-other":"Kwachas da Z\xe2mbia (1968\u20132012)",symbol:"ZMK"},ZMW:{displayName:"Kwacha zambiano","displayName-count-one":"Kwacha zambiano","displayName-count-other":"Kwachas zambianos",symbol:"ZMW","symbol-alt-narrow":"ZK"},ZRN:{displayName:"Zaire Novo zairense (1993\u20131998)","displayName-count-one":"Novo zaire do Zaire","displayName-count-other":"Novos zaires do Zaire",symbol:"ZRN"},ZRZ:{displayName:"Zaire zairense (1971\u20131993)","displayName-count-one":"Zaire do Zaire","displayName-count-other":"Zaires do Zaire",symbol:"ZRZ"},ZWD:{displayName:"D\xf3lar do Zimb\xe1bue (1980\u20132008)","displayName-count-one":"D\xf3lar do Zimb\xe1bue","displayName-count-other":"D\xf3lares do Zimb\xe1bue",symbol:"ZWD"},ZWL:{displayName:"D\xf3lar do Zimb\xe1bue (2009)","displayName-count-one":"D\xf3lar do Zimb\xe1bue (2009)","displayName-count-other":"D\xf3lares do Zimb\xe1bue (2009)",symbol:"ZWL"},ZWR:{displayName:"D\xf3lar do Zimb\xe1bue (2008)","displayName-count-one":"D\xf3lar do Zimb\xe1bue (2008)","displayName-count-other":"D\xf3lares do Zimb\xe1bue (2008)",symbol:"ZWR"}},localeCurrency:"BRL"},calendar:{patterns:{d:"dd/MM/y",D:"EEEE, d 'de' MMMM 'de' y",m:"d 'de' MMM",M:"d 'de' MMMM",y:"MMM 'de' y",Y:"MMMM 'de' y",F:"EEEE, d 'de' MMMM 'de' y HH:mm:ss",g:"dd/MM/y HH:mm",G:"dd/MM/y HH:mm:ss",t:"HH:mm",T:"HH:mm:ss",s:"yyyy'-'MM'-'dd'T'HH':'mm':'ss",u:"yyyy'-'MM'-'dd HH':'mm':'ss'Z'"},dateTimeFormats:{full:"{1} {0}",long:"{1} {0}",medium:"{1} {0}",short:"{1} {0}",availableFormats:{Bh:"h B",Bhm:"h:mm B",Bhms:"h:mm:ss B",d:"d",E:"ccc",EBhm:"E h:mm B",EBhms:"E h:mm:ss B",Ed:"E, d",Ehm:"E, h:mm a",EHm:"E, HH:mm",Ehms:"E, h:mm:ss a",EHms:"E, HH:mm:ss",Gy:"y G",GyMMM:"MMM 'de' y G",GyMMMd:"d 'de' MMM 'de' y G",GyMMMEd:"E, d 'de' MMM 'de' y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"d/M",MEd:"E, dd/MM",MMdd:"dd/MM",MMM:"LLL",MMMd:"d 'de' MMM",MMMEd:"E, d 'de' MMM",MMMMd:"d 'de' MMMM",MMMMEd:"E, d 'de' MMMM","MMMMW-count-one":"W'\xaa' 'semana' 'de' MMMM","MMMMW-count-other":"W'\xaa' 'semana' 'de' MMMM",ms:"mm:ss",y:"y",yM:"MM/y",yMd:"dd/MM/y",yMEd:"E, dd/MM/y",yMM:"MM/y",yMMM:"MMM 'de' y",yMMMd:"d 'de' MMM 'de' y",yMMMEd:"E, d 'de' MMM 'de' y",yMMMM:"MMMM 'de' y",yMMMMd:"d 'de' MMMM 'de' y",yMMMMEd:"E, d 'de' MMMM 'de' y",yQQQ:"QQQ 'de' y",yQQQQ:"QQQQ 'de' y","yw-count-one":"w'\xaa' 'semana' 'de' Y","yw-count-other":"w'\xaa' 'semana' 'de' Y"}},timeFormats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},dateFormats:{full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},days:{format:{abbreviated:["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],narrow:["D","S","T","Q","Q","S","S"],short:["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]},"stand-alone":{abbreviated:["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],narrow:["D","S","T","Q","Q","S","S"],short:["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],wide:["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"]}},months:{format:{abbreviated:["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},"stand-alone":{abbreviated:["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],wide:["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]}},quarters:{format:{abbreviated:["T1","T2","T3","T4"],narrow:["1","2","3","4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]},"stand-alone":{abbreviated:["T1","T2","T3","T4"],narrow:["1","2","3","4"],wide:["1\xba trimestre","2\xba trimestre","3\xba trimestre","4\xba trimestre"]}},dayPeriods:{format:{abbreviated:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"da manh\xe3",afternoon1:"da tarde",evening1:"da noite",night1:"da madrugada"},narrow:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"da manh\xe3",afternoon1:"da tarde",evening1:"da noite",night1:"da madrugada"},wide:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"da manh\xe3",afternoon1:"da tarde",evening1:"da noite",night1:"da madrugada"}},"stand-alone":{abbreviated:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"manh\xe3",afternoon1:"tarde",evening1:"noite",night1:"madrugada"},narrow:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"manh\xe3",afternoon1:"tarde",evening1:"noite",night1:"madrugada"},wide:{midnight:"meia-noite",am:"AM",noon:"meio-dia",pm:"PM",morning1:"manh\xe3",afternoon1:"tarde",evening1:"noite",night1:"madrugada"}}},eras:{format:{wide:{0:"antes de Cristo",1:"depois de Cristo","0-alt-variant":"antes da Era Comum","1-alt-variant":"Era Comum"},abbreviated:{0:"a.C.",1:"d.C.","0-alt-variant":"AEC","1-alt-variant":"EC"},narrow:{0:"a.C.",1:"d.C.","0-alt-variant":"AEC","1-alt-variant":"EC"}}},gmtFormat:"GMT{0}",gmtZeroFormat:"GMT",dateFields:{era:{wide:"era",short:"era",narrow:"era"},year:{wide:"ano",short:"ano",narrow:"ano"},quarter:{wide:"trimestre",short:"trim.",narrow:"trim."},month:{wide:"m\xeas",short:"m\xeas",narrow:"m\xeas"},week:{wide:"semana",short:"sem.",narrow:"sem."},weekOfMonth:{wide:"semana do m\xeas",short:"sem. do m\xeas",narrow:"sem. do m\xeas"},day:{wide:"dia",short:"dia",narrow:"dia"},dayOfYear:{wide:"dia do ano",short:"dia do ano",narrow:"dia do ano"},weekday:{wide:"dia da semana",short:"dia da sem.",narrow:"dia da sem."},weekdayOfMonth:{wide:"dia da semana do m\xeas",short:"dia da sem. do m\xeas",narrow:"dia da sem. do m\xeas"},dayperiod:{short:"AM/PM",wide:"AM/PM",narrow:"AM/PM"},hour:{wide:"hora",short:"h",narrow:"h"},minute:{wide:"minuto",short:"min.",narrow:"min."},second:{wide:"segundo",short:"seg.",narrow:"seg."},zone:{wide:"fuso hor\xe1rio",short:"fuso",narrow:"fuso"}}},firstDay:0,weekendRange:{start:6,end:0},likelySubtags:{pt:"pt-Latn-BR"}})},3731:(v,x,S)=>{"use strict";function O(){return!function D(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}()&&"[object process]"===Object.prototype.toString.call(typeof process<"u"?process:0)}S.d(x,{KV:()=>O}),v=S.hmd(v)},4535:module=>{var v;v=function(){var define,module,exports;return function v(x,S,D){function n(U,q){if(!S[U]){if(!x[U]){if(O)return O(U,!0);var ie=new Error("Cannot find module '"+U+"'");throw ie.code="MODULE_NOT_FOUND",ie}var pe=S[U]={exports:{}};x[U][0].call(pe.exports,function(de){return n(x[U][1][de]||de)},pe,pe.exports,v,x,S,D)}return S[U].exports}for(var O=void 0,R=0;R<D.length;R++)n(D[R]);return n}({1:[function(require,module,exports){(function(global){(function(){var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.createTemplateTagFirstArg=function(v){return v.raw=v},$jscomp.createTemplateTagFirstArgWithRaw=function(v,x){return v.raw=x,v},$jscomp.arrayIteratorImpl=function(v){var x=0;return function(){return x<v.length?{done:!1,value:v[x++]}:{done:!0}}},$jscomp.arrayIterator=function(v){return{next:$jscomp.arrayIteratorImpl(v)}},$jscomp.makeIterator=function(v){var x=typeof Symbol<"u"&&Symbol.iterator&&v[Symbol.iterator];return x?x.call(v):$jscomp.arrayIterator(v)},$jscomp.arrayFromIterator=function(v){for(var x,S=[];!(x=v.next()).done;)S.push(x.value);return S},$jscomp.arrayFromIterable=function(v){return v instanceof Array?v:$jscomp.arrayFromIterator($jscomp.makeIterator(v))},$jscomp.checkStringArgs=function(v,x,S){if(null==v)throw new TypeError("The 'this' value for String.prototype."+S+" must not be null or undefined");if(x instanceof RegExp)throw new TypeError("First argument to String.prototype."+S+" must not be a regular expression");return v+""},$jscomp.ASSUME_ES5=!1,$jscomp.ASSUME_NO_NATIVE_MAP=!1,$jscomp.ASSUME_NO_NATIVE_SET=!1,$jscomp.SIMPLE_FROUND_POLYFILL=!1,$jscomp.ISOLATE_POLYFILLS=!1,$jscomp.FORCE_POLYFILL_PROMISE=!1,$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(v,x,S){return v==Array.prototype||v==Object.prototype||(v[x]=S.value),v},$jscomp.getGlobal=function(v){v=["object"==typeof globalThis&&globalThis,v,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var x=0;x<v.length;++x){var S=v[x];if(S&&S.Math==Math)return S}throw Error("Cannot find global object")},$jscomp.global=$jscomp.getGlobal(this),$jscomp.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE,$jscomp.polyfills={},$jscomp.propertyToPolyfillSymbol={},$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(v,x){var S=$jscomp.propertyToPolyfillSymbol[x];return null==S?v[x]:void 0!==(S=v[S])?S:v[x]};$jscomp.polyfill=function(v,x,S,D){x&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(v,x,S,D):$jscomp.polyfillUnisolated(v,x,S,D))},$jscomp.polyfillUnisolated=function(v,x,S,D){for(S=$jscomp.global,v=v.split("."),D=0;D<v.length-1;D++){var n=v[D];if(!(n in S))return;S=S[n]}(x=x(D=S[v=v[v.length-1]]))!=D&&null!=x&&$jscomp.defineProperty(S,v,{configurable:!0,writable:!0,value:x})},$jscomp.polyfillIsolated=function(v,x,S,D){var n=v.split(".");D=n[0],D=!(v=1===n.length)&&D in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var O=0;O<n.length-1;O++){var R=n[O];if(!(R in D))return;D=D[R]}n=n[n.length-1],null!=(x=x(S=$jscomp.IS_SYMBOL_NATIVE&&"es6"===S?D[n]:null))&&(v?$jscomp.defineProperty($jscomp.polyfills,n,{configurable:!0,writable:!0,value:x}):x!==S&&($jscomp.propertyToPolyfillSymbol[n]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(n):$jscomp.POLYFILL_PREFIX+n,$jscomp.defineProperty(D,n=$jscomp.propertyToPolyfillSymbol[n],{configurable:!0,writable:!0,value:x})))},$jscomp.polyfill("String.prototype.endsWith",function(v){return v||function(x,S){var D=$jscomp.checkStringArgs(this,x,"endsWith");x+="",void 0===S&&(S=D.length),S=Math.max(0,Math.min(0|S,D.length));for(var n=x.length;0<n&&0<S;)if(D[--S]!=x[--n])return!1;return 0>=n}},"es6","es3"),$jscomp.findInternal=function(v,x,S){v instanceof String&&(v=String(v));for(var D=v.length,n=0;n<D;n++){var O=v[n];if(x.call(S,O,n,v))return{i:n,v:O}}return{i:-1,v:void 0}},$jscomp.polyfill("Array.prototype.find",function(v){return v||function(x,S){return $jscomp.findInternal(this,x,S).v}},"es6","es3"),$jscomp.polyfill("String.prototype.startsWith",function(v){return v||function(x,S){var D=$jscomp.checkStringArgs(this,x,"startsWith"),n=D.length,O=(x+="").length;S=Math.max(0,Math.min(0|S,D.length));for(var R=0;R<O&&S<n;)if(D[S++]!=x[R++])return!1;return R>=O}},"es6","es3"),$jscomp.polyfill("String.prototype.repeat",function(v){return v||function(x){var S=$jscomp.checkStringArgs(this,null,"repeat");if(0>x||1342177279<x)throw new RangeError("Invalid count value");x|=0;for(var D="";x;)1&x&&(D+=S),(x>>>=1)&&(S+=S);return D}},"es6","es3"),$jscomp.initSymbol=function(){},$jscomp.polyfill("Symbol",function(v){if(v)return v;var x=function(n,O){this.$jscomp$symbol$id_=n,$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:O})};x.prototype.toString=function(){return this.$jscomp$symbol$id_};var S=0,D=function(n){if(this instanceof D)throw new TypeError("Symbol is not a constructor");return new x("jscomp_symbol_"+(n||"")+"_"+S++,n)};return D},"es6","es3"),$jscomp.polyfill("Symbol.iterator",function(v){if(v)return v;v=Symbol("Symbol.iterator");for(var x="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),S=0;S<x.length;S++){var D=$jscomp.global[x[S]];"function"==typeof D&&"function"!=typeof D.prototype[v]&&$jscomp.defineProperty(D.prototype,v,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return v},"es6","es3"),$jscomp.iteratorPrototype=function(v){return(v={next:v})[Symbol.iterator]=function(){return this},v},$jscomp.iteratorFromArray=function(v,x){v instanceof String&&(v+="");var S=0,D=!1,n={next:function(){if(!D&&S<v.length){var O=S++;return{value:x(O,v[O]),done:!1}}return D=!0,{done:!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},$jscomp.polyfill("Array.prototype.keys",function(v){return v||function(){return $jscomp.iteratorFromArray(this,function(x){return x})}},"es6","es3"),$jscomp.polyfill("Object.is",function(v){return v||function(x,S){return x===S?0!==x||1/x==1/S:x!=x&&S!=S}},"es6","es3"),$jscomp.polyfill("Array.prototype.includes",function(v){return v||function(x,S){var D=this;D instanceof String&&(D=String(D));var n=D.length;for(0>(S=S||0)&&(S=Math.max(S+n,0));S<n;S++){var O=D[S];if(O===x||Object.is(O,x))return!0}return!1}},"es7","es3"),$jscomp.polyfill("String.prototype.includes",function(v){return v||function(x,S){return-1!==$jscomp.checkStringArgs(this,x,"includes").indexOf(x,S||0)}},"es6","es3");var COMPILED=!0,goog=goog||{};function module$contents$goog$debug$Error_DebugError(v){if(Error.captureStackTrace)Error.captureStackTrace(this,module$contents$goog$debug$Error_DebugError);else{var x=Error().stack;x&&(this.stack=x)}v&&(this.message=String(v)),this.reportErrorToServer=!0}goog.global=this||self,goog.exportPath_=function(v,x,S,D){(v=v.split("."))[0]in(D=D||goog.global)||typeof D.execScript>"u"||D.execScript("var "+v[0]);for(var n;v.length&&(n=v.shift());)if(v.length||void 0===x)D=D[n]&&D[n]!==Object.prototype[n]?D[n]:D[n]={};else if(!S&&goog.isObject(x)&&goog.isObject(D[n]))for(var O in x)x.hasOwnProperty(O)&&(D[n][O]=x[O]);else D[n]=x},goog.define=function(v,x){if(!COMPILED){var S=goog.global.CLOSURE_UNCOMPILED_DEFINES,D=goog.global.CLOSURE_DEFINES;S&&void 0===S.nodeType&&Object.prototype.hasOwnProperty.call(S,v)?x=S[v]:D&&void 0===D.nodeType&&Object.prototype.hasOwnProperty.call(D,v)&&(x=D[v])}return x},goog.FEATURESET_YEAR=2012,goog.DEBUG=!0,goog.LOCALE="en",goog.TRUSTED_SITE=!0,goog.DISALLOW_TEST_ONLY_CODE=COMPILED&&!goog.DEBUG,goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING=!1,goog.provide=function(v){if(goog.isInModuleLoader_())throw Error("goog.provide cannot be used within a module.");if(!COMPILED&&goog.isProvided_(v))throw Error('Namespace "'+v+'" already declared.');goog.constructNamespace_(v)},goog.constructNamespace_=function(v,x,S){if(!COMPILED){delete goog.implicitNamespaces_[v];for(var D=v;(D=D.substring(0,D.lastIndexOf(".")))&&!goog.getObjectByName(D);)goog.implicitNamespaces_[D]=!0}goog.exportPath_(v,x,S)},goog.getScriptNonce=function(v){return v&&v!=goog.global?goog.getScriptNonce_(v.document):(null===goog.cspNonce_&&(goog.cspNonce_=goog.getScriptNonce_(goog.global.document)),goog.cspNonce_)},goog.NONCE_PATTERN_=/^[\w+/_-]+[=]{0,2}$/,goog.cspNonce_=null,goog.getScriptNonce_=function(v){return(v=v.querySelector&&v.querySelector("script[nonce]"))&&(v=v.nonce||v.getAttribute("nonce"))&&goog.NONCE_PATTERN_.test(v)?v:""},goog.VALID_MODULE_RE_=/^[a-zA-Z_$][a-zA-Z0-9._$]*$/,goog.module=function(v){if("string"!=typeof v||!v||-1==v.search(goog.VALID_MODULE_RE_))throw Error("Invalid module identifier");if(!goog.isInGoogModuleLoader_())throw Error("Module "+v+" has been loaded incorrectly. Note, modules cannot be loaded as normal scripts. They require some kind of pre-processing step. You're likely trying to load a module via a script tag or as a part of a concatenated bundle without rewriting the module. For more info see: https://github.com/google/closure-library/wiki/goog.module:-an-ES6-module-like-alternative-to-goog.provide.");if(goog.moduleLoaderState_.moduleName)throw Error("goog.module may only be called once per module.");if(goog.moduleLoaderState_.moduleName=v,!COMPILED){if(goog.isProvided_(v))throw Error('Namespace "'+v+'" already declared.');delete goog.implicitNamespaces_[v]}},goog.module.get=function(v){return goog.module.getInternal_(v)},goog.module.getInternal_=function(v){if(!COMPILED){if(v in goog.loadedModules_)return goog.loadedModules_[v].exports;if(!goog.implicitNamespaces_[v])return(v=goog.getObjectByName(v))??null}return null},goog.ModuleType={ES6:"es6",GOOG:"goog"},goog.moduleLoaderState_=null,goog.isInModuleLoader_=function(){return goog.isInGoogModuleLoader_()||goog.isInEs6ModuleLoader_()},goog.isInGoogModuleLoader_=function(){return!!goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.GOOG},goog.isInEs6ModuleLoader_=function(){if(goog.moduleLoaderState_&&goog.moduleLoaderState_.type==goog.ModuleType.ES6)return!0;var v=goog.global.$jscomp;return!!v&&"function"==typeof v.getCurrentModulePath&&!!v.getCurrentModulePath()},goog.module.declareLegacyNamespace=function(){if(!COMPILED&&!goog.isInGoogModuleLoader_())throw Error("goog.module.declareLegacyNamespace must be called from within a goog.module");if(!COMPILED&&!goog.moduleLoaderState_.moduleName)throw Error("goog.module must be called prior to goog.module.declareLegacyNamespace.");goog.moduleLoaderState_.declareLegacyNamespace=!0},goog.declareModuleId=function(v){if(!COMPILED){if(!goog.isInEs6ModuleLoader_())throw Error("goog.declareModuleId may only be called from within an ES6 module");if(goog.moduleLoaderState_&&goog.moduleLoaderState_.moduleName)throw Error("goog.declareModuleId may only be called once per module.");if(v in goog.loadedModules_)throw Error('Module with namespace "'+v+'" already exists.')}if(goog.moduleLoaderState_)goog.moduleLoaderState_.moduleName=v;else{var x=goog.global.$jscomp;if(!x||"function"!=typeof x.getCurrentModulePath)throw Error('Module with namespace "'+v+'" has been loaded incorrectly.');x=x.require(x.getCurrentModulePath()),goog.loadedModules_[v]={exports:x,type:goog.ModuleType.ES6,moduleId:v}}},goog.setTestOnly=function(v){if(goog.DISALLOW_TEST_ONLY_CODE)throw v=v||"",Error("Importing test-only code into non-debug environment"+(v?": "+v:"."))},goog.forwardDeclare=function(v){},COMPILED||(goog.isProvided_=function(v){return v in goog.loadedModules_||!goog.implicitNamespaces_[v]&&null!=goog.getObjectByName(v)},goog.implicitNamespaces_={"goog.module":!0}),goog.getObjectByName=function(v,x){v=v.split("."),x=x||goog.global;for(var S=0;S<v.length;S++)if(null==(x=x[v[S]]))return null;return x},goog.addDependency=function(v,x,S,D){!COMPILED&&goog.DEPENDENCIES_ENABLED&&goog.debugLoader_.addDependency(v,x,S,D)},goog.ENABLE_DEBUG_LOADER=!0,goog.logToConsole_=function(v){goog.global.console&&goog.global.console.error(v)},goog.require=function(v){if(!COMPILED){if(goog.ENABLE_DEBUG_LOADER&&goog.debugLoader_.requested(v),goog.isProvided_(v)){if(goog.isInModuleLoader_())return goog.module.getInternal_(v)}else if(goog.ENABLE_DEBUG_LOADER){var x=goog.moduleLoaderState_;goog.moduleLoaderState_=null;try{goog.debugLoader_.load_(v)}finally{goog.moduleLoaderState_=x}}return null}},goog.requireType=function(v){return{}},goog.basePath="",goog.nullFunction=function(){},goog.abstractMethod=function(){throw Error("unimplemented abstract method")},goog.addSingletonGetter=function(v){v.instance_=void 0,v.getInstance=function(){return v.instance_?v.instance_:(goog.DEBUG&&(goog.instantiatedSingletons_[goog.instantiatedSingletons_.length]=v),v.instance_=new v)}},goog.instantiatedSingletons_=[],goog.LOAD_MODULE_USING_EVAL=!0,goog.SEAL_MODULE_EXPORTS=goog.DEBUG,goog.loadedModules_={},goog.DEPENDENCIES_ENABLED=!COMPILED&&goog.ENABLE_DEBUG_LOADER,goog.TRANSPILE="detect",goog.ASSUME_ES_MODULES_TRANSPILED=!1,goog.TRANSPILE_TO_LANGUAGE="",goog.TRANSPILER="transpile.js",goog.hasBadLetScoping=null,goog.useSafari10Workaround=function(){if(null==goog.hasBadLetScoping){try{var a=!eval('"use strict";let x = 1; function f() { return typeof x; };f() == "number";')}catch(v){a=!1}goog.hasBadLetScoping=a}return goog.hasBadLetScoping},goog.workaroundSafari10EvalBug=function(v){return"(function(){"+v+"\n;})();\n"},goog.loadModule=function(v){var x=goog.moduleLoaderState_;try{goog.moduleLoaderState_={moduleName:"",declareLegacyNamespace:!1,type:goog.ModuleType.GOOG};var S={},D=S;if("function"==typeof v)D=v.call(void 0,D);else{if("string"!=typeof v)throw Error("Invalid module definition");goog.useSafari10Workaround()&&(v=goog.workaroundSafari10EvalBug(v)),D=goog.loadModuleFromSource_.call(void 0,D,v)}var n=goog.moduleLoaderState_.moduleName;if("string"!=typeof n||!n)throw Error('Invalid module name "'+n+'"');goog.moduleLoaderState_.declareLegacyNamespace?goog.constructNamespace_(n,D,S!==D):goog.SEAL_MODULE_EXPORTS&&Object.seal&&"object"==typeof D&&null!=D&&Object.seal(D),goog.loadedModules_[n]={exports:D,type:goog.ModuleType.GOOG,moduleId:goog.moduleLoaderState_.moduleName}}finally{goog.moduleLoaderState_=x}},goog.loadModuleFromSource_=function(a,b){return eval(b),a},goog.normalizePath_=function(v){v=v.split("/");for(var x=0;x<v.length;)"."==v[x]?v.splice(x,1):x&&".."==v[x]&&v[x-1]&&".."!=v[x-1]?v.splice(--x,2):x++;return v.join("/")},goog.loadFileSync_=function(v){if(goog.global.CLOSURE_LOAD_FILE_SYNC)return goog.global.CLOSURE_LOAD_FILE_SYNC(v);try{var x=new goog.global.XMLHttpRequest;return x.open("get",v,!1),x.send(),0==x.status||200==x.status?x.responseText:null}catch{return null}},goog.transpile_=function(v,x,S){var D=goog.global.$jscomp;D||(goog.global.$jscomp=D={});var n=D.transpile;if(!n){var O=goog.basePath+goog.TRANSPILER,R=goog.loadFileSync_(O);if(R){if(function(){(0,eval)(R+"\n//# sourceURL="+O)}.call(goog.global),goog.global.$gwtExport&&goog.global.$gwtExport.$jscomp&&!goog.global.$gwtExport.$jscomp.transpile)throw Error('The transpiler did not properly export the "transpile" method. $gwtExport: '+JSON.stringify(goog.global.$gwtExport));goog.global.$jscomp.transpile=goog.global.$gwtExport.$jscomp.transpile,n=(D=goog.global.$jscomp).transpile}}return n||(n=D.transpile=function(U,q){return goog.logToConsole_(q+" requires transpilation but no transpiler was found."),U}),n(v,x,S)},goog.typeOf=function(v){var x=typeof v;return"object"!=x?x:v?Array.isArray(v)?"array":x:"null"},goog.isArrayLike=function(v){var x=goog.typeOf(v);return"array"==x||"object"==x&&"number"==typeof v.length},goog.isDateLike=function(v){return goog.isObject(v)&&"function"==typeof v.getFullYear},goog.isObject=function(v){var x=typeof v;return"object"==x&&null!=v||"function"==x},goog.getUid=function(v){return Object.prototype.hasOwnProperty.call(v,goog.UID_PROPERTY_)&&v[goog.UID_PROPERTY_]||(v[goog.UID_PROPERTY_]=++goog.uidCounter_)},goog.hasUid=function(v){return!!v[goog.UID_PROPERTY_]},goog.removeUid=function(v){null!==v&&"removeAttribute"in v&&v.removeAttribute(goog.UID_PROPERTY_);try{delete v[goog.UID_PROPERTY_]}catch{}},goog.UID_PROPERTY_="closure_uid_"+(1e9*Math.random()>>>0),goog.uidCounter_=0,goog.cloneObject=function(v){var x=goog.typeOf(v);if("object"==x||"array"==x){if("function"==typeof v.clone)return v.clone();for(var S in x="array"==x?[]:{},v)x[S]=goog.cloneObject(v[S]);return x}return v},goog.bindNative_=function(v,x,S){return v.call.apply(v.bind,arguments)},goog.bindJs_=function(v,x,S){if(!v)throw Error();if(2<arguments.length){var D=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,D),v.apply(x,n)}}return function(){return v.apply(x,arguments)}},goog.bind=function(v,x,S){return goog.bind=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?goog.bindNative_:goog.bindJs_,goog.bind.apply(null,arguments)},goog.partial=function(v,x){var S=Array.prototype.slice.call(arguments,1);return function(){var D=S.slice();return D.push.apply(D,arguments),v.apply(this,D)}},goog.mixin=function(v,x){for(var S in x)v[S]=x[S]},goog.now=function(){return Date.now()},goog.globalEval=function(v){(0,eval)(v)},goog.getCssName=function(v,x){if("."==String(v).charAt(0))throw Error('className passed in goog.getCssName must not start with ".". You passed: '+v);var S=function(n){return goog.cssNameMapping_[n]||n},D=function(n){n=n.split("-");for(var O=[],R=0;R<n.length;R++)O.push(S(n[R]));return O.join("-")};return D=goog.cssNameMapping_?"BY_WHOLE"==goog.cssNameMappingStyle_?S:D:function(n){return n},v=x?v+"-"+D(x):D(v),goog.global.CLOSURE_CSS_NAME_MAP_FN?goog.global.CLOSURE_CSS_NAME_MAP_FN(v):v},goog.setCssNameMapping=function(v,x){goog.cssNameMapping_=v,goog.cssNameMappingStyle_=x},!COMPILED&&goog.global.CLOSURE_CSS_NAME_MAPPING&&(goog.cssNameMapping_=goog.global.CLOSURE_CSS_NAME_MAPPING),goog.getMsg=function(v,x,S){return S&&S.html&&(v=v.replace(/</g,"&lt;")),S&&S.unescapeHtmlEntities&&(v=v.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&amp;/g,"&")),x&&(v=v.replace(/\{\$([^}]+)}/g,function(D,n){return null!=x&&n in x?x[n]:D})),v},goog.getMsgWithFallback=function(v,x){return v},goog.exportSymbol=function(v,x,S){goog.exportPath_(v,x,!0,S)},goog.exportProperty=function(v,x,S){v[x]=S},goog.inherits=function(v,x){function S(){}S.prototype=x.prototype,v.superClass_=x.prototype,v.prototype=new S,v.prototype.constructor=v,v.base=function(D,n,O){for(var R=Array(arguments.length-2),U=2;U<arguments.length;U++)R[U-2]=arguments[U];return x.prototype[n].apply(D,R)}},goog.scope=function(v){if(goog.isInModuleLoader_())throw Error("goog.scope is not supported within a module.");v.call(goog.global)},COMPILED||(goog.global.COMPILED=COMPILED),goog.defineClass=function(v,x){var S=x.constructor,D=x.statics;return S&&S!=Object.prototype.constructor||(S=function(){throw Error("cannot instantiate an interface (no constructor defined).")}),S=goog.defineClass.createSealingConstructor_(S,v),v&&goog.inherits(S,v),delete x.constructor,delete x.statics,goog.defineClass.applyProperties_(S.prototype,x),null!=D&&(D instanceof Function?D(S):goog.defineClass.applyProperties_(S,D)),S},goog.defineClass.SEAL_CLASS_INSTANCES=goog.DEBUG,goog.defineClass.createSealingConstructor_=function(v,x){return goog.defineClass.SEAL_CLASS_INSTANCES?function(){var S=v.apply(this,arguments)||this;return S[goog.UID_PROPERTY_]=S[goog.UID_PROPERTY_],S}:v},goog.defineClass.OBJECT_PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.defineClass.applyProperties_=function(v,x){for(var S in x)Object.prototype.hasOwnProperty.call(x,S)&&(v[S]=x[S]);for(var D=0;D<goog.defineClass.OBJECT_PROTOTYPE_FIELDS_.length;D++)S=goog.defineClass.OBJECT_PROTOTYPE_FIELDS_[D],Object.prototype.hasOwnProperty.call(x,S)&&(v[S]=x[S])},!COMPILED&&goog.DEPENDENCIES_ENABLED&&(goog.inHtmlDocument_=function(){var v=goog.global.document;return null!=v&&"write"in v},goog.isDocumentLoading_=function(){var v=goog.global.document;return v.attachEvent?"complete"!=v.readyState:"loading"==v.readyState},goog.findBasePath_=function(){if(null!=goog.global.CLOSURE_BASE_PATH&&"string"==typeof goog.global.CLOSURE_BASE_PATH)goog.basePath=goog.global.CLOSURE_BASE_PATH;else if(goog.inHtmlDocument_()){var v=goog.global.document,x=v.currentScript;for(x=(v=x?[x]:v.getElementsByTagName("SCRIPT")).length-1;0<=x;--x){var S=v[x].src,D=S.lastIndexOf("?");if("base.js"==S.substr((D=-1==D?S.length:D)-7,7)){goog.basePath=S.substr(0,D-7);break}}}},goog.findBasePath_(),goog.Transpiler=function(){this.requiresTranspilation_=null,this.transpilationTarget_=goog.TRANSPILE_TO_LANGUAGE},goog.Transpiler.prototype.createRequiresTranspilation_=function(){function a(v,x){e?d[v]=!0:x()?(c=v,d[v]=!1):e=d[v]=!0}function b(g){try{return!!eval(g)}catch(v){return!1}}var c="es3",d={es3:!1},e=!1,f=goog.global.navigator&&goog.global.navigator.userAgent?goog.global.navigator.userAgent:"";return a("es5",function(){return b("[1,].length==1")}),a("es6",function(){return!f.match(/Edge\/(\d+)(\.\d)*/i)&&b('(()=>{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')}),a("es7",function(){return b("2 ** 2 == 4")}),a("es8",function(){return b("async () => 1, true")}),a("es9",function(){return b("({...rest} = {}), true")}),a("es_next",function(){return!1}),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(v,x){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var S=this.createRequiresTranspilation_();this.requiresTranspilation_=S.map,this.transpilationTarget_=this.transpilationTarget_||S.target}if(v in this.requiresTranspilation_)return!!this.requiresTranspilation_[v]||!(!goog.inHtmlDocument_()||"es6"!=x||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+v)},goog.Transpiler.prototype.transpile=function(v,x){return goog.transpile_(v,x,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(v){return v.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(v,x){function S(){D&&(goog.global.setTimeout(D,0),D=null)}var D=x;if(v.length){x=[];for(var n=0;n<v.length;n++){var O=this.getPathFromDeps_(v[n]);if(!O)throw Error("Unregonized namespace: "+v[n]);x.push(this.dependencies_[O])}O=goog.require;var R=0;for(n=0;n<v.length;n++)O(v[n]),x[n].onLoad(function(){++R==v.length&&S()})}else S()},goog.DebugLoader_.prototype.loadClosureDeps=function(){this.depsToLoad_.push(this.factory_.createDependency(goog.normalizePath_(goog.basePath+"deps.js"),"deps.js",[],[],{},!1)),this.loadDeps_()},goog.DebugLoader_.prototype.requested=function(v,x){(v=this.getPathFromDeps_(v))&&(x||this.areDepsLoaded_(this.dependencies_[v].requires))&&(x=this.deferredCallbacks_[v])&&(delete this.deferredCallbacks_[v],x())},goog.DebugLoader_.prototype.setDependencyFactory=function(v){this.factory_=v},goog.DebugLoader_.prototype.load_=function(v){if(!this.getPathFromDeps_(v))throw goog.logToConsole_(v="goog.require could not find: "+v),Error(v);var x=this,S=[],D=function(n){var O=x.getPathFromDeps_(n);if(!O)throw Error("Bad dependency path or symbol: "+n);if(!x.written_[O]){for(x.written_[O]=!0,n=x.dependencies_[O],O=0;O<n.requires.length;O++)goog.isProvided_(n.requires[O])||D(n.requires[O]);S.push(n)}};D(v),v=!!this.depsToLoad_.length,this.depsToLoad_=this.depsToLoad_.concat(S),this.paused_||v||this.loadDeps_()},goog.DebugLoader_.prototype.loadDeps_=function(){for(var v=this,x=this.paused_;this.depsToLoad_.length&&!x;)!function(){var S=!1,D=v.depsToLoad_.shift(),n=!1;v.loading_(D);var O={pause:function(){if(S)throw Error("Cannot call pause after the call to load.");x=!0},resume:function(){S?v.resume_():x=!1},loaded:function(){if(n)throw Error("Double call to loaded.");n=!0,v.loaded_(D)},pending:function(){for(var R=[],U=0;U<v.loadingDeps_.length;U++)R.push(v.loadingDeps_[U]);return R},setModuleState:function(R){goog.moduleLoaderState_={type:R,moduleName:"",declareLegacyNamespace:!1}},registerEs6ModuleExports:function(R,U,q){q&&(goog.loadedModules_[q]={exports:U,type:goog.ModuleType.ES6,moduleId:q||""})},registerGoogModuleExports:function(R,U){goog.loadedModules_[R]={exports:U,type:goog.ModuleType.GOOG,moduleId:R}},clearModuleState:function(){goog.moduleLoaderState_=null},defer:function(R){if(S)throw Error("Cannot register with defer after the call to load.");v.defer_(D,R)},areDepsLoaded:function(){return v.areDepsLoaded_(D.requires)}};try{D.load(O)}finally{S=!0}}();x&&this.pause_()},goog.DebugLoader_.prototype.pause_=function(){this.paused_=!0},goog.DebugLoader_.prototype.resume_=function(){this.paused_&&(this.paused_=!1,this.loadDeps_())},goog.DebugLoader_.prototype.loading_=function(v){this.loadingDeps_.push(v)},goog.DebugLoader_.prototype.loaded_=function(v){for(var x=0;x<this.loadingDeps_.length;x++)if(this.loadingDeps_[x]==v){this.loadingDeps_.splice(x,1);break}for(x=0;x<this.deferredQueue_.length;x++)if(this.deferredQueue_[x]==v.path){this.deferredQueue_.splice(x,1);break}if(this.loadingDeps_.length==this.deferredQueue_.length&&!this.depsToLoad_.length)for(;this.deferredQueue_.length;)this.requested(this.deferredQueue_.shift(),!0);v.loaded()},goog.DebugLoader_.prototype.areDepsLoaded_=function(v){for(var x=0;x<v.length;x++){var S=this.getPathFromDeps_(v[x]);if(!S||!(S in this.deferredCallbacks_)&&!goog.isProvided_(v[x]))return!1}return!0},goog.DebugLoader_.prototype.getPathFromDeps_=function(v){return v in this.idToPath_?this.idToPath_[v]:v in this.dependencies_?v:null},goog.DebugLoader_.prototype.defer_=function(v,x){this.deferredCallbacks_[v.path]=x,this.deferredQueue_.push(v.path)},goog.LoadController=function(){},goog.LoadController.prototype.pause=function(){},goog.LoadController.prototype.resume=function(){},goog.LoadController.prototype.loaded=function(){},goog.LoadController.prototype.pending=function(){},goog.LoadController.prototype.registerEs6ModuleExports=function(v,x,S){},goog.LoadController.prototype.setModuleState=function(v){},goog.LoadController.prototype.clearModuleState=function(){},goog.LoadController.prototype.defer=function(v){},goog.LoadController.prototype.areDepsLoaded=function(){},goog.Dependency=function(v,x,S,D,n){this.path=v,this.relativePath=x,this.provides=S,this.requires=D,this.loadFlags=n,this.loaded_=!1,this.loadCallbacks_=[]},goog.Dependency.prototype.getPathName=function(){var v=this.path,x=v.indexOf("://");return 0<=x&&0<=(x=(v=v.substring(x+3)).indexOf("/"))&&(v=v.substring(x+1)),v},goog.Dependency.prototype.onLoad=function(v){this.loaded_?v():this.loadCallbacks_.push(v)},goog.Dependency.prototype.loaded=function(){this.loaded_=!0;var v=this.loadCallbacks_;this.loadCallbacks_=[];for(var x=0;x<v.length;x++)v[x]()},goog.Dependency.defer_=!1,goog.Dependency.callbackMap_={},goog.Dependency.registerCallback_=function(v){var x=Math.random().toString(32);return goog.Dependency.callbackMap_[x]=v,x},goog.Dependency.unregisterCallback_=function(v){delete goog.Dependency.callbackMap_[v]},goog.Dependency.callback_=function(v,x){if(!(v in goog.Dependency.callbackMap_))throw Error("Callback key "+v+" does not exist (was base.js loaded more than once?).");for(var S=goog.Dependency.callbackMap_[v],D=[],n=1;n<arguments.length;n++)D.push(arguments[n]);S.apply(void 0,D)},goog.Dependency.prototype.load=function(v){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?v.loaded():v.pause();else if(goog.inHtmlDocument_()){var x=goog.global.document;if("complete"==x.readyState&&!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING){if(/\bdeps.js$/.test(this.path))return void v.loaded();throw Error('Cannot write "'+this.path+'" after document load')}var S=goog.getScriptNonce();if(!goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING&&goog.isDocumentLoading_()){var D=function(U){U.readyState&&"complete"!=U.readyState?U.onload=D:(goog.Dependency.unregisterCallback_(n),v.loaded())},n=goog.Dependency.registerCallback_(D),O='<script src="'+this.path+'"'+(S=S?' nonce="'+S+'"':"")+(goog.Dependency.defer_?" defer":"")+' id="script-'+n+'"><\/script>';O+="<script"+S+">",O=goog.Dependency.defer_?O+"document.getElementById('script-"+n+"').onload = function() {\n  goog.Dependency.callback_('"+n+"', this);\n};\n":O+"goog.Dependency.callback_('"+n+"', document.getElementById('script-"+n+"'));",O+="<\/script>",x.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(O):O)}else{var R=x.createElement("script");R.defer=goog.Dependency.defer_,R.async=!1,S&&(R.nonce=S),goog.DebugLoader_.IS_OLD_IE_?(v.pause(),R.onreadystatechange=function(){("loaded"==R.readyState||"complete"==R.readyState)&&(v.loaded(),v.resume())}):R.onload=function(){R.onload=null,v.loaded()},R.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,x.head.appendChild(R)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),v.loaded()):v.pause()},goog.Es6ModuleDependency=function(v,x,S,D,n){goog.Dependency.call(this,v,x,S,D,n)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(v){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?v.loaded():v.pause();else if(goog.inHtmlDocument_()){var D=goog.global.document,n=this;if(goog.isDocumentLoading_()){var O=function x(te,ie){var pe="",de=goog.getScriptNonce();de&&(pe=' nonce="'+de+'"'),te=ie?'<script type="module" crossorigin'+pe+">"+ie+"<\/script>":'<script type="module" crossorigin src="'+te+'"'+pe+"><\/script>",D.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(te):te)};goog.Dependency.defer_=!0}else O=function S(te,ie){var pe=D.createElement("script");pe.defer=!0,pe.async=!1,pe.type="module",pe.setAttribute("crossorigin",!0);var de=goog.getScriptNonce();de&&(pe.nonce=de),ie?pe.text=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScript(ie):ie:pe.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(te):te,D.head.appendChild(pe)};var R=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(R),v.setModuleState(goog.ModuleType.ES6)});O(void 0,'goog.Dependency.callback_("'+R+'")'),O(this.path,void 0);var U=goog.Dependency.registerCallback_(function(te){goog.Dependency.unregisterCallback_(U),v.registerEs6ModuleExports(n.path,te,goog.moduleLoaderState_.moduleName)});O(void 0,'import * as m from "'+this.path+'"; goog.Dependency.callback_("'+U+'", m)');var q=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(q),v.clearModuleState(),v.loaded()});O(void 0,'goog.Dependency.callback_("'+q+'")')}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),v.pause()},goog.TransformedDependency=function(v,x,S,D,n){goog.Dependency.call(this,v,x,S,D,n),this.contents_=null,this.lazyFetch_=!goog.inHtmlDocument_()||!("noModule"in goog.global.document.createElement("script"))},goog.inherits(goog.TransformedDependency,goog.Dependency),goog.TransformedDependency.prototype.load=function(v){function x(){n.contents_=goog.loadFileSync_(n.path),n.contents_&&(n.contents_=n.transform(n.contents_),n.contents_&&(n.contents_+="\n//# sourceURL="+n.path))}function S(){if(n.lazyFetch_&&x(),n.contents_){O&&v.setModuleState(goog.ModuleType.ES6);try{var ie=n.contents_;if(n.contents_=null,goog.globalEval(ie),O)var pe=goog.moduleLoaderState_.moduleName}finally{O&&v.clearModuleState()}O&&goog.global.$jscomp.require.ensure([n.getPathName()],function(){v.registerEs6ModuleExports(n.path,goog.global.$jscomp.require(n.getPathName()),pe)}),v.loaded()}}var n=this;if(goog.global.CLOSURE_IMPORT_SCRIPT)x(),this.contents_&&goog.global.CLOSURE_IMPORT_SCRIPT("",this.contents_)?(this.contents_=null,v.loaded()):v.pause();else{var O=this.loadFlags.module==goog.ModuleType.ES6;this.lazyFetch_||x();var R=1<v.pending().length,U=R&&goog.DebugLoader_.IS_OLD_IE_;if(R=goog.Dependency.defer_&&(R||goog.isDocumentLoading_()),U||R)v.defer(function(){S()});else{var q=goog.global.document;if(U=goog.inHtmlDocument_()&&"ActiveXObject"in goog.global,O&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()&&!U){goog.Dependency.defer_=!0,v.pause();var te=q.onreadystatechange;q.onreadystatechange=function(){"interactive"==q.readyState&&(q.onreadystatechange=te,S(),v.resume()),"function"==typeof te&&te.apply(void 0,arguments)}}else!goog.DebugLoader_.IS_OLD_IE_&&goog.inHtmlDocument_()&&goog.isDocumentLoading_()?function D(){var ie=goog.global.document,pe=goog.Dependency.registerCallback_(function(){goog.Dependency.unregisterCallback_(pe),S()}),de=goog.getScriptNonce();de="<script"+(de?' nonce="'+de+'"':"")+">"+goog.protectScriptTag_('goog.Dependency.callback_("'+pe+'");')+"<\/script>",ie.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(de):de)}():S()}}},goog.TransformedDependency.prototype.transform=function(v){},goog.TranspiledDependency=function(v,x,S,D,n,O){goog.TransformedDependency.call(this,v,x,S,D,n),this.transpiler=O},goog.inherits(goog.TranspiledDependency,goog.TransformedDependency),goog.TranspiledDependency.prototype.transform=function(v){return this.transpiler.transpile(v,this.getPathName())},goog.PreTranspiledEs6ModuleDependency=function(v,x,S,D,n){goog.TransformedDependency.call(this,v,x,S,D,n)},goog.inherits(goog.PreTranspiledEs6ModuleDependency,goog.TransformedDependency),goog.PreTranspiledEs6ModuleDependency.prototype.transform=function(v){return v},goog.GoogModuleDependency=function(v,x,S,D,n,O,R){goog.TransformedDependency.call(this,v,x,S,D,n),this.needsTranspile_=O,this.transpiler_=R},goog.inherits(goog.GoogModuleDependency,goog.TransformedDependency),goog.GoogModuleDependency.prototype.transform=function(v){return this.needsTranspile_&&(v=this.transpiler_.transpile(v,this.getPathName())),goog.LOAD_MODULE_USING_EVAL&&void 0!==goog.global.JSON?"goog.loadModule("+goog.global.JSON.stringify(v+"\n//# sourceURL="+this.path+"\n")+");":'goog.loadModule(function(exports) {"use strict";'+v+"\n;return exports});\n//# sourceURL="+this.path+"\n"},goog.DebugLoader_.IS_OLD_IE_=!(goog.global.atob||!goog.global.document||!goog.global.document.all),goog.DebugLoader_.prototype.addDependency=function(v,x,S,D){x=x||[],v=v.replace(/\\/g,"/");var n=goog.normalizePath_(goog.basePath+v);for(D&&"boolean"!=typeof D||(D=D?{module:goog.ModuleType.GOOG}:{}),S=this.factory_.createDependency(n,v,x,S,D,goog.transpiler_.needsTranspile(D.lang||"es3",D.module)),this.dependencies_[n]=S,S=0;S<x.length;S++)this.idToPath_[x[S]]=n;this.idToPath_[v]=n},goog.DependencyFactory=function(v){this.transpiler=v},goog.DependencyFactory.prototype.createDependency=function(v,x,S,D,n,O){return n.module==goog.ModuleType.GOOG?new goog.GoogModuleDependency(v,x,S,D,n,O,this.transpiler):O?new goog.TranspiledDependency(v,x,S,D,n,this.transpiler):n.module==goog.ModuleType.ES6?"never"==goog.TRANSPILE&&goog.ASSUME_ES_MODULES_TRANSPILED?new goog.PreTranspiledEs6ModuleDependency(v,x,S,D,n):new goog.Es6ModuleDependency(v,x,S,D,n):new goog.Dependency(v,x,S,D,n)},goog.debugLoader_=new goog.DebugLoader_,goog.loadClosureDeps=function(){goog.debugLoader_.loadClosureDeps()},goog.setDependencyFactory=function(v){goog.debugLoader_.setDependencyFactory(v)},goog.TRUSTED_TYPES_POLICY_=goog.TRUSTED_TYPES_POLICY_NAME?goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#base"):null,goog.global.CLOSURE_NO_DEPS||goog.debugLoader_.loadClosureDeps(),goog.bootstrap=function(v,x){goog.debugLoader_.bootstrap(v,x)}),goog.TRUSTED_TYPES_POLICY_NAME="goog",goog.identity_=function(v){return v},goog.createTrustedTypesPolicy=function(v){var x=null,S=goog.global.trustedTypes;if(!S||!S.createPolicy)return x;try{x=S.createPolicy(v,{createHTML:goog.identity_,createScript:goog.identity_,createScriptURL:goog.identity_})}catch(D){goog.logToConsole_(D.message)}return x},goog.debug={},goog.inherits(module$contents$goog$debug$Error_DebugError,Error),module$contents$goog$debug$Error_DebugError.prototype.name="CustomError",goog.debug.Error=module$contents$goog$debug$Error_DebugError,goog.dom={},goog.dom.NodeType={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,ENTITY_REFERENCE:5,ENTITY:6,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9,DOCUMENT_TYPE:10,DOCUMENT_FRAGMENT:11,NOTATION:12},goog.asserts={},goog.asserts.ENABLE_ASSERTS=goog.DEBUG,goog.asserts.AssertionError=function(v,x){module$contents$goog$debug$Error_DebugError.call(this,goog.asserts.subs_(v,x)),this.messagePattern=v},goog.inherits(goog.asserts.AssertionError,module$contents$goog$debug$Error_DebugError),goog.asserts.AssertionError.prototype.name="AssertionError",goog.asserts.DEFAULT_ERROR_HANDLER=function(v){throw v},goog.asserts.errorHandler_=goog.asserts.DEFAULT_ERROR_HANDLER,goog.asserts.subs_=function(v,x){for(var S="",D=(v=v.split("%s")).length-1,n=0;n<D;n++)S+=v[n]+(n<x.length?x[n]:"%s");return S+v[D]},goog.asserts.doAssertFailure_=function(v,x,S,D){var n="Assertion failed";if(S){n+=": "+S;var O=D}else v&&(n+=": "+v,O=x);v=new goog.asserts.AssertionError(""+n,O||[]),goog.asserts.errorHandler_(v)},goog.asserts.setErrorHandler=function(v){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=v)},goog.asserts.assert=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&!v&&goog.asserts.doAssertFailure_("",null,x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertExists=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&null==v&&goog.asserts.doAssertFailure_("Expected to exist: %s.",[v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.fail=function(v,x){goog.asserts.ENABLE_ASSERTS&&goog.asserts.errorHandler_(new goog.asserts.AssertionError("Failure"+(v?": "+v:""),Array.prototype.slice.call(arguments,1)))},goog.asserts.assertNumber=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&"number"!=typeof v&&goog.asserts.doAssertFailure_("Expected number but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertString=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&"string"!=typeof v&&goog.asserts.doAssertFailure_("Expected string but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertFunction=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&"function"!=typeof v&&goog.asserts.doAssertFailure_("Expected function but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertObject=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&!goog.isObject(v)&&goog.asserts.doAssertFailure_("Expected object but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertArray=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&!Array.isArray(v)&&goog.asserts.doAssertFailure_("Expected array but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertBoolean=function(v,x,S){return goog.asserts.ENABLE_ASSERTS&&"boolean"!=typeof v&&goog.asserts.doAssertFailure_("Expected boolean but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertElement=function(v,x,S){return!goog.asserts.ENABLE_ASSERTS||goog.isObject(v)&&v.nodeType==goog.dom.NodeType.ELEMENT||goog.asserts.doAssertFailure_("Expected Element but got %s: %s.",[goog.typeOf(v),v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertInstanceof=function(v,x,S,D){return!goog.asserts.ENABLE_ASSERTS||v instanceof x||goog.asserts.doAssertFailure_("Expected instanceof %s but got %s.",[goog.asserts.getType_(x),goog.asserts.getType_(v)],S,Array.prototype.slice.call(arguments,3)),v},goog.asserts.assertFinite=function(v,x,S){return!goog.asserts.ENABLE_ASSERTS||"number"==typeof v&&isFinite(v)||goog.asserts.doAssertFailure_("Expected %s to be a finite number but it is not.",[v],x,Array.prototype.slice.call(arguments,2)),v},goog.asserts.assertObjectPrototypeIsIntact=function(){for(var v in Object.prototype)goog.asserts.fail(v+" should not be enumerable in Object.prototype.")},goog.asserts.getType_=function(v){return v instanceof Function?v.displayName||v.name||"unknown type name":v instanceof Object?v.constructor.displayName||v.constructor.name||Object.prototype.toString.call(v):null===v?"null":typeof v},goog.array={},goog.NATIVE_ARRAY_PROTOTYPES=goog.TRUSTED_SITE;var module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS=2012<goog.FEATURESET_YEAR;function module$contents$goog$array_peek(v){return v[v.length-1]}goog.array.ASSUME_NATIVE_FUNCTIONS=module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS,goog.array.peek=module$contents$goog$array_peek,goog.array.last=module$contents$goog$array_peek;var module$contents$goog$array_indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.indexOf)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.indexOf.call(v,x,S)}:function(v,x,S){if(S=null==S?0:0>S?Math.max(0,v.length+S):S,"string"==typeof v)return"string"!=typeof x||1!=x.length?-1:v.indexOf(x,S);for(;S<v.length;S++)if(S in v&&v[S]===x)return S;return-1};goog.array.indexOf=module$contents$goog$array_indexOf;var module$contents$goog$array_lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.lastIndexOf)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.lastIndexOf.call(v,x,S??v.length-1)}:function(v,x,S){if(0>(S=S??v.length-1)&&(S=Math.max(0,v.length+S)),"string"==typeof v)return"string"!=typeof x||1!=x.length?-1:v.lastIndexOf(x,S);for(;0<=S;S--)if(S in v&&v[S]===x)return S;return-1};goog.array.lastIndexOf=module$contents$goog$array_lastIndexOf;var module$contents$goog$array_forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.forEach)?function(v,x,S){goog.asserts.assert(null!=v.length),Array.prototype.forEach.call(v,x,S)}:function(v,x,S){for(var D=v.length,n="string"==typeof v?v.split(""):v,O=0;O<D;O++)O in n&&x.call(S,n[O],O,v)};function module$contents$goog$array_forEachRight(v,x,S){var D=v.length,n="string"==typeof v?v.split(""):v;for(--D;0<=D;--D)D in n&&x.call(S,n[D],D,v)}goog.array.forEach=module$contents$goog$array_forEach,goog.array.forEachRight=module$contents$goog$array_forEachRight;var module$contents$goog$array_filter=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.filter)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.filter.call(v,x,S)}:function(v,x,S){for(var D=v.length,n=[],O=0,R="string"==typeof v?v.split(""):v,U=0;U<D;U++)if(U in R){var q=R[U];x.call(S,q,U,v)&&(n[O++]=q)}return n};goog.array.filter=module$contents$goog$array_filter;var module$contents$goog$array_map=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.map)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.map.call(v,x,S)}:function(v,x,S){for(var D=v.length,n=Array(D),O="string"==typeof v?v.split(""):v,R=0;R<D;R++)R in O&&(n[R]=x.call(S,O[R],R,v));return n};goog.array.map=module$contents$goog$array_map;var module$contents$goog$array_reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduce)?function(v,x,S,D){return goog.asserts.assert(null!=v.length),D&&(x=goog.bind(x,D)),Array.prototype.reduce.call(v,x,S)}:function(v,x,S,D){var n=S;return module$contents$goog$array_forEach(v,function(O,R){n=x.call(D,n,O,R,v)}),n};goog.array.reduce=module$contents$goog$array_reduce;var module$contents$goog$array_reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.reduceRight)?function(v,x,S,D){return goog.asserts.assert(null!=v.length),goog.asserts.assert(null!=x),D&&(x=goog.bind(x,D)),Array.prototype.reduceRight.call(v,x,S)}:function(v,x,S,D){var n=S;return module$contents$goog$array_forEachRight(v,function(O,R){n=x.call(D,n,O,R,v)}),n};goog.array.reduceRight=module$contents$goog$array_reduceRight;var module$contents$goog$array_some=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.some)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.some.call(v,x,S)}:function(v,x,S){for(var D=v.length,n="string"==typeof v?v.split(""):v,O=0;O<D;O++)if(O in n&&x.call(S,n[O],O,v))return!0;return!1};goog.array.some=module$contents$goog$array_some;var module$contents$goog$array_every=goog.NATIVE_ARRAY_PROTOTYPES&&(module$contents$goog$array_ASSUME_NATIVE_FUNCTIONS||Array.prototype.every)?function(v,x,S){return goog.asserts.assert(null!=v.length),Array.prototype.every.call(v,x,S)}:function(v,x,S){for(var D=v.length,n="string"==typeof v?v.split(""):v,O=0;O<D;O++)if(O in n&&!x.call(S,n[O],O,v))return!1;return!0};function module$contents$goog$array_count(v,x,S){var D=0;return module$contents$goog$array_forEach(v,function(n,O,R){x.call(S,n,O,R)&&++D},S),D}function module$contents$goog$array_find(v,x,S){return 0>(x=module$contents$goog$array_findIndex(v,x,S))?null:"string"==typeof v?v.charAt(x):v[x]}function module$contents$goog$array_findIndex(v,x,S){for(var D=v.length,n="string"==typeof v?v.split(""):v,O=0;O<D;O++)if(O in n&&x.call(S,n[O],O,v))return O;return-1}function module$contents$goog$array_findRight(v,x,S){return 0>(x=module$contents$goog$array_findIndexRight(v,x,S))?null:"string"==typeof v?v.charAt(x):v[x]}function module$contents$goog$array_findIndexRight(v,x,S){var D=v.length,n="string"==typeof v?v.split(""):v;for(--D;0<=D;D--)if(D in n&&x.call(S,n[D],D,v))return D;return-1}function module$contents$goog$array_contains(v,x){return 0<=module$contents$goog$array_indexOf(v,x)}function module$contents$goog$array_isEmpty(v){return 0==v.length}function module$contents$goog$array_clear(v){if(!Array.isArray(v))for(var x=v.length-1;0<=x;x--)delete v[x];v.length=0}function module$contents$goog$array_insert(v,x){module$contents$goog$array_contains(v,x)||v.push(x)}function module$contents$goog$array_insertAt(v,x,S){module$contents$goog$array_splice(v,S,0,x)}function module$contents$goog$array_insertArrayAt(v,x,S){goog.partial(module$contents$goog$array_splice,v,S,0).apply(null,x)}function module$contents$goog$array_insertBefore(v,x,S){var D;2==arguments.length||0>(D=module$contents$goog$array_indexOf(v,S))?v.push(x):module$contents$goog$array_insertAt(v,x,D)}function module$contents$goog$array_remove(v,x){var S;return(S=0<=(x=module$contents$goog$array_indexOf(v,x)))&&module$contents$goog$array_removeAt(v,x),S}function module$contents$goog$array_removeLast(v,x){return 0<=(x=module$contents$goog$array_lastIndexOf(v,x))&&(module$contents$goog$array_removeAt(v,x),!0)}function module$contents$goog$array_removeAt(v,x){return goog.asserts.assert(null!=v.length),1==Array.prototype.splice.call(v,x,1).length}function module$contents$goog$array_removeIf(v,x,S){return 0<=(x=module$contents$goog$array_findIndex(v,x,S))&&(module$contents$goog$array_removeAt(v,x),!0)}function module$contents$goog$array_removeAllIf(v,x,S){var D=0;return module$contents$goog$array_forEachRight(v,function(n,O){x.call(S,n,O,v)&&module$contents$goog$array_removeAt(v,O)&&D++}),D}function module$contents$goog$array_concat(v){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_join(v){return Array.prototype.concat.apply([],arguments)}function module$contents$goog$array_toArray(v){var x=v.length;if(0<x){for(var S=Array(x),D=0;D<x;D++)S[D]=v[D];return S}return[]}goog.array.every=module$contents$goog$array_every,goog.array.count=module$contents$goog$array_count,goog.array.find=module$contents$goog$array_find,goog.array.findIndex=module$contents$goog$array_findIndex,goog.array.findRight=module$contents$goog$array_findRight,goog.array.findIndexRight=module$contents$goog$array_findIndexRight,goog.array.contains=module$contents$goog$array_contains,goog.array.isEmpty=module$contents$goog$array_isEmpty,goog.array.clear=module$contents$goog$array_clear,goog.array.insert=module$contents$goog$array_insert,goog.array.insertAt=module$contents$goog$array_insertAt,goog.array.insertArrayAt=module$contents$goog$array_insertArrayAt,goog.array.insertBefore=module$contents$goog$array_insertBefore,goog.array.remove=module$contents$goog$array_remove,goog.array.removeLast=module$contents$goog$array_removeLast,goog.array.removeAt=module$contents$goog$array_removeAt,goog.array.removeIf=module$contents$goog$array_removeIf,goog.array.removeAllIf=module$contents$goog$array_removeAllIf,goog.array.concat=module$contents$goog$array_concat,goog.array.join=module$contents$goog$array_join;var module$contents$goog$array_clone=goog.array.toArray=module$contents$goog$array_toArray;function module$contents$goog$array_extend(v,x){for(var S=1;S<arguments.length;S++){var D=arguments[S];if(goog.isArrayLike(D)){var n=v.length||0,O=D.length||0;v.length=n+O;for(var R=0;R<O;R++)v[n+R]=D[R]}else v.push(D)}}function module$contents$goog$array_splice(v,x,S,D){return goog.asserts.assert(null!=v.length),Array.prototype.splice.apply(v,module$contents$goog$array_slice(arguments,1))}function module$contents$goog$array_slice(v,x,S){return goog.asserts.assert(null!=v.length),2>=arguments.length?Array.prototype.slice.call(v,x):Array.prototype.slice.call(v,x,S)}function module$contents$goog$array_removeDuplicates(v,x,S){x=x||v;var D=function(q){return goog.isObject(q)?"o"+goog.getUid(q):(typeof q).charAt(0)+q};S=S||D,D={};for(var n=0,O=0;O<v.length;){var R=v[O++],U=S(R);Object.prototype.hasOwnProperty.call(D,U)||(D[U]=!0,x[n++]=R)}x.length=n}function module$contents$goog$array_binarySearch(v,x,S){return module$contents$goog$array_binarySearch_(v,S||module$contents$goog$array_defaultCompare,!1,x)}function module$contents$goog$array_binarySelect(v,x,S){return module$contents$goog$array_binarySearch_(v,x,!0,void 0,S)}function module$contents$goog$array_binarySearch_(v,x,S,D,n){for(var U,O=0,R=v.length;O<R;){var q=O+(R-O>>>1),te=S?x.call(n,v[q],q,v):x(D,v[q]);0<te?O=q+1:(R=q,U=!te)}return U?O:-O-1}function module$contents$goog$array_sort(v,x){v.sort(x||module$contents$goog$array_defaultCompare)}function module$contents$goog$array_stableSort(v,x){for(var S=Array(v.length),D=0;D<v.length;D++)S[D]={index:D,value:v[D]};var n=x||module$contents$goog$array_defaultCompare;for(module$contents$goog$array_sort(S,function(O,R){return n(O.value,R.value)||O.index-R.index}),D=0;D<v.length;D++)v[D]=S[D].value}function module$contents$goog$array_sortByKey(v,x,S){var D=S||module$contents$goog$array_defaultCompare;module$contents$goog$array_sort(v,function(n,O){return D(x(n),x(O))})}function module$contents$goog$array_sortObjectsByKey(v,x,S){module$contents$goog$array_sortByKey(v,function(D){return D[x]},S)}function module$contents$goog$array_isSorted(v,x,S){x=x||module$contents$goog$array_defaultCompare;for(var D=1;D<v.length;D++){var n=x(v[D-1],v[D]);if(0<n||0==n&&S)return!1}return!0}function module$contents$goog$array_equals(v,x,S){if(!goog.isArrayLike(v)||!goog.isArrayLike(x)||v.length!=x.length)return!1;var D=v.length;S=S||module$contents$goog$array_defaultCompareEquality;for(var n=0;n<D;n++)if(!S(v[n],x[n]))return!1;return!0}function module$contents$goog$array_compare3(v,x,S){S=S||module$contents$goog$array_defaultCompare;for(var D=Math.min(v.length,x.length),n=0;n<D;n++){var O=S(v[n],x[n]);if(0!=O)return O}return module$contents$goog$array_defaultCompare(v.length,x.length)}function module$contents$goog$array_defaultCompare(v,x){return v>x?1:v<x?-1:0}function module$contents$goog$array_inverseDefaultCompare(v,x){return-module$contents$goog$array_defaultCompare(v,x)}function module$contents$goog$array_defaultCompareEquality(v,x){return v===x}function module$contents$goog$array_binaryInsert(v,x,S){return 0>(S=module$contents$goog$array_binarySearch(v,x,S))&&(module$contents$goog$array_insertAt(v,x,-(S+1)),!0)}function module$contents$goog$array_binaryRemove(v,x,S){return 0<=(x=module$contents$goog$array_binarySearch(v,x,S))&&module$contents$goog$array_removeAt(v,x)}function module$contents$goog$array_bucket(v,x,S){for(var D={},n=0;n<v.length;n++){var O=v[n],R=x.call(S,O,n,v);void 0!==R&&(D[R]||(D[R]=[])).push(O)}return D}function module$contents$goog$array_toObject(v,x,S){var D={};return module$contents$goog$array_forEach(v,function(n,O){D[x.call(S,n,O,v)]=n}),D}function module$contents$goog$array_range(v,x,S){var D=[],n=0,O=v;if(void 0!==x&&(n=v,O=x),0>(S=S||1)*(O-n))return[];if(0<S)for(v=n;v<O;v+=S)D.push(v);else for(v=n;v>O;v+=S)D.push(v);return D}function module$contents$goog$array_repeat(v,x){for(var S=[],D=0;D<x;D++)S[D]=v;return S}function module$contents$goog$array_flatten(v){for(var x=[],S=0;S<arguments.length;S++){var D=arguments[S];if(Array.isArray(D))for(var n=0;n<D.length;n+=8192){var O=module$contents$goog$array_slice(D,n,n+8192);O=module$contents$goog$array_flatten.apply(null,O);for(var R=0;R<O.length;R++)x.push(O[R])}else x.push(D)}return x}function module$contents$goog$array_rotate(v,x){return goog.asserts.assert(null!=v.length),v.length&&(0<(x%=v.length)?Array.prototype.unshift.apply(v,v.splice(-x,x)):0>x&&Array.prototype.push.apply(v,v.splice(0,-x))),v}function module$contents$goog$array_moveItem(v,x,S){goog.asserts.assert(0<=x&&x<v.length),goog.asserts.assert(0<=S&&S<v.length),x=Array.prototype.splice.call(v,x,1),Array.prototype.splice.call(v,S,0,x[0])}function module$contents$goog$array_zip(v){if(!arguments.length)return[];for(var x=[],S=arguments[0].length,D=1;D<arguments.length;D++)arguments[D].length<S&&(S=arguments[D].length);for(D=0;D<S;D++){for(var n=[],O=0;O<arguments.length;O++)n.push(arguments[O][D]);x.push(n)}return x}function module$contents$goog$array_shuffle(v,x){x=x||Math.random;for(var S=v.length-1;0<S;S--){var D=Math.floor(x()*(S+1)),n=v[S];v[S]=v[D],v[D]=n}}function module$contents$goog$array_copyByIndex(v,x){var S=[];return module$contents$goog$array_forEach(x,function(D){S.push(v[D])}),S}function module$contents$goog$array_concatMap(v,x,S){return module$contents$goog$array_concat.apply([],module$contents$goog$array_map(v,x,S))}goog.array.clone=module$contents$goog$array_clone,goog.array.extend=module$contents$goog$array_extend,goog.array.splice=module$contents$goog$array_splice,goog.array.slice=module$contents$goog$array_slice,goog.array.removeDuplicates=module$contents$goog$array_removeDuplicates,goog.array.binarySearch=module$contents$goog$array_binarySearch,goog.array.binarySelect=module$contents$goog$array_binarySelect,goog.array.sort=module$contents$goog$array_sort,goog.array.stableSort=module$contents$goog$array_stableSort,goog.array.sortByKey=module$contents$goog$array_sortByKey,goog.array.sortObjectsByKey=module$contents$goog$array_sortObjectsByKey,goog.array.isSorted=module$contents$goog$array_isSorted,goog.array.equals=module$contents$goog$array_equals,goog.array.compare3=module$contents$goog$array_compare3,goog.array.defaultCompare=module$contents$goog$array_defaultCompare,goog.array.inverseDefaultCompare=module$contents$goog$array_inverseDefaultCompare,goog.array.defaultCompareEquality=module$contents$goog$array_defaultCompareEquality,goog.array.binaryInsert=module$contents$goog$array_binaryInsert,goog.array.binaryRemove=module$contents$goog$array_binaryRemove,goog.array.bucket=module$contents$goog$array_bucket,goog.array.toObject=module$contents$goog$array_toObject,goog.array.range=module$contents$goog$array_range,goog.array.repeat=module$contents$goog$array_repeat,goog.array.flatten=module$contents$goog$array_flatten,goog.array.rotate=module$contents$goog$array_rotate,goog.array.moveItem=module$contents$goog$array_moveItem,goog.array.zip=module$contents$goog$array_zip,goog.array.shuffle=module$contents$goog$array_shuffle,goog.array.copyByIndex=module$contents$goog$array_copyByIndex,goog.array.concatMap=module$contents$goog$array_concatMap,goog.dom.asserts={},goog.dom.asserts.assertIsLocation=function(v){if(goog.asserts.ENABLE_ASSERTS){var x=goog.dom.asserts.getWindow_(v);x&&(!v||!(v instanceof x.Location)&&v instanceof x.Element)&&goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s",goog.dom.asserts.debugStringForType_(v))}return v},goog.dom.asserts.assertIsElementType_=function(v,x){if(goog.asserts.ENABLE_ASSERTS){var S=goog.dom.asserts.getWindow_(v);S&&typeof S[x]<"u"&&(v&&(v instanceof S[x]||!(v instanceof S.Location||v instanceof S.Element))||goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); got: %s",x,goog.dom.asserts.debugStringForType_(v)))}return v},goog.dom.asserts.assertIsHTMLAnchorElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLAnchorElement")},goog.dom.asserts.assertIsHTMLButtonElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLButtonElement")},goog.dom.asserts.assertIsHTMLLinkElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLLinkElement")},goog.dom.asserts.assertIsHTMLImageElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLImageElement")},goog.dom.asserts.assertIsHTMLAudioElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLAudioElement")},goog.dom.asserts.assertIsHTMLVideoElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLVideoElement")},goog.dom.asserts.assertIsHTMLInputElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLInputElement")},goog.dom.asserts.assertIsHTMLTextAreaElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLTextAreaElement")},goog.dom.asserts.assertIsHTMLCanvasElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLCanvasElement")},goog.dom.asserts.assertIsHTMLEmbedElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLEmbedElement")},goog.dom.asserts.assertIsHTMLFormElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLFormElement")},goog.dom.asserts.assertIsHTMLFrameElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLFrameElement")},goog.dom.asserts.assertIsHTMLIFrameElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLIFrameElement")},goog.dom.asserts.assertIsHTMLObjectElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLObjectElement")},goog.dom.asserts.assertIsHTMLScriptElement=function(v){return goog.dom.asserts.assertIsElementType_(v,"HTMLScriptElement")},goog.dom.asserts.debugStringForType_=function(v){if(!goog.isObject(v))return void 0===v?"undefined":null===v?"null":typeof v;try{return v.constructor.displayName||v.constructor.name||Object.prototype.toString.call(v)}catch{return"<object could not be stringified>"}},goog.dom.asserts.getWindow_=function(v){try{var x=v&&v.ownerDocument,S=x&&(x.defaultView||x.parentWindow);if((S=S||goog.global).Element&&S.Location)return S}catch{}return null},goog.dom.HtmlElement=function(){},goog.functions={},goog.functions.constant=function(v){return function(){return v}},goog.functions.FALSE=function(){return!1},goog.functions.TRUE=function(){return!0},goog.functions.NULL=function(){return null},goog.functions.identity=function(v,x){return v},goog.functions.error=function(v){return function(){throw Error(v)}},goog.functions.fail=function(v){return function(){throw v}},goog.functions.lock=function(v,x){return x=x||0,function(){return v.apply(this,Array.prototype.slice.call(arguments,0,x))}},goog.functions.nth=function(v){return function(){return arguments[v]}},goog.functions.partialRight=function(v,x){var S=Array.prototype.slice.call(arguments,1);return function(){var D=this;D===goog.global&&(D=void 0);var n=Array.prototype.slice.call(arguments);return n.push.apply(n,S),v.apply(D,n)}},goog.functions.withReturnValue=function(v,x){return goog.functions.sequence(v,goog.functions.constant(x))},goog.functions.equalTo=function(v,x){return function(S){return x?v==S:v===S}},goog.functions.compose=function(v,x){var S=arguments,D=S.length;return function(){var n;D&&(n=S[D-1].apply(this,arguments));for(var O=D-2;0<=O;O--)n=S[O].call(this,n);return n}},goog.functions.sequence=function(v){var x=arguments,S=x.length;return function(){for(var D,n=0;n<S;n++)D=x[n].apply(this,arguments);return D}},goog.functions.and=function(v){var x=arguments,S=x.length;return function(){for(var D=0;D<S;D++)if(!x[D].apply(this,arguments))return!1;return!0}},goog.functions.or=function(v){var x=arguments,S=x.length;return function(){for(var D=0;D<S;D++)if(x[D].apply(this,arguments))return!0;return!1}},goog.functions.not=function(v){return function(){return!v.apply(this,arguments)}},goog.functions.create=function(v,x){var S=function(){};return S.prototype=v.prototype,S=new S,v.apply(S,Array.prototype.slice.call(arguments,1)),S},goog.functions.CACHE_RETURN_VALUE=!0,goog.functions.cacheReturnValue=function(v){var S,x=!1;return function(){return goog.functions.CACHE_RETURN_VALUE?(x||(S=v(),x=!0),S):v()}},goog.functions.once=function(v){var x=v;return function(){if(x){var S=x;x=null,S()}}},goog.functions.debounce=function(v,x,S){var D=0;return function(n){goog.global.clearTimeout(D);var O=arguments;D=goog.global.setTimeout(function(){v.apply(S,O)},x)}},goog.functions.throttle=function(v,x,S){var D=0,n=!1,O=[],R=function(){D=0,n&&(n=!1,U())},U=function(){D=goog.global.setTimeout(R,x),v.apply(S,O)};return function(q){O=arguments,D?n=!0:U()}},goog.functions.rateLimit=function(v,x,S){var D=0,n=function(){D=0};return function(O){D||(D=goog.global.setTimeout(n,x),v.apply(S,arguments))}},goog.functions.isFunction=function(v){return"function"==typeof v},goog.dom.TagName=function(){},goog.dom.TagName.cast=function(v,x){return v},goog.dom.TagName.prototype.toString=function(){},goog.dom.TagName.A="A",goog.dom.TagName.ABBR="ABBR",goog.dom.TagName.ACRONYM="ACRONYM",goog.dom.TagName.ADDRESS="ADDRESS",goog.dom.TagName.APPLET="APPLET",goog.dom.TagName.AREA="AREA",goog.dom.TagName.ARTICLE="ARTICLE",goog.dom.TagName.ASIDE="ASIDE",goog.dom.TagName.AUDIO="AUDIO",goog.dom.TagName.B="B",goog.dom.TagName.BASE="BASE",goog.dom.TagName.BASEFONT="BASEFONT",goog.dom.TagName.BDI="BDI",goog.dom.TagName.BDO="BDO",goog.dom.TagName.BIG="BIG",goog.dom.TagName.BLOCKQUOTE="BLOCKQUOTE",goog.dom.TagName.BODY="BODY",goog.dom.TagName.BR="BR",goog.dom.TagName.BUTTON="BUTTON",goog.dom.TagName.CANVAS="CANVAS",goog.dom.TagName.CAPTION="CAPTION",goog.dom.TagName.CENTER="CENTER",goog.dom.TagName.CITE="CITE",goog.dom.TagName.CODE="CODE",goog.dom.TagName.COL="COL",goog.dom.TagName.COLGROUP="COLGROUP",goog.dom.TagName.COMMAND="COMMAND",goog.dom.TagName.DATA="DATA",goog.dom.TagName.DATALIST="DATALIST",goog.dom.TagName.DD="DD",goog.dom.TagName.DEL="DEL",goog.dom.TagName.DETAILS="DETAILS",goog.dom.TagName.DFN="DFN",goog.dom.TagName.DIALOG="DIALOG",goog.dom.TagName.DIR="DIR",goog.dom.TagName.DIV="DIV",goog.dom.TagName.DL="DL",goog.dom.TagName.DT="DT",goog.dom.TagName.EM="EM",goog.dom.TagName.EMBED="EMBED",goog.dom.TagName.FIELDSET="FIELDSET",goog.dom.TagName.FIGCAPTION="FIGCAPTION",goog.dom.TagName.FIGURE="FIGURE",goog.dom.TagName.FONT="FONT",goog.dom.TagName.FOOTER="FOOTER",goog.dom.TagName.FORM="FORM",goog.dom.TagName.FRAME="FRAME",goog.dom.TagName.FRAMESET="FRAMESET",goog.dom.TagName.H1="H1",goog.dom.TagName.H2="H2",goog.dom.TagName.H3="H3",goog.dom.TagName.H4="H4",goog.dom.TagName.H5="H5",goog.dom.TagName.H6="H6",goog.dom.TagName.HEAD="HEAD",goog.dom.TagName.HEADER="HEADER",goog.dom.TagName.HGROUP="HGROUP",goog.dom.TagName.HR="HR",goog.dom.TagName.HTML="HTML",goog.dom.TagName.I="I",goog.dom.TagName.IFRAME="IFRAME",goog.dom.TagName.IMG="IMG",goog.dom.TagName.INPUT="INPUT",goog.dom.TagName.INS="INS",goog.dom.TagName.ISINDEX="ISINDEX",goog.dom.TagName.KBD="KBD",goog.dom.TagName.KEYGEN="KEYGEN",goog.dom.TagName.LABEL="LABEL",goog.dom.TagName.LEGEND="LEGEND",goog.dom.TagName.LI="LI",goog.dom.TagName.LINK="LINK",goog.dom.TagName.MAIN="MAIN",goog.dom.TagName.MAP="MAP",goog.dom.TagName.MARK="MARK",goog.dom.TagName.MATH="MATH",goog.dom.TagName.MENU="MENU",goog.dom.TagName.MENUITEM="MENUITEM",goog.dom.TagName.META="META",goog.dom.TagName.METER="METER",goog.dom.TagName.NAV="NAV",goog.dom.TagName.NOFRAMES="NOFRAMES",goog.dom.TagName.NOSCRIPT="NOSCRIPT",goog.dom.TagName.OBJECT="OBJECT",goog.dom.TagName.OL="OL",goog.dom.TagName.OPTGROUP="OPTGROUP",goog.dom.TagName.OPTION="OPTION",goog.dom.TagName.OUTPUT="OUTPUT",goog.dom.TagName.P="P",goog.dom.TagName.PARAM="PARAM",goog.dom.TagName.PICTURE="PICTURE",goog.dom.TagName.PRE="PRE",goog.dom.TagName.PROGRESS="PROGRESS",goog.dom.TagName.Q="Q",goog.dom.TagName.RP="RP",goog.dom.TagName.RT="RT",goog.dom.TagName.RTC="RTC",goog.dom.TagName.RUBY="RUBY",goog.dom.TagName.S="S",goog.dom.TagName.SAMP="SAMP",goog.dom.TagName.SCRIPT="SCRIPT",goog.dom.TagName.SECTION="SECTION",goog.dom.TagName.SELECT="SELECT",goog.dom.TagName.SMALL="SMALL",goog.dom.TagName.SOURCE="SOURCE",goog.dom.TagName.SPAN="SPAN",goog.dom.TagName.STRIKE="STRIKE",goog.dom.TagName.STRONG="STRONG",goog.dom.TagName.STYLE="STYLE",goog.dom.TagName.SUB="SUB",goog.dom.TagName.SUMMARY="SUMMARY",goog.dom.TagName.SUP="SUP",goog.dom.TagName.SVG="SVG",goog.dom.TagName.TABLE="TABLE",goog.dom.TagName.TBODY="TBODY",goog.dom.TagName.TD="TD",goog.dom.TagName.TEMPLATE="TEMPLATE",goog.dom.TagName.TEXTAREA="TEXTAREA",goog.dom.TagName.TFOOT="TFOOT",goog.dom.TagName.TH="TH",goog.dom.TagName.THEAD="THEAD",goog.dom.TagName.TIME="TIME",goog.dom.TagName.TITLE="TITLE",goog.dom.TagName.TR="TR",goog.dom.TagName.TRACK="TRACK",goog.dom.TagName.TT="TT",goog.dom.TagName.U="U",goog.dom.TagName.UL="UL",goog.dom.TagName.VAR="VAR",goog.dom.TagName.VIDEO="VIDEO",goog.dom.TagName.WBR="WBR",goog.object={},goog.object.forEach=function(v,x,S){for(var D in v)x.call(S,v[D],D,v)},goog.object.filter=function(v,x,S){var n,D={};for(n in v)x.call(S,v[n],n,v)&&(D[n]=v[n]);return D},goog.object.map=function(v,x,S){var n,D={};for(n in v)D[n]=x.call(S,v[n],n,v);return D},goog.object.some=function(v,x,S){for(var D in v)if(x.call(S,v[D],D,v))return!0;return!1},goog.object.every=function(v,x,S){for(var D in v)if(!x.call(S,v[D],D,v))return!1;return!0},goog.object.getCount=function(v){var S,x=0;for(S in v)x++;return x},goog.object.getAnyKey=function(v){for(var x in v)return x},goog.object.getAnyValue=function(v){for(var x in v)return v[x]},goog.object.contains=function(v,x){return goog.object.containsValue(v,x)},goog.object.getValues=function(v){var D,x=[],S=0;for(D in v)x[S++]=v[D];return x},goog.object.getKeys=function(v){var D,x=[],S=0;for(D in v)x[S++]=D;return x},goog.object.getValueByKeys=function(v,x){var S=goog.isArrayLike(x),D=S?x:arguments;for(S=S?0:1;S<D.length;S++){if(null==v)return;v=v[D[S]]}return v},goog.object.containsKey=function(v,x){return null!==v&&x in v},goog.object.containsValue=function(v,x){for(var S in v)if(v[S]==x)return!0;return!1},goog.object.findKey=function(v,x,S){for(var D in v)if(x.call(S,v[D],D,v))return D},goog.object.findValue=function(v,x,S){return(x=goog.object.findKey(v,x,S))&&v[x]},goog.object.isEmpty=function(v){for(var x in v)return!1;return!0},goog.object.clear=function(v){for(var x in v)delete v[x]},goog.object.remove=function(v,x){var S;return(S=x in v)&&delete v[x],S},goog.object.add=function(v,x,S){if(null!==v&&x in v)throw Error('The object already contains the key "'+x+'"');goog.object.set(v,x,S)},goog.object.get=function(v,x,S){return null!==v&&x in v?v[x]:S},goog.object.set=function(v,x,S){v[x]=S},goog.object.setIfUndefined=function(v,x,S){return x in v?v[x]:v[x]=S},goog.object.setWithReturnValueIfNotSet=function(v,x,S){return x in v?v[x]:(S=S(),v[x]=S)},goog.object.equals=function(v,x){for(var S in v)if(!(S in x)||v[S]!==x[S])return!1;for(var D in x)if(!(D in v))return!1;return!0},goog.object.clone=function(v){var S,x={};for(S in v)x[S]=v[S];return x},goog.object.unsafeClone=function(v){if(!v||"object"!=typeof v)return v;if("function"==typeof v.clone)return v.clone();var S,x=Array.isArray(v)?[]:"function"!=typeof ArrayBuffer||"function"!=typeof ArrayBuffer.isView||!ArrayBuffer.isView(v)||v instanceof DataView?{}:new v.constructor(v.length);for(S in v)x[S]=goog.object.unsafeClone(v[S]);return x},goog.object.transpose=function(v){var S,x={};for(S in v)x[v[S]]=S;return x},goog.object.PROTOTYPE_FIELDS_="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),goog.object.extend=function(v,x){for(var S,D,n=1;n<arguments.length;n++){for(S in D=arguments[n])v[S]=D[S];for(var O=0;O<goog.object.PROTOTYPE_FIELDS_.length;O++)S=goog.object.PROTOTYPE_FIELDS_[O],Object.prototype.hasOwnProperty.call(D,S)&&(v[S]=D[S])}},goog.object.create=function(v){var x=arguments.length;if(1==x&&Array.isArray(arguments[0]))return goog.object.create.apply(null,arguments[0]);if(x%2)throw Error("Uneven number of arguments");for(var S={},D=0;D<x;D+=2)S[arguments[D]]=arguments[D+1];return S},goog.object.createSet=function(v){var x=arguments.length;if(1==x&&Array.isArray(arguments[0]))return goog.object.createSet.apply(null,arguments[0]);for(var S={},D=0;D<x;D++)S[arguments[D]]=!0;return S},goog.object.createImmutableView=function(v){var x=v;return Object.isFrozen&&!Object.isFrozen(v)&&(x=Object.create(v),Object.freeze(x)),x},goog.object.isImmutableView=function(v){return!!Object.isFrozen&&Object.isFrozen(v)},goog.object.getAllPropertyNames=function(v,x,S){if(!v)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return goog.object.getKeys(v);for(var D={};v&&(v!==Object.prototype||x)&&(v!==Function.prototype||S);){for(var n=Object.getOwnPropertyNames(v),O=0;O<n.length;O++)D[n[O]]=!0;v=Object.getPrototypeOf(v)}return goog.object.getKeys(D)},goog.object.getSuperClass=function(v){return(v=Object.getPrototypeOf(v.prototype))&&v.constructor},goog.dom.tags={},goog.dom.tags.VOID_TAGS_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},goog.dom.tags.isVoidTag=function(v){return!0===goog.dom.tags.VOID_TAGS_[v]},goog.string={},goog.string.TypedString=function(){},goog.string.Const=function(v,x){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=v===goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_&&x||"",this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=goog.string.Const.TYPE_MARKER_},goog.string.Const.prototype.implementsGoogStringTypedString=!0,goog.string.Const.prototype.getTypedStringValue=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_},goog.DEBUG&&(goog.string.Const.prototype.toString=function(){return"Const{"+this.stringConstValueWithSecurityContract__googStringSecurityPrivate_+"}"}),goog.string.Const.unwrap=function(v){return v instanceof goog.string.Const&&v.constructor===goog.string.Const&&v.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===goog.string.Const.TYPE_MARKER_?v.stringConstValueWithSecurityContract__googStringSecurityPrivate_:(goog.asserts.fail("expected object of type Const, got '"+v+"'"),"type_error:Const")},goog.string.Const.from=function(v){return new goog.string.Const(goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_,v)},goog.string.Const.TYPE_MARKER_={},goog.string.Const.GOOG_STRING_CONSTRUCTOR_TOKEN_PRIVATE_={},goog.string.Const.EMPTY=goog.string.Const.from(""),goog.html={},goog.html.trustedtypes={},goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse=function(){return goog.TRUSTED_TYPES_POLICY_NAME?(void 0===goog.html.trustedtypes.cachedPolicy_&&(goog.html.trustedtypes.cachedPolicy_=goog.createTrustedTypesPolicy(goog.TRUSTED_TYPES_POLICY_NAME+"#html")),goog.html.trustedtypes.cachedPolicy_):null};var module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeScript_SafeScript=function(v,x){this.privateDoNotAccessOrElseSafeScriptWrappedValue_=x===module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE?v:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeScript_SafeScript.fromConstant=function(v){return 0===(v=goog.string.Const.unwrap(v)).length?module$contents$goog$html$SafeScript_SafeScript.EMPTY:module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(v)},module$contents$goog$html$SafeScript_SafeScript.fromConstantAndArgs=function(v,x){for(var S=[],D=1;D<arguments.length;D++)S.push(module$contents$goog$html$SafeScript_SafeScript.stringify_(arguments[D]));return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse("("+goog.string.Const.unwrap(v)+")("+S.join(", ")+");")},module$contents$goog$html$SafeScript_SafeScript.fromJson=function(v){return module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(module$contents$goog$html$SafeScript_SafeScript.stringify_(v))},module$contents$goog$html$SafeScript_SafeScript.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeScriptWrappedValue_.toString()},module$contents$goog$html$SafeScript_SafeScript.unwrap=function(v){return module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(v).toString()},module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript=function(v){return v instanceof module$contents$goog$html$SafeScript_SafeScript&&v.constructor===module$contents$goog$html$SafeScript_SafeScript?v.privateDoNotAccessOrElseSafeScriptWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeScript, got '"+v+"' of type "+goog.typeOf(v)),"type_error:SafeScript")},module$contents$goog$html$SafeScript_SafeScript.stringify_=function(v){return JSON.stringify(v).replace(/</g,"\\x3c")},module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse=function(v){var x=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return v=x?x.createScript(v):v,new module$contents$goog$html$SafeScript_SafeScript(v,module$contents$goog$html$SafeScript_CONSTRUCTOR_TOKEN_PRIVATE)},goog.DEBUG&&(module$contents$goog$html$SafeScript_SafeScript.prototype.toString=function(){return"SafeScript{"+this.privateDoNotAccessOrElseSafeScriptWrappedValue_+"}"}),module$contents$goog$html$SafeScript_SafeScript.EMPTY=module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeScript=module$contents$goog$html$SafeScript_SafeScript,goog.fs={},goog.fs.url={},goog.fs.url.createObjectUrl=function(v){return goog.fs.url.getUrlObject_().createObjectURL(v)},goog.fs.url.revokeObjectUrl=function(v){goog.fs.url.getUrlObject_().revokeObjectURL(v)},goog.fs.url.UrlObject_=function(){},goog.fs.url.UrlObject_.prototype.createObjectURL=function(v){},goog.fs.url.UrlObject_.prototype.revokeObjectURL=function(v){},goog.fs.url.getUrlObject_=function(){var v=goog.fs.url.findUrlObject_();if(null!=v)return v;throw Error("This browser doesn't seem to support blob URLs")},goog.fs.url.findUrlObject_=function(){return void 0!==goog.global.URL&&void 0!==goog.global.URL.createObjectURL?goog.global.URL:void 0!==goog.global.webkitURL&&void 0!==goog.global.webkitURL.createObjectURL?goog.global.webkitURL:void 0!==goog.global.createObjectURL?goog.global:null},goog.fs.url.browserSupportsObjectUrls=function(){return null!=goog.fs.url.findUrlObject_()},goog.fs.blob={},goog.fs.blob.getBlob=function(v){var x=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==x){x=new x;for(var S=0;S<arguments.length;S++)x.append(arguments[S]);return x.getBlob()}return goog.fs.blob.getBlobWithProperties(module$contents$goog$array_toArray(arguments))},goog.fs.blob.getBlobWithProperties=function(v,x,S){var D=goog.global.BlobBuilder||goog.global.WebKitBlobBuilder;if(void 0!==D){D=new D;for(var n=0;n<v.length;n++)D.append(v[n],S);return D.getBlob(x)}if(void 0!==goog.global.Blob)return D={},x&&(D.type=x),S&&(D.endings=S),new Blob(v,D);throw Error("This browser doesn't seem to support creating Blobs")},goog.i18n={},goog.i18n.bidi={},goog.i18n.bidi.FORCE_RTL=!1,goog.i18n.bidi.IS_RTL=goog.i18n.bidi.FORCE_RTL||("ar"==goog.LOCALE.substring(0,2).toLowerCase()||"fa"==goog.LOCALE.substring(0,2).toLowerCase()||"he"==goog.LOCALE.substring(0,2).toLowerCase()||"iw"==goog.LOCALE.substring(0,2).toLowerCase()||"ps"==goog.LOCALE.substring(0,2).toLowerCase()||"sd"==goog.LOCALE.substring(0,2).toLowerCase()||"ug"==goog.LOCALE.substring(0,2).toLowerCase()||"ur"==goog.LOCALE.substring(0,2).toLowerCase()||"yi"==goog.LOCALE.substring(0,2).toLowerCase())&&(2==goog.LOCALE.length||"-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))||3<=goog.LOCALE.length&&"ckb"==goog.LOCALE.substring(0,3).toLowerCase()&&(3==goog.LOCALE.length||"-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))||7<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(2,3)||"_"==goog.LOCALE.substring(2,3))&&("adlm"==goog.LOCALE.substring(3,7).toLowerCase()||"arab"==goog.LOCALE.substring(3,7).toLowerCase()||"hebr"==goog.LOCALE.substring(3,7).toLowerCase()||"nkoo"==goog.LOCALE.substring(3,7).toLowerCase()||"rohg"==goog.LOCALE.substring(3,7).toLowerCase()||"thaa"==goog.LOCALE.substring(3,7).toLowerCase())||8<=goog.LOCALE.length&&("-"==goog.LOCALE.substring(3,4)||"_"==goog.LOCALE.substring(3,4))&&("adlm"==goog.LOCALE.substring(4,8).toLowerCase()||"arab"==goog.LOCALE.substring(4,8).toLowerCase()||"hebr"==goog.LOCALE.substring(4,8).toLowerCase()||"nkoo"==goog.LOCALE.substring(4,8).toLowerCase()||"rohg"==goog.LOCALE.substring(4,8).toLowerCase()||"thaa"==goog.LOCALE.substring(4,8).toLowerCase()),goog.i18n.bidi.Format={LRE:"\u202a",RLE:"\u202b",PDF:"\u202c",LRM:"\u200e",RLM:"\u200f"},goog.i18n.bidi.Dir={LTR:1,RTL:-1,NEUTRAL:0},goog.i18n.bidi.RIGHT="right",goog.i18n.bidi.LEFT="left",goog.i18n.bidi.I18N_RIGHT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.LEFT:goog.i18n.bidi.RIGHT,goog.i18n.bidi.I18N_LEFT=goog.i18n.bidi.IS_RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,goog.i18n.bidi.toDir=function(v,x){return"number"==typeof v?0<v?goog.i18n.bidi.Dir.LTR:0>v?goog.i18n.bidi.Dir.RTL:x?null:goog.i18n.bidi.Dir.NEUTRAL:null==v?null:v?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.ltrChars_="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",goog.i18n.bidi.rtlChars_="\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc",goog.i18n.bidi.htmlSkipReg_=/<[^>]*>|&[^;]+;/g,goog.i18n.bidi.stripHtmlIfNeeded_=function(v,x){return x?v.replace(goog.i18n.bidi.htmlSkipReg_,""):v},goog.i18n.bidi.rtlCharReg_=new RegExp("["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.ltrCharReg_=new RegExp("["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.hasAnyRtl=function(v,x){return goog.i18n.bidi.rtlCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.hasRtlChar=goog.i18n.bidi.hasAnyRtl,goog.i18n.bidi.hasAnyLtr=function(v,x){return goog.i18n.bidi.ltrCharReg_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.ltrRe_=new RegExp("^["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlRe_=new RegExp("^["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.isRtlChar=function(v){return goog.i18n.bidi.rtlRe_.test(v)},goog.i18n.bidi.isLtrChar=function(v){return goog.i18n.bidi.ltrRe_.test(v)},goog.i18n.bidi.isNeutralChar=function(v){return!goog.i18n.bidi.isLtrChar(v)&&!goog.i18n.bidi.isRtlChar(v)},goog.i18n.bidi.ltrDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.rtlChars_+"]*["+goog.i18n.bidi.ltrChars_+"]"),goog.i18n.bidi.rtlDirCheckRe_=new RegExp("^[^"+goog.i18n.bidi.ltrChars_+"]*["+goog.i18n.bidi.rtlChars_+"]"),goog.i18n.bidi.startsWithRtl=function(v,x){return goog.i18n.bidi.rtlDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.isRtlText=goog.i18n.bidi.startsWithRtl,goog.i18n.bidi.startsWithLtr=function(v,x){return goog.i18n.bidi.ltrDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.isLtrText=goog.i18n.bidi.startsWithLtr,goog.i18n.bidi.isRequiredLtrRe_=/^http:\/\/.*/,goog.i18n.bidi.isNeutralText=function(v,x){return v=goog.i18n.bidi.stripHtmlIfNeeded_(v,x),goog.i18n.bidi.isRequiredLtrRe_.test(v)||!goog.i18n.bidi.hasAnyLtr(v)&&!goog.i18n.bidi.hasAnyRtl(v)},goog.i18n.bidi.ltrExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.ltrChars_+"][^"+goog.i18n.bidi.rtlChars_+"]*$"),goog.i18n.bidi.rtlExitDirCheckRe_=new RegExp("["+goog.i18n.bidi.rtlChars_+"][^"+goog.i18n.bidi.ltrChars_+"]*$"),goog.i18n.bidi.endsWithLtr=function(v,x){return goog.i18n.bidi.ltrExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.isLtrExitText=goog.i18n.bidi.endsWithLtr,goog.i18n.bidi.endsWithRtl=function(v,x){return goog.i18n.bidi.rtlExitDirCheckRe_.test(goog.i18n.bidi.stripHtmlIfNeeded_(v,x))},goog.i18n.bidi.isRtlExitText=goog.i18n.bidi.endsWithRtl,goog.i18n.bidi.rtlLocalesRe_=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,goog.i18n.bidi.isRtlLanguage=function(v){return goog.i18n.bidi.rtlLocalesRe_.test(v)},goog.i18n.bidi.bracketGuardTextRe_=/(\(.*?\)+)|(\[.*?\]+)|(\{.*?\}+)|(<.*?>+)/g,goog.i18n.bidi.guardBracketInText=function(v,x){return x=(void 0===x?goog.i18n.bidi.hasAnyRtl(v):x)?goog.i18n.bidi.Format.RLM:goog.i18n.bidi.Format.LRM,v.replace(goog.i18n.bidi.bracketGuardTextRe_,x+"$&"+x)},goog.i18n.bidi.enforceRtlInHtml=function(v){return"<"==v.charAt(0)?v.replace(/<\w+/,"$& dir=rtl"):"\n<span dir=rtl>"+v+"</span>"},goog.i18n.bidi.enforceRtlInText=function(v){return goog.i18n.bidi.Format.RLE+v+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.enforceLtrInHtml=function(v){return"<"==v.charAt(0)?v.replace(/<\w+/,"$& dir=ltr"):"\n<span dir=ltr>"+v+"</span>"},goog.i18n.bidi.enforceLtrInText=function(v){return goog.i18n.bidi.Format.LRE+v+goog.i18n.bidi.Format.PDF},goog.i18n.bidi.dimensionsRe_=/:\s*([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)\s+([.\d][.\w]*)/g,goog.i18n.bidi.leftRe_=/left/gi,goog.i18n.bidi.rightRe_=/right/gi,goog.i18n.bidi.tempRe_=/%%%%/g,goog.i18n.bidi.mirrorCSS=function(v){return v.replace(goog.i18n.bidi.dimensionsRe_,":$1 $4 $3 $2").replace(goog.i18n.bidi.leftRe_,"%%%%").replace(goog.i18n.bidi.rightRe_,goog.i18n.bidi.LEFT).replace(goog.i18n.bidi.tempRe_,goog.i18n.bidi.RIGHT)},goog.i18n.bidi.doubleQuoteSubstituteRe_=/([\u0591-\u05f2])"/g,goog.i18n.bidi.singleQuoteSubstituteRe_=/([\u0591-\u05f2])'/g,goog.i18n.bidi.normalizeHebrewQuote=function(v){return v.replace(goog.i18n.bidi.doubleQuoteSubstituteRe_,"$1\u05f4").replace(goog.i18n.bidi.singleQuoteSubstituteRe_,"$1\u05f3")},goog.i18n.bidi.wordSeparatorRe_=/\s+/,goog.i18n.bidi.hasNumeralsRe_=/[\d\u06f0-\u06f9]/,goog.i18n.bidi.rtlDetectionThreshold_=.4,goog.i18n.bidi.estimateDirection=function(v,x){var S=0,D=0,n=!1;for(v=goog.i18n.bidi.stripHtmlIfNeeded_(v,x).split(goog.i18n.bidi.wordSeparatorRe_),x=0;x<v.length;x++){var O=v[x];goog.i18n.bidi.startsWithRtl(O)?(S++,D++):goog.i18n.bidi.isRequiredLtrRe_.test(O)?n=!0:goog.i18n.bidi.hasAnyLtr(O)?D++:goog.i18n.bidi.hasNumeralsRe_.test(O)&&(n=!0)}return 0==D?n?goog.i18n.bidi.Dir.LTR:goog.i18n.bidi.Dir.NEUTRAL:S/D>goog.i18n.bidi.rtlDetectionThreshold_?goog.i18n.bidi.Dir.RTL:goog.i18n.bidi.Dir.LTR},goog.i18n.bidi.detectRtlDirectionality=function(v,x){return goog.i18n.bidi.estimateDirection(v,x)==goog.i18n.bidi.Dir.RTL},goog.i18n.bidi.setElementDirAndAlign=function(v,x){v&&(x=goog.i18n.bidi.toDir(x))&&(v.style.textAlign=x==goog.i18n.bidi.Dir.RTL?goog.i18n.bidi.RIGHT:goog.i18n.bidi.LEFT,v.dir=x==goog.i18n.bidi.Dir.RTL?"rtl":"ltr")},goog.i18n.bidi.setElementDirByTextDirectionality=function(v,x){switch(goog.i18n.bidi.estimateDirection(x)){case goog.i18n.bidi.Dir.LTR:"ltr"!==v.dir&&(v.dir="ltr");break;case goog.i18n.bidi.Dir.RTL:"rtl"!==v.dir&&(v.dir="rtl");break;default:v.removeAttribute("dir")}},goog.i18n.bidi.DirectionalString=function(){},goog.html.TrustedResourceUrl=function(v,x){this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_=x===goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_?v:""},goog.html.TrustedResourceUrl.prototype.implementsGoogStringTypedString=!0,goog.html.TrustedResourceUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_.toString()},goog.html.TrustedResourceUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.TrustedResourceUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.html.TrustedResourceUrl.prototype.cloneWithParams=function(v,x){var S=goog.html.TrustedResourceUrl.unwrap(this),D=(S=goog.html.TrustedResourceUrl.URL_PARAM_PARSER_.exec(S))[3]||"";return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(S[1]+goog.html.TrustedResourceUrl.stringifyParams_("?",S[2]||"",v)+goog.html.TrustedResourceUrl.stringifyParams_("#",D,x))},goog.DEBUG&&(goog.html.TrustedResourceUrl.prototype.toString=function(){return"TrustedResourceUrl{"+this.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_+"}"}),goog.html.TrustedResourceUrl.unwrap=function(v){return goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(v).toString()},goog.html.TrustedResourceUrl.unwrapTrustedScriptURL=function(v){return v instanceof goog.html.TrustedResourceUrl&&v.constructor===goog.html.TrustedResourceUrl?v.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue_:(goog.asserts.fail("expected object of type TrustedResourceUrl, got '"+v+"' of type "+goog.typeOf(v)),"type_error:TrustedResourceUrl")},goog.html.TrustedResourceUrl.format=function(v,x){var S=goog.string.Const.unwrap(v);if(!goog.html.TrustedResourceUrl.BASE_URL_.test(S))throw Error("Invalid TrustedResourceUrl format: "+S);return v=S.replace(goog.html.TrustedResourceUrl.FORMAT_MARKER_,function(D,n){if(!Object.prototype.hasOwnProperty.call(x,n))throw Error('Found marker, "'+n+'", in format string, "'+S+'", but no valid label mapping found in args: '+JSON.stringify(x));return(D=x[n])instanceof goog.string.Const?goog.string.Const.unwrap(D):encodeURIComponent(String(D))}),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.TrustedResourceUrl.FORMAT_MARKER_=/%{(\w+)}/g,goog.html.TrustedResourceUrl.BASE_URL_=/^((https:)?\/\/[0-9a-z.:[\]-]+\/|\/[^/\\]|[^:/\\%]+\/|[^:/\\%]*[?#]|about:blank#)/i,goog.html.TrustedResourceUrl.URL_PARAM_PARSER_=/^([^?#]*)(\?[^#]*)?(#[\s\S]*)?/,goog.html.TrustedResourceUrl.formatWithParams=function(v,x,S,D){return goog.html.TrustedResourceUrl.format(v,x).cloneWithParams(S,D)},goog.html.TrustedResourceUrl.fromConstant=function(v){return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(v))},goog.html.TrustedResourceUrl.fromConstants=function(v){for(var x="",S=0;S<v.length;S++)x+=goog.string.Const.unwrap(v[S]);return goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(x)},goog.html.TrustedResourceUrl.fromSafeScript=function(v){return v=goog.fs.blob.getBlobWithProperties([module$contents$goog$html$SafeScript_SafeScript.unwrap(v)],"text/javascript"),v=goog.fs.url.createObjectUrl(v),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse=function(v){var x=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return v=x?x.createScriptURL(v):v,new goog.html.TrustedResourceUrl(v,goog.html.TrustedResourceUrl.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.TrustedResourceUrl.stringifyParams_=function(v,x,S){if(null==S)return x;if("string"==typeof S)return S?v+encodeURIComponent(S):"";for(var D in S)if(Object.prototype.hasOwnProperty.call(S,D)){var n=S[D];n=Array.isArray(n)?n:[n];for(var O=0;O<n.length;O++){var R=n[O];null!=R&&(x||(x=v),x+=(x.length>v.length?"&":"")+encodeURIComponent(D)+"="+encodeURIComponent(String(R)))}}return x},goog.string.internal={},goog.string.internal.startsWith=function(v,x){return 0==v.lastIndexOf(x,0)},goog.string.internal.endsWith=function(v,x){var S=v.length-x.length;return 0<=S&&v.indexOf(x,S)==S},goog.string.internal.caseInsensitiveStartsWith=function(v,x){return 0==goog.string.internal.caseInsensitiveCompare(x,v.substr(0,x.length))},goog.string.internal.caseInsensitiveEndsWith=function(v,x){return 0==goog.string.internal.caseInsensitiveCompare(x,v.substr(v.length-x.length,x.length))},goog.string.internal.caseInsensitiveEquals=function(v,x){return v.toLowerCase()==x.toLowerCase()},goog.string.internal.isEmptyOrWhitespace=function(v){return/^[\s\xa0]*$/.test(v)},goog.string.internal.trim=goog.TRUSTED_SITE&&String.prototype.trim?function(v){return v.trim()}:function(v){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(v)[1]},goog.string.internal.caseInsensitiveCompare=function(v,x){return(v=String(v).toLowerCase())<(x=String(x).toLowerCase())?-1:v==x?0:1},goog.string.internal.newLineToBr=function(v,x){return v.replace(/(\r\n|\r|\n)/g,x?"<br />":"<br>")},goog.string.internal.htmlEscape=function(v,x){if(x)v=v.replace(goog.string.internal.AMP_RE_,"&amp;").replace(goog.string.internal.LT_RE_,"&lt;").replace(goog.string.internal.GT_RE_,"&gt;").replace(goog.string.internal.QUOT_RE_,"&quot;").replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;").replace(goog.string.internal.NULL_RE_,"&#0;");else{if(!goog.string.internal.ALL_RE_.test(v))return v;-1!=v.indexOf("&")&&(v=v.replace(goog.string.internal.AMP_RE_,"&amp;")),-1!=v.indexOf("<")&&(v=v.replace(goog.string.internal.LT_RE_,"&lt;")),-1!=v.indexOf(">")&&(v=v.replace(goog.string.internal.GT_RE_,"&gt;")),-1!=v.indexOf('"')&&(v=v.replace(goog.string.internal.QUOT_RE_,"&quot;")),-1!=v.indexOf("'")&&(v=v.replace(goog.string.internal.SINGLE_QUOTE_RE_,"&#39;")),-1!=v.indexOf("\0")&&(v=v.replace(goog.string.internal.NULL_RE_,"&#0;"))}return v},goog.string.internal.AMP_RE_=/&/g,goog.string.internal.LT_RE_=/</g,goog.string.internal.GT_RE_=/>/g,goog.string.internal.QUOT_RE_=/"/g,goog.string.internal.SINGLE_QUOTE_RE_=/'/g,goog.string.internal.NULL_RE_=/\x00/g,goog.string.internal.ALL_RE_=/[\x00&<>"']/,goog.string.internal.whitespaceEscape=function(v,x){return goog.string.internal.newLineToBr(v.replace(/  /g," &#160;"),x)},goog.string.internal.contains=function(v,x){return-1!=v.indexOf(x)},goog.string.internal.caseInsensitiveContains=function(v,x){return goog.string.internal.contains(v.toLowerCase(),x.toLowerCase())},goog.string.internal.compareVersions=function(v,x){var S=0;v=goog.string.internal.trim(String(v)).split("."),x=goog.string.internal.trim(String(x)).split(".");for(var D=Math.max(v.length,x.length),n=0;0==S&&n<D;n++){var O=v[n]||"",R=x[n]||"";do{if(O=/(\d*)(\D*)(.*)/.exec(O)||["","","",""],R=/(\d*)(\D*)(.*)/.exec(R)||["","","",""],0==O[0].length&&0==R[0].length)break;S=0==O[1].length?0:parseInt(O[1],10);var U=0==R[1].length?0:parseInt(R[1],10);S=goog.string.internal.compareElements_(S,U)||goog.string.internal.compareElements_(0==O[2].length,0==R[2].length)||goog.string.internal.compareElements_(O[2],R[2]),O=O[3],R=R[3]}while(0==S)}return S},goog.string.internal.compareElements_=function(v,x){return v<x?-1:v>x?1:0},goog.html.SafeUrl=function(v,x){this.privateDoNotAccessOrElseSafeUrlWrappedValue_=x===goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_?v:""},goog.html.SafeUrl.INNOCUOUS_STRING="about:invalid#zClosurez",goog.html.SafeUrl.prototype.implementsGoogStringTypedString=!0,goog.html.SafeUrl.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeUrlWrappedValue_.toString()},goog.html.SafeUrl.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeUrl.prototype.getDirection=function(){return goog.i18n.bidi.Dir.LTR},goog.DEBUG&&(goog.html.SafeUrl.prototype.toString=function(){return"SafeUrl{"+this.privateDoNotAccessOrElseSafeUrlWrappedValue_+"}"}),goog.html.SafeUrl.unwrap=function(v){return v instanceof goog.html.SafeUrl&&v.constructor===goog.html.SafeUrl?v.privateDoNotAccessOrElseSafeUrlWrappedValue_:(goog.asserts.fail("expected object of type SafeUrl, got '"+v+"' of type "+goog.typeOf(v)),"type_error:SafeUrl")},goog.html.SafeUrl.fromConstant=function(v){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.string.Const.unwrap(v))},goog.html.SAFE_MIME_TYPE_PATTERN_=/^(?:audio\/(?:3gpp2|3gpp|aac|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)|font\/\w+|image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon)|video\/(?:mpeg|mp4|ogg|webm|quicktime|x-matroska))(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i,goog.html.SafeUrl.isSafeMimeType=function(v){return goog.html.SAFE_MIME_TYPE_PATTERN_.test(v)},goog.html.SafeUrl.fromBlob=function(v){return v=goog.html.SafeUrl.isSafeMimeType(v.type)?goog.fs.url.createObjectUrl(v):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.revokeObjectUrl=function(v){(v=v.getTypedStringValue())!==goog.html.SafeUrl.INNOCUOUS_STRING&&goog.fs.url.revokeObjectUrl(v)},goog.html.SafeUrl.fromMediaSource=function(v){return goog.asserts.assert("MediaSource"in goog.global,"No support for MediaSource"),v=v instanceof MediaSource?goog.fs.url.createObjectUrl(v):goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.DATA_URL_PATTERN_=/^data:(.*);base64,[a-z0-9+\/]+=*$/i,goog.html.SafeUrl.tryFromDataUrl=function(v){var x=(v=(v=String(v)).replace(/(%0A|%0D)/g,"")).match(goog.html.DATA_URL_PATTERN_);return x&&goog.html.SafeUrl.isSafeMimeType(x[1])?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v):null},goog.html.SafeUrl.fromDataUrl=function(v){return goog.html.SafeUrl.tryFromDataUrl(v)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.fromTelUrl=function(v){return goog.string.internal.caseInsensitiveStartsWith(v,"tel:")||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SIP_URL_PATTERN_=/^sip[s]?:[+a-z0-9_.!$%&'*\/=^`{|}~-]+@([a-z0-9-]+\.)+[a-z0-9]{2,63}$/i,goog.html.SafeUrl.fromSipUrl=function(v){return goog.html.SIP_URL_PATTERN_.test(decodeURIComponent(v))||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.fromFacebookMessengerUrl=function(v){return goog.string.internal.caseInsensitiveStartsWith(v,"fb-messenger://share")||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.fromWhatsAppUrl=function(v){return goog.string.internal.caseInsensitiveStartsWith(v,"whatsapp://send")||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.fromSmsUrl=function(v){return goog.string.internal.caseInsensitiveStartsWith(v,"sms:")&&goog.html.SafeUrl.isSmsUrlBodyValid_(v)||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.isSmsUrlBodyValid_=function(v){var x=v.indexOf("#");if(0<x&&(v=v.substring(0,x)),!(x=v.match(/[?&]body=/gi)))return!0;if(1<x.length)return!1;if(!(v=v.match(/[?&]body=([^&]*)/)[1]))return!0;try{decodeURIComponent(v)}catch{return!1}return/^(?:[a-z0-9\-_.~]|%[0-9a-f]{2})+$/i.test(v)},goog.html.SafeUrl.fromSshUrl=function(v){return goog.string.internal.caseInsensitiveStartsWith(v,"ssh://")||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)},goog.html.SafeUrl.sanitizeChromeExtensionUrl=function(v,x){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^chrome-extension:\/\/([^\/]+)\//,v,x)},goog.html.SafeUrl.sanitizeFirefoxExtensionUrl=function(v,x){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^moz-extension:\/\/([^\/]+)\//,v,x)},goog.html.SafeUrl.sanitizeEdgeExtensionUrl=function(v,x){return goog.html.SafeUrl.sanitizeExtensionUrl_(/^ms-browser-extension:\/\/([^\/]+)\//,v,x)},goog.html.SafeUrl.sanitizeExtensionUrl_=function(v,x,S){return(v=v.exec(x))?(v=v[1],-1==(S instanceof goog.string.Const?[goog.string.Const.unwrap(S)]:S.map(function(D){return goog.string.Const.unwrap(D)})).indexOf(v)&&(x=goog.html.SafeUrl.INNOCUOUS_STRING)):x=goog.html.SafeUrl.INNOCUOUS_STRING,goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(x)},goog.html.SafeUrl.fromTrustedResourceUrl=function(v){return goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.TrustedResourceUrl.unwrap(v))},goog.html.SAFE_URL_PATTERN_=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,goog.html.SafeUrl.SAFE_URL_PATTERN=goog.html.SAFE_URL_PATTERN_,goog.html.SafeUrl.trySanitize=function(v){return v instanceof goog.html.SafeUrl?v:(v="object"==typeof v&&v.implementsGoogStringTypedString?v.getTypedStringValue():String(v),goog.html.SAFE_URL_PATTERN_.test(v)?goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v):goog.html.SafeUrl.tryFromDataUrl(v))},goog.html.SafeUrl.sanitize=function(v){return goog.html.SafeUrl.trySanitize(v)||goog.html.SafeUrl.INNOCUOUS_URL},goog.html.SafeUrl.sanitizeAssertUnchanged=function(v,x){return v instanceof goog.html.SafeUrl?v:(v="object"==typeof v&&v.implementsGoogStringTypedString?v.getTypedStringValue():String(v),x&&/^data:/i.test(v)&&(x=goog.html.SafeUrl.fromDataUrl(v)).getTypedStringValue()==v?x:(goog.asserts.assert(goog.html.SAFE_URL_PATTERN_.test(v),"%s does not match the safe URL pattern",v)||(v=goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(v)))},goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse=function(v){return new goog.html.SafeUrl(v,goog.html.SafeUrl.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.SafeUrl.INNOCUOUS_URL=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(goog.html.SafeUrl.INNOCUOUS_STRING),goog.html.SafeUrl.ABOUT_BLANK=goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse("about:blank"),goog.html.SafeStyle=function(v,x){this.privateDoNotAccessOrElseSafeStyleWrappedValue_=x===goog.html.SafeStyle.CONSTRUCTOR_TOKEN_PRIVATE_?v:""},goog.html.SafeStyle.prototype.implementsGoogStringTypedString=!0,goog.html.SafeStyle.fromConstant=function(v){return 0===(v=goog.string.Const.unwrap(v)).length?goog.html.SafeStyle.EMPTY:(goog.asserts.assert(goog.string.internal.endsWith(v,";"),"Last character of style string is not ';': "+v),goog.asserts.assert(goog.string.internal.contains(v,":"),"Style string must contain at least one ':', to specify a \"name: value\" pair: "+v),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(v))},goog.html.SafeStyle.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleWrappedValue_},goog.DEBUG&&(goog.html.SafeStyle.prototype.toString=function(){return"SafeStyle{"+this.privateDoNotAccessOrElseSafeStyleWrappedValue_+"}"}),goog.html.SafeStyle.unwrap=function(v){return v instanceof goog.html.SafeStyle&&v.constructor===goog.html.SafeStyle?v.privateDoNotAccessOrElseSafeStyleWrappedValue_:(goog.asserts.fail("expected object of type SafeStyle, got '"+v+"' of type "+goog.typeOf(v)),"type_error:SafeStyle")},goog.html.SafeStyle.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse=function(v){return new goog.html.SafeStyle(v,goog.html.SafeStyle.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.SafeStyle.EMPTY=goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyle.INNOCUOUS_STRING="zClosurez",goog.html.SafeStyle.create=function(v){var S,x="";for(S in v)if(Object.prototype.hasOwnProperty.call(v,S)){if(!/^[-_a-zA-Z0-9]+$/.test(S))throw Error("Name allows only [-_a-zA-Z0-9], got: "+S);var D=v[S];null!=D&&(x+=S+":"+(D=Array.isArray(D)?module$contents$goog$array_map(D,goog.html.SafeStyle.sanitizePropertyValue_).join(" "):goog.html.SafeStyle.sanitizePropertyValue_(D))+";")}return x?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(x):goog.html.SafeStyle.EMPTY},goog.html.SafeStyle.sanitizePropertyValue_=function(v){if(v instanceof goog.html.SafeUrl)return'url("'+goog.html.SafeUrl.unwrap(v).replace(/</g,"%3c").replace(/[\\"]/g,"\\$&")+'")';if(v=v instanceof goog.string.Const?goog.string.Const.unwrap(v):goog.html.SafeStyle.sanitizePropertyValueString_(String(v)),/[{;}]/.test(v))throw new goog.asserts.AssertionError("Value does not allow [{;}], got: %s.",[v]);return v},goog.html.SafeStyle.sanitizePropertyValueString_=function(v){var x=v.replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.FUNCTIONS_RE_,"$1").replace(goog.html.SafeStyle.URL_RE_,"url");return goog.html.SafeStyle.VALUE_RE_.test(x)?goog.html.SafeStyle.COMMENT_RE_.test(v)?(goog.asserts.fail("String value disallows comments, got: "+v),goog.html.SafeStyle.INNOCUOUS_STRING):goog.html.SafeStyle.hasBalancedQuotes_(v)?goog.html.SafeStyle.hasBalancedSquareBrackets_(v)?goog.html.SafeStyle.sanitizeUrl_(v):(goog.asserts.fail("String value requires balanced square brackets and one identifier per pair of brackets, got: "+v),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value requires balanced quotes, got: "+v),goog.html.SafeStyle.INNOCUOUS_STRING):(goog.asserts.fail("String value allows only "+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+" and simple functions, got: "+v),goog.html.SafeStyle.INNOCUOUS_STRING)},goog.html.SafeStyle.hasBalancedQuotes_=function(v){for(var x=!0,S=!0,D=0;D<v.length;D++){var n=v.charAt(D);"'"==n&&S?x=!x:'"'==n&&x&&(S=!S)}return x&&S},goog.html.SafeStyle.hasBalancedSquareBrackets_=function(v){for(var x=!0,S=/^[-_a-zA-Z0-9]$/,D=0;D<v.length;D++){var n=v.charAt(D);if("]"==n){if(x)return!1;x=!0}else if("["==n){if(!x)return!1;x=!1}else if(!x&&!S.test(n))return!1}return x},goog.html.SafeStyle.VALUE_ALLOWED_CHARS_="[-,.\"'%_!# a-zA-Z0-9\\[\\]]",goog.html.SafeStyle.VALUE_RE_=new RegExp("^"+goog.html.SafeStyle.VALUE_ALLOWED_CHARS_+"+$"),goog.html.SafeStyle.URL_RE_=/\b(url\([ \t\n]*)('[ -&(-\[\]-~]*'|"[ !#-\[\]-~]*"|[!#-&*-\[\]-~]*)([ \t\n]*\))/g,goog.html.SafeStyle.ALLOWED_FUNCTIONS_="calc cubic-bezier fit-content hsl hsla linear-gradient matrix minmax repeat rgb rgba (rotate|scale|translate)(X|Y|Z|3d)?".split(" "),goog.html.SafeStyle.FUNCTIONS_RE_=new RegExp("\\b("+goog.html.SafeStyle.ALLOWED_FUNCTIONS_.join("|")+")\\([-+*/0-9a-z.%\\[\\], ]+\\)","g"),goog.html.SafeStyle.COMMENT_RE_=/\/\*/,goog.html.SafeStyle.sanitizeUrl_=function(v){return v.replace(goog.html.SafeStyle.URL_RE_,function(x,S,D,n){var O="";return D=D.replace(/^(['"])(.*)\1$/,function(R,U,q){return O=U,q}),x=goog.html.SafeUrl.sanitize(D).getTypedStringValue(),S+O+x+O+n})},goog.html.SafeStyle.concat=function(v){var x="",S=function(D){Array.isArray(D)?module$contents$goog$array_forEach(D,S):x+=goog.html.SafeStyle.unwrap(D)};return module$contents$goog$array_forEach(arguments,S),x?goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(x):goog.html.SafeStyle.EMPTY};var module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE={},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet=function(v,x){this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_=x===module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE?v:"",this.implementsGoogStringTypedString=!0};module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createRule=function(v,x){if((0,goog.string.internal.contains)(v,"<"))throw Error("Selector does not allow '<', got: "+v);var S=v.replace(/('|")((?!\1)[^\r\n\f\\]|\\[\s\S])*\1/g,"");if(!/^[-_a-zA-Z0-9#.:* ,>+~[\]()=^$|]+$/.test(S))throw Error("Selector allows only [-_a-zA-Z0-9#.:* ,>+~[\\]()=^$|] and strings, got: "+v);if(!module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_(S))throw Error("() and [] in selector must be balanced, got: "+v);return x instanceof goog.html.SafeStyle||(x=goog.html.SafeStyle.create(x)),v=v+"{"+goog.html.SafeStyle.unwrap(x).replace(/</g,"\\3C ")+"}",module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(v)},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.hasBalancedBrackets_=function(v){for(var x={"(":")","[":"]"},S=[],D=0;D<v.length;D++){var n=v[D];if(x[n])S.push(x[n]);else if(goog.object.contains(x,n)&&S.pop()!=n)return!1}return 0==S.length},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.concat=function(v){var x="",S=function(D){Array.isArray(D)?module$contents$goog$array_forEach(D,S):x+=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(D)};return module$contents$goog$array_forEach(arguments,S),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(x)},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.fromConstant=function(v){return 0===(v=goog.string.Const.unwrap(v)).length?module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY:((0,goog.asserts.assert)(!(0,goog.string.internal.contains)(v,"<"),"Forbidden '<' character in style sheet string: "+v),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(v))},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap=function(v){return v instanceof module$contents$goog$html$SafeStyleSheet_SafeStyleSheet&&v.constructor===module$contents$goog$html$SafeStyleSheet_SafeStyleSheet?v.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_:((0,goog.asserts.fail)("expected object of type SafeStyleSheet, got '"+v+"' of type "+goog.typeOf(v)),"type_error:SafeStyleSheet")},module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse=function(v){return new module$contents$goog$html$SafeStyleSheet_SafeStyleSheet(v,module$contents$goog$html$SafeStyleSheet_CONSTRUCTOR_TOKEN_PRIVATE)},goog.DEBUG&&(module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.prototype.toString=function(){return"SafeStyleSheet{"+this.privateDoNotAccessOrElseSafeStyleSheetWrappedValue_+"}"}),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.EMPTY=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(""),goog.html.SafeStyleSheet=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet,goog.labs={},goog.labs.userAgent={},goog.labs.userAgent.util={},goog.labs.userAgent.util.getNativeUserAgentString_=function(){var v=goog.labs.userAgent.util.getNavigator_();return v&&(v=v.userAgent)?v:""},goog.labs.userAgent.util.getNavigator_=function(){return goog.global.navigator},goog.labs.userAgent.util.userAgent_=goog.labs.userAgent.util.getNativeUserAgentString_(),goog.labs.userAgent.util.setUserAgent=function(v){goog.labs.userAgent.util.userAgent_=v||goog.labs.userAgent.util.getNativeUserAgentString_()},goog.labs.userAgent.util.getUserAgent=function(){return goog.labs.userAgent.util.userAgent_},goog.labs.userAgent.util.matchUserAgent=function(v){var x=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.contains(x,v)},goog.labs.userAgent.util.matchUserAgentIgnoreCase=function(v){var x=goog.labs.userAgent.util.getUserAgent();return goog.string.internal.caseInsensitiveContains(x,v)},goog.labs.userAgent.util.extractVersionTuples=function(v){for(var D,x=/(\w[\w ]+)\/([^\s]+)\s*(?:\((.*?)\))?/g,S=[];D=x.exec(v);)S.push([D[1],D[2],D[3]||void 0]);return S},goog.labs.userAgent.browser={},goog.labs.userAgent.browser.matchOpera_=function(){return goog.labs.userAgent.util.matchUserAgent("Opera")},goog.labs.userAgent.browser.matchIE_=function(){return goog.labs.userAgent.util.matchUserAgent("Trident")||goog.labs.userAgent.util.matchUserAgent("MSIE")},goog.labs.userAgent.browser.matchEdgeHtml_=function(){return goog.labs.userAgent.util.matchUserAgent("Edge")},goog.labs.userAgent.browser.matchEdgeChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("Edg/")},goog.labs.userAgent.browser.matchOperaChromium_=function(){return goog.labs.userAgent.util.matchUserAgent("OPR")},goog.labs.userAgent.browser.matchFirefox_=function(){return goog.labs.userAgent.util.matchUserAgent("Firefox")||goog.labs.userAgent.util.matchUserAgent("FxiOS")},goog.labs.userAgent.browser.matchSafari_=function(){return goog.labs.userAgent.util.matchUserAgent("Safari")&&!(goog.labs.userAgent.browser.matchChrome_()||goog.labs.userAgent.browser.matchCoast_()||goog.labs.userAgent.browser.matchOpera_()||goog.labs.userAgent.browser.matchEdgeHtml_()||goog.labs.userAgent.browser.matchEdgeChromium_()||goog.labs.userAgent.browser.matchOperaChromium_()||goog.labs.userAgent.browser.matchFirefox_()||goog.labs.userAgent.browser.isSilk()||goog.labs.userAgent.util.matchUserAgent("Android"))},goog.labs.userAgent.browser.matchCoast_=function(){return goog.labs.userAgent.util.matchUserAgent("Coast")},goog.labs.userAgent.browser.matchIosWebview_=function(){return(goog.labs.userAgent.util.matchUserAgent("iPad")||goog.labs.userAgent.util.matchUserAgent("iPhone"))&&!goog.labs.userAgent.browser.matchSafari_()&&!goog.labs.userAgent.browser.matchChrome_()&&!goog.labs.userAgent.browser.matchCoast_()&&!goog.labs.userAgent.browser.matchFirefox_()&&goog.labs.userAgent.util.matchUserAgent("AppleWebKit")},goog.labs.userAgent.browser.matchChrome_=function(){return(goog.labs.userAgent.util.matchUserAgent("Chrome")||goog.labs.userAgent.util.matchUserAgent("CriOS"))&&!goog.labs.userAgent.browser.matchEdgeHtml_()},goog.labs.userAgent.browser.matchAndroidBrowser_=function(){return goog.labs.userAgent.util.matchUserAgent("Android")&&!(goog.labs.userAgent.browser.isChrome()||goog.labs.userAgent.browser.isFirefox()||goog.labs.userAgent.browser.isOpera()||goog.labs.userAgent.browser.isSilk())},goog.labs.userAgent.browser.isOpera=goog.labs.userAgent.browser.matchOpera_,goog.labs.userAgent.browser.isIE=goog.labs.userAgent.browser.matchIE_,goog.labs.userAgent.browser.isEdge=goog.labs.userAgent.browser.matchEdgeHtml_,goog.labs.userAgent.browser.isEdgeChromium=goog.labs.userAgent.browser.matchEdgeChromium_,goog.labs.userAgent.browser.isOperaChromium=goog.labs.userAgent.browser.matchOperaChromium_,goog.labs.userAgent.browser.isFirefox=goog.labs.userAgent.browser.matchFirefox_,goog.labs.userAgent.browser.isSafari=goog.labs.userAgent.browser.matchSafari_,goog.labs.userAgent.browser.isCoast=goog.labs.userAgent.browser.matchCoast_,goog.labs.userAgent.browser.isIosWebview=goog.labs.userAgent.browser.matchIosWebview_,goog.labs.userAgent.browser.isChrome=goog.labs.userAgent.browser.matchChrome_,goog.labs.userAgent.browser.isAndroidBrowser=goog.labs.userAgent.browser.matchAndroidBrowser_,goog.labs.userAgent.browser.isSilk=function(){return goog.labs.userAgent.util.matchUserAgent("Silk")},goog.labs.userAgent.browser.getVersion=function(){function v(n){return n=module$contents$goog$array_find(n,D),S[n]||""}var x=goog.labs.userAgent.util.getUserAgent();if(goog.labs.userAgent.browser.isIE())return goog.labs.userAgent.browser.getIEVersion_(x);x=goog.labs.userAgent.util.extractVersionTuples(x);var S={};module$contents$goog$array_forEach(x,function(n){S[n[0]]=n[1]});var D=goog.partial(goog.object.containsKey,S);return goog.labs.userAgent.browser.isOpera()?v(["Version","Opera"]):goog.labs.userAgent.browser.isEdge()?v(["Edge"]):goog.labs.userAgent.browser.isEdgeChromium()?v(["Edg"]):goog.labs.userAgent.browser.isChrome()?v(["Chrome","CriOS","HeadlessChrome"]):(x=x[2])&&x[1]||""},goog.labs.userAgent.browser.isVersionOrHigher=function(v){return 0<=goog.string.internal.compareVersions(goog.labs.userAgent.browser.getVersion(),v)},goog.labs.userAgent.browser.getIEVersion_=function(v){var x=/rv: *([\d\.]*)/.exec(v);if(x&&x[1])return x[1];x="";var S=/MSIE +([\d\.]+)/.exec(v);if(S&&S[1])if(v=/Trident\/(\d.\d)/.exec(v),"7.0"==S[1])if(v&&v[1])switch(v[1]){case"4.0":x="8.0";break;case"5.0":x="9.0";break;case"6.0":x="10.0";break;case"7.0":x="11.0"}else x="7.0";else x=S[1];return x},goog.html.SafeHtml=function(v,x,S){this.privateDoNotAccessOrElseSafeHtmlWrappedValue_=S===goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_?v:"",this.dir_=x},goog.html.SafeHtml.ENABLE_ERROR_MESSAGES=goog.DEBUG,goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE=!0,goog.html.SafeHtml.prototype.implementsGoogI18nBidiDirectionalString=!0,goog.html.SafeHtml.prototype.getDirection=function(){return this.dir_},goog.html.SafeHtml.prototype.implementsGoogStringTypedString=!0,goog.html.SafeHtml.prototype.getTypedStringValue=function(){return this.privateDoNotAccessOrElseSafeHtmlWrappedValue_.toString()},goog.DEBUG&&(goog.html.SafeHtml.prototype.toString=function(){return"SafeHtml{"+this.privateDoNotAccessOrElseSafeHtmlWrappedValue_+"}"}),goog.html.SafeHtml.unwrap=function(v){return goog.html.SafeHtml.unwrapTrustedHTML(v).toString()},goog.html.SafeHtml.unwrapTrustedHTML=function(v){return v instanceof goog.html.SafeHtml&&v.constructor===goog.html.SafeHtml?v.privateDoNotAccessOrElseSafeHtmlWrappedValue_:(goog.asserts.fail("expected object of type SafeHtml, got '"+v+"' of type "+goog.typeOf(v)),"type_error:SafeHtml")},goog.html.SafeHtml.htmlEscape=function(v){if(v instanceof goog.html.SafeHtml)return v;var x="object"==typeof v,S=null;return x&&v.implementsGoogI18nBidiDirectionalString&&(S=v.getDirection()),v=x&&v.implementsGoogStringTypedString?v.getTypedStringValue():String(v),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.htmlEscape(v),S)},goog.html.SafeHtml.htmlEscapePreservingNewlines=function(v){return v instanceof goog.html.SafeHtml?v:(v=goog.html.SafeHtml.htmlEscape(v),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.newLineToBr(goog.html.SafeHtml.unwrap(v)),v.getDirection()))},goog.html.SafeHtml.htmlEscapePreservingNewlinesAndSpaces=function(v){return v instanceof goog.html.SafeHtml?v:(v=goog.html.SafeHtml.htmlEscape(v),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(goog.string.internal.whitespaceEscape(goog.html.SafeHtml.unwrap(v)),v.getDirection()))},goog.html.SafeHtml.from=goog.html.SafeHtml.htmlEscape,goog.html.SafeHtml.comment=function(v){return goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("\x3c!--"+goog.string.internal.htmlEscape(v)+"--\x3e",null)},goog.html.SafeHtml.VALID_NAMES_IN_TAG_=/^[a-zA-Z0-9-]+$/,goog.html.SafeHtml.URL_ATTRIBUTES_={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_=goog.object.createSet(goog.dom.TagName.APPLET,goog.dom.TagName.BASE,goog.dom.TagName.EMBED,goog.dom.TagName.IFRAME,goog.dom.TagName.LINK,goog.dom.TagName.MATH,goog.dom.TagName.META,goog.dom.TagName.OBJECT,goog.dom.TagName.SCRIPT,goog.dom.TagName.STYLE,goog.dom.TagName.SVG,goog.dom.TagName.TEMPLATE),goog.html.SafeHtml.create=function(v,x,S){return goog.html.SafeHtml.verifyTagName(String(v)),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse(String(v),x,S)},goog.html.SafeHtml.verifyTagName=function(v){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(v))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Invalid tag name <"+v+">.":"");if(v.toUpperCase()in goog.html.SafeHtml.NOT_ALLOWED_TAG_NAMES_)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"Tag name <"+v+"> is not allowed for SafeHtml.":"")},goog.html.SafeHtml.createIframe=function(v,x,S,D){v&&goog.html.TrustedResourceUrl.unwrap(v);var n={};return n.src=v||null,n.srcdoc=x&&goog.html.SafeHtml.unwrap(x),v=goog.html.SafeHtml.combineAttributes(n,{sandbox:""},S),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",v,D)},goog.html.SafeHtml.createSandboxIframe=function(v,x,S,D){if(!goog.html.SafeHtml.canUseSandboxIframe())throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?"The browser does not support sandboxed iframes.":"");var n={};return n.src=v?goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(v)):null,n.srcdoc=x||null,n.sandbox="",v=goog.html.SafeHtml.combineAttributes(n,{},S),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("iframe",v,D)},goog.html.SafeHtml.canUseSandboxIframe=function(){return goog.global.HTMLIFrameElement&&"sandbox"in goog.global.HTMLIFrameElement.prototype},goog.html.SafeHtml.createScriptSrc=function(v,x){return goog.html.TrustedResourceUrl.unwrap(v),v=goog.html.SafeHtml.combineAttributes({src:v},{},x),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",v)},goog.html.SafeHtml.createScript=function(v,x){for(var S in x)if(Object.prototype.hasOwnProperty.call(x,S)){var D=S.toLowerCase();if("language"==D||"src"==D||"text"==D||"type"==D)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot set "'+D+'" attribute':"")}for(S="",v=module$contents$goog$array_concat(v),D=0;D<v.length;D++)S+=module$contents$goog$html$SafeScript_SafeScript.unwrap(v[D]);return v=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(S,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("script",x,v)},goog.html.SafeHtml.createStyle=function(v,x){x=goog.html.SafeHtml.combineAttributes({type:"text/css"},{},x);var S="";v=module$contents$goog$array_concat(v);for(var D=0;D<v.length;D++)S+=module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.unwrap(v[D]);return v=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(S,goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("style",x,v)},goog.html.SafeHtml.createMetaRefresh=function(v,x){return v=goog.html.SafeUrl.unwrap(goog.html.SafeUrl.sanitize(v)),(goog.labs.userAgent.browser.isIE()||goog.labs.userAgent.browser.isEdge())&&goog.string.internal.contains(v,";")&&(v="'"+v.replace(/'/g,"%27")+"'"),goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse("meta",{"http-equiv":"refresh",content:(x||0)+"; url="+v})},goog.html.SafeHtml.getAttrNameAndValue_=function(v,x,S){if(S instanceof goog.string.Const)S=goog.string.Const.unwrap(S);else if("style"==x.toLowerCase()){if(!goog.html.SafeHtml.SUPPORT_STYLE_ATTRIBUTE)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "style" not supported.':"");S=goog.html.SafeHtml.getStyleValue_(S)}else{if(/^on/i.test(x))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+x+'" requires goog.string.Const value, "'+S+'" given.':"");if(x.toLowerCase()in goog.html.SafeHtml.URL_ATTRIBUTES_)if(S instanceof goog.html.TrustedResourceUrl)S=goog.html.TrustedResourceUrl.unwrap(S);else if(S instanceof goog.html.SafeUrl)S=goog.html.SafeUrl.unwrap(S);else{if("string"!=typeof S)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Attribute "'+x+'" on tag "'+v+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+S+'" given.':"");S=goog.html.SafeUrl.sanitize(S).getTypedStringValue()}}return S.implementsGoogStringTypedString&&(S=S.getTypedStringValue()),goog.asserts.assert("string"==typeof S||"number"==typeof S,"String or number value expected, got "+typeof S+" with value: "+S),x+'="'+goog.string.internal.htmlEscape(String(S))+'"'},goog.html.SafeHtml.getStyleValue_=function(v){if(!goog.isObject(v))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof v+" given: "+v:"");return v instanceof goog.html.SafeStyle||(v=goog.html.SafeStyle.create(v)),goog.html.SafeStyle.unwrap(v)},goog.html.SafeHtml.createWithDir=function(v,x,S,D){return(x=goog.html.SafeHtml.create(x,S,D)).dir_=v,x},goog.html.SafeHtml.join=function(v,x){var S=(v=goog.html.SafeHtml.htmlEscape(v)).getDirection(),D=[],n=function(O){Array.isArray(O)?module$contents$goog$array_forEach(O,n):(O=goog.html.SafeHtml.htmlEscape(O),D.push(goog.html.SafeHtml.unwrap(O)),O=O.getDirection(),S==goog.i18n.bidi.Dir.NEUTRAL?S=O:O!=goog.i18n.bidi.Dir.NEUTRAL&&S!=O&&(S=null))};return module$contents$goog$array_forEach(x,n),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(D.join(goog.html.SafeHtml.unwrap(v)),S)},goog.html.SafeHtml.concat=function(v){return goog.html.SafeHtml.join(goog.html.SafeHtml.EMPTY,Array.prototype.slice.call(arguments))},goog.html.SafeHtml.concatWithDir=function(v,x){var S=goog.html.SafeHtml.concat(module$contents$goog$array_slice(arguments,1));return S.dir_=v,S},goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_={},goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse=function(v,x){var S=goog.html.trustedtypes.getPolicyPrivateDoNotAccessOrElse();return v=S?S.createHTML(v):v,new goog.html.SafeHtml(v,x,goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_)},goog.html.SafeHtml.createSafeHtmlTagSecurityPrivateDoNotAccessOrElse=function(v,x,S){var D=null,n="<"+v+goog.html.SafeHtml.stringifyAttributes(v,x);return null==S?S=[]:Array.isArray(S)||(S=[S]),goog.dom.tags.isVoidTag(v.toLowerCase())?(goog.asserts.assert(!S.length,"Void tag <"+v+"> does not allow content."),n+=">"):(D=goog.html.SafeHtml.concat(S),n+=">"+goog.html.SafeHtml.unwrap(D)+"</"+v+">",D=D.getDirection()),(v=x&&x.dir)&&(D=/^(ltr|rtl|auto)$/i.test(v)?goog.i18n.bidi.Dir.NEUTRAL:null),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(n,D)},goog.html.SafeHtml.stringifyAttributes=function(v,x){var S="";if(x)for(var D in x)if(Object.prototype.hasOwnProperty.call(x,D)){if(!goog.html.SafeHtml.VALID_NAMES_IN_TAG_.test(D))throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Invalid attribute name "'+D+'".':"");var n=x[D];null!=n&&(S+=" "+goog.html.SafeHtml.getAttrNameAndValue_(v,D,n))}return S},goog.html.SafeHtml.combineAttributes=function(v,x,S){var n,D={};for(n in v)Object.prototype.hasOwnProperty.call(v,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),D[n]=v[n]);for(n in x)Object.prototype.hasOwnProperty.call(x,n)&&(goog.asserts.assert(n.toLowerCase()==n,"Must be lower case"),D[n]=x[n]);if(S)for(n in S)if(Object.prototype.hasOwnProperty.call(S,n)){var O=n.toLowerCase();if(O in v)throw Error(goog.html.SafeHtml.ENABLE_ERROR_MESSAGES?'Cannot override "'+O+'" attribute, got "'+n+'" with value "'+S[n]+'"':"");O in x&&delete D[O],D[n]=S[n]}return D},goog.html.SafeHtml.DOCTYPE_HTML=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<!DOCTYPE html>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.SafeHtml.EMPTY=new goog.html.SafeHtml(goog.global.trustedTypes&&goog.global.trustedTypes.emptyHTML||"",goog.i18n.bidi.Dir.NEUTRAL,goog.html.SafeHtml.CONSTRUCTOR_TOKEN_PRIVATE_),goog.html.SafeHtml.BR=goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse("<br>",goog.i18n.bidi.Dir.NEUTRAL),goog.html.uncheckedconversions={},goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract=function(v,x,S){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),goog.html.SafeHtml.createSafeHtmlSecurityPrivateDoNotAccessOrElse(x,S||null)},goog.html.uncheckedconversions.safeScriptFromStringKnownToSatisfyTypeContract=function(v,x){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),module$contents$goog$html$SafeScript_SafeScript.createSafeScriptSecurityPrivateDoNotAccessOrElse(x)},goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract=function(v,x){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),goog.html.SafeStyle.createSafeStyleSecurityPrivateDoNotAccessOrElse(x)},goog.html.uncheckedconversions.safeStyleSheetFromStringKnownToSatisfyTypeContract=function(v,x){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),module$contents$goog$html$SafeStyleSheet_SafeStyleSheet.createSafeStyleSheetSecurityPrivateDoNotAccessOrElse(x)},goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract=function(v,x){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),goog.html.SafeUrl.createSafeUrlSecurityPrivateDoNotAccessOrElse(x)},goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract=function(v,x){return goog.asserts.assertString(goog.string.Const.unwrap(v),"must provide justification"),goog.asserts.assert(!goog.string.internal.isEmptyOrWhitespace(goog.string.Const.unwrap(v)),"must provide non-empty justification"),goog.html.TrustedResourceUrl.createTrustedResourceUrlSecurityPrivateDoNotAccessOrElse(x)},goog.dom.safe={},goog.dom.safe.InsertAdjacentHtmlPosition={AFTERBEGIN:"afterbegin",AFTEREND:"afterend",BEFOREBEGIN:"beforebegin",BEFOREEND:"beforeend"},goog.dom.safe.insertAdjacentHtml=function(v,x,S){v.insertAdjacentHTML(x,goog.html.SafeHtml.unwrapTrustedHTML(S))},goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_={MATH:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},goog.dom.safe.isInnerHtmlCleanupRecursive_=goog.functions.cacheReturnValue(function(){if(goog.DEBUG&&typeof document>"u")return!1;var v=document.createElement("div"),x=document.createElement("div");return x.appendChild(document.createElement("div")),v.appendChild(x),!(goog.DEBUG&&!v.firstChild||(x=v.firstChild.firstChild,v.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(goog.html.SafeHtml.EMPTY),x.parentElement))}),goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse=function(v,x){if(goog.dom.safe.isInnerHtmlCleanupRecursive_())for(;v.lastChild;)v.removeChild(v.lastChild);v.innerHTML=goog.html.SafeHtml.unwrapTrustedHTML(x)},goog.dom.safe.setInnerHtml=function(v,x){if(goog.asserts.ENABLE_ASSERTS&&v.tagName){var S=v.tagName.toUpperCase();if(goog.dom.safe.SET_INNER_HTML_DISALLOWED_TAGS_[S])throw Error("goog.dom.safe.setInnerHtml cannot be used to set content of "+v.tagName+".")}goog.dom.safe.unsafeSetInnerHtmlDoNotUseOrElse(v,x)},goog.dom.safe.setInnerHtmlFromConstant=function(v,x){goog.dom.safe.setInnerHtml(v,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Constant HTML to be immediatelly used."),goog.string.Const.unwrap(x)))},goog.dom.safe.setOuterHtml=function(v,x){v.outerHTML=goog.html.SafeHtml.unwrapTrustedHTML(x)},goog.dom.safe.setFormElementAction=function(v,x){x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),goog.dom.asserts.assertIsHTMLFormElement(v).action=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setButtonFormAction=function(v,x){x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),goog.dom.asserts.assertIsHTMLButtonElement(v).formAction=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setInputFormAction=function(v,x){x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),goog.dom.asserts.assertIsHTMLInputElement(v).formAction=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setStyle=function(v,x){v.style.cssText=goog.html.SafeStyle.unwrap(x)},goog.dom.safe.documentWrite=function(v,x){v.write(goog.html.SafeHtml.unwrapTrustedHTML(x))},goog.dom.safe.setAnchorHref=function(v,x){goog.dom.asserts.assertIsHTMLAnchorElement(v),x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),v.href=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setImageSrc=function(v,x){if(goog.dom.asserts.assertIsHTMLImageElement(v),!(x instanceof goog.html.SafeUrl)){var S=/^data:image\//i.test(x);x=goog.html.SafeUrl.sanitizeAssertUnchanged(x,S)}v.src=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setAudioSrc=function(v,x){if(goog.dom.asserts.assertIsHTMLAudioElement(v),!(x instanceof goog.html.SafeUrl)){var S=/^data:audio\//i.test(x);x=goog.html.SafeUrl.sanitizeAssertUnchanged(x,S)}v.src=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setVideoSrc=function(v,x){if(goog.dom.asserts.assertIsHTMLVideoElement(v),!(x instanceof goog.html.SafeUrl)){var S=/^data:video\//i.test(x);x=goog.html.SafeUrl.sanitizeAssertUnchanged(x,S)}v.src=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.setEmbedSrc=function(v,x){goog.dom.asserts.assertIsHTMLEmbedElement(v),v.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(x)},goog.dom.safe.setFrameSrc=function(v,x){goog.dom.asserts.assertIsHTMLFrameElement(v),v.src=goog.html.TrustedResourceUrl.unwrap(x)},goog.dom.safe.setIframeSrc=function(v,x){goog.dom.asserts.assertIsHTMLIFrameElement(v),v.src=goog.html.TrustedResourceUrl.unwrap(x)},goog.dom.safe.setIframeSrcdoc=function(v,x){goog.dom.asserts.assertIsHTMLIFrameElement(v),v.srcdoc=goog.html.SafeHtml.unwrapTrustedHTML(x)},goog.dom.safe.setLinkHrefAndRel=function(v,x,S){goog.dom.asserts.assertIsHTMLLinkElement(v),v.rel=S,goog.string.internal.caseInsensitiveContains(S,"stylesheet")?(goog.asserts.assert(x instanceof goog.html.TrustedResourceUrl,'URL must be TrustedResourceUrl because "rel" contains "stylesheet"'),v.href=goog.html.TrustedResourceUrl.unwrap(x)):v.href=x instanceof goog.html.TrustedResourceUrl?goog.html.TrustedResourceUrl.unwrap(x):goog.html.SafeUrl.unwrap(x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x))},goog.dom.safe.setObjectData=function(v,x){goog.dom.asserts.assertIsHTMLObjectElement(v),v.data=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(x)},goog.dom.safe.setScriptSrc=function(v,x){goog.dom.asserts.assertIsHTMLScriptElement(v),v.src=goog.html.TrustedResourceUrl.unwrapTrustedScriptURL(x),goog.dom.safe.setNonceForScriptElement_(v)},goog.dom.safe.setScriptContent=function(v,x){goog.dom.asserts.assertIsHTMLScriptElement(v),v.textContent=module$contents$goog$html$SafeScript_SafeScript.unwrapTrustedScript(x),goog.dom.safe.setNonceForScriptElement_(v)},goog.dom.safe.setNonceForScriptElement_=function(v){var x=goog.getScriptNonce(v.ownerDocument&&v.ownerDocument.defaultView);x&&v.setAttribute("nonce",x)},goog.dom.safe.setLocationHref=function(v,x){goog.dom.asserts.assertIsLocation(v),x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),v.href=goog.html.SafeUrl.unwrap(x)},goog.dom.safe.assignLocation=function(v,x){goog.dom.asserts.assertIsLocation(v),x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),v.assign(goog.html.SafeUrl.unwrap(x))},goog.dom.safe.replaceLocation=function(v,x){x=x instanceof goog.html.SafeUrl?x:goog.html.SafeUrl.sanitizeAssertUnchanged(x),v.replace(goog.html.SafeUrl.unwrap(x))},goog.dom.safe.openInWindow=function(v,x,S,D,n){return v=v instanceof goog.html.SafeUrl?v:goog.html.SafeUrl.sanitizeAssertUnchanged(v),x=x||goog.global,S=S instanceof goog.string.Const?goog.string.Const.unwrap(S):S||"",x.open(goog.html.SafeUrl.unwrap(v),S,D,n)},goog.dom.safe.parseFromStringHtml=function(v,x){return goog.dom.safe.parseFromString(v,x,"text/html")},goog.dom.safe.parseFromString=function(v,x,S){return v.parseFromString(goog.html.SafeHtml.unwrapTrustedHTML(x),S)},goog.dom.safe.createImageFromBlob=function(v){if(!/^image\/.*/g.test(v.type))throw Error("goog.dom.safe.createImageFromBlob only accepts MIME type image/.*.");var x=goog.global.URL.createObjectURL(v);return(v=new goog.global.Image).onload=function(){goog.global.URL.revokeObjectURL(x)},goog.dom.safe.setImageSrc(v,goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Image blob URL."),x)),v},goog.string.DETECT_DOUBLE_ESCAPING=!1,goog.string.FORCE_NON_DOM_HTML_UNESCAPING=!1,goog.string.Unicode={NBSP:"\xa0"},goog.string.startsWith=goog.string.internal.startsWith,goog.string.endsWith=goog.string.internal.endsWith,goog.string.caseInsensitiveStartsWith=goog.string.internal.caseInsensitiveStartsWith,goog.string.caseInsensitiveEndsWith=goog.string.internal.caseInsensitiveEndsWith,goog.string.caseInsensitiveEquals=goog.string.internal.caseInsensitiveEquals,goog.string.subs=function(v,x){for(var S=v.split("%s"),D="",n=Array.prototype.slice.call(arguments,1);n.length&&1<S.length;)D+=S.shift()+n.shift();return D+S.join("%s")},goog.string.collapseWhitespace=function(v){return v.replace(/[\s\xa0]+/g," ").replace(/^\s+|\s+$/g,"")},goog.string.isEmptyOrWhitespace=goog.string.internal.isEmptyOrWhitespace,goog.string.isEmptyString=function(v){return 0==v.length},goog.string.isEmpty=goog.string.isEmptyOrWhitespace,goog.string.isEmptyOrWhitespaceSafe=function(v){return goog.string.isEmptyOrWhitespace(goog.string.makeSafe(v))},goog.string.isEmptySafe=goog.string.isEmptyOrWhitespaceSafe,goog.string.isBreakingWhitespace=function(v){return!/[^\t\n\r ]/.test(v)},goog.string.isAlpha=function(v){return!/[^a-zA-Z]/.test(v)},goog.string.isNumeric=function(v){return!/[^0-9]/.test(v)},goog.string.isAlphaNumeric=function(v){return!/[^a-zA-Z0-9]/.test(v)},goog.string.isSpace=function(v){return" "==v},goog.string.isUnicodeChar=function(v){return 1==v.length&&" "<=v&&"~">=v||"\x80"<=v&&"\ufffd">=v},goog.string.stripNewlines=function(v){return v.replace(/(\r\n|\r|\n)+/g," ")},goog.string.canonicalizeNewlines=function(v){return v.replace(/(\r\n|\r|\n)/g,"\n")},goog.string.normalizeWhitespace=function(v){return v.replace(/\xa0|\s/g," ")},goog.string.normalizeSpaces=function(v){return v.replace(/\xa0|[ \t]+/g," ")},goog.string.collapseBreakingSpaces=function(v){return v.replace(/[\t\r\n ]+/g," ").replace(/^[\t\r\n ]+|[\t\r\n ]+$/g,"")},goog.string.trim=goog.string.internal.trim,goog.string.trimLeft=function(v){return v.replace(/^[\s\xa0]+/,"")},goog.string.trimRight=function(v){return v.replace(/[\s\xa0]+$/,"")},goog.string.caseInsensitiveCompare=goog.string.internal.caseInsensitiveCompare,goog.string.numberAwareCompare_=function(v,x,S){if(v==x)return 0;if(!v)return-1;if(!x)return 1;for(var D=v.toLowerCase().match(S),n=x.toLowerCase().match(S),O=Math.min(D.length,n.length),R=0;R<O;R++){var U=n[R];if((S=D[R])!=U)return v=parseInt(S,10),!isNaN(v)&&(x=parseInt(U,10),!isNaN(x)&&v-x)?v-x:S<U?-1:1}return D.length!=n.length?D.length-n.length:v<x?-1:1},goog.string.intAwareCompare=function(v,x){return goog.string.numberAwareCompare_(v,x,/\d+|\D+/g)},goog.string.floatAwareCompare=function(v,x){return goog.string.numberAwareCompare_(v,x,/\d+|\.\d+|\D+/g)},goog.string.numerateCompare=goog.string.floatAwareCompare,goog.string.urlEncode=function(v){return encodeURIComponent(String(v))},goog.string.urlDecode=function(v){return decodeURIComponent(v.replace(/\+/g," "))},goog.string.newLineToBr=goog.string.internal.newLineToBr,goog.string.htmlEscape=function(v,x){return v=goog.string.internal.htmlEscape(v,x),goog.string.DETECT_DOUBLE_ESCAPING&&(v=v.replace(goog.string.E_RE_,"&#101;")),v},goog.string.E_RE_=/e/g,goog.string.unescapeEntities=function(v){return goog.string.contains(v,"&")?!goog.string.FORCE_NON_DOM_HTML_UNESCAPING&&"document"in goog.global?goog.string.unescapeEntitiesUsingDom_(v):goog.string.unescapePureXmlEntities_(v):v},goog.string.unescapeEntitiesWithDocument=function(v,x){return goog.string.contains(v,"&")?goog.string.unescapeEntitiesUsingDom_(v,x):v},goog.string.unescapeEntitiesUsingDom_=function(v,x){var S={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},D=x?x.createElement("div"):goog.global.document.createElement("div");return v.replace(goog.string.HTML_ENTITY_PATTERN_,function(n,O){var R=S[n];return R||("#"==O.charAt(0)&&(O=Number("0"+O.substr(1)),isNaN(O)||(R=String.fromCharCode(O))),R||(goog.dom.safe.setInnerHtml(D,goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract(goog.string.Const.from("Single HTML entity."),n+" ")),R=D.firstChild.nodeValue.slice(0,-1)),S[n]=R)})},goog.string.unescapePureXmlEntities_=function(v){return v.replace(/&([^;]+);/g,function(x,S){switch(S){case"amp":return"&";case"lt":return"<";case"gt":return">";case"quot":return'"';default:return"#"!=S.charAt(0)||(S=Number("0"+S.substr(1)),isNaN(S))?x:String.fromCharCode(S)}})},goog.string.HTML_ENTITY_PATTERN_=/&([^;\s<&]+);?/g,goog.string.whitespaceEscape=function(v,x){return goog.string.newLineToBr(v.replace(/  /g," &#160;"),x)},goog.string.preserveSpaces=function(v){return v.replace(/(^|[\n ]) /g,"$1"+goog.string.Unicode.NBSP)},goog.string.stripQuotes=function(v,x){for(var S=x.length,D=0;D<S;D++){var n=1==S?x:x.charAt(D);if(v.charAt(0)==n&&v.charAt(v.length-1)==n)return v.substring(1,v.length-1)}return v},goog.string.truncate=function(v,x,S){return S&&(v=goog.string.unescapeEntities(v)),v.length>x&&(v=v.substring(0,x-3)+"..."),S&&(v=goog.string.htmlEscape(v)),v},goog.string.truncateMiddle=function(v,x,S,D){if(S&&(v=goog.string.unescapeEntities(v)),D&&v.length>x){D>x&&(D=x);var n=v.length-D;v=v.substring(0,x-D)+"..."+v.substring(n)}else v.length>x&&(D=Math.floor(x/2),n=v.length-D,v=v.substring(0,D+x%2)+"..."+v.substring(n));return S&&(v=goog.string.htmlEscape(v)),v},goog.string.specialEscapeChars_={"\0":"\\0","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\x0B",'"':'\\"',"\\":"\\\\","<":"\\u003C"},goog.string.jsEscapeCache_={"'":"\\'"},goog.string.quote=function(v){v=String(v);for(var x=['"'],S=0;S<v.length;S++){var D=v.charAt(S),n=D.charCodeAt(0);x[S+1]=goog.string.specialEscapeChars_[D]||(31<n&&127>n?D:goog.string.escapeChar(D))}return x.push('"'),x.join("")},goog.string.escapeString=function(v){for(var x=[],S=0;S<v.length;S++)x[S]=goog.string.escapeChar(v.charAt(S));return x.join("")},goog.string.escapeChar=function(v){if(v in goog.string.jsEscapeCache_)return goog.string.jsEscapeCache_[v];if(v in goog.string.specialEscapeChars_)return goog.string.jsEscapeCache_[v]=goog.string.specialEscapeChars_[v];var x=v.charCodeAt(0);if(31<x&&127>x)var S=v;else 256>x?(S="\\x",(16>x||256<x)&&(S+="0")):(S="\\u",4096>x&&(S+="0")),S+=x.toString(16).toUpperCase();return goog.string.jsEscapeCache_[v]=S},goog.string.contains=goog.string.internal.contains,goog.string.caseInsensitiveContains=goog.string.internal.caseInsensitiveContains,goog.string.countOf=function(v,x){return v&&x?v.split(x).length-1:0},goog.string.removeAt=function(v,x,S){var D=v;return 0<=x&&x<v.length&&0<S&&(D=v.substr(0,x)+v.substr(x+S,v.length-x-S)),D},goog.string.remove=function(v,x){return v.replace(x,"")},goog.string.removeAll=function(v,x){return x=new RegExp(goog.string.regExpEscape(x),"g"),v.replace(x,"")},goog.string.replaceAll=function(v,x,S){return x=new RegExp(goog.string.regExpEscape(x),"g"),v.replace(x,S.replace(/\$/g,"$$$$"))},goog.string.regExpEscape=function(v){return String(v).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")},goog.string.repeat=String.prototype.repeat?function(v,x){return v.repeat(x)}:function(v,x){return Array(x+1).join(v)},goog.string.padNumber=function(v,x,S){return-1==(S=(v=void 0!==S?v.toFixed(S):String(v)).indexOf("."))&&(S=v.length),goog.string.repeat("0",Math.max(0,x-S))+v},goog.string.makeSafe=function(v){return null==v?"":String(v)},goog.string.buildString=function(v){return Array.prototype.join.call(arguments,"")},goog.string.getRandomString=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^goog.now()).toString(36)},goog.string.compareVersions=goog.string.internal.compareVersions,goog.string.hashCode=function(v){for(var x=0,S=0;S<v.length;++S)x=31*x+v.charCodeAt(S)>>>0;return x},goog.string.uniqueStringCounter_=2147483648*Math.random()|0,goog.string.createUniqueString=function(){return"goog_"+goog.string.uniqueStringCounter_++},goog.string.toNumber=function(v){var x=Number(v);return 0==x&&goog.string.isEmptyOrWhitespace(v)?NaN:x},goog.string.isLowerCamelCase=function(v){return/^[a-z]+([A-Z][a-z]*)*$/.test(v)},goog.string.isUpperCamelCase=function(v){return/^([A-Z][a-z]*)+$/.test(v)},goog.string.toCamelCase=function(v){return String(v).replace(/\-([a-z])/g,function(x,S){return S.toUpperCase()})},goog.string.toSelectorCase=function(v){return String(v).replace(/([A-Z])/g,"-$1").toLowerCase()},goog.string.toTitleCase=function(v,x){return x="string"==typeof x?goog.string.regExpEscape(x):"\\s",v.replace(new RegExp("(^"+(x?"|["+x+"]+":"")+")([a-z])","g"),function(S,D,n){return D+n.toUpperCase()})},goog.string.capitalize=function(v){return String(v.charAt(0)).toUpperCase()+String(v.substr(1)).toLowerCase()},goog.string.parseInt=function(v){return isFinite(v)&&(v=String(v)),"string"==typeof v?/^\s*-?0x/i.test(v)?parseInt(v,16):parseInt(v,10):NaN},goog.string.splitLimit=function(v,x,S){v=v.split(x);for(var D=[];0<S&&v.length;)D.push(v.shift()),S--;return v.length&&D.push(v.join(x)),D},goog.string.lastComponent=function(v,x){if(!x)return v;"string"==typeof x&&(x=[x]);for(var S=-1,D=0;D<x.length;D++)if(""!=x[D]){var n=v.lastIndexOf(x[D]);n>S&&(S=n)}return-1==S?v:v.slice(S+1)},goog.string.editDistance=function(v,x){var S=[],D=[];if(v==x)return 0;if(!v.length||!x.length)return Math.max(v.length,x.length);for(var n=0;n<x.length+1;n++)S[n]=n;for(n=0;n<v.length;n++){D[0]=n+1;for(var O=0;O<x.length;O++)D[O+1]=Math.min(D[O]+1,S[O+1]+1,S[O]+Number(v[n]!=x[O]));for(O=0;O<S.length;O++)S[O]=D[O]}return D[x.length]},goog.proto2={},goog.proto2.Descriptor=function(v,x,S){for(this.messageType_=v,this.name_=x.name||null,this.fullName_=x.fullName||null,this.containingType_=x.containingType,this.fields_={},v=0;v<S.length;v++)this.fields_[(x=S[v]).getTag()]=x},goog.proto2.Descriptor.prototype.getName=function(){return this.name_},goog.proto2.Descriptor.prototype.getFullName=function(){return this.fullName_},goog.proto2.Descriptor.prototype.getContainingType=function(){return this.containingType_?this.containingType_.getDescriptor():null},goog.proto2.Descriptor.prototype.getFields=function(){var v=goog.object.getValues(this.fields_);return module$contents$goog$array_sort(v,function(x,S){return x.getTag()-S.getTag()}),v},goog.proto2.Descriptor.prototype.getFieldsMap=function(){return this.fields_},goog.proto2.Descriptor.prototype.findFieldByName=function(v){return goog.object.findValue(this.fields_,function(x,S,D){return x.getName()==v})||null},goog.proto2.Descriptor.prototype.findFieldByTag=function(v){return goog.asserts.assert(goog.string.isNumeric(v)),this.fields_[parseInt(v,10)]||null},goog.proto2.Descriptor.prototype.createMessageInstance=function(){return new this.messageType_},goog.proto2.FieldDescriptor=function(v,x,S){switch(this.parent_=v,goog.asserts.assert(goog.string.isNumeric(x)),this.tag_=x,this.name_=S.name,this.isPacked_=!!S.packed,this.isRepeated_=!!S.repeated,this.isRequired_=!!S.required,this.fieldType_=S.fieldType,this.nativeType_=S.type,this.deserializationConversionPermitted_=!1,this.fieldType_){case goog.proto2.FieldDescriptor.FieldType.INT64:case goog.proto2.FieldDescriptor.FieldType.UINT64:case goog.proto2.FieldDescriptor.FieldType.FIXED64:case goog.proto2.FieldDescriptor.FieldType.SFIXED64:case goog.proto2.FieldDescriptor.FieldType.SINT64:case goog.proto2.FieldDescriptor.FieldType.FLOAT:case goog.proto2.FieldDescriptor.FieldType.DOUBLE:this.deserializationConversionPermitted_=!0}this.defaultValue_=S.defaultValue},goog.proto2.FieldDescriptor.FieldType={DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},goog.proto2.FieldDescriptor.prototype.getTag=function(){return this.tag_},goog.proto2.FieldDescriptor.prototype.getContainingType=function(){return this.parent_.prototype.getDescriptor()},goog.proto2.FieldDescriptor.prototype.getName=function(){return this.name_},goog.proto2.FieldDescriptor.prototype.getDefaultValue=function(){if(void 0===this.defaultValue_){var v=this.nativeType_;if(v===Boolean)this.defaultValue_=!1;else if(v===Number)this.defaultValue_=0;else{if(v!==String)return new v;this.defaultValue_=this.deserializationConversionPermitted_?"0":""}}return this.defaultValue_},goog.proto2.FieldDescriptor.prototype.getFieldType=function(){return this.fieldType_},goog.proto2.FieldDescriptor.prototype.getNativeType=function(){return this.nativeType_},goog.proto2.FieldDescriptor.prototype.deserializationConversionPermitted=function(){return this.deserializationConversionPermitted_},goog.proto2.FieldDescriptor.prototype.getFieldMessageType=function(){return this.nativeType_.prototype.getDescriptor()},goog.proto2.FieldDescriptor.prototype.isCompositeType=function(){return this.fieldType_==goog.proto2.FieldDescriptor.FieldType.MESSAGE||this.fieldType_==goog.proto2.FieldDescriptor.FieldType.GROUP},goog.proto2.FieldDescriptor.prototype.isPacked=function(){return this.isPacked_},goog.proto2.FieldDescriptor.prototype.isRepeated=function(){return this.isRepeated_},goog.proto2.FieldDescriptor.prototype.isRequired=function(){return this.isRequired_},goog.proto2.FieldDescriptor.prototype.isOptional=function(){return!this.isRepeated_&&!this.isRequired_},goog.proto2.Message=function(){this.values_={},this.fields_=this.getDescriptor().getFieldsMap(),this.deserializedFields_=this.lazyDeserializer_=null},goog.proto2.Message.FieldType={DOUBLE:1,FLOAT:2,INT64:3,UINT64:4,INT32:5,FIXED64:6,FIXED32:7,BOOL:8,STRING:9,GROUP:10,MESSAGE:11,BYTES:12,UINT32:13,ENUM:14,SFIXED32:15,SFIXED64:16,SINT32:17,SINT64:18},goog.proto2.Message.prototype.initializeForLazyDeserializer=function(v,x){this.lazyDeserializer_=v,this.values_=x,this.deserializedFields_={}},goog.proto2.Message.prototype.setUnknown=function(v,x){goog.asserts.assert(!this.fields_[v],"Field is not unknown in this message"),goog.asserts.assert(1<=v,"Tag "+v+' has value "'+x+'" in descriptor '+this.getDescriptor().getName()),goog.asserts.assert(null!==x,"Value cannot be null"),this.values_[v]=x,this.deserializedFields_&&delete this.deserializedFields_[v]},goog.proto2.Message.prototype.forEachUnknown=function(v,x){for(var S in x=x||this,this.values_){var D=Number(S);this.fields_[D]||v.call(x,D,this.values_[S])}},goog.proto2.Message.prototype.getDescriptor=goog.abstractMethod,goog.proto2.Message.prototype.has=function(v){return goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.has$Value(v.getTag())},goog.proto2.Message.prototype.arrayOf=function(v){return goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.array$Values(v.getTag())},goog.proto2.Message.prototype.countOf=function(v){return goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.count$Values(v.getTag())},goog.proto2.Message.prototype.get=function(v,x){return goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.get$Value(v.getTag(),x)},goog.proto2.Message.prototype.getOrDefault=function(v,x){return goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.get$ValueOrDefault(v.getTag(),x)},goog.proto2.Message.prototype.set=function(v,x){goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.set$Value(v.getTag(),x)},goog.proto2.Message.prototype.add=function(v,x){goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.add$Value(v.getTag(),x)},goog.proto2.Message.prototype.clear=function(v){goog.asserts.assert(v.getContainingType()==this.getDescriptor(),"The current message does not contain the given field"),this.clear$Field(v.getTag())},goog.proto2.Message.prototype.equals=function(v){if(!v||this.constructor!=v.constructor)return!1;for(var x=this.getDescriptor().getFields(),S=0;S<x.length;S++){var D=x[S],n=D.getTag();if(this.has$Value(n)!=v.has$Value(n))return!1;if(this.has$Value(n)){var O=D.isCompositeType(),R=this.getValueForTag_(n);if(n=v.getValueForTag_(n),D.isRepeated()){if(R.length!=n.length)return!1;for(D=0;D<R.length;D++){var U=R[D],q=n[D];if(O?!U.equals(q):U!=q)return!1}}else if(O?!R.equals(n):R!=n)return!1}}return!0},goog.proto2.Message.prototype.copyFrom=function(v){goog.asserts.assert(this.constructor==v.constructor,"The source message must have the same type."),this!=v&&(this.values_={},this.deserializedFields_&&(this.deserializedFields_={}),this.mergeFrom(v))},goog.proto2.Message.prototype.mergeFrom=function(v){goog.asserts.assert(this.constructor==v.constructor,"The source message must have the same type.");for(var x=this.getDescriptor().getFields(),S=0;S<x.length;S++){var D=x[S],n=D.getTag();if(v.has$Value(n)){this.deserializedFields_&&delete this.deserializedFields_[D.getTag()];var O=D.isCompositeType();if(D.isRepeated()){D=v.array$Values(n);for(var R=0;R<D.length;R++)this.add$Value(n,O?D[R].clone():D[R])}else D=v.getValueForTag_(n),O?(O=this.getValueForTag_(n))?O.mergeFrom(D):this.set$Value(n,D.clone()):this.set$Value(n,D)}}},goog.proto2.Message.prototype.clone=function(){var v=new this.constructor;return v.copyFrom(this),v},goog.proto2.Message.prototype.initDefaults=function(v){for(var x=this.getDescriptor().getFields(),S=0;S<x.length;S++){var D=x[S],n=D.getTag(),O=D.isCompositeType();if(this.has$Value(n)||D.isRepeated()||(O?this.values_[n]=new(D.getNativeType()):v&&(this.values_[n]=D.getDefaultValue())),O)if(D.isRepeated())for(D=this.array$Values(n),n=0;n<D.length;n++)D[n].initDefaults(v);else this.get$Value(n).initDefaults(v)}},goog.proto2.Message.prototype.has$Value=function(v){return null!=this.values_[v]},goog.proto2.Message.prototype.getValueForTag_=function(v){var x=this.values_[v];return null==x?null:this.lazyDeserializer_?v in this.deserializedFields_?this.deserializedFields_[v]:(x=this.lazyDeserializer_.deserializeField(this,this.fields_[v],x),this.deserializedFields_[v]=x):x},goog.proto2.Message.prototype.get$Value=function(v,x){var S=this.getValueForTag_(v);return this.fields_[v].isRepeated()?(goog.asserts.assert(0<=(v=x||0)&&v<S.length,"Given index %s is out of bounds.  Repeated field length: %s",v,S.length),S[v]):S},goog.proto2.Message.prototype.get$ValueOrDefault=function(v,x){return this.has$Value(v)?this.get$Value(v,x):this.fields_[v].getDefaultValue()},goog.proto2.Message.prototype.array$Values=function(v){return this.getValueForTag_(v)||[]},goog.proto2.Message.prototype.count$Values=function(v){return this.fields_[v].isRepeated()?this.has$Value(v)?this.values_[v].length:0:this.has$Value(v)?1:0},goog.proto2.Message.prototype.set$Value=function(v,x){goog.asserts.ENABLE_ASSERTS&&this.checkFieldType_(this.fields_[v],x),this.values_[v]=x,this.deserializedFields_&&(this.deserializedFields_[v]=x)},goog.proto2.Message.prototype.add$Value=function(v,x){goog.asserts.ENABLE_ASSERTS&&this.checkFieldType_(this.fields_[v],x),this.values_[v]||(this.values_[v]=[]),this.values_[v].push(x),this.deserializedFields_&&delete this.deserializedFields_[v]},goog.proto2.Message.prototype.checkFieldType_=function(v,x){v.getFieldType()==goog.proto2.FieldDescriptor.FieldType.ENUM?goog.asserts.assertNumber(x):goog.asserts.assert(Object(x).constructor==v.getNativeType())},goog.proto2.Message.prototype.clear$Field=function(v){delete this.values_[v],this.deserializedFields_&&delete this.deserializedFields_[v]},goog.proto2.Message.createDescriptor=function(v,x){var n,S=[],D=x[0];for(n in x)0!=n&&S.push(new goog.proto2.FieldDescriptor(v,n,x[n]));return new goog.proto2.Descriptor(v,D,S)},goog.proto2.Serializer=function(){},goog.proto2.Serializer.DECODE_SYMBOLIC_ENUMS=!1,goog.proto2.Serializer.prototype.serialize=goog.abstractMethod,goog.proto2.Serializer.prototype.getSerializedValue=function(v,x){return v.isCompositeType()?this.serialize(x):"number"!=typeof x||isFinite(x)?x:x.toString()},goog.proto2.Serializer.prototype.deserialize=function(v,x){return v=v.createMessageInstance(),this.deserializeTo(v,x),goog.asserts.assert(v instanceof goog.proto2.Message),v},goog.proto2.Serializer.prototype.deserializeTo=goog.abstractMethod,goog.proto2.Serializer.prototype.getDeserializedValue=function(v,x){if(v.isCompositeType())return x instanceof goog.proto2.Message?x:this.deserialize(v.getFieldMessageType(),x);if(v.getFieldType()==goog.proto2.FieldDescriptor.FieldType.ENUM)return goog.proto2.Serializer.DECODE_SYMBOLIC_ENUMS&&"string"==typeof x&&(v=v.getNativeType()).hasOwnProperty(x)?v[x]:"string"==typeof x&&goog.proto2.Serializer.INTEGER_REGEX.test(x)&&0<(v=Number(x))?v:x;if(!v.deserializationConversionPermitted())return x;if((v=v.getNativeType())===String){if("number"==typeof x)return String(x)}else if(v===Number&&"string"==typeof x&&("Infinity"===x||"-Infinity"===x||"NaN"===x||goog.proto2.Serializer.INTEGER_REGEX.test(x)))return Number(x);return x},goog.proto2.Serializer.INTEGER_REGEX=/^-?[0-9]+$/,goog.proto2.LazyDeserializer=function(){},goog.inherits(goog.proto2.LazyDeserializer,goog.proto2.Serializer),goog.proto2.LazyDeserializer.prototype.deserialize=function(v,x){return(v=v.createMessageInstance()).initializeForLazyDeserializer(this,x),goog.asserts.assert(v instanceof goog.proto2.Message),v},goog.proto2.LazyDeserializer.prototype.deserializeTo=function(v,x){throw Error("Unimplemented")},goog.proto2.LazyDeserializer.prototype.deserializeField=goog.abstractMethod,goog.proto2.PbLiteSerializer=function(){},goog.inherits(goog.proto2.PbLiteSerializer,goog.proto2.LazyDeserializer),goog.proto2.PbLiteSerializer.prototype.zeroIndexing_=!1,goog.proto2.PbLiteSerializer.prototype.setZeroIndexed=function(v){this.zeroIndexing_=v},goog.proto2.PbLiteSerializer.prototype.serialize=function(v){for(var x=v.getDescriptor().getFields(),S=[],D=this.zeroIndexing_,n=0;n<x.length;n++){var O=x[n];if(v.has(O)){var R=O.getTag();if(R=D?R-1:R,O.isRepeated()){S[R]=[];for(var U=0;U<v.countOf(O);U++)S[R][U]=this.getSerializedValue(O,v.get(O,U))}else S[R]=this.getSerializedValue(O,v.get(O))}}return v.forEachUnknown(function(q,te){S[D?q-1:q]=te}),S},goog.proto2.PbLiteSerializer.prototype.deserializeField=function(v,x,S){if(null==S)return S;if(x.isRepeated()){v=[],goog.asserts.assert(Array.isArray(S),"Value must be array: %s",S);for(var D=0;D<S.length;D++)v[D]=this.getDeserializedValue(x,S[D]);return v}return this.getDeserializedValue(x,S)},goog.proto2.PbLiteSerializer.prototype.getSerializedValue=function(v,x){return v.getFieldType()==goog.proto2.FieldDescriptor.FieldType.BOOL?x?1:0:goog.proto2.Serializer.prototype.getSerializedValue.apply(this,arguments)},goog.proto2.PbLiteSerializer.prototype.getDeserializedValue=function(v,x){return v.getFieldType()==goog.proto2.FieldDescriptor.FieldType.BOOL?(goog.asserts.assert("number"==typeof x||"boolean"==typeof x,"Value is expected to be a number or boolean"),!!x):goog.proto2.Serializer.prototype.getDeserializedValue.apply(this,arguments)},goog.proto2.PbLiteSerializer.prototype.deserialize=function(v,x){var S=x;if(this.zeroIndexing_)for(var D in S=[],x)S[parseInt(D,10)+1]=x[D];return goog.proto2.PbLiteSerializer.superClass_.deserialize.call(this,v,S)},goog.string.StringBuffer=function(v,x){null!=v&&this.append.apply(this,arguments)},goog.string.StringBuffer.prototype.buffer_="",goog.string.StringBuffer.prototype.set=function(v){this.buffer_=""+v},goog.string.StringBuffer.prototype.append=function(v,x,S){if(this.buffer_+=String(v),null!=x)for(var D=1;D<arguments.length;D++)this.buffer_+=arguments[D];return this},goog.string.StringBuffer.prototype.clear=function(){this.buffer_=""},goog.string.StringBuffer.prototype.getLength=function(){return this.buffer_.length},goog.string.StringBuffer.prototype.toString=function(){return this.buffer_};var i18n={phonenumbers:{}};i18n.phonenumbers.NumberFormat=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.NumberFormat,goog.proto2.Message),i18n.phonenumbers.NumberFormat.descriptor_=null,i18n.phonenumbers.NumberFormat.prototype.getPattern=function(){return this.get$Value(1)},i18n.phonenumbers.NumberFormat.prototype.getPatternOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.NumberFormat.prototype.setPattern=function(v){this.set$Value(1,v)},i18n.phonenumbers.NumberFormat.prototype.hasPattern=function(){return this.has$Value(1)},i18n.phonenumbers.NumberFormat.prototype.patternCount=function(){return this.count$Values(1)},i18n.phonenumbers.NumberFormat.prototype.clearPattern=function(){this.clear$Field(1)},i18n.phonenumbers.NumberFormat.prototype.getFormat=function(){return this.get$Value(2)},i18n.phonenumbers.NumberFormat.prototype.getFormatOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.NumberFormat.prototype.setFormat=function(v){this.set$Value(2,v)},i18n.phonenumbers.NumberFormat.prototype.hasFormat=function(){return this.has$Value(2)},i18n.phonenumbers.NumberFormat.prototype.formatCount=function(){return this.count$Values(2)},i18n.phonenumbers.NumberFormat.prototype.clearFormat=function(){this.clear$Field(2)},i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPattern=function(v){return this.get$Value(3,v)},i18n.phonenumbers.NumberFormat.prototype.getLeadingDigitsPatternOrDefault=function(v){return this.get$ValueOrDefault(3,v)},i18n.phonenumbers.NumberFormat.prototype.addLeadingDigitsPattern=function(v){this.add$Value(3,v)},i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternArray=function(){return this.array$Values(3)},i18n.phonenumbers.NumberFormat.prototype.hasLeadingDigitsPattern=function(){return this.has$Value(3)},i18n.phonenumbers.NumberFormat.prototype.leadingDigitsPatternCount=function(){return this.count$Values(3)},i18n.phonenumbers.NumberFormat.prototype.clearLeadingDigitsPattern=function(){this.clear$Field(3)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRule=function(){return this.get$Value(4)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixFormattingRuleOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixFormattingRule=function(v){this.set$Value(4,v)},i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixFormattingRule=function(){return this.has$Value(4)},i18n.phonenumbers.NumberFormat.prototype.nationalPrefixFormattingRuleCount=function(){return this.count$Values(4)},i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixFormattingRule=function(){this.clear$Field(4)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormatting=function(){return this.get$Value(6)},i18n.phonenumbers.NumberFormat.prototype.getNationalPrefixOptionalWhenFormattingOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.NumberFormat.prototype.setNationalPrefixOptionalWhenFormatting=function(v){this.set$Value(6,v)},i18n.phonenumbers.NumberFormat.prototype.hasNationalPrefixOptionalWhenFormatting=function(){return this.has$Value(6)},i18n.phonenumbers.NumberFormat.prototype.nationalPrefixOptionalWhenFormattingCount=function(){return this.count$Values(6)},i18n.phonenumbers.NumberFormat.prototype.clearNationalPrefixOptionalWhenFormatting=function(){this.clear$Field(6)},i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRule=function(){return this.get$Value(5)},i18n.phonenumbers.NumberFormat.prototype.getDomesticCarrierCodeFormattingRuleOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.NumberFormat.prototype.setDomesticCarrierCodeFormattingRule=function(v){this.set$Value(5,v)},i18n.phonenumbers.NumberFormat.prototype.hasDomesticCarrierCodeFormattingRule=function(){return this.has$Value(5)},i18n.phonenumbers.NumberFormat.prototype.domesticCarrierCodeFormattingRuleCount=function(){return this.count$Values(5)},i18n.phonenumbers.NumberFormat.prototype.clearDomesticCarrierCodeFormattingRule=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneNumberDesc=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneNumberDesc,goog.proto2.Message),i18n.phonenumbers.PhoneNumberDesc.descriptor_=null,i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPattern=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPatternOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberPattern=function(v){this.set$Value(2,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberPattern=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberPatternCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberPattern=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLength=function(v){return this.get$Value(9,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthOrDefault=function(v){return this.get$ValueOrDefault(9,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.addPossibleLength=function(v){this.add$Value(9,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthArray=function(){return this.array$Values(9)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleLength=function(){return this.has$Value(9)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthCount=function(){return this.count$Values(9)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleLength=function(){this.clear$Field(9)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthLocalOnly=function(v){return this.get$Value(10,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.getPossibleLengthLocalOnlyOrDefault=function(v){return this.get$ValueOrDefault(10,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.addPossibleLengthLocalOnly=function(v){this.add$Value(10,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthLocalOnlyArray=function(){return this.array$Values(10)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasPossibleLengthLocalOnly=function(){return this.has$Value(10)},i18n.phonenumbers.PhoneNumberDesc.prototype.possibleLengthLocalOnlyCount=function(){return this.count$Values(10)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearPossibleLengthLocalOnly=function(){this.clear$Field(10)},i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumber=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.getExampleNumberOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.setExampleNumber=function(v){this.set$Value(6,v)},i18n.phonenumbers.PhoneNumberDesc.prototype.hasExampleNumber=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.exampleNumberCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneNumberDesc.prototype.clearExampleNumber=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneMetadata=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneMetadata,goog.proto2.Message),i18n.phonenumbers.PhoneMetadata.descriptor_=null,i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDesc=function(){return this.get$Value(1)},i18n.phonenumbers.PhoneMetadata.prototype.getGeneralDescOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.PhoneMetadata.prototype.setGeneralDesc=function(v){this.set$Value(1,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasGeneralDesc=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneMetadata.prototype.generalDescCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneMetadata.prototype.clearGeneralDesc=function(){this.clear$Field(1)},i18n.phonenumbers.PhoneMetadata.prototype.getFixedLine=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneMetadata.prototype.getFixedLineOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneMetadata.prototype.setFixedLine=function(v){this.set$Value(2,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasFixedLine=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneMetadata.prototype.fixedLineCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneMetadata.prototype.clearFixedLine=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneMetadata.prototype.getMobile=function(){return this.get$Value(3)},i18n.phonenumbers.PhoneMetadata.prototype.getMobileOrDefault=function(){return this.get$ValueOrDefault(3)},i18n.phonenumbers.PhoneMetadata.prototype.setMobile=function(v){this.set$Value(3,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasMobile=function(){return this.has$Value(3)},i18n.phonenumbers.PhoneMetadata.prototype.mobileCount=function(){return this.count$Values(3)},i18n.phonenumbers.PhoneMetadata.prototype.clearMobile=function(){this.clear$Field(3)},i18n.phonenumbers.PhoneMetadata.prototype.getTollFree=function(){return this.get$Value(4)},i18n.phonenumbers.PhoneMetadata.prototype.getTollFreeOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.PhoneMetadata.prototype.setTollFree=function(v){this.set$Value(4,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasTollFree=function(){return this.has$Value(4)},i18n.phonenumbers.PhoneMetadata.prototype.tollFreeCount=function(){return this.count$Values(4)},i18n.phonenumbers.PhoneMetadata.prototype.clearTollFree=function(){this.clear$Field(4)},i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRate=function(){return this.get$Value(5)},i18n.phonenumbers.PhoneMetadata.prototype.getPremiumRateOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.PhoneMetadata.prototype.setPremiumRate=function(v){this.set$Value(5,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasPremiumRate=function(){return this.has$Value(5)},i18n.phonenumbers.PhoneMetadata.prototype.premiumRateCount=function(){return this.count$Values(5)},i18n.phonenumbers.PhoneMetadata.prototype.clearPremiumRate=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneMetadata.prototype.getSharedCost=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneMetadata.prototype.getSharedCostOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneMetadata.prototype.setSharedCost=function(v){this.set$Value(6,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasSharedCost=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneMetadata.prototype.sharedCostCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneMetadata.prototype.clearSharedCost=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumber=function(){return this.get$Value(7)},i18n.phonenumbers.PhoneMetadata.prototype.getPersonalNumberOrDefault=function(){return this.get$ValueOrDefault(7)},i18n.phonenumbers.PhoneMetadata.prototype.setPersonalNumber=function(v){this.set$Value(7,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasPersonalNumber=function(){return this.has$Value(7)},i18n.phonenumbers.PhoneMetadata.prototype.personalNumberCount=function(){return this.count$Values(7)},i18n.phonenumbers.PhoneMetadata.prototype.clearPersonalNumber=function(){this.clear$Field(7)},i18n.phonenumbers.PhoneMetadata.prototype.getVoip=function(){return this.get$Value(8)},i18n.phonenumbers.PhoneMetadata.prototype.getVoipOrDefault=function(){return this.get$ValueOrDefault(8)},i18n.phonenumbers.PhoneMetadata.prototype.setVoip=function(v){this.set$Value(8,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasVoip=function(){return this.has$Value(8)},i18n.phonenumbers.PhoneMetadata.prototype.voipCount=function(){return this.count$Values(8)},i18n.phonenumbers.PhoneMetadata.prototype.clearVoip=function(){this.clear$Field(8)},i18n.phonenumbers.PhoneMetadata.prototype.getPager=function(){return this.get$Value(21)},i18n.phonenumbers.PhoneMetadata.prototype.getPagerOrDefault=function(){return this.get$ValueOrDefault(21)},i18n.phonenumbers.PhoneMetadata.prototype.setPager=function(v){this.set$Value(21,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasPager=function(){return this.has$Value(21)},i18n.phonenumbers.PhoneMetadata.prototype.pagerCount=function(){return this.count$Values(21)},i18n.phonenumbers.PhoneMetadata.prototype.clearPager=function(){this.clear$Field(21)},i18n.phonenumbers.PhoneMetadata.prototype.getUan=function(){return this.get$Value(25)},i18n.phonenumbers.PhoneMetadata.prototype.getUanOrDefault=function(){return this.get$ValueOrDefault(25)},i18n.phonenumbers.PhoneMetadata.prototype.setUan=function(v){this.set$Value(25,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasUan=function(){return this.has$Value(25)},i18n.phonenumbers.PhoneMetadata.prototype.uanCount=function(){return this.count$Values(25)},i18n.phonenumbers.PhoneMetadata.prototype.clearUan=function(){this.clear$Field(25)},i18n.phonenumbers.PhoneMetadata.prototype.getEmergency=function(){return this.get$Value(27)},i18n.phonenumbers.PhoneMetadata.prototype.getEmergencyOrDefault=function(){return this.get$ValueOrDefault(27)},i18n.phonenumbers.PhoneMetadata.prototype.setEmergency=function(v){this.set$Value(27,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasEmergency=function(){return this.has$Value(27)},i18n.phonenumbers.PhoneMetadata.prototype.emergencyCount=function(){return this.count$Values(27)},i18n.phonenumbers.PhoneMetadata.prototype.clearEmergency=function(){this.clear$Field(27)},i18n.phonenumbers.PhoneMetadata.prototype.getVoicemail=function(){return this.get$Value(28)},i18n.phonenumbers.PhoneMetadata.prototype.getVoicemailOrDefault=function(){return this.get$ValueOrDefault(28)},i18n.phonenumbers.PhoneMetadata.prototype.setVoicemail=function(v){this.set$Value(28,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasVoicemail=function(){return this.has$Value(28)},i18n.phonenumbers.PhoneMetadata.prototype.voicemailCount=function(){return this.count$Values(28)},i18n.phonenumbers.PhoneMetadata.prototype.clearVoicemail=function(){this.clear$Field(28)},i18n.phonenumbers.PhoneMetadata.prototype.getShortCode=function(){return this.get$Value(29)},i18n.phonenumbers.PhoneMetadata.prototype.getShortCodeOrDefault=function(){return this.get$ValueOrDefault(29)},i18n.phonenumbers.PhoneMetadata.prototype.setShortCode=function(v){this.set$Value(29,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasShortCode=function(){return this.has$Value(29)},i18n.phonenumbers.PhoneMetadata.prototype.shortCodeCount=function(){return this.count$Values(29)},i18n.phonenumbers.PhoneMetadata.prototype.clearShortCode=function(){this.clear$Field(29)},i18n.phonenumbers.PhoneMetadata.prototype.getStandardRate=function(){return this.get$Value(30)},i18n.phonenumbers.PhoneMetadata.prototype.getStandardRateOrDefault=function(){return this.get$ValueOrDefault(30)},i18n.phonenumbers.PhoneMetadata.prototype.setStandardRate=function(v){this.set$Value(30,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasStandardRate=function(){return this.has$Value(30)},i18n.phonenumbers.PhoneMetadata.prototype.standardRateCount=function(){return this.count$Values(30)},i18n.phonenumbers.PhoneMetadata.prototype.clearStandardRate=function(){this.clear$Field(30)},i18n.phonenumbers.PhoneMetadata.prototype.getCarrierSpecific=function(){return this.get$Value(31)},i18n.phonenumbers.PhoneMetadata.prototype.getCarrierSpecificOrDefault=function(){return this.get$ValueOrDefault(31)},i18n.phonenumbers.PhoneMetadata.prototype.setCarrierSpecific=function(v){this.set$Value(31,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasCarrierSpecific=function(){return this.has$Value(31)},i18n.phonenumbers.PhoneMetadata.prototype.carrierSpecificCount=function(){return this.count$Values(31)},i18n.phonenumbers.PhoneMetadata.prototype.clearCarrierSpecific=function(){this.clear$Field(31)},i18n.phonenumbers.PhoneMetadata.prototype.getSmsServices=function(){return this.get$Value(33)},i18n.phonenumbers.PhoneMetadata.prototype.getSmsServicesOrDefault=function(){return this.get$ValueOrDefault(33)},i18n.phonenumbers.PhoneMetadata.prototype.setSmsServices=function(v){this.set$Value(33,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasSmsServices=function(){return this.has$Value(33)},i18n.phonenumbers.PhoneMetadata.prototype.smsServicesCount=function(){return this.count$Values(33)},i18n.phonenumbers.PhoneMetadata.prototype.clearSmsServices=function(){this.clear$Field(33)},i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDialling=function(){return this.get$Value(24)},i18n.phonenumbers.PhoneMetadata.prototype.getNoInternationalDiallingOrDefault=function(){return this.get$ValueOrDefault(24)},i18n.phonenumbers.PhoneMetadata.prototype.setNoInternationalDialling=function(v){this.set$Value(24,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasNoInternationalDialling=function(){return this.has$Value(24)},i18n.phonenumbers.PhoneMetadata.prototype.noInternationalDiallingCount=function(){return this.count$Values(24)},i18n.phonenumbers.PhoneMetadata.prototype.clearNoInternationalDialling=function(){this.clear$Field(24)},i18n.phonenumbers.PhoneMetadata.prototype.getId=function(){return this.get$Value(9)},i18n.phonenumbers.PhoneMetadata.prototype.getIdOrDefault=function(){return this.get$ValueOrDefault(9)},i18n.phonenumbers.PhoneMetadata.prototype.setId=function(v){this.set$Value(9,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasId=function(){return this.has$Value(9)},i18n.phonenumbers.PhoneMetadata.prototype.idCount=function(){return this.count$Values(9)},i18n.phonenumbers.PhoneMetadata.prototype.clearId=function(){this.clear$Field(9)},i18n.phonenumbers.PhoneMetadata.prototype.getCountryCode=function(){return this.get$Value(10)},i18n.phonenumbers.PhoneMetadata.prototype.getCountryCodeOrDefault=function(){return this.get$ValueOrDefault(10)},i18n.phonenumbers.PhoneMetadata.prototype.setCountryCode=function(v){this.set$Value(10,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasCountryCode=function(){return this.has$Value(10)},i18n.phonenumbers.PhoneMetadata.prototype.countryCodeCount=function(){return this.count$Values(10)},i18n.phonenumbers.PhoneMetadata.prototype.clearCountryCode=function(){this.clear$Field(10)},i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefix=function(){return this.get$Value(11)},i18n.phonenumbers.PhoneMetadata.prototype.getInternationalPrefixOrDefault=function(){return this.get$ValueOrDefault(11)},i18n.phonenumbers.PhoneMetadata.prototype.setInternationalPrefix=function(v){this.set$Value(11,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasInternationalPrefix=function(){return this.has$Value(11)},i18n.phonenumbers.PhoneMetadata.prototype.internationalPrefixCount=function(){return this.count$Values(11)},i18n.phonenumbers.PhoneMetadata.prototype.clearInternationalPrefix=function(){this.clear$Field(11)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefix=function(){return this.get$Value(17)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredInternationalPrefixOrDefault=function(){return this.get$ValueOrDefault(17)},i18n.phonenumbers.PhoneMetadata.prototype.setPreferredInternationalPrefix=function(v){this.set$Value(17,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredInternationalPrefix=function(){return this.has$Value(17)},i18n.phonenumbers.PhoneMetadata.prototype.preferredInternationalPrefixCount=function(){return this.count$Values(17)},i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredInternationalPrefix=function(){this.clear$Field(17)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefix=function(){return this.get$Value(12)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixOrDefault=function(){return this.get$ValueOrDefault(12)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefix=function(v){this.set$Value(12,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix=function(){return this.has$Value(12)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixCount=function(){return this.count$Values(12)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefix=function(){this.clear$Field(12)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefix=function(){return this.get$Value(13)},i18n.phonenumbers.PhoneMetadata.prototype.getPreferredExtnPrefixOrDefault=function(){return this.get$ValueOrDefault(13)},i18n.phonenumbers.PhoneMetadata.prototype.setPreferredExtnPrefix=function(v){this.set$Value(13,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasPreferredExtnPrefix=function(){return this.has$Value(13)},i18n.phonenumbers.PhoneMetadata.prototype.preferredExtnPrefixCount=function(){return this.count$Values(13)},i18n.phonenumbers.PhoneMetadata.prototype.clearPreferredExtnPrefix=function(){this.clear$Field(13)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsing=function(){return this.get$Value(15)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixForParsingOrDefault=function(){return this.get$ValueOrDefault(15)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixForParsing=function(v){this.set$Value(15,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixForParsing=function(){return this.has$Value(15)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixForParsingCount=function(){return this.count$Values(15)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixForParsing=function(){this.clear$Field(15)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRule=function(){return this.get$Value(16)},i18n.phonenumbers.PhoneMetadata.prototype.getNationalPrefixTransformRuleOrDefault=function(){return this.get$ValueOrDefault(16)},i18n.phonenumbers.PhoneMetadata.prototype.setNationalPrefixTransformRule=function(v){this.set$Value(16,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefixTransformRule=function(){return this.has$Value(16)},i18n.phonenumbers.PhoneMetadata.prototype.nationalPrefixTransformRuleCount=function(){return this.count$Values(16)},i18n.phonenumbers.PhoneMetadata.prototype.clearNationalPrefixTransformRule=function(){this.clear$Field(16)},i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePattern=function(){return this.get$Value(18)},i18n.phonenumbers.PhoneMetadata.prototype.getSameMobileAndFixedLinePatternOrDefault=function(){return this.get$ValueOrDefault(18)},i18n.phonenumbers.PhoneMetadata.prototype.setSameMobileAndFixedLinePattern=function(v){this.set$Value(18,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasSameMobileAndFixedLinePattern=function(){return this.has$Value(18)},i18n.phonenumbers.PhoneMetadata.prototype.sameMobileAndFixedLinePatternCount=function(){return this.count$Values(18)},i18n.phonenumbers.PhoneMetadata.prototype.clearSameMobileAndFixedLinePattern=function(){this.clear$Field(18)},i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormat=function(v){return this.get$Value(19,v)},i18n.phonenumbers.PhoneMetadata.prototype.getNumberFormatOrDefault=function(v){return this.get$ValueOrDefault(19,v)},i18n.phonenumbers.PhoneMetadata.prototype.addNumberFormat=function(v){this.add$Value(19,v)},i18n.phonenumbers.PhoneMetadata.prototype.numberFormatArray=function(){return this.array$Values(19)},i18n.phonenumbers.PhoneMetadata.prototype.hasNumberFormat=function(){return this.has$Value(19)},i18n.phonenumbers.PhoneMetadata.prototype.numberFormatCount=function(){return this.count$Values(19)},i18n.phonenumbers.PhoneMetadata.prototype.clearNumberFormat=function(){this.clear$Field(19)},i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormat=function(v){return this.get$Value(20,v)},i18n.phonenumbers.PhoneMetadata.prototype.getIntlNumberFormatOrDefault=function(v){return this.get$ValueOrDefault(20,v)},i18n.phonenumbers.PhoneMetadata.prototype.addIntlNumberFormat=function(v){this.add$Value(20,v)},i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatArray=function(){return this.array$Values(20)},i18n.phonenumbers.PhoneMetadata.prototype.hasIntlNumberFormat=function(){return this.has$Value(20)},i18n.phonenumbers.PhoneMetadata.prototype.intlNumberFormatCount=function(){return this.count$Values(20)},i18n.phonenumbers.PhoneMetadata.prototype.clearIntlNumberFormat=function(){this.clear$Field(20)},i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCode=function(){return this.get$Value(22)},i18n.phonenumbers.PhoneMetadata.prototype.getMainCountryForCodeOrDefault=function(){return this.get$ValueOrDefault(22)},i18n.phonenumbers.PhoneMetadata.prototype.setMainCountryForCode=function(v){this.set$Value(22,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasMainCountryForCode=function(){return this.has$Value(22)},i18n.phonenumbers.PhoneMetadata.prototype.mainCountryForCodeCount=function(){return this.count$Values(22)},i18n.phonenumbers.PhoneMetadata.prototype.clearMainCountryForCode=function(){this.clear$Field(22)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigits=function(){return this.get$Value(23)},i18n.phonenumbers.PhoneMetadata.prototype.getLeadingDigitsOrDefault=function(){return this.get$ValueOrDefault(23)},i18n.phonenumbers.PhoneMetadata.prototype.setLeadingDigits=function(v){this.set$Value(23,v)},i18n.phonenumbers.PhoneMetadata.prototype.hasLeadingDigits=function(){return this.has$Value(23)},i18n.phonenumbers.PhoneMetadata.prototype.leadingDigitsCount=function(){return this.count$Values(23)},i18n.phonenumbers.PhoneMetadata.prototype.clearLeadingDigits=function(){this.clear$Field(23)},i18n.phonenumbers.PhoneMetadataCollection=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneMetadataCollection,goog.proto2.Message),i18n.phonenumbers.PhoneMetadataCollection.descriptor_=null,i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadata=function(v){return this.get$Value(1,v)},i18n.phonenumbers.PhoneMetadataCollection.prototype.getMetadataOrDefault=function(v){return this.get$ValueOrDefault(1,v)},i18n.phonenumbers.PhoneMetadataCollection.prototype.addMetadata=function(v){this.add$Value(1,v)},i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataArray=function(){return this.array$Values(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.hasMetadata=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.metadataCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneMetadataCollection.prototype.clearMetadata=function(){this.clear$Field(1)},i18n.phonenumbers.NumberFormat.prototype.getDescriptor=function(){var v=i18n.phonenumbers.NumberFormat.descriptor_;return v||(i18n.phonenumbers.NumberFormat.descriptor_=v=goog.proto2.Message.createDescriptor(i18n.phonenumbers.NumberFormat,{0:{name:"NumberFormat",fullName:"i18n.phonenumbers.NumberFormat"},1:{name:"pattern",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},2:{name:"format",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},3:{name:"leading_digits_pattern",repeated:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},4:{name:"national_prefix_formatting_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String},6:{name:"national_prefix_optional_when_formatting",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean},5:{name:"domestic_carrier_code_formatting_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),v},i18n.phonenumbers.NumberFormat.getDescriptor=i18n.phonenumbers.NumberFormat.prototype.getDescriptor,i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor=function(){var v=i18n.phonenumbers.PhoneNumberDesc.descriptor_;return v||(i18n.phonenumbers.PhoneNumberDesc.descriptor_=v=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneNumberDesc,{0:{name:"PhoneNumberDesc",fullName:"i18n.phonenumbers.PhoneNumberDesc"},2:{name:"national_number_pattern",fieldType:goog.proto2.Message.FieldType.STRING,type:String},9:{name:"possible_length",repeated:!0,fieldType:goog.proto2.Message.FieldType.INT32,type:Number},10:{name:"possible_length_local_only",repeated:!0,fieldType:goog.proto2.Message.FieldType.INT32,type:Number},6:{name:"example_number",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),v},i18n.phonenumbers.PhoneNumberDesc.getDescriptor=i18n.phonenumbers.PhoneNumberDesc.prototype.getDescriptor,i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor=function(){var v=i18n.phonenumbers.PhoneMetadata.descriptor_;return v||(i18n.phonenumbers.PhoneMetadata.descriptor_=v=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneMetadata,{0:{name:"PhoneMetadata",fullName:"i18n.phonenumbers.PhoneMetadata"},1:{name:"general_desc",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},2:{name:"fixed_line",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},3:{name:"mobile",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},4:{name:"toll_free",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},5:{name:"premium_rate",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},6:{name:"shared_cost",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},7:{name:"personal_number",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},8:{name:"voip",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},21:{name:"pager",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},25:{name:"uan",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},27:{name:"emergency",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},28:{name:"voicemail",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},29:{name:"short_code",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},30:{name:"standard_rate",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},31:{name:"carrier_specific",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},33:{name:"sms_services",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},24:{name:"no_international_dialling",fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneNumberDesc},9:{name:"id",required:!0,fieldType:goog.proto2.Message.FieldType.STRING,type:String},10:{name:"country_code",fieldType:goog.proto2.Message.FieldType.INT32,type:Number},11:{name:"international_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},17:{name:"preferred_international_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},12:{name:"national_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},13:{name:"preferred_extn_prefix",fieldType:goog.proto2.Message.FieldType.STRING,type:String},15:{name:"national_prefix_for_parsing",fieldType:goog.proto2.Message.FieldType.STRING,type:String},16:{name:"national_prefix_transform_rule",fieldType:goog.proto2.Message.FieldType.STRING,type:String},18:{name:"same_mobile_and_fixed_line_pattern",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean},19:{name:"number_format",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.NumberFormat},20:{name:"intl_number_format",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.NumberFormat},22:{name:"main_country_for_code",fieldType:goog.proto2.Message.FieldType.BOOL,defaultValue:!1,type:Boolean},23:{name:"leading_digits",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),v},i18n.phonenumbers.PhoneMetadata.getDescriptor=i18n.phonenumbers.PhoneMetadata.prototype.getDescriptor,i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor=function(){var v=i18n.phonenumbers.PhoneMetadataCollection.descriptor_;return v||(i18n.phonenumbers.PhoneMetadataCollection.descriptor_=v=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneMetadataCollection,{0:{name:"PhoneMetadataCollection",fullName:"i18n.phonenumbers.PhoneMetadataCollection"},1:{name:"metadata",repeated:!0,fieldType:goog.proto2.Message.FieldType.MESSAGE,type:i18n.phonenumbers.PhoneMetadata}})),v},i18n.phonenumbers.PhoneMetadataCollection.getDescriptor=i18n.phonenumbers.PhoneMetadataCollection.prototype.getDescriptor,i18n.phonenumbers.PhoneNumber=function(){goog.proto2.Message.call(this)},goog.inherits(i18n.phonenumbers.PhoneNumber,goog.proto2.Message),i18n.phonenumbers.PhoneNumber.descriptor_=null,i18n.phonenumbers.PhoneNumber.prototype.getCountryCode=function(){return this.get$Value(1)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeOrDefault=function(){return this.get$ValueOrDefault(1)},i18n.phonenumbers.PhoneNumber.prototype.setCountryCode=function(v){this.set$Value(1,v)},i18n.phonenumbers.PhoneNumber.prototype.hasCountryCode=function(){return this.has$Value(1)},i18n.phonenumbers.PhoneNumber.prototype.countryCodeCount=function(){return this.count$Values(1)},i18n.phonenumbers.PhoneNumber.prototype.clearCountryCode=function(){this.clear$Field(1)},i18n.phonenumbers.PhoneNumber.prototype.getNationalNumber=function(){return this.get$Value(2)},i18n.phonenumbers.PhoneNumber.prototype.getNationalNumberOrDefault=function(){return this.get$ValueOrDefault(2)},i18n.phonenumbers.PhoneNumber.prototype.setNationalNumber=function(v){this.set$Value(2,v)},i18n.phonenumbers.PhoneNumber.prototype.hasNationalNumber=function(){return this.has$Value(2)},i18n.phonenumbers.PhoneNumber.prototype.nationalNumberCount=function(){return this.count$Values(2)},i18n.phonenumbers.PhoneNumber.prototype.clearNationalNumber=function(){this.clear$Field(2)},i18n.phonenumbers.PhoneNumber.prototype.getExtension=function(){return this.get$Value(3)},i18n.phonenumbers.PhoneNumber.prototype.getExtensionOrDefault=function(){return this.get$ValueOrDefault(3)},i18n.phonenumbers.PhoneNumber.prototype.setExtension=function(v){this.set$Value(3,v)},i18n.phonenumbers.PhoneNumber.prototype.hasExtension=function(){return this.has$Value(3)},i18n.phonenumbers.PhoneNumber.prototype.extensionCount=function(){return this.count$Values(3)},i18n.phonenumbers.PhoneNumber.prototype.clearExtension=function(){this.clear$Field(3)},i18n.phonenumbers.PhoneNumber.prototype.getItalianLeadingZero=function(){return this.get$Value(4)},i18n.phonenumbers.PhoneNumber.prototype.getItalianLeadingZeroOrDefault=function(){return this.get$ValueOrDefault(4)},i18n.phonenumbers.PhoneNumber.prototype.setItalianLeadingZero=function(v){this.set$Value(4,v)},i18n.phonenumbers.PhoneNumber.prototype.hasItalianLeadingZero=function(){return this.has$Value(4)},i18n.phonenumbers.PhoneNumber.prototype.italianLeadingZeroCount=function(){return this.count$Values(4)},i18n.phonenumbers.PhoneNumber.prototype.clearItalianLeadingZero=function(){this.clear$Field(4)},i18n.phonenumbers.PhoneNumber.prototype.getNumberOfLeadingZeros=function(){return this.get$Value(8)},i18n.phonenumbers.PhoneNumber.prototype.getNumberOfLeadingZerosOrDefault=function(){return this.get$ValueOrDefault(8)},i18n.phonenumbers.PhoneNumber.prototype.setNumberOfLeadingZeros=function(v){this.set$Value(8,v)},i18n.phonenumbers.PhoneNumber.prototype.hasNumberOfLeadingZeros=function(){return this.has$Value(8)},i18n.phonenumbers.PhoneNumber.prototype.numberOfLeadingZerosCount=function(){return this.count$Values(8)},i18n.phonenumbers.PhoneNumber.prototype.clearNumberOfLeadingZeros=function(){this.clear$Field(8)},i18n.phonenumbers.PhoneNumber.prototype.getRawInput=function(){return this.get$Value(5)},i18n.phonenumbers.PhoneNumber.prototype.getRawInputOrDefault=function(){return this.get$ValueOrDefault(5)},i18n.phonenumbers.PhoneNumber.prototype.setRawInput=function(v){this.set$Value(5,v)},i18n.phonenumbers.PhoneNumber.prototype.hasRawInput=function(){return this.has$Value(5)},i18n.phonenumbers.PhoneNumber.prototype.rawInputCount=function(){return this.count$Values(5)},i18n.phonenumbers.PhoneNumber.prototype.clearRawInput=function(){this.clear$Field(5)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeSource=function(){return this.get$Value(6)},i18n.phonenumbers.PhoneNumber.prototype.getCountryCodeSourceOrDefault=function(){return this.get$ValueOrDefault(6)},i18n.phonenumbers.PhoneNumber.prototype.setCountryCodeSource=function(v){this.set$Value(6,v)},i18n.phonenumbers.PhoneNumber.prototype.hasCountryCodeSource=function(){return this.has$Value(6)},i18n.phonenumbers.PhoneNumber.prototype.countryCodeSourceCount=function(){return this.count$Values(6)},i18n.phonenumbers.PhoneNumber.prototype.clearCountryCodeSource=function(){this.clear$Field(6)},i18n.phonenumbers.PhoneNumber.prototype.getPreferredDomesticCarrierCode=function(){return this.get$Value(7)},i18n.phonenumbers.PhoneNumber.prototype.getPreferredDomesticCarrierCodeOrDefault=function(){return this.get$ValueOrDefault(7)},i18n.phonenumbers.PhoneNumber.prototype.setPreferredDomesticCarrierCode=function(v){this.set$Value(7,v)},i18n.phonenumbers.PhoneNumber.prototype.hasPreferredDomesticCarrierCode=function(){return this.has$Value(7)},i18n.phonenumbers.PhoneNumber.prototype.preferredDomesticCarrierCodeCount=function(){return this.count$Values(7)},i18n.phonenumbers.PhoneNumber.prototype.clearPreferredDomesticCarrierCode=function(){this.clear$Field(7)},i18n.phonenumbers.PhoneNumber.CountryCodeSource={UNSPECIFIED:0,FROM_NUMBER_WITH_PLUS_SIGN:1,FROM_NUMBER_WITH_IDD:5,FROM_NUMBER_WITHOUT_PLUS_SIGN:10,FROM_DEFAULT_COUNTRY:20},i18n.phonenumbers.PhoneNumber.prototype.getDescriptor=function(){var v=i18n.phonenumbers.PhoneNumber.descriptor_;return v||(i18n.phonenumbers.PhoneNumber.descriptor_=v=goog.proto2.Message.createDescriptor(i18n.phonenumbers.PhoneNumber,{0:{name:"PhoneNumber",fullName:"i18n.phonenumbers.PhoneNumber"},1:{name:"country_code",required:!0,fieldType:goog.proto2.Message.FieldType.INT32,type:Number},2:{name:"national_number",required:!0,fieldType:goog.proto2.Message.FieldType.UINT64,type:Number},3:{name:"extension",fieldType:goog.proto2.Message.FieldType.STRING,type:String},4:{name:"italian_leading_zero",fieldType:goog.proto2.Message.FieldType.BOOL,type:Boolean},8:{name:"number_of_leading_zeros",fieldType:goog.proto2.Message.FieldType.INT32,defaultValue:1,type:Number},5:{name:"raw_input",fieldType:goog.proto2.Message.FieldType.STRING,type:String},6:{name:"country_code_source",fieldType:goog.proto2.Message.FieldType.ENUM,defaultValue:i18n.phonenumbers.PhoneNumber.CountryCodeSource.UNSPECIFIED,type:i18n.phonenumbers.PhoneNumber.CountryCodeSource},7:{name:"preferred_domestic_carrier_code",fieldType:goog.proto2.Message.FieldType.STRING,type:String}})),v},i18n.phonenumbers.PhoneNumber.ctor=i18n.phonenumbers.PhoneNumber,i18n.phonenumbers.PhoneNumber.ctor.getDescriptor=i18n.phonenumbers.PhoneNumber.prototype.getDescriptor,i18n.phonenumbers.metadata={},i18n.phonenumbers.metadata.countryCodeToRegionCodeMap={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".split(" "),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"],800:["001"],808:["001"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],870:["001"],878:["001"],880:["BD"],881:["001"],882:["001"],883:["001"],886:["TW"],888:["001"],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"],979:["001"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},i18n.phonenumbers.metadata.countryToMetadata={AC:[,[,,"(?:[01589]\\d|[46])\\d{4}",,,,,,,[5,6]],[,,"6[2-467]\\d{3}",,,,"62889",,,[5]],[,,"4\\d{4}",,,,"40123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AC",247,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:0[1-9]|[1589]\\d)\\d{4}",,,,"542011",,,[6]],,,[,,,,,,,,,[-1]]],AD:[,[,,"(?:1|6\\d)\\d{7}|[135-9]\\d{5}",,,,,,,[6,8,9]],[,,"[78]\\d{5}",,,,"712345",,,[6]],[,,"690\\d{6}|[356]\\d{5}",,,,"312345",,,[6,9]],[,,"180[02]\\d{4}",,,,"18001234",,,[8]],[,,"[19]\\d{5}",,,,"912345",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AD",376,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AE:[,[,,"(?:[4-7]\\d|9[0-689])\\d{7}|800\\d{2,9}|[2-4679]\\d{7}",,,,,,,[5,6,7,8,9,10,11,12]],[,,"[2-4679][2-8]\\d{6}",,,,"22345678",,,[8],[7]],[,,"5[024-68]\\d{7}",,,,"501234567",,,[9]],[,,"400\\d{6}|800\\d{2,9}",,,,"800123456"],[,,"900[02]\\d{5}",,,,"900234567",,,[9]],[,,"700[05]\\d{5}",,,,"700012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AE",971,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"600[25]\\d{5}",,,,"600212345",,,[9]],,,[,,,,,,,,,[-1]]],AF:[,[,,"[2-7]\\d{8}",,,,,,,[9],[7]],[,,"(?:[25][0-8]|[34][0-4]|6[0-5])[2-9]\\d{6}",,,,"234567890",,,,[7]],[,,"7\\d{8}",,,,"701234567",,,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AF",93,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[2-7]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AG:[,[,,"(?:268|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"268(?:4(?:6[0-38]|84)|56[0-2])\\d{4}",,,,"2684601234",,,,[7]],[,,"268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}",,,,"2684641234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"26848[01]\\d{4}",,,,"2684801234",,,,[7]],"AG",1,"011","1",,,"1|([457]\\d{6})$","268$1",,,,,[,,"26840[69]\\d{4}",,,,"2684061234",,,,[7]],,"268",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AI:[,[,,"(?:264|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"264(?:292|4(?:6[12]|9[78]))\\d{4}",,,,"2644612345",,,,[7]],[,,"264(?:235|4(?:69|76)|5(?:3[6-9]|8[1-4])|7(?:29|72))\\d{4}",,,,"2642351234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AI",1,"011","1",,,"1|([2457]\\d{6})$","264$1",,,,,[,,"264724\\d{4}",,,,"2647241234",,,,[7]],,"264",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AL:[,[,,"(?:700\\d\\d|900)\\d{3}|8\\d{5,7}|(?:[2-5]|6\\d)\\d{7}",,,,,,,[6,7,8,9],[5]],[,,"4505[0-2]\\d{3}|(?:[2358][16-9]\\d[2-9]|4410)\\d{4}|(?:[2358][2-5][2-9]|4(?:[2-57-9][2-9]|6\\d))\\d{5}",,,,"22345678",,,[8],[5,6,7]],[,,"6(?:[78][2-9]|9\\d)\\d{6}",,,,"672123456",,,[9]],[,,"800\\d{4}",,,,"8001234",,,[7]],[,,"900[1-9]\\d\\d",,,,"900123",,,[6]],[,,"808[1-9]\\d\\d",,,,"808123",,,[6]],[,,"700[2-9]\\d{4}",,,,"70021234",,,[8]],[,,,,,,,,,[-1]],"AL",355,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AM:[,[,,"(?:[1-489]\\d|55|60|77)\\d{6}",,,,,,,[8],[5,6]],[,,"(?:(?:1[0-25]|47)\\d|2(?:2[2-46]|3[1-8]|4[2-69]|5[2-7]|6[1-9]|8[1-7])|3[12]2)\\d{5}",,,,"10123456",,,,[5,6]],[,,"(?:33|4[1349]|55|77|88|9[13-9])\\d{6}",,,,"77123456"],[,,"800\\d{5}",,,,"80012345"],[,,"90[016]\\d{5}",,,,"90012345"],[,,"80[1-4]\\d{5}",,,,"80112345"],[,,,,,,,,,[-1]],[,,"60(?:2[78]|3[5-9]|4[02-9]|5[0-46-9]|[6-8]\\d|9[01])\\d{4}",,,,"60271234"],"AM",374,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AO:[,[,,"[29]\\d{8}",,,,,,,[9]],[,,"2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}",,,,"222123456"],[,,"9[1-59]\\d{7}",,,,"923123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AO",244,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AR:[,[,,"(?:11|[89]\\d\\d)\\d{8}|[2368]\\d{9}",,,,,,,[10,11],[6,7,8]],[,,"3888[013-9]\\d{5}|3(?:7(?:1[15]|81)|8(?:21|4[16]|69|9[12]))[46]\\d{5}|(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:(?:11[1-8]|670)\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6])))\\d{6}|2(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"1123456789",,,[10],[6,7,8]],[,,"93(?:7(?:1[15]|81)[46]|8(?:(?:21|4[16]|69|9[12])[46]|88[013-9]))\\d{5}|9(?:29(?:54|66)|3(?:7(?:55|77)|865))[2-8]\\d{5}|9(?:2(?:2(?:2[59]|44|52)|3(?:26|44)|473|9(?:[07]2|2[26]|34|46))|3327)[45]\\d{5}|9(?:2(?:284|3(?:02|23)|657|920)|3(?:4(?:8[27]|92)|541|878))[2-7]\\d{5}|9(?:2(?:(?:26|62)2|320|477|9(?:42|83))|3(?:329|4(?:[47]6|62|89)|564))[2-6]\\d{5}|(?:675\\d|9(?:11[1-8]\\d|2(?:2(?:0[45]|1[2-6]|3[3-6])|3(?:[06]4|7[45])|494|6(?:04|1[2-8]|[36][45]|4[3-6])|80[45]|9(?:[17][4-6]|[48][45]|9[3-6]))|3(?:364|4(?:1[2-7]|[235][4-6]|84)|5(?:1[2-9]|[38][4-6])|6(?:2[45]|44)|7[069][45]|8(?:0[45]|[17][2-6]|3[4-6]|[58][3-6]))))\\d{6}|92(?:2(?:21|4[23]|6[145]|7[1-4]|8[356]|9[267])|3(?:16|3[13-8]|43|5[346-8]|9[3-5])|475|6(?:2[46]|4[78]|5[1568])|9(?:03|2[1457-9]|3[1356]|4[08]|[56][23]|82))4\\d{5}|9(?:2(?:2(?:57|81)|3(?:24|46|92)|9(?:01|23|64))|3(?:4(?:42|71)|5(?:25|37|4[347]|71)|7(?:18|5[17])))[3-6]\\d{5}|9(?:2(?:2(?:02|2[3467]|4[156]|5[45]|6[6-8]|91)|3(?:1[47]|25|[45][25]|96)|47[48]|625|932)|3(?:38[2578]|4(?:0[0-24-9]|3[78]|4[457]|58|6[03-9]|72|83|9[136-8])|5(?:2[124]|[368][23]|4[2689]|7[2-6])|7(?:16|2[15]|3[145]|4[13]|5[468]|7[2-5]|8[26])|8(?:2[5-7]|3[278]|4[3-5]|5[78]|6[1-378]|[78]7|94)))[4-6]\\d{5}",,,,"91123456789",,,,[6,7,8]],[,,"800\\d{7,8}",,,,"8001234567"],[,,"60[04579]\\d{7}",,,,"6001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AR",54,"00","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",,,[[,"(\\d{3})","$1",["0|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478])|911"]],[,"(\\d{2})(\\d{4})","$1-$2",["[1-9]"]],[,"(\\d{3})(\\d{4})","$1-$2",["[2-9]"]],[,"(\\d{4})(\\d{4})","$1-$2",["[1-8]"]],[,"(\\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"],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 15-$3-$4",["91"],"0$1"],[,"(\\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"]],[[,"(\\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})","$1 $2 $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]"]],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3-$4",["91"]],[,"(\\d{3})(\\d{3})(\\d{5})","$1-$2-$3",["8"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3-$4",["9"]]],[,,,,,,,,,[-1]],,,[,,"810\\d{7}",,,,,,,[10]],[,,"810\\d{7}",,,,"8101234567",,,[10]],,,[,,,,,,,,,[-1]]],AS:[,[,,"(?:[58]\\d\\d|684|900)\\d{7}",,,,,,,[10],[7]],[,,"6846(?:22|33|44|55|77|88|9[19])\\d{4}",,,,"6846221234",,,,[7]],[,,"684(?:2(?:48|5[2468]|7[26])|7(?:3[13]|70|82))\\d{4}",,,,"6847331234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"AS",1,"011","1",,,"1|([267]\\d{6})$","684$1",,,,,[,,,,,,,,,[-1]],,"684",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AT:[,[,,"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],[3]],[,,"1(?:11\\d|[2-9]\\d{3,11})|(?:316|463|(?:51|66|73)2)\\d{3,10}|(?:2(?:1[467]|2[13-8]|5[2357]|6[1-46-8]|7[1-8]|8[124-7]|9[1458])|3(?:1[1-578]|3[23568]|4[5-7]|5[1378]|6[1-38]|8[3-68])|4(?:2[1-8]|35|7[1368]|8[2457])|5(?:2[1-8]|3[357]|4[147]|5[12578]|6[37])|6(?:13|2[1-47]|4[135-8]|5[468])|7(?:2[1-8]|35|4[13478]|5[68]|6[16-8]|7[1-6]|9[45]))\\d{4,10}",,,,"1234567890",,,,[3]],[,,"6(?:5[0-3579]|6[013-9]|[7-9]\\d)\\d{4,10}",,,,"664123456",,,[7,8,9,10,11,12,13]],[,,"800\\d{6,10}",,,,"800123456",,,[9,10,11,12,13]],[,,"(?:8[69][2-68]|9(?:0[01]|3[019]))\\d{6,10}",,,,"900123456",,,[9,10,11,12,13]],[,,"8(?:10|2[018])\\d{6,10}|828\\d{5}",,,,"810123456",,,[8,9,10,11,12,13]],[,,,,,,,,,[-1]],[,,"5(?:0[1-9]|17|[79]\\d)\\d{2,10}|7[28]0\\d{6,10}",,,,"780123456",,,[5,6,7,8,9,10,11,12,13]],"AT",43,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["14"]],[,"(\\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{6})","$1",["[18]"]],[,"(\\d{3})(\\d{3,10})","$1 $2",["(?:31|4)6|51|6(?: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"]],[[,"(\\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(?: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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AU:[,[,,"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]],[,,"(?:(?:2(?:[0-26-9]\\d|3[0-8]|4[02-9]|5[0135-9])|3(?:[0-3589]\\d|4[0-578]|6[1-9]|7[0-35-9])|7(?:[013-57-9]\\d|2[0-8]))\\d{3}|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]))|(?: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}",,,,"212345678",,,[9],[8]],[,,"4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"AU",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|(183[12])",,"0011",,[[,"(\\d{2})(\\d{3,4})","$1 $2",["16"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["13"]],[,"(\\d{3})(\\d{3})","$1 $2",["19"]],[,"(\\d{3})(\\d{4})","$1 $2",["180","1802"]],[,"(\\d{4})(\\d{3,4})","$1 $2",["19"]],[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]],[,"(\\d{4})(\\d{4})(\\d{4})","$1 $2 $3",["130"]]],[[,"(\\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)","$CC ($1)"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1(?:30|[89])"]]],[,,"163\\d{2,6}",,,,"1631234",,,[5,6,7,8,9]],1,,[,,"1(?:3(?:00\\d{5}|45[0-4])|802)\\d{3}|1[38]00\\d{6}|13\\d{4}",,,,,,,[6,7,8,10,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AW:[,[,,"(?:[25-79]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"5(?:2\\d|8[1-9])\\d{4}",,,,"5212345"],[,,"(?:290|5[69]\\d|6(?:[03]0|22|4[0-2]|[69]\\d)|7(?:[34]\\d|7[07])|9(?:6[45]|9[4-8]))\\d{4}",,,,"5601234"],[,,"800\\d{4}",,,,"8001234"],[,,"900\\d{4}",,,,"9001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:28\\d|501)\\d{4}",,,,"5011234"],"AW",297,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[25-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],AX:[,[,,"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]],[,,"18[1-8]\\d{3,6}",,,,"181234567",,,[6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AX",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,,,[,,,,,,,,,[-1]],,"18",[,,,,,,,,,[-1]],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],AZ:[,[,,"365\\d{6}|(?:[124579]\\d|60|88)\\d{7}",,,,,,,[9],[7]],[,,"(?:2[12]428|3655[02])\\d{4}|(?:2(?:22[0-79]|63[0-28])|3654)\\d{5}|(?:(?:1[28]|46)\\d|2(?:[014-6]2|[23]3))\\d{6}",,,,"123123456",,,,[7]],[,,"36554\\d{4}|(?:[16]0|4[04]|5[015]|7[07]|99)\\d{7}",,,,"401234567"],[,,"88\\d{7}",,,,"881234567"],[,,"900200\\d{3}",,,,"900200123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"AZ",994,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[1-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BA:[,[,,"6\\d{8}|(?:[35689]\\d|49|70)\\d{6}",,,,,,,[8,9],[6]],[,,"(?:3(?:[05-79][2-9]|1[4579]|[23][24-9]|4[2-4689]|8[2457-9])|49[2-579]|5(?:0[2-49]|[13][2-9]|[268][2-4679]|4[4689]|5[2-79]|7[2-69]|9[2-4689]))\\d{5}",,,,"30212345",,,[8],[6]],[,,"6040\\d{5}|6(?:03|[1-356]|44|7\\d)\\d{6}",,,,"61123456"],[,,"8[08]\\d{6}",,,,"80123456",,,[8]],[,,"9[0246]\\d{6}",,,,"90123456",,,[8]],[,,"8[12]\\d{6}",,,,"82123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BA",387,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1-$2",["[2-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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"703[235]0\\d{3}|70(?:2[0-5]|3[0146]|[56]0)\\d{4}",,,,"70341234",,,[8]],,,[,,,,,,,,,[-1]]],BB:[,[,,"(?:246|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"246521[0369]\\d{3}|246(?:2(?:2[78]|7[0-4])|4(?:1[024-6]|2\\d|3[2-9])|5(?:20|[34]\\d|54|7[1-3])|6(?:2\\d|38)|7[35]7|9(?:1[89]|63))\\d{4}",,,,"2464123456",,,,[7]],[,,"246(?:(?:2(?:[3568]\\d|4[0-57-9])|3(?:5[2-9]|6[0-6])|4(?:46|5\\d)|69[5-7]|8(?:[2-5]\\d|83))\\d|52(?:1[147]|20))\\d{3}",,,,"2462501234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"(?:246976|900[2-9]\\d\\d)\\d{4}",,,,"9002123456",,,,[7]],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"24631\\d{5}",,,,"2463101234",,,,[7]],"BB",1,"011","1",,,"1|([2-9]\\d{6})$","246$1",,,,,[,,,,,,,,,[-1]],,"246",[,,,,,,,,,[-1]],[,,"246(?:292|367|4(?:1[7-9]|3[01]|4[47-9]|67)|7(?:1[2-9]|2\\d|3[016]|53))\\d{4}",,,,"2464301234",,,,[7]],,,[,,,,,,,,,[-1]]],BD:[,[,,"[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]],[,,"(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:222|[45]\\d)\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}",,,,"27111234"],[,,"(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}",,,,"1812345678",,,[10]],[,,"80[03]\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"96(?:0[469]|1[0-47]|3[389]|6[69]|7[78])\\d{6}",,,,"9604123456",,,[10]],"BD",880,"00","0",,,"0",,,,[[,"(\\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(?:28|4[14]|5)|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]|22"],"0$1"],[,"(\\d)(\\d{7,8})","$1-$2",["2"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BE:[,[,,"4\\d{8}|[1-9]\\d{7}",,,,,,,[8,9]],[,,"80[2-8]\\d{5}|(?:1[0-69]|[23][2-8]|4[23]|5\\d|6[013-57-9]|71|8[1-79]|9[2-4])\\d{6}",,,,"12345678",,,[8]],[,,"4[5-9]\\d{7}",,,,"470123456",,,[9]],[,,"800[1-9]\\d{4}",,,,"80012345",,,[8]],[,,"(?:70(?:2[0-57]|3[04-7]|44|6[569]|7[0579])|90(?:0[0-8]|1[36]|2[0-3568]|3[0-689]|[47][2-68]|5[1-68]|6[0-378]|9[34679]))\\d{4}",,,,"90012345",,,[8]],[,,"7879\\d{4}",,,,"78791234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BE",32,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"78(?:0[57]|1[014-8]|2[25]|3[15-8]|48|[56]0|7[06-8]|9\\d)\\d{4}",,,,"78102345",,,[8]],,,[,,,,,,,,,[-1]]],BF:[,[,,"[025-7]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:49|5[23]|6[5-7]|9[016-9])|4(?:4[569]|5[4-6]|6[5-7]|7[0179])|5(?:[34]\\d|50|6[5-7]))\\d{4}",,,,"20491234"],[,,"(?:0[1-35-7]|5[1-8]|[67]\\d)\\d{6}",,,,"70123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BF",226,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[025-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BG:[,[,,"00800\\d{7}|[2-7]\\d{6,7}|[89]\\d{6,8}|2\\d{5}",,,,,,,[6,7,8,9,12],[4,5]],[,,"2\\d{5,7}|(?:43[1-6]|70[1-9])\\d{4,5}|(?:[36]\\d|4[124-7]|[57][1-9]|8[1-6]|9[1-7])\\d{5,6}",,,,"2123456",,,[6,7,8],[4,5]],[,,"(?:43[07-9]|99[69]\\d)\\d{5}|(?:8[7-9]|98)\\d{7}",,,,"43012345",,,[8,9]],[,,"(?:00800\\d\\d|800)\\d{5}",,,,"80012345",,,[8,12]],[,,"90\\d{6}",,,,"90123456",,,[8]],[,,"700\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BG",359,"00","0",,,"0",,,,[[,"(\\d{6})","$1",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BH:[,[,,"[136-9]\\d{7}",,,,,,,[8]],[,,"(?:1(?:3[1356]|6[0156]|7\\d)\\d|6(?:1[16]\\d|500|6(?:0\\d|3[12]|44|7[7-9]|88)|9[69][69])|7(?:1(?:11|78)|7\\d\\d))\\d{4}",,,,"17001234"],[,,"(?:3(?:[1-79]\\d|8[0-47-9])\\d|6(?:3(?:00|33|6[16])|6(?:3[03-9]|[69]\\d|7[0-6])))\\d{4}",,,,"36001234"],[,,"80\\d{6}",,,,"80123456"],[,,"(?:87|9[014578])\\d{6}",,,,"90123456"],[,,"84\\d{6}",,,,"84123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BH",973,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[13679]|8[047]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BI:[,[,,"(?:[267]\\d|31)\\d{6}",,,,,,,[8]],[,,"(?:22|31)\\d{6}",,,,"22201234"],[,,"(?:29|[67][125-9])\\d{6}",,,,"79561234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BI",257,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2367]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BJ:[,[,,"[24-689]\\d{7}",,,,,,,[8]],[,,"2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}",,,,"20211234"],[,,"(?:4[0-2]|[56]\\d|9[013-9])\\d{6}",,,,"90011234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"857[58]\\d{4}",,,,"85751234"],"BJ",229,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-689]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"81\\d{6}",,,,"81123456"],,,[,,,,,,,,,[-1]]],BL:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:2[7-9]|5[12]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"BL",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BM:[,[,,"(?:441|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"441(?:[46]\\d\\d|5(?:4\\d|60|89))\\d{4}",,,,"4414123456",,,,[7]],[,,"441(?:[2378]\\d|5[0-39]|92)\\d{5}",,,,"4413701234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BM",1,"011","1",,,"1|([2-9]\\d{6})$","441$1",,,,,[,,,,,,,,,[-1]],,"441",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BN:[,[,,"[2-578]\\d{6}",,,,,,,[7]],[,,"22[0-7]\\d{4}|(?:2[013-9]|[34]\\d|5[0-25-9])\\d{5}",,,,"2345678"],[,,"(?:22[89]|[78]\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[34]\\d{5}",,,,"5345678"],"BN",673,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BO:[,[,,"(?:[2-467]\\d\\d|8001)\\d{5}",,,,,,,[8,9],[7]],[,,"(?:2(?:2\\d\\d|5(?:11|[258]\\d|9[67])|6(?:12|2\\d|9[34])|8(?:2[34]|39|62))|3(?:3\\d\\d|4(?:6\\d|8[24])|8(?:25|42|5[257]|86|9[25])|9(?:[27]\\d|3[2-4]|4[248]|5[24]|6[2-6]))|4(?:4\\d\\d|6(?:11|[24689]\\d|72)))\\d{4}",,,,"22123456",,,[8],[7]],[,,"[67]\\d{7}",,,,"71234567",,,[8]],[,,"8001[07]\\d{4}",,,,"800171234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BO",591,"00(?:1\\d)?","0",,,"0(1\\d)?",,,,[[,"(\\d)(\\d{7})","$1 $2",["[23]|4[46]"],,"0$CC $1"],[,"(\\d{8})","$1",["[67]"],,"0$CC $1"],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["8"],,"0$CC $1"]],,[,,,,,,,,,[-1]],,,[,,"8001[07]\\d{4}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BQ:[,[,,"(?:[34]1|7\\d)\\d{5}",,,,,,,[7]],[,,"(?:318[023]|41(?:6[023]|70)|7(?:1[578]|2[05]|50)\\d)\\d{3}",,,,"7151234"],[,,"(?:31(?:8[14-8]|9[14578])|416[14-9]|7(?:0[01]|7[07]|8\\d|9[056])\\d)\\d{3}",,,,"3181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BQ",599,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"[347]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BR:[,[,,"(?:[1-46-9]\\d\\d|5(?:[0-46-9]\\d|5[0-46-9]))\\d{8}|[1-9]\\d{9}|[3589]\\d{8}|[34]\\d{7}",,,,,,,[8,9,10,11]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])[2-5]\\d{7}",,,,"1123456789",,,[10],[8]],[,,"(?:[14689][1-9]|2[12478]|3[1-578]|5[13-5]|7[13-579])(?:7|9\\d)\\d{7}",,,,"11961234567",,,[10,11],[8,9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"300\\d{6}|[59]00\\d{6,7}",,,,"300123456",,,[9,10]],[,,"(?:30[03]\\d{3}|4(?:0(?:0\\d|20)|370))\\d{4}|300\\d{5}",,,,"40041234",,,[8,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BR",55,"00(?:1[245]|2[1-35]|31|4[13]|[56]5|99)","0",,,"(?:0|90)(?:(1[245]|2[1-35]|31|4[13]|[56]5|99)(\\d{10,11}))?","$2",,,[[,"(\\d{3,6})","$1",["1(?:1[25-8]|2[357-9]|3[02-68]|4[12568]|5|6[0-8]|8[015]|9[0-47-9])|321|610"]],[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\d{4})(\\d{4})","$1-$2",["[2-57]","[2357]|4(?:[0-24-9]|3(?:[0-689]|7[1-9]))"]],[,"(\\d{3})(\\d{2,3})(\\d{4})","$1 $2 $3",["(?:[358]|90)0"],"0$1"],[,"(\\d{5})(\\d{4})","$1-$2",["9"]],[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[[,"(\\d{4})(\\d{4})","$1-$2",["300|4(?:0[02]|37)","4(?:02|37)0|[34]00"]],[,"(\\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)","0 $CC ($1)"],[,"(\\d{2})(\\d{5})(\\d{4})","$1 $2-$3",["[16][1-9]|[2-57-9]"],"($1)","0 $CC ($1)"]],[,,,,,,,,,[-1]],,,[,,"30(?:0\\d{5,7}|3\\d{7})|40(?:0\\d|20)\\d{4}|800\\d{6,7}",,,,,,,[8,9,10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BS:[,[,,"(?:242|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[347]|8[0-4]|9[2-467])|461|502|6(?:0[1-5]|12|2[013]|[45]0|7[67]|8[78]|9[89])|7(?:02|88))\\d{4}",,,,"2423456789",,,,[7]],[,,"242(?:3(?:5[79]|7[56]|95)|4(?:[23][1-9]|4[1-35-9]|5[1-8]|6[2-8]|7\\d|81)|5(?:2[45]|3[35]|44|5[1-46-9]|65|77)|6[34]6|7(?:27|38)|8(?:0[1-9]|1[02-9]|2\\d|[89]9))\\d{4}",,,,"2423591234",,,,[7]],[,,"242300\\d{4}|8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,,[7]],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"BS",1,"011","1",,,"1|([3-8]\\d{6})$","242$1",,,,,[,,,,,,,,,[-1]],,"242",[,,,,,,,,,[-1]],[,,"242225\\d{4}",,,,"2422250123"],,,[,,,,,,,,,[-1]]],BT:[,[,,"[17]\\d{7}|[2-8]\\d{6}",,,,,,,[7,8],[6]],[,,"(?:2[3-6]|[34][5-7]|5[236]|6[2-46]|7[246]|8[2-4])\\d{5}",,,,"2345678",,,[7],[6]],[,,"(?:1[67]|77)\\d{6}",,,,"17123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BT",975,"00",,,,,,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[2-7]"]],[,"(\\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"]]],[[,"(\\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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BW:[,[,,"(?:0800|(?:[37]|800)\\d)\\d{6}|(?:[2-6]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:2(?:4[0-48]|6[0-24]|9[0578])|3(?:1[0-35-9]|55|[69]\\d|7[013])|4(?:6[03]|7[1267]|9[0-5])|5(?:3[03489]|4[0489]|7[1-47]|88|9[0-49])|6(?:2[1-35]|5[149]|8[067]))\\d{4}",,,,"2401234",,,[7]],[,,"(?:321|7(?:[1-7]\\d|8[0-4]))\\d{5}",,,,"71123456",,,[8]],[,,"(?:0800|800\\d)\\d{6}",,,,"0800012345",,,[10]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"79(?:1(?:[01]\\d|2[0-7])|2[0-7]\\d)\\d{3}",,,,"79101234",,,[8]],"BW",267,"00",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["90"]],[,"(\\d{3})(\\d{4})","$1 $2",["[24-6]|3[15-79]"]],[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BY:[,[,,"(?:[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],[5]],[,,"(?:1(?:5(?:1[1-5]|[24]\\d|6[2-4]|9[1-7])|6(?:[235]\\d|4[1-7])|7\\d\\d)|2(?:1(?:[246]\\d|3[0-35-9]|5[1-9])|2(?:[235]\\d|4[0-8])|3(?:[26]\\d|3[02-79]|4[024-7]|5[03-7])))\\d{5}",,,,"152450911",,,[9],[5,6,7]],[,,"(?:2(?:5[5-79]|9[1-9])|(?:33|44)\\d)\\d{6}",,,,"294911911",,,[9]],[,,"800\\d{3,7}|8(?:0[13]|20\\d)\\d{7}",,,,"8011234567"],[,,"(?:810|902)\\d{7}",,,,"9021234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"249\\d{6}",,,,"249123456",,,[9]],"BY",375,"810","8",,,"0|80?",,"8~10",,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"800\\d{3,7}|(?:8(?:0[13]|10|20\\d)|902)\\d{7}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],BZ:[,[,,"(?:0800\\d|[2-8])\\d{6}",,,,,,,[7,11]],[,,"(?:2(?:[02]\\d|36|[68]0)|[3-58](?:[02]\\d|[68]0)|7(?:[02]\\d|32|[68]0))\\d{4}",,,,"2221234",,,[7]],[,,"6[0-35-7]\\d{5}",,,,"6221234",,,[7]],[,,"0800\\d{7}",,,,"08001234123",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"BZ",501,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-8]"]],[,"(\\d)(\\d{3})(\\d{4})(\\d{3})","$1-$2-$3-$4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CA:[,[,,"(?:[2-8]\\d|90)\\d{8}|3\\d{6}",,,,,,,[7,10]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|3[178]|50|68|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|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"(?:2(?:04|[23]6|[48]9|50|63)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|3[178]|50|68|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|73)|90[25])[2-9]\\d{6}",,,,"5062345678",,,[10],[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456",,,[10]],[,,"900[2-9]\\d{6}",,,,"9002123456",,,[10]],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)|622)[2-9]\\d{6}",,,,"5002345678",,,[10]],[,,"600[2-9]\\d{6}",,,,"6002012345",,,[10]],"CA",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"310\\d{4}",,,,"3101234",,,[7]],,,[,,,,,,,,,[-1]]],CC:[,[,,"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]],[,,"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}",,,,"891621234",,,[9],[8]],[,,"4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CC",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CD:[,[,,"[189]\\d{8}|[1-68]\\d{6}",,,,,,,[7,9]],[,,"12\\d{7}|[1-6]\\d{6}",,,,"1234567"],[,,"88\\d{5}|(?:8[0-59]|9[017-9])\\d{7}",,,,"991234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CD",243,"00","0",,,"0",,,,[[,"(\\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{3})(\\d{4})","$1 $2 $3",["1"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[89]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CF:[,[,,"(?:[27]\\d{3}|8776)\\d{4}",,,,,,,[8]],[,,"2[12]\\d{6}",,,,"21612345"],[,,"7[02457]\\d{6}",,,,"70012345"],[,,,,,,,,,[-1]],[,,"8776\\d{4}",,,,"87761234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CF",236,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[278]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CG:[,[,,"222\\d{6}|(?:0\\d|80)\\d{7}",,,,,,,[9]],[,,"222[1-589]\\d{5}",,,,"222123456"],[,,"026(?:1[0-5]|6[6-9])\\d{4}|0(?:[14-6]\\d\\d|2(?:40|5[5-8]|6[07-9]))\\d{5}",,,,"061234567"],[,,,,,,,,,[-1]],[,,"80(?:0\\d\\d|120)\\d{4}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CG",242,"00",,,,,,,,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[02]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CH:[,[,,"8\\d{11}|[2-9]\\d{8}",,,,,,,[9,12]],[,,"(?:2[12467]|3[1-4]|4[134]|5[256]|6[12]|[7-9]1)\\d{7}",,,,"212345678",,,[9]],[,,"7[35-9]\\d{7}",,,,"781234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[016]\\d{6}",,,,"900123456",,,[9]],[,,"84[0248]\\d{6}",,,,"840123456",,,[9]],[,,"878\\d{6}",,,,"878123456",,,[9]],[,,,,,,,,,[-1]],"CH",41,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"74[0248]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"5[18]\\d{7}",,,,"581234567",,,[9]],,,[,,"860\\d{9}",,,,"860123456789",,,[12]]],CI:[,[,,"[02]\\d{9}",,,,,,,[10]],[,,"2(?:[15]\\d{3}|7(?:2(?:0[23]|1[2357]|2[245]|3[45]|4[3-5])|3(?:06|1[69]|[2-6]7)))\\d{5}",,,,"2123456789"],[,,"0[157]\\d{8}",,,,"0123456789"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CI",225,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CK:[,[,,"[2-578]\\d{4}",,,,,,,[5]],[,,"(?:2\\d|3[13-7]|4[1-5])\\d{3}",,,,"21234"],[,,"[578]\\d{4}",,,,"71234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CK",682,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["[2-578]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CL:[,[,,"12300\\d{6}|6\\d{9,10}|[2-9]\\d{8}",,,,,,,[9,10,11]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[0346]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|7[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"2(?:1982[0-6]|3314[05-9])\\d{3}|(?:2(?:1(?:160|962)|3(?:2\\d\\d|3(?:[0346]\\d|1[0-35-9]|2[1-9]|5[0-24-9]|7[0-3])|600)|646[59])|80[1-9]\\d\\d|9(?:3(?:[0-57-9]\\d\\d|6(?:0[02-9]|[1-9]\\d))|6(?:[0-8]\\d\\d|9(?:[02-79]\\d|1[05-9]))|7[1-9]\\d\\d|9(?:[03-9]\\d\\d|1(?:[0235-9]\\d|4[0-24-9])|2(?:[0-79]\\d|8[0-46-9]))))\\d{4}|(?:22|3[2-5]|[47][1-35]|5[1-3578]|6[13-57]|8[1-9]|9[2458])\\d{7}",,,,"221234567",,,[9]],[,,"(?:123|8)00\\d{6}",,,,"800123456",,,[9,11]],[,,,,,,,,,[-1]],[,,"600\\d{7,8}",,,,"6001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,"44\\d{7}",,,,"441234567",,,[9]],"CL",56,"(?:0|1(?:1[0-69]|2[02-5]|5[13-58]|69|7[0167]|8[018]))0",,,,,,,1,[[,"(\\d{4})","$1",["1(?:[03-589]|21)|[29]0|78"]],[,"(\\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"]]],[[,"(\\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"]]],[,,,,,,,,,[-1]],,,[,,"600\\d{7,8}",,,,,,,[10,11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CM:[,[,,"[26]\\d{8}|88\\d{6,7}",,,,,,,[8,9]],[,,"2(?:22|33)\\d{6}",,,,"222123456",,,[9]],[,,"(?:24[23]|6[25-9]\\d)\\d{6}",,,,"671234567",,,[9]],[,,"88\\d{6,7}",,,,"88012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CM",237,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CN:[,[,,"1[127]\\d{8,9}|2\\d{9}(?:\\d{2})?|[12]\\d{6,7}|86\\d{6}|(?:1[03-689]\\d|6)\\d{7,9}|(?:[3-579]\\d|8[0-57-9])\\d{6,9}",,,,,,,[7,8,9,10,11,12],[5,6]],[,,"(?:10(?:[02-79]\\d\\d|[18](?:0[1-9]|[1-9]\\d))|21(?:[18](?:0[1-9]|[1-9]\\d)|[2-79]\\d\\d))\\d{5}|(?:43[35]|754)\\d{7,8}|8(?:078\\d{7}|51\\d{7,8})|(?:10|(?:2|85)1|43[35]|754)(?:100\\d\\d|95\\d{3,4})|(?:2[02-57-9]|3(?:11|7[179])|4(?:[15]1|3[12])|5(?:1\\d|2[37]|3[12]|51|7[13-79]|9[15])|7(?:[39]1|5[57]|6[09])|8(?:71|98))(?:[02-8]\\d{7}|1(?:0(?:0\\d\\d(?:\\d{3})?|[1-9]\\d{5})|[1-9]\\d{6})|9(?:[0-46-9]\\d{6}|5\\d{3}(?:\\d(?:\\d{2})?)?))|(?:3(?:1[02-9]|35|49|5\\d|7[02-68]|9[1-68])|4(?:1[02-9]|2[179]|3[46-9]|5[2-9]|6[47-9]|7\\d|8[23])|5(?:3[03-9]|4[36]|5[02-9]|6[1-46]|7[028]|80|9[2-46-9])|6(?:3[1-5]|6[0238]|9[12])|7(?:01|[17]\\d|2[248]|3[04-9]|4[3-6]|5[0-3689]|6[2368]|9[02-9])|8(?:1[236-8]|2[5-7]|3\\d|5[2-9]|7[02-9]|8[36-8]|9[1-7])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]\\d{6}|1(?:0(?:0\\d\\d(?:\\d{2})?|[1-9]\\d{4})|[1-9]\\d{5})|9(?:[0-46-9]\\d{5}|5\\d{3,5}))",,,,"1012345678",,,[7,8,9,10,11],[5,6]],[,,"1740[0-5]\\d{6}|1(?:[38]\\d|4[57]|[59][0-35-9]|6[25-7]|7[0-35-8])\\d{8}",,,,"13123456789",,,[11]],[,,"(?:(?:10|21)8|8)00\\d{7}",,,,"8001234567",,,[10,12]],[,,"16[08]\\d{5}",,,,"16812345",,,[8]],[,,"10(?:10\\d{4}|96\\d{3,4})|400\\d{7}|950\\d{7,8}|(?:2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))96\\d{3,4}",,,,"4001234567",,,[7,8,9,10,11],[5,6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CN",86,"00|1(?:[12]\\d|79)\\d\\d00","0",,,"0|(1(?:[12]\\d|79)\\d\\d)",,"00",,[[,"(\\d{5,6})","$1",["10|96"]],[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $1"],[,"(\\d{3})(\\d{4})","$1 $2",["[1-9]","1[1-9]|26|[3-9]|(?:10|2[0-57-9])(?:[0-8]|9[0-47-9])","1(?:0(?:[0-8]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])|6)|[3-9]"]],[,"(\\d{4})(\\d{4})","$1 $2",["16[08]"]],[,"(\\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","$CC $1"],[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|2(?:[0-57-9](?:[0-8]|9[0-47-9])|6)|[3-9]","1(?:0(?:[02-8]|1[1-9]|9[0-47-9])|[1-9])|26|3(?:[0268]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|8[1-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23][0-8])|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:33|85[23]9)[0-46-9]|(?:2[0-57-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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[0-8]|9[0-47-9])","1(?:0[02-8]|[1-9])|2(?:[0-57-9][0-8]|6)|3(?:[0268]|3[0-46-9]|4[0-8]|9[079])|4(?:[049]|2[02-68]|[35]0|6[0-356]|8[014-9])|5(?:0|2[0-24-689]|4[0-2457-9]|6[057-9]|90)|6(?:[0-24578]|3[06-9]|6[14-79]|9[03-9])|7(?:0[02-9]|2[0135-79]|3[23]|4[0-27-9]|6[1457]|8)|8(?:[046]|1[01459]|2[0-489]|5(?:0|[23](?:[02-8]|1[1-9]|9[0-46-9]))|8[0-2459]|9[09])|9(?:0[0457]|1[08]|[268]|4[024-9]|5[06-9])|(?:10|2[0-57-9])9[0-47-9]|(?:101|58|85[23]10)[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[14-9]|8[36-8]|9[1-8])|9(?:0[1-3689]|1[1-79]|[379]\\d|4[13]|5[1-5]))(?:[02-8]|1(?:0[1-9]|[1-9])|9[0-47-9])"]],[,"(\\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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[[,"(\\d{2})(\\d{5,6})","$1 $2",["(?:10|2[0-57-9])[19]","(?:10|2[0-57-9])(?:10|9[56])","10(?:10|9[56])|2[0-57-9](?:100|9[56])"],"0$1","$CC $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","$CC $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","$CC $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","$CC $1",1],[,"(\\d{3})(\\d{7,8})","$1 $2",["9"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["80"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[3-578]"],"0$1","$CC $1",1],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["1[3-9]"],,"$CC $1"],[,"(\\d{2})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[12]"],"0$1",,1]],[,,,,,,,,,[-1]],,,[,,"(?:(?:10|21)8|[48])00\\d{7}|950\\d{7,8}",,,,,,,[10,11,12]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CO:[,[,,"(?:60\\d\\d|9101)\\d{6}|(?:1\\d|3)\\d{9}",,,,,,,[10,11],[7]],[,,"601055(?:[0-4]\\d|50)\\d\\d|6010(?:[0-4]\\d|5[0-4])\\d{4}|60[124-8][2-9]\\d{6}",,,,"6012345678",,,[10],[7]],[,,"3333(?:0(?:0\\d|1[0-5])|[4-9]\\d\\d)\\d{3}|(?:3(?:24[1-9]|3(?:00|3[0-24-9]))|9101)\\d{6}|3(?:0[0-5]|1\\d|2[0-3]|5[01]|70)\\d{7}",,,,"3211234567",,,[10]],[,,"1800\\d{7}",,,,"18001234567",,,[11]],[,,"19(?:0[01]|4[78])\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CO",57,"00(?:4(?:[14]4|56)|[579])","0",,,"0(4(?:[14]4|56)|[579])?",,,,[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1-$2-$3",["1"],"0$1"]],[[,"(\\d{3})(\\d{7})","$1 $2",["6"],"($1)","0$CC $1"],[,"(\\d{3})(\\d{7})","$1 $2",["3[0-357]|91"],,"0$CC $1"],[,"(\\d)(\\d{3})(\\d{7})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CR:[,[,,"(?:8\\d|90)\\d{8}|(?:[24-8]\\d{3}|3005)\\d{4}",,,,,,,[8,10]],[,,"210[7-9]\\d{4}|2(?:[024-7]\\d|1[1-9])\\d{5}",,,,"22123456",,,[8]],[,,"(?:3005\\d|6500[01])\\d{3}|(?:5[07]|6[0-4]|7[0-3]|8[3-9])\\d{6}",,,,"83123456",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"90[059]\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:210[0-6]|4\\d{3}|5100)\\d{4}",,,,"40001234",,,[8]],"CR",506,"00",,,,"(19(?:0[0-2468]|1[09]|20|66|77|99))",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]|8[3-9]"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[89]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CU:[,[,,"[27]\\d{6,7}|[34]\\d{5,7}|(?:5|8\\d\\d)\\d{7}",,,,,,,[6,7,8,10],[4,5]],[,,"(?:3[23]|48)\\d{4,6}|(?:31|4[36]|8(?:0[25]|78)\\d)\\d{6}|(?:2[1-4]|4[1257]|7\\d)\\d{5,6}",,,,"71234567",,,,[4,5]],[,,"5\\d{7}",,,,"51234567",,,[8]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,,,,,,,,[-1]],[,,"807\\d{7}",,,,"8071234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CU",53,"119","0",,,"0",,,,[[,"(\\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",["5"],"0$1"],[,"(\\d{3})(\\d{7})","$1 $2",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CV:[,[,,"(?:[2-59]\\d\\d|800)\\d{4}",,,,,,,[7]],[,,"2(?:2[1-7]|3[0-8]|4[12]|5[1256]|6\\d|7[1-3]|8[1-5])\\d{4}",,,,"2211234"],[,,"(?:36|5[1-389]|9\\d)\\d{5}",,,,"9911234"],[,,"800\\d{4}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[3-5]|4[356])\\d{5}",,,,"3401234"],"CV",238,"0",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CW:[,[,,"(?:[34]1|60|(?:7|9\\d)\\d)\\d{5}",,,,,,,[7,8]],[,,"9(?:4(?:3[0-5]|4[14]|6\\d)|50\\d|7(?:2[014]|3[02-9]|4[4-9]|6[357]|77|8[7-9])|8(?:3[39]|[46]\\d|7[01]|8[57-9]))\\d{4}",,,,"94351234"],[,,"953[01]\\d{4}|9(?:5[12467]|6[5-9])\\d{5}",,,,"95181234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"60[0-2]\\d{4}",,,,"6001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"CW",599,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[3467]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["9[4-8]"]]],,[,,"955\\d{5}",,,,"95581234",,,[8]],1,"[69]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CX:[,[,,"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]],[,,"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}",,,,"891641234",,,[9],[8]],[,,"4(?:83[0-389]|93[0-6])\\d{5}|4(?:[0-3]\\d|4[047-9]|5[0-25-9]|6[016-9]|7[02-9]|8[0-24-9]|9[0-27-9])\\d{6}",,,,"412345678",,,[9]],[,,"180(?:0\\d{3}|2)\\d{3}",,,,"1800123456",,,[7,10]],[,,"190[0-26]\\d{6}",,,,"1900123456",,,[10]],[,,"13(?:00\\d{6}(?:\\d{2})?|45[0-4]\\d{3})|13\\d{4}",,,,"1300123456",,,[6,8,10,12]],[,,,,,,,,,[-1]],[,,"14(?:5(?:1[0458]|[23][458])|71\\d)\\d{4}",,,,"147101234",,,[9]],"CX",61,"001[14-689]|14(?:1[14]|34|4[17]|[56]6|7[47]|88)0011","0",,,"0|([59]\\d{7})$","8$1","0011",,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],CY:[,[,,"(?:[279]\\d|[58]0)\\d{6}",,,,,,,[8]],[,,"2[2-6]\\d{6}",,,,"22345678"],[,,"9(?:10|[4-79]\\d)\\d{5}",,,,"96123456"],[,,"800\\d{5}",,,,"80001234"],[,,"90[09]\\d{5}",,,,"90012345"],[,,"80[1-9]\\d{5}",,,,"80112345"],[,,"700\\d{5}",,,,"70012345"],[,,,,,,,,,[-1]],"CY",357,"00",,,,,,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[257-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:50|77)\\d{6}",,,,"77123456"],,,[,,,,,,,,,[-1]]],CZ:[,[,,"(?:[2-578]\\d|60)\\d{7}|9\\d{8,11}",,,,,,,[9,10,11,12]],[,,"(?:2\\d|3[1257-9]|4[16-9]|5[13-9])\\d{7}",,,,"212345678",,,[9]],[,,"(?:60[1-8]|7(?:0[2-5]|[2379]\\d))\\d{6}",,,,"601123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:0[05689]|76)\\d{6}",,,,"900123456",,,[9]],[,,"8[134]\\d{7}",,,,"811234567",,,[9]],[,,"70[01]\\d{6}",,,,"700123456",,,[9]],[,,"9[17]0\\d{6}",,,,"910123456",,,[9]],"CZ",420,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"9(?:5\\d|7[2-4])\\d{6}",,,,"972123456",,,[9]],,,[,,"9(?:3\\d{9}|6\\d{7,10})",,,,"93123456789"]],DE:[,[,,"[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],[2,3]],[,,"32\\d{9,11}|49[1-6]\\d{10}|322\\d{6}|49[0-7]\\d{3,9}|(?:[34]0|[68]9)\\d{3,13}|(?:2(?:0[1-689]|[1-3569]\\d|4[0-8]|7[1-7]|8[0-7])|3(?:[3569]\\d|4[0-79]|7[1-7]|8[1-8])|4(?:1[02-9]|[2-48]\\d|5[0-6]|6[0-8]|7[0-79])|5(?:0[2-8]|[124-6]\\d|[38][0-8]|[79][0-7])|6(?:0[02-9]|[1-358]\\d|[47][0-8]|6[1-9])|7(?:0[2-8]|1[1-9]|[27][0-7]|3\\d|[4-6][0-8]|8[0-5]|9[013-7])|8(?:0[2-9]|1[0-79]|2\\d|3[0-46-9]|4[0-6]|5[013-9]|6[1-8]|7[0-8]|8[0-24-6])|9(?:0[6-9]|[1-4]\\d|[589][0-7]|6[0-8]|7[0-467]))\\d{3,12}",,,,"30123456",,,[5,6,7,8,9,10,11,12,13,14,15],[2,3,4]],[,,"15[0-25-9]\\d{8}|1(?:6[023]|7\\d)\\d{7,8}",,,,"15123456789",,,[10,11]],[,,"800\\d{7,12}",,,,"8001234567890",,,[10,11,12,13,14,15]],[,,"(?:137[7-9]|900(?:[135]|9\\d))\\d{6}",,,,"9001234567",,,[10,11]],[,,"180\\d{5,11}|13(?:7[1-6]\\d\\d|8)\\d{4}",,,,"18012345",,,[7,8,9,10,11,12,13,14]],[,,"700\\d{8}",,,,"70012345678",,,[11]],[,,,,,,,,,[-1]],"DE",49,"00","0",,,"0",,,,[[,"(\\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{5})(\\d{6})","$1 $2",["15[0568]"],"0$1"],[,"(\\d{4})(\\d{7})","$1 $2",["15[1279]"],"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"]],,[,,"16(?:4\\d{1,10}|[89]\\d{1,11})",,,,"16412345",,,[4,5,6,7,8,9,10,11,12,13,14]],,,[,,,,,,,,,[-1]],[,,"18(?:1\\d{5,11}|[2-9]\\d{8})",,,,"18500123456",,,[8,9,10,11,12,13,14]],,,[,,"1(?:6(?:013|255|399)|7(?:(?:[015]1|[69]3)3|[2-4]55|[78]99))\\d{7,8}|15(?:(?:[03-68]00|113)\\d|2\\d55|7\\d99|9\\d33)\\d{7}",,,,"177991234567",,,[12,13]]],DJ:[,[,,"(?:2\\d|77)\\d{6}",,,,,,,[8]],[,,"2(?:1[2-5]|7[45])\\d{5}",,,,"21360003"],[,,"77\\d{6}",,,,"77831001"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DJ",253,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[27]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DK:[,[,,"[2-9]\\d{7}",,,,,,,[8]],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"(?:[2-7]\\d|8[126-9]|9[1-46-9])\\d{6}",,,,"32123456"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"DK",45,"00",,,,,,,1,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DM:[,[,,"(?:[58]\\d\\d|767|900)\\d{7}",,,,,,,[10],[7]],[,,"767(?:2(?:55|66)|4(?:2[01]|4[0-25-9])|50[0-4])\\d{4}",,,,"7674201234",,,,[7]],[,,"767(?:2(?:[2-4689]5|7[5-7])|31[5-7]|61[1-8]|70[1-6])\\d{4}",,,,"7672251234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DM",1,"011","1",,,"1|([2-7]\\d{6})$","767$1",,,,,[,,,,,,,,,[-1]],,"767",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DO:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"8(?:[04]9[2-9]\\d\\d|29(?:2(?:[0-59]\\d|6[04-9]|7[0-27]|8[0237-9])|3(?:[0-35-9]\\d|4[7-9])|[45]\\d\\d|6(?:[0-27-9]\\d|[3-5][1-9]|6[0135-8])|7(?:0[013-9]|[1-37]\\d|4[1-35689]|5[1-4689]|6[1-57-9]|8[1-79]|9[1-8])|8(?:0[146-9]|1[0-48]|[248]\\d|3[1-79]|5[01589]|6[013-68]|7[124-8]|9[0-8])|9(?:[0-24]\\d|3[02-46-9]|5[0-79]|60|7[0169]|8[57-9]|9[02-9])))\\d{4}",,,,"8092345678",,,,[7]],[,,"8[024]9[2-9]\\d{6}",,,,"8092345678",,,,[7]],[,,"8(?:00(?:14|[2-9]\\d)|(?:33|44|55|66|77|88)[2-9]\\d)\\d{5}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"DO",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"8001|8[024]9",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],DZ:[,[,,"(?:[1-4]|[5-79]\\d|80)\\d{7}",,,,,,,[8,9]],[,,"9619\\d{5}|(?:1\\d|2[013-79]|3[0-8]|4[013-689])\\d{6}",,,,"12345678"],[,,"(?:5(?:4[0-29]|5\\d|6[0-2])|6(?:[569]\\d|7[0-6])|7[7-9]\\d)\\d{6}",,,,"551234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"80[3-689]1\\d{5}",,,,"808123456",,,[9]],[,,"80[12]1\\d{5}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,"98[23]\\d{6}",,,,"983123456",,,[9]],"DZ",213,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EC:[,[,,"1\\d{9,10}|(?:[2-7]|9\\d)\\d{7}",,,,,,,[8,9,10,11],[7]],[,,"[2-7][2-7]\\d{6}",,,,"22123456",,,[8],[7]],[,,"964[0-2]\\d{5}|9(?:39|[57][89]|6[0-36-9]|[89]\\d)\\d{6}",,,,"991234567",,,[9]],[,,"1800\\d{7}|1[78]00\\d{6}",,,,"18001234567",,,[10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[2-7]890\\d{4}",,,,"28901234",,,[8]],"EC",593,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-7]"]],[,"(\\d)(\\d{3})(\\d{4})","$1 $2-$3",["[2-7]"],"(0$1)"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["[2-7]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["9"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1 $2 $3",["1"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EE:[,[,,"8\\d{9}|[4578]\\d{7}|(?:[3-8]\\d|90)\\d{5}",,,,,,,[7,8,10]],[,,"(?:3[23589]|4[3-8]|6\\d|7[1-9]|88)\\d{5}",,,,"3212345",,,[7]],[,,"(?:5\\d{5}|8(?:1(?:0(?:000|[3-9]\\d\\d)|(?:1(?:0[236]|1\\d)|(?:2[0-59]|[3-79]\\d)\\d)\\d)|2(?:0(?:000|(?:19|[2-7]\\d)\\d)|(?:(?:[124-6]\\d|3[5-9])\\d|7(?:[3679]\\d|8[13-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}",,,,"51234567",,,[7,8]],[,,"800(?:(?:0\\d\\d|1)\\d|[2-9])\\d{3}",,,,"80012345"],[,,"(?:40\\d\\d|900)\\d{4}",,,,"9001234",,,[7,8]],[,,,,,,,,,[-1]],[,,"70[0-2]\\d{5}",,,,"70012345",,,[8]],[,,,,,,,,,[-1]],"EE",372,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"800[2-9]\\d{3}",,,,,,,[7]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EG:[,[,,"[189]\\d{8,9}|[24-6]\\d{8}|[135]\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"13[23]\\d{6}|(?:15|57)\\d{6,7}|(?:2[2-4]|3|4[05-8]|5[05]|6[24-689]|8[2468]|9[235-7])\\d{7}",,,,"234567890",,,[8,9],[6,7]],[,,"1[0-25]\\d{8}",,,,"1001234567",,,[10]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"EG",20,"00","0",,,"0",,,,[[,"(\\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",["[189]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],EH:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"528[89]\\d{5}",,,,"528812345"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"EH",212,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"528[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ER:[,[,,"[178]\\d{6}",,,,,,,[7],[6]],[,,"(?:1(?:1[12568]|[24]0|55|6[146])|8\\d\\d)\\d{4}",,,,"8370362",,,,[6]],[,,"(?:17[1-3]|7\\d\\d)\\d{4}",,,,"7123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ER",291,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[178]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ES:[,[,,"[5-9]\\d{8}",,,,,,,[9]],[,,"96906(?:0[0-8]|1[1-9]|[2-9]\\d)\\d\\d|9(?:69(?:0[0-57-9]|[1-9]\\d)|73(?:[0-8]\\d|9[1-9]))\\d{4}|(?:8(?:[1356]\\d|[28][0-8]|[47][1-9])|9(?:[135]\\d|[268][0-8]|4[1-9]|7[124-9]))\\d{6}",,,,"810123456"],[,,"(?:590[16]00\\d|9(?:6906(?:09|10)|7390\\d\\d))\\d\\d|(?:6\\d|7[1-48])\\d{7}",,,,"612345678"],[,,"[89]00\\d{6}",,,,"800123456"],[,,"80[367]\\d{6}",,,,"803123456"],[,,"90[12]\\d{6}",,,,"901123456"],[,,"70\\d{7}",,,,"701234567"],[,,,,,,,,,[-1]],"ES",34,"00",,,,,,,,[[,"(\\d{4})","$1",["905"]],[,"(\\d{6})","$1",["[79]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]"]]],[[,"(\\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]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"51\\d{7}",,,,"511234567"],,,[,,,,,,,,,[-1]]],ET:[,[,,"(?:11|[2-579]\\d)\\d{7}",,,,,,,[9],[7]],[,,"11667[01]\\d{3}|(?:11(?:1(?:1[124]|2[2-7]|3[1-5]|5[5-8]|8[6-8])|2(?:13|3[6-8]|5[89]|7[05-9]|8[2-6])|3(?:2[01]|3[0-289]|4[1289]|7[1-4]|87)|4(?:1[69]|3[2-49]|4[0-3]|6[5-8])|5(?:1[578]|44|5[0-4])|6(?:1[578]|2[69]|39|4[5-7]|5[0-5]|6[0-59]|8[015-8]))|2(?:2(?:11[1-9]|22[0-7]|33\\d|44[1467]|66[1-68])|5(?:11[124-6]|33[2-8]|44[1467]|55[14]|66[1-3679]|77[124-79]|880))|3(?:3(?:11[0-46-8]|(?:22|55)[0-6]|33[0134689]|44[04]|66[01467])|4(?:44[0-8]|55[0-69]|66[0-3]|77[1-5]))|4(?:6(?:119|22[0-24-7]|33[1-5]|44[13-69]|55[14-689]|660|88[1-4])|7(?:(?:11|22)[1-9]|33[13-7]|44[13-6]|55[1-689]))|5(?:7(?:227|55[05]|(?:66|77)[14-8])|8(?:11[149]|22[013-79]|33[0-68]|44[013-8]|550|66[1-5]|77\\d)))\\d{4}",,,,"111112345",,,,[7]],[,,"7001\\d{5}|(?:7(?:0[1-9]|1[01]|77|86|99)|9\\d\\d)\\d{6}",,,,"911234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ET",251,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[1-579]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FI:[,[,,"[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]],[,,"(?:1[3-79][1-8]|[235689][1-8]\\d)\\d{2,6}",,,,"131234567",,,[5,6,7,8,9]],[,,"4946\\d{2,6}|(?:4[0-8]|50)\\d{4,8}",,,,"412345678",,,[6,7,8,9,10]],[,,"800\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"[67]00\\d{5,6}",,,,"600123456",,,[8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FI",358,"00|99(?:[01469]|5(?:[14]1|3[23]|5[59]|77|88|9[09]))","0",,,"0",,"00",,[[,"(\\d{5})","$1",["75[12]"],"0$1"],[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{6})","$1",["11"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[[,"(\\d)(\\d{4,9})","$1 $2",["[2568][1-8]|3(?:0[1-9]|[1-9])|9"],"0$1"],[,"(\\d{3})(\\d{3,7})","$1 $2",["[12]00|[368]|70[07-9]"],"0$1"],[,"(\\d{2})(\\d{4,8})","$1 $2",["[1245]|7[135]"],"0$1"],[,"(\\d{2})(\\d{6,10})","$1 $2",["7"],"0$1"]],[,,,,,,,,,[-1]],1,"1[03-79]|[2-9]",[,,"20(?:2[023]|9[89])\\d{1,6}|(?:60[12]\\d|7099)\\d{4,5}|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:[1-3]00|7(?:0[1-5]\\d\\d|5[03-9]))\\d{3,7}"],[,,"20\\d{4,8}|60[12]\\d{5,6}|7(?:099\\d{4,5}|5[03-9]\\d{3,7})|20[2-59]\\d\\d|(?:606|7(?:0[78]|1|3\\d))\\d{7}|(?:10|29|3[09]|70[1-5]\\d)\\d{4,8}",,,,"10112345"],,,[,,,,,,,,,[-1]]],FJ:[,[,,"45\\d{5}|(?:0800\\d|[235-9])\\d{6}",,,,,,,[7,11]],[,,"603\\d{4}|(?:3[0-5]|6[25-7]|8[58])\\d{5}",,,,"3212345",,,[7]],[,,"(?:[279]\\d|45|5[01568]|8[034679])\\d{5}",,,,"7012345",,,[7]],[,,"0800\\d{7}",,,,"08001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FJ",679,"0(?:0|52)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[235-9]|45"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FK:[,[,,"[2-7]\\d{4}",,,,,,,[5]],[,,"[2-47]\\d{4}",,,,"31234"],[,,"[56]\\d{4}",,,,"51234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FK",500,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FM:[,[,,"(?:[39]\\d\\d|820)\\d{4}",,,,,,,[7]],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-6]\\d)\\d)\\d{3}",,,,"3201234"],[,,"31(?:00[67]|208|309)\\d\\d|(?:3(?:[2357]0[1-9]|602|804|905)|(?:820|9[2-7]\\d)\\d)\\d{3}",,,,"3501234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"FM",691,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[389]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FO:[,[,,"[2-9]\\d{5}",,,,,,,[6]],[,,"(?:20|[34]\\d|8[19])\\d{4}",,,,"201234"],[,,"(?:[27][1-9]|5\\d|9[16])\\d{4}",,,,"211234"],[,,"80[257-9]\\d{3}",,,,"802123"],[,,"90(?:[13-5][15-7]|2[125-7]|9\\d)\\d\\d",,,,"901123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:6[0-36]|88)\\d{4}",,,,"601234"],"FO",298,"00",,,,"(10(?:01|[12]0|88))",,,,[[,"(\\d{6})","$1",["[2-9]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],FR:[,[,,"[1-9]\\d{8}",,,,,,,[9]],[,,"(?:[1-35]\\d|4[1-9])\\d{7}",,,,"123456789"],[,,"(?:6(?:[0-24-8]\\d|3[0-8]|9[589])|7(?:00|[3-9]\\d))\\d{6}",,,,"612345678"],[,,"80[0-5]\\d{6}",,,,"801234567"],[,,"836(?:0[0-36-9]|[1-9]\\d)\\d{4}|8(?:1[2-9]|2[2-47-9]|3[0-57-9]|[569]\\d|8[0-35-9])\\d{6}",,,,"891123456"],[,,"8(?:1[01]|2[0156]|4[02]|84)\\d{6}",,,,"884012345"],[,,,,,,,,,[-1]],[,,"9\\d{8}",,,,"912345678"],"FR",33,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["10"]],[,"(\\d{3})(\\d{3})","$1 $2",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"80[6-9]\\d{6}",,,,"806123456"],,,[,,,,,,,,,[-1]]],GA:[,[,,"(?:[067]\\d|11)\\d{6}|[2-7]\\d{6}",,,,,,,[7,8]],[,,"[01]1\\d{6}",,,,"01441234",,,[8]],[,,"(?:(?:0[2-7]|7[467])\\d|6(?:0[0-4]|10|[256]\\d))\\d{5}|[2-7]\\d{6}",,,,"06031234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GA",241,"00",,,,"0(11\\d{6}|60\\d{6}|61\\d{6}|6[256]\\d{6}|7[467]\\d{6})","$1",,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GB:[,[,,"[1-357-9]\\d{9}|[18]\\d{8}|8\\d{6}",,,,,,,[7,9,10],[4,5,6,8]],[,,"(?:1(?:1(?:3(?:[0-58]\\d\\d|73[0235])|4(?:[0-5]\\d\\d|69[7-9]|70[0-579])|(?:(?: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\\d|1(?:[0-7]\\d\\d|8(?:[02]\\d|1[0-246-9])))|(?: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}",,,,"1212345678",,,[9,10],[4,5,6,7,8]],[,,"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}",,,,"7400123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[2-49]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GB",44,"00","0"," x",,"0",,,,[[,"(\\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"]],,[,,"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}",,,,"7640123456",,,[10]],1,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GD:[,[,,"(?:473|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"473(?:2(?:3[0-2]|69)|3(?:2[89]|86)|4(?:[06]8|3[5-9]|4[0-49]|5[5-79]|73|90)|63[68]|7(?:58|84)|800|938)\\d{4}",,,,"4732691234",,,,[7]],[,,"473(?:4(?:0[2-79]|1[04-9]|2[0-5]|58)|5(?:2[01]|3[3-8])|901)\\d{4}",,,,"4734031234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GD",1,"011","1",,,"1|([2-9]\\d{6})$","473$1",,,,,[,,,,,,,,,[-1]],,"473",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GE:[,[,,"(?:[3-57]\\d\\d|800)\\d{6}",,,,,,,[9],[6,7]],[,,"(?:3(?:[256]\\d|4[124-9]|7[0-4])|4(?:1\\d|2[2-7]|3[1-79]|4[2-8]|7[239]|9[1-7]))\\d{6}",,,,"322123456",,,,[6,7]],[,,"5(?:(?:0555|1(?:[17]77|555))[5-9]|757(?:7[7-9]|8[01]))\\d{3}|5(?:0070|11(?:33|51)|[25]222|3333)[0-4]\\d{3}|5(?:00(?:0\\d|5[05])|11(?:00|[124]\\d|3[01])|5200|75(?:00|[57]5)|8(?:0(?:[01]\\d|2[0-4])|58[89]|8(?:55|88)))\\d{4}|(?:5(?:[14]4|5[0157-9]|68|7[0147-9]|9[1-35-9])|790)\\d{6}",,,,"555123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70[67]\\d{6}",,,,"706123456"],"GE",995,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"70[67]\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GF:[,[,,"(?:[56]94|80\\d|976)\\d{6}",,,,,,,[9]],[,,"594(?:[0239]\\d|1[0-2]|4[03-9]|5[6-9]|6[0-3]|80)\\d{4}",,,,"594101234"],[,,"694(?:[0-249]\\d|3[0-8])\\d{4}",,,,"694201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976\\d{6}",,,,"976012345"],"GF",594,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GG:[,[,,"(?:1481|[357-9]\\d{3})\\d{6}|8\\d{6}(?:\\d{2})?",,,,,,,[7,9,10],[6]],[,,"1481[25-9]\\d{5}",,,,"1481256789",,,[10],[6]],[,,"7(?:(?:781|839)\\d|911[17])\\d{5}",,,,"7781123456",,,[10]],[,,"80[08]\\d{7}|800\\d{6}|8001111",,,,"8001234567"],[,,"(?:8(?:4[2-5]|7[0-3])|9(?:[01]\\d|8[0-3]))\\d{7}|845464\\d",,,,"9012345678",,,[7,10]],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,"56\\d{8}",,,,"5612345678",,,[10]],"GG",44,"00","0",,,"0|([25-9]\\d{5})$","1481$1",,,,,[,,"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}",,,,"7640123456",,,[10]],,,[,,,,,,,,,[-1]],[,,"(?:3[0347]|55)\\d{8}",,,,"5512345678",,,[10]],,,[,,,,,,,,,[-1]]],GH:[,[,,"(?:[235]\\d{3}|800)\\d{5}",,,,,,,[8,9],[7]],[,,"3082[0-5]\\d{4}|3(?:0(?:[237]\\d|8[01])|[167](?:2[0-6]|7\\d|80)|2(?:2[0-5]|7\\d|80)|3(?:2[0-3]|7\\d|80)|4(?:2[013-9]|3[01]|7\\d|80)|5(?:2[0-7]|7\\d|80)|8(?:2[0-2]|7\\d|80)|9(?:[28]0|7\\d))\\d{5}",,,,"302345678",,,[9],[7]],[,,"(?:2(?:[0346-9]\\d|5[67])|5(?:[03-7]\\d|9[1-9]))\\d{6}",,,,"231234567",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GH",233,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[237]|8[0-2]"]],[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[[,"(\\d{3})(\\d{5})","$1 $2",["8"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[235]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,"800\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GI:[,[,,"(?:[25]\\d\\d|606)\\d{5}",,,,,,,[8]],[,,"2190[0-2]\\d{3}|2(?:0(?:0\\d|20)|16[24-9]|2[2-5]\\d)\\d{4}",,,,"20012345"],[,,"525(?:0\\d|1[0-4])\\d{3}|(?:5[146-8]\\d|606)\\d{5}",,,,"57123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GI",350,"00",,,,,,,,[[,"(\\d{3})(\\d{5})","$1 $2",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GL:[,[,,"(?:19|[2-689]\\d|70)\\d{4}",,,,,,,[6]],[,,"(?:19|3[1-7]|6[14689]|70|8[14-79]|9\\d)\\d{4}",,,,"321000"],[,,"[245]\\d{5}",,,,"221234"],[,,"80\\d{4}",,,,"801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3[89]\\d{4}",,,,"381234"],"GL",299,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["19|[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GM:[,[,,"[2-9]\\d{6}",,,,,,,[7]],[,,"(?:4(?:[23]\\d\\d|4(?:1[024679]|[6-9]\\d))|5(?:5(?:3\\d|4[0-7])|6[67]\\d|7(?:1[04]|2[035]|3[58]|48))|8\\d{3})\\d{3}",,,,"5661234"],[,,"(?:[23679]\\d|5[0-389])\\d{5}",,,,"3012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GM",220,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GN:[,[,,"722\\d{6}|(?:3|6\\d)\\d{7}",,,,,,,[8,9]],[,,"3(?:0(?:24|3[12]|4[1-35-7]|5[13]|6[189]|[78]1|9[1478])|1\\d\\d)\\d{4}",,,,"30241234",,,[8]],[,,"6[0-356]\\d{7}",,,,"601123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"722\\d{6}",,,,"722123456",,,[9]],"GN",224,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GP:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[1-68]|[14][0-24-9]|2[0-68]|3[1289]|5[3-579]|6[0-489]|7[08]|8[0-689]|9\\d)\\d{4}",,,,"590201234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"GP",590,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GQ:[,[,,"222\\d{6}|(?:3\\d|55|[89]0)\\d{7}",,,,,,,[9]],[,,"33[0-24-9]\\d[46]\\d{4}|3(?:33|5\\d)\\d[7-9]\\d{4}",,,,"333091234"],[,,"(?:222|55\\d)\\d{6}",,,,"222123456"],[,,"80\\d[1-9]\\d{5}",,,,"800123456"],[,,"90\\d[1-9]\\d{5}",,,,"900123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GQ",240,"00",,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[235]"]],[,"(\\d{3})(\\d{6})","$1 $2",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GR:[,[,,"5005000\\d{3}|8\\d{9,11}|(?:[269]\\d|70)\\d{8}",,,,,,,[10,11,12]],[,,"2(?:1\\d\\d|2(?:2[1-46-9]|[36][1-8]|4[1-7]|5[1-4]|7[1-5]|[89][1-9])|3(?:1\\d|2[1-57]|[35][1-3]|4[13]|7[1-7]|8[124-6]|9[1-79])|4(?:1\\d|2[1-8]|3[1-4]|4[13-5]|6[1-578]|9[1-5])|5(?:1\\d|[29][1-4]|3[1-5]|4[124]|5[1-6])|6(?:1\\d|[269][1-6]|3[1245]|4[1-7]|5[13-9]|7[14]|8[1-5])|7(?:1\\d|2[1-5]|3[1-6]|4[1-7]|5[1-57]|6[135]|9[125-7])|8(?:1\\d|2[1-5]|[34][1-4]|9[1-57]))\\d{6}",,,,"2123456789",,,[10]],[,,"68[57-9]\\d{7}|(?:69|94)\\d{8}",,,,"6912345678",,,[10]],[,,"800\\d{7,9}",,,,"8001234567"],[,,"90[19]\\d{7}",,,,"9091234567",,,[10]],[,,"8(?:0[16]|12|[27]5|50)\\d{7}",,,,"8011234567",,,[10]],[,,"70\\d{8}",,,,"7012345678",,,[10]],[,,,,,,,,,[-1]],"GR",30,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"5005000\\d{3}",,,,"5005000123",,,[10]],,,[,,,,,,,,,[-1]]],GT:[,[,,"(?:1\\d{3}|[2-7])\\d{7}",,,,,,,[8,11]],[,,"[267][2-9]\\d{6}",,,,"22456789",,,[8]],[,,"[3-5]\\d{7}",,,,"51234567",,,[8]],[,,"18[01]\\d{8}",,,,"18001112222",,,[11]],[,,"19\\d{9}",,,,"19001112222",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GT",502,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2-7]"]],[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GU:[,[,,"(?:[58]\\d\\d|671|900)\\d{7}",,,,,,,[10],[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"671(?:3(?:00|3[39]|4[349]|55|6[26])|4(?:00|56|7[1-9]|8[02-46-9])|5(?:55|6[2-5]|88)|6(?:3[2-578]|4[24-9]|5[34]|78|8[235-9])|7(?:[0479]7|2[0167]|3[45]|8[7-9])|8(?:[2-57-9]8|6[48])|9(?:2[29]|6[79]|7[1279]|8[7-9]|9[78]))\\d{4}",,,,"6713001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"GU",1,"011","1",,,"1|([3-9]\\d{6})$","671$1",,1,,,[,,,,,,,,,[-1]],,"671",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GW:[,[,,"[49]\\d{8}|4\\d{6}",,,,,,,[7,9]],[,,"443\\d{6}",,,,"443201234",,,[9]],[,,"9(?:5\\d|6[569]|77)\\d{6}",,,,"955012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"40\\d{5}",,,,"4012345",,,[7]],"GW",245,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["40"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[49]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],GY:[,[,,"9008\\d{3}|(?:[2-467]\\d\\d|862)\\d{4}",,,,,,,[7]],[,,"(?:2(?:1[6-9]|2[0-35-9]|3[1-4]|5[3-9]|6\\d|7[0-24-79])|3(?:2[25-9]|3\\d)|4(?:4[0-24]|5[56])|77[1-57])\\d{4}",,,,"2201234"],[,,"(?:6\\d\\d|70[0-35-7])\\d{4}",,,,"6091234"],[,,"(?:289|862)\\d{4}",,,,"2891234"],[,,"9008\\d{3}",,,,"9008123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"GY",592,"001",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HK:[,[,,"8[0-46-9]\\d{6,7}|9\\d{4,7}|(?:[2-7]|9\\d{3})\\d{7}",,,,,,,[5,6,7,8,9,11]],[,,"(?:2(?:[13-9]\\d|2[013-9])\\d|3(?:(?:[1569][0-24-9]|4[0-246-9]|7[0-24-69])\\d|8(?:[45][0-8]|6[01]|9\\d))|58(?:0[1-8]|1[2-9]))\\d{4}",,,,"21234567",,,[8]],[,,"(?:4(?:44[5-9]|6(?:0[0-7]|1[0-6]|4[0-57-9]|6[0-4]|7[0-8]))|573[0-6]|6(?:26[013-8]|66[0-3])|70(?:7[1-5]|8[0-4])|848[015-9]|9(?:29[013-9]|59[0-4]))\\d{4}|(?:4(?:4[01]|6[2358])|5(?:[1-59][0-46-9]|6[0-4689]|7[0-246-9])|6(?:0[1-9]|[13-59]\\d|[268][0-57-9]|7[0-79])|84[09]|9(?:0[1-9]|1[02-9]|[2358][0-8]|[467]\\d))\\d{5}",,,,"51234567",,,[8]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900(?:[0-24-9]\\d{7}|3\\d{1,4})",,,,"90012345678",,,[5,6,7,8,11]],[,,,,,,,,,[-1]],[,,"8(?:1[0-4679]\\d|2(?:[0-36]\\d|7[0-4])|3(?:[034]\\d|2[09]|70))\\d{4}",,,,"81123456",,,[8]],[,,,,,,,,,[-1]],"HK",852,"00(?:30|5[09]|[126-9]?)",,,,,,"00",,[[,"(\\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"]]],,[,,"7(?:1(?:0[0-38]|1[0-3679]|3[013]|69|9[0136])|2(?:[02389]\\d|1[18]|7[27-9])|3(?:[0-38]\\d|7[0-369]|9[2357-9])|47\\d|5(?:[178]\\d|5[0-5])|6(?:0[0-7]|2[236-9]|[35]\\d)|7(?:[27]\\d|8[7-9])|8(?:[23689]\\d|7[1-9])|9(?:[025]\\d|6[0-246-8]|7[0-36-9]|8[238]))\\d{4}",,,,"71123456",,,[8]],,,[,,,,,,,,,[-1]],[,,"30(?:0[1-9]|[15-7]\\d|2[047]|89)\\d{4}",,,,"30161234",,,[8]],,,[,,,,,,,,,[-1]]],HN:[,[,,"8\\d{10}|[237-9]\\d{7}",,,,,,,[8,11]],[,,"2(?:2(?:0[0-59]|1[1-9]|[23]\\d|4[02-6]|5[57]|6[245]|7[0135689]|8[01346-9]|9[0-2])|4(?:0[578]|2[3-59]|3[13-9]|4[0-68]|5[1-3589])|5(?:0[2357-9]|1[1356]|4[03-5]|5\\d|6[014-69]|7[04]|80)|6(?:[056]\\d|17|2[067]|3[047]|4[0-378]|[78][0-8]|9[01])|7(?:0[5-79]|6[46-9]|7[02-9]|8[034]|91)|8(?:79|8[0-357-9]|9[1-57-9]))\\d{4}",,,,"22123456",,,[8]],[,,"[37-9]\\d{7}",,,,"91234567",,,[8]],[,,"8002\\d{7}",,,,"80021234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"HN",504,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["8"]]],[[,"(\\d{4})(\\d{4})","$1-$2",["[237-9]"]]],[,,,,,,,,,[-1]],,,[,,"8002\\d{7}",,,,,,,[11]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HR:[,[,,"(?:[24-69]\\d|3[0-79])\\d{7}|80\\d{5,7}|[1-79]\\d{7}|6\\d{5,6}",,,,,,,[6,7,8,9]],[,,"1\\d{7}|(?:2[0-3]|3[1-5]|4[02-47-9]|5[1-3])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"98\\d{6,7}|975(?:1\\d|77|9[67])\\d{4}|9(?:0[1-9]|[1259]\\d|7[0679])\\d{6}",,,,"921234567",,,[8,9]],[,,"80[01]\\d{4,6}",,,,"800123456",,,[7,8,9]],[,,"6[01459]\\d{6}|6[01]\\d{4,5}",,,,"611234",,,[6,7,8]],[,,,,,,,,,[-1]],[,,"7[45]\\d{6}",,,,"74123456",,,[8]],[,,,,,,,,,[-1]],"HR",385,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2,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",["[67]"],"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-5]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"62\\d{6,7}|72\\d{6}",,,,"62123456",,,[8,9]],,,[,,,,,,,,,[-1]]],HT:[,[,,"(?:[2-489]\\d|55)\\d{6}",,,,,,,[8]],[,,"2(?:2\\d|5[1-5]|81|9[149])\\d{5}",,,,"22453300"],[,,"(?:[34]\\d|55)\\d{6}",,,,"34101234"],[,,"8\\d{7}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:[67][0-4]|8[0-3589]|9\\d)\\d{5}",,,,"98901234"],"HT",509,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{4})","$1 $2 $3",["[2-589]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],HU:[,[,,"[235-7]\\d{8}|[1-9]\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:1\\d|[27][2-9]|3[2-7]|4[24-9]|5[2-79]|6[23689]|8[2-57-9]|9[2-69])\\d{6}",,,,"12345678",,,[8],[6,7]],[,,"(?:[257]0|3[01])\\d{7}",,,,"201234567",,,[9]],[,,"(?:[48]0\\d|680[29])\\d{5}",,,,"80123456"],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"21\\d{7}",,,,"211234567",,,[9]],"HU",36,"00","06",,,"06",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"(?:[48]0\\d|680[29])\\d{5}"],[,,"38\\d{7}",,,,"381234567",,,[9]],,,[,,,,,,,,,[-1]]],ID:[,[,,"(?:(?:00[1-9]|8\\d)\\d{4}|[1-36])\\d{6}|00\\d{10}|[1-9]\\d{8,10}|[2-9]\\d{7}",,,,,,,[7,8,9,10,11,12,13],[5,6]],[,,"2[124]\\d{7,8}|619\\d{8}|2(?:1(?:14|500)|2\\d{3})\\d{3}|61\\d{5,8}|(?:2(?:[35][1-4]|6[0-8]|7[1-6]|8\\d|9[1-8])|3(?:1|[25][1-8]|3[1-68]|4[1-3]|6[1-3568]|7[0-469]|8\\d)|4(?:0[1-589]|1[01347-9]|2[0-36-8]|3[0-24-68]|43|5[1-378]|6[1-5]|7[134]|8[1245])|5(?:1[1-35-9]|2[25-8]|3[124-9]|4[1-3589]|5[1-46]|6[1-8])|6(?:[25]\\d|3[1-69]|4[1-6])|7(?:02|[125][1-9]|[36]\\d|4[1-8]|7[0-36-9])|9(?:0[12]|1[013-8]|2[0-479]|5[125-8]|6[23679]|7[159]|8[01346]))\\d{5,8}",,,,"218350123",,,[7,8,9,10,11],[5,6]],[,,"8[1-35-9]\\d{7,10}",,,,"812345678",,,[9,10,11,12]],[,,"00[17]803\\d{7}|(?:177\\d|800)\\d{5,7}|001803\\d{6}",,,,"8001234567",,,[8,9,10,11,12,13]],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,"804\\d{7}",,,,"8041234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ID",62,"00[89]","0",,,"0",,,,[[,"(\\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"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["001"]],[,"(\\d{2})(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,"001803\\d{6,7}|(?:007803\\d|8071)\\d{6}",,,,,,,[10,12,13]],[,,"(?:1500|8071\\d{3})\\d{3}",,,,"8071123456",,,[7,10]],,,[,,,,,,,,,[-1]]],IE:[,[,,"(?:1\\d|[2569])\\d{6,8}|4\\d{6,9}|7\\d{8}|8\\d{8,9}",,,,,,,[7,8,9,10],[5,6]],[,,"(?:1\\d|21)\\d{6,7}|(?:2[24-9]|4(?:0[24]|5\\d|7)|5(?:0[45]|1\\d|8)|6(?:1\\d|[237-9])|9(?:1\\d|[35-9]))\\d{5}|(?:23|4(?:[1-469]|8\\d)|5[23679]|6[4-6]|7[14]|9[04])\\d{7}",,,,"2212345",,,,[5,6]],[,,"8(?:22|[35-9]\\d)\\d{6}",,,,"850123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,"15(?:1[2-8]|[2-8]0|9[089])\\d{6}",,,,"1520123456",,,[10]],[,,"18[59]0\\d{6}",,,,"1850123456",,,[10]],[,,"700\\d{6}",,,,"700123456",,,[9]],[,,"76\\d{7}",,,,"761234567",,,[9]],"IE",353,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"18[59]0\\d{6}",,,,,,,[10]],[,,"818\\d{6}",,,,"818123456",,,[9]],,,[,,"88210[1-9]\\d{4}|8(?:[35-79]5\\d\\d|8(?:[013-9]\\d\\d|2(?:[01][1-9]|[2-9]\\d)))\\d{5}",,,,"8551234567",,,[10]]],IL:[,[,,"1\\d{6}(?:\\d{3,5})?|[57]\\d{8}|[1-489]\\d{7}",,,,,,,[7,8,9,10,11,12]],[,,"153\\d{8,9}|29[1-9]\\d{5}|(?:2[0-8]|[3489]\\d)\\d{6}",,,,"21234567",,,[8,11,12],[7]],[,,"5(?:(?:[02368]\\d|[19][2-9]|4[1-9])\\d|5(?:01|1[79]|2[2-9]|3[0-3]|4[34]|5[015689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}",,,,"502345678",,,[9]],[,,"1(?:255|80[019]\\d{3})\\d{3}",,,,"1800123456",,,[7,10]],[,,"1212\\d{4}|1(?:200|9(?:0[0-2]|19))\\d{6}",,,,"1919123456",,,[8,10]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,"7(?:380|8(?:33|55|77|81))\\d{5}|7(?:18|2[23]|3[237]|47|6[258]|7\\d|82|9[2-9])\\d{6}",,,,"771234567",,,[9]],"IL",972,"0(?:0|1[2-9])","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"1700\\d{6}",,,,,,,[10]],[,,"1599\\d{6}",,,,"1599123456",,,[10]],,,[,,"151\\d{8,9}",,,,"15112340000",,,[11,12]]],IM:[,[,,"1624\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1624(?:230|[5-8]\\d\\d)\\d{3}",,,,"1624756789",,,,[6]],[,,"76245[06]\\d{4}|7(?:4576|[59]24\\d|624[0-4689])\\d{5}",,,,"7924123456"],[,,"808162\\d{4}",,,,"8081624567"],[,,"8(?:440[49]06|72299\\d)\\d{3}|(?:8(?:45|70)|90[0167])624\\d{4}",,,,"9016247890"],[,,,,,,,,,[-1]],[,,"70\\d{8}",,,,"7012345678"],[,,"56\\d{8}",,,,"5612345678"],"IM",44,"00","0",,,"0|([25-8]\\d{5})$","1624$1",,,,,[,,,,,,,,,[-1]],,"74576|(?:16|7[56])24",[,,,,,,,,,[-1]],[,,"3440[49]06\\d{3}|(?:3(?:08162|3\\d{4}|45624|7(?:0624|2299))|55\\d{4})\\d{4}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],IN:[,[,,"(?:000800|[2-9]\\d\\d)\\d{7}|1\\d{7,12}",,,,,,,[8,9,10,11,12,13],[6,7]],[,,"2717(?:[2-7]\\d|95)\\d{4}|(?:271[0-689]|782[0-6])[2-7]\\d{5}|(?:170[24]|2(?:(?:[02][2-79]|90)\\d|80[13468])|(?:3(?:23|80)|683|79[1-7])\\d|4(?:20[24]|72[2-8])|552[1-7])\\d{6}|(?:11|33|4[04]|80)[2-7]\\d{7}|(?:342|674|788)(?:[0189][2-7]|[2-7]\\d)\\d{5}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[13]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[0-26-9]|7[014-9]|8[013-57]|9[014-7])|5(?:1[025]|22|[36][25]|4[28]|[578]1|9[15])|6(?:12|[2-47]1|5[17]|6[13]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[3-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1245]|4[5-8]|5[125689]|6[235-7]|7[157-9]|8[2-46-8])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|7[235689]|8[124-6])|7(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|8[013-7]|9[089])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d[2-7]\\d{5}",,,,"7410410123",,,[10],[6,7,8]],[,,"(?:61279|7(?:887[02-9]|9(?:313|79[07-9]))|8(?:079[04-9]|(?:84|91)7[02-8]))\\d{5}|(?:6(?:12|[2-47]1|5[17]|6[13]|80)[0189]|7(?:1(?:2[0189]|9[0-5])|2(?:[14][017-9]|8[0-59])|3(?:2[5-8]|[34][017-9]|9[016-9])|4(?:1[015-9]|[29][89]|39|8[389])|5(?:[15][017-9]|2[04-9]|9[7-9])|6(?:0[0-47]|1[0-257-9]|2[0-4]|3[19]|5[4589])|70[0289]|88[089]|97[02-8])|8(?:0(?:6[67]|7[02-8])|70[017-9]|84[01489]|91[0-289]))\\d{6}|(?:7(?:31|4[47])|8(?:16|2[014]|3[126]|6[136]|7[78]|83))(?:[0189]\\d|7[02-8])\\d{5}|(?:6(?:[09]\\d|1[04679]|2[03689]|3[05-9]|4[0489]|50|6[069]|7[07]|8[7-9])|7(?:0\\d|2[0235-79]|3[05-8]|40|5[0346-8]|6[6-9]|7[1-9]|8[0-79]|9[089])|8(?:0[01589]|1[0-57-9]|2[235-9]|3[03-57-9]|[45]\\d|6[02457-9]|7[1-69]|8[0-25-9]|9[02-9])|9\\d\\d)\\d{7}|(?:6(?:(?:1[1358]|2[2457]|3[2-4]|4[235-7]|5[2-689]|6[24578]|8[124-6])\\d|7(?:[235689]\\d|4[0189]))|7(?:1(?:[013-8]\\d|9[6-9])|28[6-8]|3(?:2[0-49]|9[2-5])|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]|881))[0189]\\d{5}",,,,"8123456789",,,[10]],[,,"000800\\d{7}|1(?:600\\d{6}|80(?:0\\d{4,9}|3\\d{9}))",,,,"1800123456"],[,,"186[12]\\d{9}",,,,"1861123456789",,,[13]],[,,"1860\\d{7}",,,,"18603451234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IN",91,"00","0",,,"0",,,,[[,"(\\d{7})","$1",["575"]],[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[[,"(\\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)"],,,1],[,"(\\d{4})(\\d{4,5})","$1 $2",["180","1800"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["140"],,,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)"],,,1],[,"(\\d{4})(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["18"],,,1]],[,,,,,,,,,[-1]],,,[,,"1(?:600\\d{6}|800\\d{4,9})|(?:000800|18(?:03\\d\\d|6(?:0|[12]\\d\\d)))\\d{7}"],[,,"140\\d{7}",,,,"1409305260",,,[10]],,,[,,,,,,,,,[-1]]],IO:[,[,,"3\\d{6}",,,,,,,[7]],[,,"37\\d{5}",,,,"3709100"],[,,"38\\d{5}",,,,"3801234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IO",246,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IQ:[,[,,"(?:1|7\\d\\d)\\d{7}|[2-6]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"1\\d{7}|(?:2[13-5]|3[02367]|4[023]|5[03]|6[026])\\d{6,7}",,,,"12345678",,,[8,9],[6,7]],[,,"7[3-9]\\d{8}",,,,"7912345678",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IQ",964,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],IR:[,[,,"[1-9]\\d{9}|(?:[1-8]\\d\\d|9)\\d{3,4}",,,,,,,[4,5,6,7,10],[8]],[,,"(?:1[137]|2[13-68]|3[1458]|4[145]|5[1468]|6[16]|7[1467]|8[13467])(?:[03-57]\\d{7}|[16]\\d{3}(?:\\d{4})?|[289]\\d{3}(?:\\d(?:\\d{3})?)?)|94(?:000[09]|2(?:121|[2689]0\\d)|30[0-2]\\d|4(?:111|40\\d))\\d{4}",,,,"2123456789",,,[6,7,10],[4,5,8]],[,,"9(?:(?:0(?:[0-35]\\d|4[4-6])|(?:[13]\\d|2[0-3])\\d)\\d|9(?:[0-46]\\d\\d|5[15]0|8(?:1\\d|88)|9(?:0[0-3]|[19]\\d|21|77|8[7-9])))\\d{5}",,,,"9123456789",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"IR",98,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"9(?:4440\\d{5}|6(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19]))",,,,,,,[4,5,10]],[,,"96(?:0[12]|2[16-8]|3(?:08|[14]5|[23]|66)|4(?:0|80)|5[01]|6[89]|86|9[19])",,,,"9601",,,[4,5]],,,[,,,,,,,,,[-1]]],IS:[,[,,"(?:38\\d|[4-9])\\d{6}",,,,,,,[7,9]],[,,"(?:4(?:1[0-24-69]|2[0-7]|[37][0-8]|4[0-24589]|5[0-68]|6\\d|8[0-36-8])|5(?:05|[156]\\d|2[02578]|3[0-579]|4[03-7]|7[0-2578]|8[0-35-9]|9[013-689])|872)\\d{4}",,,,"4101234",,,[7]],[,,"(?:38[589]\\d\\d|6(?:1[1-8]|2[0-6]|3[026-9]|4[014679]|5[0159]|6[0-69]|70|8[06-8]|9\\d)|7(?:5[057]|[6-9]\\d)|8(?:2[0-59]|[3-69]\\d|8[238]))\\d{4}",,,,"6111234"],[,,"80[0-8]\\d{4}",,,,"8001234",,,[7]],[,,"90(?:0\\d|1[5-79]|2[015-79]|3[135-79]|4[125-7]|5[25-79]|7[1-37]|8[0-35-7])\\d{3}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"49[0-24-79]\\d{4}",,,,"4921234",,,[7]],"IS",354,"00|1(?:0(?:01|[12]0)|100)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["3"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"809\\d{4}",,,,"8091234",,,[7]],,,[,,"(?:689|8(?:7[18]|80)|95[48])\\d{4}",,,,"6891234",,,[7]]],IT:[,[,,"0\\d{5,10}|1\\d{8,10}|3(?:[0-8]\\d{7,10}|9\\d{7,8})|(?:55|70)\\d{8}|8\\d{5}(?:\\d{2,4})?",,,,,,,[6,7,8,9,10,11,12]],[,,"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}",,,,"0212345678",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"IT",39,"00",,,,,,,,[[,"(\\d{4,5})","$1",["1(?:0|9[246])","1(?:0|9(?:2[2-9]|[46]))"]],[,"(\\d{6})","$1",["1(?:1|92)"]],[,"(\\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]"]],[,"(\\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"]]],[[,"(\\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]"]],[,"(\\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"]]],[,,,,,,,,,[-1]],1,,[,,"848\\d{6}",,,,,,,[9]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],JE:[,[,,"1534\\d{6}|(?:[3578]\\d|90)\\d{8}",,,,,,,[10],[6]],[,,"1534[0-24-8]\\d{5}",,,,"1534456789",,,,[6]],[,,"7(?:(?:(?:50|82)9|937)\\d|7(?:00[378]|97[7-9]))\\d{5}",,,,"7797712345"],[,,"80(?:07(?:35|81)|8901)\\d{4}",,,,"8007354567"],[,,"(?:8(?:4(?:4(?:4(?:05|42|69)|703)|5(?:041|800))|7(?:0002|1206))|90(?:066[59]|1810|71(?:07|55)))\\d{4}",,,,"9018105678"],[,,,,,,,,,[-1]],[,,"701511\\d{4}",,,,"7015115678"],[,,"56\\d{8}",,,,"5612345678"],"JE",44,"00","0",,,"0|([0-24-8]\\d{5})$","1534$1",,,,,[,,"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}",,,,"7640123456"],,,[,,,,,,,,,[-1]],[,,"(?: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}",,,,"5512345678"],,,[,,,,,,,,,[-1]]],JM:[,[,,"(?:[58]\\d\\d|658|900)\\d{7}",,,,,,,[10],[7]],[,,"8766060\\d{3}|(?:658(?:2(?:[0-8]\\d|9[0-46-9])|[3-9]\\d\\d)|876(?:52[35]|6(?:0[1-3579]|1[02357-9]|[23]\\d|40|5[06]|6[2-589]|7[025-7]|8[04]|9[4-9])|7(?:0[2-689]|[1-6]\\d|8[056]|9[45])|9(?:0[1-8]|1[02378]|[2-8]\\d|9[2-468])))\\d{4}",,,,"8765230123",,,,[7]],[,,"(?:658295|876(?:2(?:0[1-9]|[13-9]\\d|2[013-9])|[348]\\d\\d|5(?:0[1-9]|[1-9]\\d)|6(?:4[89]|6[67])|7(?:0[07]|7\\d|8[1-47-9]|9[0-36-9])|9(?:[01]9|9[0579])))\\d{4}",,,,"8762101234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"JM",1,"011","1",,,"1",,,,,,[,,,,,,,,,[-1]],,"658|876",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],JO:[,[,,"(?:(?:[2689]|7\\d)\\d|32|53)\\d{6}",,,,,,,[8,9]],[,,"87(?:000|90[01])\\d{3}|(?:2(?:6(?:2[0-35-9]|3[0-578]|4[24-7]|5[0-24-8]|[6-8][023]|9[0-3])|7(?:0[1-79]|10|2[014-7]|3[0-689]|4[019]|5[0-3578]))|32(?:0[1-69]|1[1-35-7]|2[024-7]|3\\d|4[0-3]|[5-7][023])|53(?:0[0-3]|[13][023]|2[0-59]|49|5[0-35-9]|6[15]|7[45]|8[1-6]|9[0-36-9])|6(?:2(?:[05]0|22)|3(?:00|33)|4(?:0[0-25]|1[2-7]|2[0569]|[38][07-9]|4[025689]|6[0-589]|7\\d|9[0-2])|5(?:[01][056]|2[034]|3[0-57-9]|4[178]|5[0-69]|6[0-35-9]|7[1-379]|8[0-68]|9[0239]))|87(?:20|7[078]|99))\\d{4}",,,,"62001234",,,[8]],[,,"7(?:[78][0-25-9]|9\\d)\\d{6}",,,,"790123456",,,[9]],[,,"80\\d{6}",,,,"80012345",,,[8]],[,,"9\\d{7}",,,,"90012345",,,[8]],[,,"85\\d{6}",,,,"85012345",,,[8]],[,,"70\\d{7}",,,,"700123456",,,[9]],[,,,,,,,,,[-1]],"JO",962,"00","0",,,"0",,,,[[,"(\\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"]],,[,,"74(?:66|77)\\d{5}",,,,"746612345",,,[9]],,,[,,,,,,,,,[-1]],[,,"8(?:10|8\\d)\\d{5}",,,,"88101234",,,[8]],,,[,,,,,,,,,[-1]]],JP:[,[,,"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]],[,,"(?:1(?:1[235-8]|2[3-6]|3[3-9]|4[2-6]|[58][2-8]|6[2-7]|7[2-9]|9[1-9])|(?:2[2-9]|[36][1-9])\\d|4(?:[2-578]\\d|6[02-8]|9[2-59])|5(?:[2-589]\\d|6[1-9]|7[2-8])|7(?:[25-9]\\d|3[4-9]|4[02-9])|8(?:[2679]\\d|3[2-9]|4[5-9]|5[1-9]|8[03-9])|9(?:[2-58]\\d|[679][1-9]))\\d{6}",,,,"312345678",,,[9]],[,,"[7-9]0[1-9]\\d{7}",,,,"9012345678",,,[10]],[,,"00777(?:[01]|5\\d)\\d\\d|(?:00(?:7778|882[1245])|(?:120|800\\d)\\d\\d)\\d{4}|00(?:37|66|78)\\d{6,13}",,,,"120123456"],[,,"990\\d{6}",,,,"990123456",,,[9]],[,,,,,,,,,[-1]],[,,"60\\d{7}",,,,"601234567",,,[9]],[,,"50[1-9]\\d{7}",,,,"5012345678",,,[10]],"JP",81,"010","0",,,"0",,,,[[,"(\\d{4})(\\d{4})","$1-$2",["007","0077","00777","00777[01]"]],[,"(\\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|63)|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]|636)|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]|636[457-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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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{4})(\\d{2})(\\d{3,4})","$1-$2-$3",["007","0077"]],[,"(\\d{4})(\\d{2})(\\d{4})","$1-$2-$3",["008"]],[,"(\\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"],[,"(\\d{4})(\\d{3})(\\d{3,4})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{4})(\\d{4,5})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{5})(\\d{5,6})","$1-$2-$3",["0"]],[,"(\\d{4})(\\d{6})(\\d{6,7})","$1-$2-$3",["0"]]],[[,"(\\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|63)|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]|636)|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]|636[457-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[045]|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[27-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])|5(?:2|3[045]|4[0-369]|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])|49|51|6(?:[0-24]|36|5[0-3589]|72|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]))|(?:49|55|83)[29]|(?: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]|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]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|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]","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]|7[015-9]|9(?:17|99))|6(?:2|4[016-9])|7(?:[1-35]|8[0189])|8(?:[16]|3[0134]|9[0-5])|9(?:[028]|17|3[015-9]))|4(?:2(?:[13-79]|8[014-6])|3[0-57]|[45]|6[248]|7[2-47]|9[29])|5(?:2|3[045]|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(?:[019]|4[1-3]|6(?:[0-47-9]|5[01346-9])))|3(?:[29]|7(?:[017-9]|6[6-8]))|49|51|6(?:[0-24]|36[23]|5(?:[0-389]|5[23])|6(?:[01]|9[178])|72|9[0145])|7[0-468]|8[68])|9(?:4[15]|5[138]|6[1-3]|7[156]|8[189]|9(?:[1289]|3(?:31|4[357])|4[0178]))|(?:223|8699)[014-9]|(?:25[0468]|422|838)[01]|(?:48|829(?:2|66)|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"]],[,,"20\\d{8}",,,,"2012345678",,,[10]],,,[,,"00(?:777(?:[01]|(?:5|8\\d)\\d)|882[1245]\\d\\d)\\d\\d|00(?:37|66|78)\\d{6,13}"],[,,"570\\d{6}",,,,"570123456",,,[9]],,,[,,,,,,,,,[-1]]],KE:[,[,,"(?:[17]\\d\\d|900)\\d{6}|(?:2|80)0\\d{6,7}|[4-6]\\d{6,8}",,,,,,,[7,8,9,10]],[,,"(?:4[245]|5[1-79]|6[01457-9])\\d{5,7}|(?:4[136]|5[08]|62)\\d{7}|(?:[24]0|66)\\d{6,7}",,,,"202012345",,,[7,8,9]],[,,"(?:1(?:0[0-6]|1[0-5]|2[014]|30)|7\\d\\d)\\d{6}",,,,"712123456",,,[9]],[,,"800[2-8]\\d{5,6}",,,,"800223456",,,[9,10]],[,,"900[02-9]\\d{5}",,,,"900223456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KE",254,"000","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KG:[,[,,"8\\d{9}|(?:[235-8]\\d|99)\\d{7}",,,,,,,[9,10],[5,6]],[,,"312(?:5[0-79]\\d|9(?:[0-689]\\d|7[0-24-9]))\\d{3}|(?:3(?:1(?:2[0-46-8]|3[1-9]|47|[56]\\d)|2(?:22|3[0-479]|6[0-7])|4(?:22|5[6-9]|6\\d)|5(?:22|3[4-7]|59|6\\d)|6(?:22|5[35-7]|6\\d)|7(?:22|3[468]|4[1-9]|59|[67]\\d)|9(?:22|4[1-8]|6\\d))|6(?:09|12|2[2-4])\\d)\\d{5}",,,,"312123456",,,[9],[5,6]],[,,"312(?:58\\d|973)\\d{3}|(?:2(?:0[0-35]|2\\d)|5[0-24-7]\\d|600|7(?:[07]\\d|55)|88[08]|99[05-9])\\d{6}",,,,"700123456",,,[9]],[,,"800\\d{6,7}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KG",996,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KH:[,[,,"1\\d{9}|[1-9]\\d{7,8}",,,,,,,[8,9,10],[6,7]],[,,"23(?:4(?:[2-4]|[56]\\d)|[568]\\d\\d)\\d{4}|23[236-9]\\d{5}|(?:2[4-6]|3[2-6]|4[2-4]|[5-7][2-5])(?:(?:[237-9]|4[56]|5\\d)\\d{5}|6\\d{5,6})",,,,"23756789",,,[8,9],[6,7]],[,,"(?:(?:1[28]|3[18]|9[67])\\d|6[016-9]|7(?:[07-9]|[16]\\d)|8(?:[013-79]|8\\d))\\d{6}|(?:1\\d|9[0-57-9])\\d{6}|(?:2[3-6]|3[2-6]|4[2-4]|[5-7][2-5])48\\d{5}",,,,"91234567",,,[8,9]],[,,"1800(?:1\\d|2[019])\\d{4}",,,,"1800123456",,,[10]],[,,"1900(?:1\\d|2[09])\\d{4}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KH",855,"00[14-9]","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[1-9]"],"0$1"],[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KI:[,[,,"(?:[37]\\d|6[0-79])\\d{6}|(?:[2-48]\\d|50)\\d{3}",,,,,,,[5,8]],[,,"(?:[24]\\d|3[1-9]|50|65(?:02[12]|12[56]|22[89]|[3-5]00)|7(?:27\\d\\d|3100|5(?:02[12]|12[56]|22[89]|[34](?:00|81)|500))|8[0-5])\\d{3}",,,,"31234"],[,,"(?:63\\d{3}|73(?:0[0-5]\\d|140))\\d{3}|[67]200[01]\\d{3}",,,,"72001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"30(?:0[01]\\d\\d|12(?:11|20))\\d\\d",,,,"30010000",,,[8]],"KI",686,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KM:[,[,,"[3478]\\d{6}",,,,,,,[7],[4]],[,,"7[4-7]\\d{5}",,,,"7712345",,,,[4]],[,,"[34]\\d{6}",,,,"3212345"],[,,,,,,,,,[-1]],[,,"8\\d{6}",,,,"8001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KM",269,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[3478]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KN:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"869(?:2(?:29|36)|302|4(?:6[015-9]|70)|56[5-7])\\d{4}",,,,"8692361234",,,,[7]],[,,"869(?:48[89]|55[6-8]|66\\d|76[02-7])\\d{4}",,,,"8697652917",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KN",1,"011","1",,,"1|([2-7]\\d{6})$","869$1",,,,,[,,,,,,,,,[-1]],,"869",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KP:[,[,,"85\\d{6}|(?:19\\d|[2-7])\\d{7}",,,,,,,[8,10],[6,7]],[,,"(?:(?:195|2)\\d|3[19]|4[159]|5[37]|6[17]|7[39]|85)\\d{6}",,,,"21234567",,,,[6,7]],[,,"19[1-3]\\d{7}",,,,"1921234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KP",850,"00|99","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"238[02-9]\\d{4}|2(?:[0-24-9]\\d|3[0-79])\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KR:[,[,,"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],[3,4,7]],[,,"(?:2|3[1-3]|[46][1-4]|5[1-5])[1-9]\\d{6,7}|(?:3[1-3]|[46][1-4]|5[1-5])1\\d{2,3}",,,,"22123456",,,[5,6,8,9,10],[3,4,7]],[,,"1(?:05(?:[0-8]\\d|9[0-6])|22[13]\\d)\\d{4,5}|1(?:0[1-46-9]|[16-9]\\d|2[013-9])\\d{6,7}",,,,"1020000000",,,[9,10]],[,,"00(?:308\\d{6,7}|798\\d{7,9})|(?:00368|80)\\d{7}",,,,"801234567",,,[9,11,12,13,14]],[,,"60[2-9]\\d{6}",,,,"602345678",,,[9]],[,,,,,,,,,[-1]],[,,"50\\d{8,9}",,,,"5012345678",,,[10,11]],[,,"70\\d{8}",,,,"7012345678",,,[10]],"KR",82,"00(?:[125689]|3(?:[46]5|91)|7(?:00|27|3|55|6[126]))","0",,,"0(8(?:[1-46-8]|5\\d\\d))?",,,,[[,"(\\d{5})","$1",["1[016-9]1","1[016-9]11","1[016-9]114"],"0$1"],[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3})(\\d{3})","$1 $2 $3",["003","0030"]],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"],[,"(\\d{5})(\\d{3,4})(\\d{4})","$1 $2 $3",["0"]],[,"(\\d{5})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],[[,"(\\d{2})(\\d{3,4})","$1-$2",["(?:3[1-3]|[46][1-4]|5[1-5])1"],"0$1","0$CC-$1"],[,"(\\d{4})(\\d{4})","$1-$2",["1"]],[,"(\\d)(\\d{3,4})(\\d{4})","$1-$2-$3",["2"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["60|8"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{3,4})(\\d{4})","$1-$2-$3",["[1346]|5[1-5]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["[57]"],"0$1","0$CC-$1"],[,"(\\d{2})(\\d{5})(\\d{4})","$1-$2-$3",["5"],"0$1","0$CC-$1"]],[,,"15\\d{7,8}",,,,"1523456789",,,[9,10]],,,[,,"00(?:3(?:08\\d{6,7}|68\\d{7})|798\\d{7,9})",,,,,,,[11,12,13,14]],[,,"1(?:5(?:22|33|44|66|77|88|99)|6(?:[07]0|44|6[168]|88)|8(?:00|33|55|77|99))\\d{4}",,,,"15441234",,,[8]],,,[,,,,,,,,,[-1]]],KW:[,[,,"18\\d{5}|(?:[2569]\\d|41)\\d{6}",,,,,,,[7,8]],[,,"2(?:[23]\\d\\d|4(?:[1-35-9]\\d|44)|5(?:0[034]|[2-46]\\d|5[1-3]|7[1-7]))\\d{4}",,,,"22345678",,,[8]],[,,"(?:41\\d\\d|5(?:(?:[05]\\d|1[0-7]|6[56])\\d|2(?:22|5[25])|7(?:55|77)|88[58])|6(?:(?:0[034679]|5[015-9]|6\\d)\\d|1(?:00|11|66)|222|3[36]3|444|7(?:0[013-9]|[67]\\d)|888|9(?:[069]\\d|3[039]))|9(?:(?:0[09]|22|[4679]\\d|8[057-9])\\d|1(?:1[01]|99)|3(?:00|33)|5(?:00|5\\d)))\\d{4}",,,,"50012345",,,[8]],[,,"18\\d{5}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"KW",965,"00",,,,,,,,[[,"(\\d{4})(\\d{3,4})","$1 $2",["[169]|2(?:[235]|4[1-35-9])|52"]],[,"(\\d{3})(\\d{5})","$1 $2",["[245]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KY:[,[,,"(?:345|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"345(?:2(?:22|3[23]|44|66)|333|444|6(?:23|38|40)|7(?:30|4[35-79]|6[6-9]|77)|8(?:00|1[45]|[48]8)|9(?:14|4[035-9]))\\d{4}",,,,"3452221234",,,,[7]],[,,"345(?:32[1-9]|42[0-4]|5(?:1[67]|2[5-79]|4[6-9]|50|76)|649|82[56]|9(?:1[679]|2[2-9]|3[06-9]|90))\\d{4}",,,,"3453231234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"(?:345976|900[2-9]\\d\\d)\\d{4}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"KY",1,"011","1",,,"1|([2-9]\\d{6})$","345$1",,,,,[,,"345849\\d{4}",,,,"3458491234"],,"345",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],KZ:[,[,,"(?:33622|8\\d{8})\\d{5}|[78]\\d{9}",,,,,,,[10,14],[5,6,7]],[,,"(?:33622|7(?:1(?:0(?:[23]\\d|4[0-3]|59|63)|1(?:[23]\\d|4[0-79]|59)|2(?:[23]\\d|59)|3(?:2\\d|3[0-79]|4[0-35-9]|59)|4(?:[24]\\d|3[013-9]|5[1-9]|97)|5(?:2\\d|3[1-9]|4[0-7]|59)|6(?:[2-4]\\d|5[19]|61)|72\\d|8(?:[27]\\d|3[1-46-9]|4[0-5]|59))|2(?:1(?:[23]\\d|4[46-9]|5[3469])|2(?:2\\d|3[0679]|46|5[12679])|3(?:[2-4]\\d|5[139])|4(?:2\\d|3[1-35-9]|59)|5(?:[23]\\d|4[0-8]|59|61)|6(?:2\\d|3[1-9]|4[0-4]|59)|7(?:[2379]\\d|40|5[279])|8(?:[23]\\d|4[0-3]|59)|9(?:2\\d|3[124578]|59))))\\d{5}",,,,"7123456789",,,[10],[5,6,7]],[,,"7(?:0[0-25-8]|47|6[0-4]|7[15-8]|85)\\d{7}",,,,"7710009998",,,[10]],[,,"8(?:00|108\\d{3})\\d{7}",,,,"8001234567"],[,,"809\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,"751\\d{7}",,,,"7511234567",,,[10]],"KZ",7,"810","8",,,"8",,"8~10",,,,[,,,,,,,,,[-1]],,"33|7",[,,"751\\d{7}",,,,,,,[10]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LA:[,[,,"[23]\\d{9}|3\\d{8}|(?:[235-8]\\d|41)\\d{6}",,,,,,,[8,9,10],[6]],[,,"(?:2[13]|[35-7][14]|41|8[1468])\\d{6}",,,,"21212862",,,[8],[6]],[,,"(?:20(?:[239]\\d|5[24-9]|7[6-8]|88)|302\\d)\\d{6}",,,,"2023123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LA",856,"00","0",,,"0",,,,[[,"(\\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",["30[013-9]"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"30[013-9]\\d{6}",,,,"301234567",,,[9]],,,[,,,,,,,,,[-1]]],LB:[,[,,"[27-9]\\d{7}|[13-9]\\d{6}",,,,,,,[7,8]],[,,"7(?:62|8[0-7]|9[04-9])\\d{4}|(?:[14-69]\\d|2(?:[14-69]\\d|[78][1-9])|7[2-57]|8[02-9])\\d{5}",,,,"1123456"],[,,"793(?:[01]\\d|2[0-4])\\d{3}|(?:(?:3|81)\\d|7(?:[01]\\d|6[013-9]|8[89]|9[12]))\\d{5}",,,,"71123456"],[,,,,,,,,,[-1]],[,,"9[01]\\d{6}",,,,"90123456",,,[8]],[,,"80\\d{6}",,,,"80123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LB",961,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[13-69]|7(?:[2-57]|62|8[0-7]|9[04-9])|8[02-9]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[27-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LC:[,[,,"(?:[58]\\d\\d|758|900)\\d{7}",,,,,,,[10],[7]],[,,"758(?:234|4(?:30|5\\d|6[2-9]|8[0-2])|57[0-2]|(?:63|75)8)\\d{4}",,,,"7584305678",,,,[7]],[,,"758(?:28[4-7]|384|4(?:6[01]|8[4-9])|5(?:1[89]|20|84)|7(?:1[2-9]|2\\d|3[0-3])|812)\\d{4}",,,,"7582845678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"LC",1,"011","1",,,"1|([2-8]\\d{6})$","758$1",,,,,[,,,,,,,,,[-1]],,"758",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LI:[,[,,"[68]\\d{8}|(?:[2378]\\d|90)\\d{5}",,,,,,,[7,9]],[,,"(?:2(?:01|1[27]|2[02]|3\\d|6[02-578]|96)|3(?:[24]0|33|7[0135-7]|8[048]|9[0269]))\\d{4}",,,,"2345678",,,[7]],[,,"(?:6(?:(?:4[5-9]|5[0-4])\\d|6(?:[0245]\\d|[17]0|3[7-9]))\\d|7(?:[37-9]\\d|42|56))\\d{4}",,,,"660234567"],[,,"8002[28]\\d\\d|80(?:05\\d|9)\\d{4}",,,,"8002222"],[,,"90(?:02[258]|1(?:23|3[14])|66[136])\\d\\d",,,,"9002222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LI",423,"00","0",,,"0|(1001)",,,,[[,"(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3",["[2379]|8(?:0[09]|7)","[2379]|8(?:0(?:02|9)|7)"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["69"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"870(?:28|87)\\d\\d",,,,"8702812",,,[7]],,,[,,"697(?:42|56|[78]\\d)\\d{4}",,,,"697861234",,,[9]]],LK:[,[,,"[1-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:12[2-9]|602|8[12]\\d|9(?:1\\d|22|9[245]))\\d{6}|(?:11|2[13-7]|3[1-8]|4[157]|5[12457]|6[35-7])[2-57]\\d{6}",,,,"112345678",,,,[7]],[,,"7(?:[0-25-8]\\d|4[0-4])\\d{6}",,,,"712345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LK",94,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"1973\\d{5}",,,,"197312345"],,,[,,,,,,,,,[-1]]],LR:[,[,,"(?:[25]\\d|33|77|88)\\d{7}|(?:2\\d|[4-6])\\d{6}",,,,,,,[7,8,9]],[,,"(?:2\\d{3}|33333)\\d{4}",,,,"21234567",,,[8,9]],[,,"(?:(?:(?:22|33)0|555|(?:77|88)\\d)\\d|4[67])\\d{5}|[56]\\d{6}",,,,"770123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"332(?:02|[34]\\d)\\d{4}",,,,"332021234",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LR",231,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[4-6]"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["2"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[23578]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LS:[,[,,"(?:[256]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"2\\d{7}",,,,"22123456"],[,,"[56]\\d{7}",,,,"50123456"],[,,"800[256]\\d{4}",,,,"80021234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LS",266,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2568]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LT:[,[,,"(?:[3469]\\d|52|[78]0)\\d{6}",,,,,,,[8]],[,,"(?:3[1478]|4[124-6]|52)\\d{6}",,,,"31234567"],[,,"6\\d{7}",,,,"61234567"],[,,"80[02]\\d{5}",,,,"80012345"],[,,"9(?:0[0239]|10)\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,"70[05]\\d{5}",,,,"70012345"],[,,"[89]01\\d{5}",,,,"80123456"],"LT",370,"00","8",,,"[08]",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1 $2 $3",["52[0-7]"],"(8-$1)",,1],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[7-9]"],"8 $1",,1],[,"(\\d{2})(\\d{6})","$1 $2",["37|4(?:[15]|6[1-8])"],"(8-$1)",,1],[,"(\\d{3})(\\d{5})","$1 $2",["[3-6]"],"(8-$1)",,1]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"70[67]\\d{5}",,,,"70712345"],,,[,,,,,,,,,[-1]]],LU:[,[,,"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]],[,,"(?:35[013-9]|80[2-9]|90[89])\\d{1,8}|(?:2[2-9]|3[0-46-9]|[457]\\d|8[13-9]|9[2-579])\\d{2,9}",,,,"27123456"],[,,"6(?:[269][18]|5[1568]|7[189]|81)\\d{6}",,,,"628123456",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"90[015]\\d{5}",,,,"90012345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,,,,,,,,[-1]],[,,"20(?:1\\d{5}|[2-689]\\d{1,7})",,,,"20201234",,,[4,5,6,7,8,9,10]],"LU",352,"00",,,,"(15(?:0[06]|1[12]|[35]5|4[04]|6[26]|77|88|99)\\d)",,,,[[,"(\\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])"],,"$CC $1"],[,"(\\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])"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["20[2-689]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["80[01]|90[015]"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["20"],,"$CC $1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["6"],,"$CC $1"],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})(\\d{1,2})","$1 $2 $3 $4 $5",["2(?:[0367]|4[3-8])"],,"$CC $1"],[,"(\\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]"],,"$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LV:[,[,,"(?:[268]\\d|90)\\d{6}",,,,,,,[8]],[,,"6\\d{7}",,,,"63123456"],[,,"23(?:23[0-57-9]|33[0238])\\d{3}|2(?:[0-24-9]\\d\\d|3(?:0[07]|[14-9]\\d|2[024-9]|3[0-24-9]))\\d{4}",,,,"21234567"],[,,"80\\d{6}",,,,"80123456"],[,,"90\\d{6}",,,,"90123456"],[,,"81\\d{6}",,,,"81123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LV",371,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[269]|8[01]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],LY:[,[,,"[2-9]\\d{8}",,,,,,,[9],[7]],[,,"(?:2(?:0[56]|[1-6]\\d|7[124579]|8[124])|3(?:1\\d|2[2356])|4(?:[17]\\d|2[1-357]|5[2-4]|8[124])|5(?:[1347]\\d|2[1-469]|5[13-5]|8[1-4])|6(?:[1-479]\\d|5[2-57]|8[1-5])|7(?:[13]\\d|2[13-79])|8(?:[124]\\d|5[124]|84))\\d{6}",,,,"212345678",,,,[7]],[,,"9[1-6]\\d{7}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"LY",218,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{7})","$1-$2",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MA:[,[,,"[5-8]\\d{8}",,,,,,,[9]],[,,"5293[01]\\d{4}|5(?:2(?:[0-25-7]\\d|3[1-578]|4[02-46-8]|8[0235-7]|9[0-289])|3(?:[0-47]\\d|5[02-9]|6[02-8]|8[0189]|9[3-9])|(?:4[067]|5[03])\\d)\\d{5}",,,,"520123456"],[,,"(?:6(?:[0-79]\\d|8[0-247-9])|7(?:[017]\\d|2[0-2]|6[0-8]|8[0-3]))\\d{6}",,,,"650123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89\\d{7}",,,,"891234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"592(?:4[0-2]|93)\\d{4}",,,,"592401234"],"MA",212,"00","0",,,"0",,,,[[,"(\\d{5})(\\d{4})","$1-$2",["5(?:29|38)","5(?:29[1289]|389)","529(?:1[1-46-9]|2[013-8]|90)|5(?:298|389)[0-46-9]"],"0$1"],[,"(\\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-489]|3[5-9]|9)|892","5(?:2(?:[2-49]|8[235-9])|3[5-9]|9)|892"],"0$1"],[,"(\\d{2})(\\d{7})","$1-$2",["8"],"0$1"],[,"(\\d{3})(\\d{6})","$1-$2",["[5-7]"],"0$1"]],,[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MC:[,[,,"(?:[3489]|6\\d)\\d{7}",,,,,,,[8,9]],[,,"(?:870|9[2-47-9]\\d)\\d{5}",,,,"99123456",,,[8]],[,,"4(?:[46]\\d|5[1-9])\\d{5}|(?:3|6\\d)\\d{7}",,,,"612345678"],[,,"(?:800|90\\d)\\d{5}",,,,"90123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MC",377,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3",["87"]],[,"(\\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"]],[[,"(\\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"]],[,,,,,,,,,[-1]],,,[,,"8[07]0\\d{5}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MD:[,[,,"(?:[235-7]\\d|[89]0)\\d{6}",,,,,,,[8]],[,,"(?:(?:2[1-9]|3[1-79])\\d|5(?:33|5[257]))\\d{5}",,,,"22212345"],[,,"562\\d{5}|(?:6\\d|7[16-9])\\d{6}",,,,"62112345"],[,,"800\\d{5}",,,,"80012345"],[,,"90[056]\\d{5}",,,,"90012345"],[,,"808\\d{5}",,,,"80812345"],[,,,,,,,,,[-1]],[,,"3[08]\\d{6}",,,,"30123456"],"MD",373,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"803\\d{5}",,,,"80312345"],,,[,,,,,,,,,[-1]]],ME:[,[,,"(?:20|[3-79]\\d)\\d{6}|80\\d{6,7}",,,,,,,[8,9],[6]],[,,"(?:20[2-8]|3(?:[0-2][2-7]|3[24-7])|4(?:0[2-467]|1[2467])|5(?:0[2467]|1[24-7]|2[2-467]))\\d{5}",,,,"30234567",,,[8],[6]],[,,"6(?:[07-9]\\d|3[024]|6[0-25])\\d{5}",,,,"67622901",,,[8]],[,,"80(?:[0-2578]|9\\d)\\d{5}",,,,"80080002"],[,,"9(?:4[1568]|5[178])\\d{5}",,,,"94515151",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"78[1-49]\\d{5}",,,,"78108780",,,[8]],"ME",382,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["[2-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"77[1-9]\\d{5}",,,,"77273012",,,[8]],,,[,,,,,,,,,[-1]]],MF:[,[,,"(?:590|(?:69|80)\\d|976)\\d{6}",,,,,,,[9]],[,,"590(?:0[079]|[14]3|[27][79]|30|5[0-268]|87)\\d{4}",,,,"590271234"],[,,"69(?:0\\d\\d|1(?:2[2-9]|3[0-5]))\\d{4}",,,,"690001234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976[01]\\d{5}",,,,"976012345"],"MF",590,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MG:[,[,,"[23]\\d{8}",,,,,,,[9],[7]],[,,"2072[29]\\d{4}|20(?:2\\d|4[47]|5[3467]|6[279]|7[35]|8[268]|9[245])\\d{5}",,,,"202123456",,,,[7]],[,,"3[2-47-9]\\d{7}",,,,"321234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"22\\d{7}",,,,"221234567"],"MG",261,"00","0",,,"0|([24-9]\\d{6})$","20$1",,,[[,"(\\d{2})(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3 $4",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MH:[,[,,"329\\d{4}|(?:[256]\\d|45)\\d{5}",,,,,,,[7]],[,,"(?:247|528|625)\\d{4}",,,,"2471234"],[,,"(?:(?:23|54)5|329|45[356])\\d{4}",,,,"2351234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"635\\d{4}",,,,"6351234"],"MH",692,"011","1",,,"1",,,,[[,"(\\d{3})(\\d{4})","$1-$2",["[2-6]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MK:[,[,,"[2-578]\\d{7}",,,,,,,[8],[6,7]],[,,"(?:(?:2(?:62|77)0|3444)\\d|4[56]440)\\d{3}|(?:34|4[357])700\\d{3}|(?:2(?:[0-3]\\d|5[0-578]|6[01]|82)|3(?:1[3-68]|[23][2-68]|4[23568])|4(?:[23][2-68]|4[3-68]|5[2568]|6[25-8]|7[24-68]|8[4-68]))\\d{5}",,,,"22012345",,,,[6,7]],[,,"7(?:3555|(?:474|9[019]7)7)\\d{3}|7(?:[0-25-8]\\d\\d|3(?:[1-48]\\d|7[01578])|4(?:2\\d|60|7[01578])|9(?:[2-4]\\d|7[015]))\\d{4}",,,,"72345678"],[,,"800\\d{5}",,,,"80012345"],[,,"5\\d{7}",,,,"50012345"],[,,"8(?:0[1-9]|[1-9]\\d)\\d{5}",,,,"80123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MK",389,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ML:[,[,,"[24-9]\\d{7}",,,,,,,[8]],[,,"2(?:07[0-8]|12[67])\\d{4}|(?:2(?:02|1[4-689])|4(?:0[0-4]|4[1-39]))\\d{5}",,,,"20212345"],[,,"2(?:0(?:01|79)|17\\d)\\d{4}|(?:5[01]|[679]\\d|8[2-49])\\d{6}",,,,"65012345"],[,,"80\\d{6}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ML",223,"00",,,,,,,,[[,"(\\d{4})","$1",["67[057-9]|74[045]","67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[24-9]"]]],[,,,,,,,,,[-1]],,,[,,"80\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MM:[,[,,"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],[5]],[,,"(?:1(?:(?:2\\d|3[56]|[89][0-6])\\d|4(?:2[2-469]|39|46|6[25]|7[0-3]|83)|6)|2(?:2(?:00|8[34])|4(?:0\\d|2[246]|39|46|62|7[0-3]|83)|51\\d\\d)|4(?:2(?:2\\d\\d|48[0-3])|3(?:20\\d|4(?:70|83)|56)|420\\d|5470)|6(?:0(?:[23]|88\\d)|(?:124|[56]2\\d)\\d|247[23]|3(?:20\\d|470)|4(?:2[04]\\d|47[23])|7(?:(?:3\\d|8[01459])\\d|4(?:39|60|7[013]))))\\d{4}|5(?:2(?:2\\d{5,6}|47[023]\\d{4})|(?:347[23]|4(?:2(?:1|86)|470)|522\\d|6(?:20\\d|483)|7(?:20\\d|48[0-2])|8(?:20\\d|47[02])|9(?:20\\d|47[01]))\\d{4})|7(?:(?:0470|4(?:25\\d|470)|5(?:202|470|96\\d))\\d{4}|1(?:20\\d{4,5}|4(?:70|83)\\d{4}))|8(?:1(?:2\\d{5,6}|4(?:10|7[01]\\d)\\d{3})|2(?:2\\d{5,6}|(?:320|490\\d)\\d{3})|(?:3(?:2\\d\\d|470)|4[24-7]|5(?:2\\d|4[1-9]|51)\\d|6[23])\\d{4})|(?:1[2-6]\\d|4(?:2[24-8]|3[2-7]|[46][2-6]|5[3-5])|5(?:[27][2-8]|3[2-68]|4[24-8]|5[23]|6[2-4]|8[24-7]|9[2-7])|6(?:[19]20|42[03-6]|(?:52|7[45])\\d)|7(?:[04][24-8]|[15][2-7]|22|3[2-4])|8(?:1[2-689]|2[2-8]|[35]2\\d))\\d{4}|25\\d{5,6}|(?:2[2-9]|6(?:1[2356]|[24][2-6]|3[24-6]|5[2-4]|6[2-8]|7[235-7]|8[245]|9[24])|8(?:3[24]|5[245]))\\d{4}",,,,"1234567",,,[6,7,8,9],[5]],[,,"(?:17[01]|9(?:2(?:[0-4]|[56]\\d\\d)|(?:3(?:[0-36]|4\\d)|(?:6\\d|9[4-8])\\d|7(?:3|40|[5-9]\\d)|8(?:78|[89]\\d))\\d|4(?:(?:[0245]\\d|[1379])\\d|88)|5[0-6])\\d)\\d{4}|9[69]1\\d{6}|9(?:[68]\\d|9[089])\\d{5}",,,,"92123456",,,[7,8,9,10]],[,,"80080(?:[01][1-9]|2\\d)\\d{3}",,,,"8008001234",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"1333\\d{4}|[12]468\\d{4}",,,,"13331234",,,[8]],"MM",95,"00","0",,,"0",,,,[[,"(\\d)(\\d{2})(\\d{3})","$1 $2 $3",["16|2"],"0$1"],[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["[45]|6(?:0[23]|[1-689]|7[235-7])|7(?:[0-4]|5[2-7])|8[1-6]"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MN:[,[,,"[12]\\d{7,9}|[5-9]\\d{7}",,,,,,,[8,9,10],[4,5,6]],[,,"[12]2[1-3]\\d{5,6}|7(?:0[0-5]\\d|128)\\d{4}|(?:[12](?:1|27)|5[368])\\d{6}|[12](?:3[2-8]|4[2-68]|5[1-4689])\\d{6,7}",,,,"53123456",,,,[4,5,6]],[,,"(?:83[01]|920)\\d{5}|(?:5[05]|6[069]|8[015689]|9[013-9])\\d{6}",,,,"88123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"712[0-79]\\d{4}|7(?:1[013-9]|[25-9]\\d)\\d{5}",,,,"75123456",,,[8]],"MN",976,"001","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MO:[,[,,"0800\\d{3}|(?:28|[68]\\d)\\d{6}",,,,,,,[7,8]],[,,"(?:28[2-9]|8(?:11|[2-57-9]\\d))\\d{5}",,,,"28212345",,,[8]],[,,"6800[0-79]\\d{3}|6(?:[235]\\d\\d|6(?:0[0-5]|[1-9]\\d)|8(?:0[1-9]|[14-8]\\d|2[5-9]|[39][0-4]))\\d{4}",,,,"66123456",,,[8]],[,,"0800\\d{3}",,,,"0800501",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MO",853,"00",,,,,,,,[[,"(\\d{4})(\\d{3})","$1 $2",["0"]],[,"(\\d{4})(\\d{4})","$1 $2",["[268]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MP:[,[,,"[58]\\d{9}|(?:67|90)0\\d{7}",,,,,,,[10],[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"670(?:2(?:3[3-7]|56|8[4-8])|32[1-38]|4(?:33|8[348])|5(?:32|55|88)|6(?:64|70|82)|78[3589]|8[3-9]8|989)\\d{4}",,,,"6702345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MP",1,"011","1",,,"1|([2-9]\\d{6})$","670$1",,1,,,[,,,,,,,,,[-1]],,"670",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MQ:[,[,,"(?:69|80)\\d{7}|(?:59|97)6\\d{6}",,,,,,,[9]],[,,"596(?:[03-7]\\d|10|2[7-9]|8[09]|9[4-9])\\d{4}",,,,"596301234"],[,,"69(?:6(?:[0-46-9]\\d|5[0-6])|727)\\d{4}",,,,"696201234"],[,,"80[0-5]\\d{6}",,,,"800012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"976(?:6\\d|7[0-367])\\d{4}",,,,"976612345"],"MQ",596,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[569]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MR:[,[,,"(?:[2-4]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"(?:25[08]|35\\d|45[1-7])\\d{5}",,,,"35123456"],[,,"[2-4][0-46-9]\\d{6}",,,,"22123456"],[,,"800\\d{5}",,,,"80012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MR",222,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2-48]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MS:[,[,,"(?:[58]\\d\\d|664|900)\\d{7}",,,,,,,[10],[7]],[,,"6644(?:1[0-3]|91)\\d{4}",,,,"6644912345",,,,[7]],[,,"664(?:3(?:49|9[1-6])|49[2-6])\\d{4}",,,,"6644923456",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"MS",1,"011","1",,,"1|([34]\\d{6})$","664$1",,,,,[,,,,,,,,,[-1]],,"664",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MT:[,[,,"3550\\d{4}|(?:[2579]\\d\\d|800)\\d{5}",,,,,,,[8]],[,,"20(?:3[1-4]|6[059])\\d{4}|2(?:0[19]|[1-357]\\d|60)\\d{5}",,,,"21001234"],[,,"(?:7(?:210|[79]\\d\\d)|9(?:[29]\\d\\d|69[67]|8(?:1[1-3]|89|97)))\\d{4}",,,,"96961234"],[,,"800(?:02|[3467]\\d)\\d{3}",,,,"80071234"],[,,"5(?:0(?:0(?:37|43)|(?:6\\d|70|9[0168])\\d)|[12]\\d0[1-5])\\d{3}",,,,"50037123"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3550\\d{4}",,,,"35501234"],"MT",356,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[2357-9]"]]],,[,,"7117\\d{4}",,,,"71171234"],,,[,,,,,,,,,[-1]],[,,"501\\d{5}",,,,"50112345"],,,[,,,,,,,,,[-1]]],MU:[,[,,"(?:[57]|8\\d\\d)\\d{7}|[2-468]\\d{6}",,,,,,,[7,8,10]],[,,"(?:2(?:[0346-8]\\d|1[0-7])|4(?:[013568]\\d|2[4-7])|54(?:[3-5]\\d|71)|6\\d\\d|8(?:14|3[129]))\\d{4}",,,,"54480123",,,[7,8]],[,,"5(?:4(?:2[1-389]|7[1-9])|87[15-8])\\d{4}|(?:5(?:2[5-9]|4[3-689]|[57]\\d|8[0-689]|9[0-8])|7(?:01|30))\\d{5}",,,,"52512345",,,[8]],[,,"802\\d{7}|80[0-2]\\d{4}",,,,"8001234",,,[7,10]],[,,"30\\d{5}",,,,"3012345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"3(?:20|9\\d)\\d{4}",,,,"3201234",,,[7]],"MU",230,"0(?:0|[24-7]0|3[03])",,,,,,"020",,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-46]|8[013]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[57]"]],[,"(\\d{5})(\\d{5})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MV:[,[,,"(?:800|9[0-57-9]\\d)\\d{7}|[34679]\\d{6}",,,,,,,[7,10]],[,,"(?:3(?:0[0-3]|3[0-59])|6(?:[58][024689]|6[024-68]|7[02468]))\\d{4}",,,,"6701234",,,[7]],[,,"46[46]\\d{4}|(?:7\\d|9[1-9])\\d{5}",,,,"7712345",,,[7]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MV",960,"0(?:0|19)",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1-$2",["[3467]|9[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"4(?:0[01]|50)\\d{4}",,,,"4001234",,,[7]],,,[,,,,,,,,,[-1]]],MW:[,[,,"(?:[1289]\\d|31|77)\\d{7}|1\\d{6}",,,,,,,[7,9]],[,,"(?:1[2-9]|2[12]\\d\\d)\\d{5}",,,,"1234567"],[,,"111\\d{6}|(?:31|77|[89][89])\\d{7}",,,,"991234567",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MW",265,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MX:[,[,,"1(?:(?:[27]2|44|99)[1-9]|65[0-689])\\d{7}|(?:1(?:[01]\\d|2[13-9]|[35][1-9]|4[0-35-9]|6[0-46-9]|7[013-9]|8[1-79]|9[1-8])|[2-9]\\d)\\d{8}",,,,,,,[10,11],[7,8]],[,,"657[12]\\d{6}|(?:2(?:0[01]|2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"2001234567",,,[10],[7,8]],[,,"657[12]\\d{6}|(?:1(?:2(?:2[1-9]|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[24-7][1-9]|3[1-8]|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[1-467][1-9]|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|[69][1-9]|7[12]|8[1-8]))|2(?:2\\d|3[1-35-8]|4[13-9]|7[1-689]|8[1-578]|9[467])|3(?:1[1-79]|[2458][1-9]|3\\d|7[1-8]|9[1-5])|4(?:1[1-57-9]|[25-7][1-9]|3[1-8]|4\\d|8[1-35-9]|9[2-689])|5(?:[56]\\d|88|9[1-79])|6(?:1[2-68]|[2-4][1-9]|5[1-3689]|6[1-57-9]|7[1-7]|8[67]|9[4-8])|7(?:[13467][1-9]|2\\d|5[13-9]|8[1-69]|9[17])|8(?:1\\d|2[13-689]|3[1-6]|4[124-6]|6[1246-9]|7[1-378]|9[12479])|9(?:1[346-9]|2[1-4]|3[2-46-8]|5[1348]|6[1-9]|7[12]|8[1-8]|9\\d))\\d{7}",,,,"12221234567",,,,[7,8]],[,,"8(?:00|88)\\d{7}",,,,"8001234567",,,[10]],[,,"900\\d{7}",,,,"9001234567",,,[10]],[,,"300\\d{7}",,,,"3001234567",,,[10]],[,,"500\\d{7}",,,,"5001234567",,,[10]],[,,,,,,,,,[-1]],"MX",52,"0[09]","01",,,"0(?:[12]|4[45])|1",,"00",,[[,"(\\d{5})","$1",["53"]],[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|5[56]|81"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2-9]"],,,1],[,"(\\d)(\\d{2})(\\d{4})(\\d{4})","$2 $3 $4",["1(?:33|5[56]|81)"],,,1],[,"(\\d)(\\d{3})(\\d{3})(\\d{4})","$2 $3 $4",["1"],,,1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MY:[,[,,"1\\d{8,9}|(?:3\\d|[4-9])\\d{7}",,,,,,,[8,9,10],[6,7]],[,,"(?:3(?:2[0-36-9]|3[0-368]|4[0-278]|5[0-24-8]|6[0-467]|7[1246-9]|8\\d|9[0-57])\\d|4(?:2[0-689]|[3-79]\\d|8[1-35689])|5(?:2[0-589]|[3468]\\d|5[0-489]|7[1-9]|9[23])|6(?:2[2-9]|3[1357-9]|[46]\\d|5[0-6]|7[0-35-9]|85|9[015-8])|7(?:[2579]\\d|3[03-68]|4[0-8]|6[5-9]|8[0-35-9])|8(?:[24][2-8]|3[2-5]|5[2-7]|6[2-589]|7[2-578]|[89][2-9])|9(?:0[57]|13|[25-7]\\d|[3489][0-8]))\\d{5}",,,,"323856789",,,[8,9],[6,7]],[,,"1(?:1888[689]|4400|8(?:47|8[27])[0-4])\\d{4}|1(?:0(?:[23568]\\d|4[0-6]|7[016-9]|9[0-8])|1(?:[1-5]\\d\\d|6(?:0[5-9]|[1-9]\\d)|7(?:[0134]\\d|2[1-9]|5[0-6]))|(?:[269]\\d|[37][1-9]|4[235-9])\\d|5(?:31|9\\d\\d)|8(?:1[23]|[236]\\d|4[06]|5(?:46|[7-9])|7[016-9]|8[01]|9[0-8]))\\d{5}",,,,"123456789",,,[9,10]],[,,"1[378]00\\d{6}",,,,"1300123456",,,[10]],[,,"1600\\d{6}",,,,"1600123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"15(?:4(?:6[0-4]\\d|8(?:0[125]|[17]\\d|21|3[01]|4[01589]|5[014]|6[02]))|6(?:32[0-6]|78\\d))\\d{4}",,,,"1546012345",,,[10]],"MY",60,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],MZ:[,[,,"(?:2|8\\d)\\d{7}",,,,,,,[8,9]],[,,"2(?:[1346]\\d|5[0-2]|[78][12]|93)\\d{5}",,,,"21123456",,,[8]],[,,"8[2-79]\\d{7}",,,,"821234567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"MZ",258,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3,4})","$1 $2 $3",["2|8[2-79]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NA:[,[,,"[68]\\d{7,8}",,,,,,,[8,9]],[,,"64426\\d{3}|6(?:1(?:2[2-7]|3[01378]|4[0-4])|254|32[0237]|4(?:27|41|5[25])|52[236-8]|626|7(?:2[2-4]|30))\\d{4,5}|6(?:1(?:(?:0\\d|2[0189]|3[24-69]|4[5-9])\\d|17|69|7[014])|2(?:17|5[0-36-8]|69|70)|3(?:17|2[14-689]|34|6[289]|7[01]|81)|4(?:17|2[0-2]|4[06]|5[0137]|69|7[01])|5(?:17|2[0459]|69|7[01])|6(?:17|25|38|42|69|7[01])|7(?:17|2[569]|3[13]|6[89]|7[01]))\\d{4}",,,,"61221234"],[,,"(?:60|8[1245])\\d{7}",,,,"811234567",,,[9]],[,,"80\\d{7}",,,,"800123456",,,[9]],[,,"8701\\d{5}",,,,"870123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8(?:3\\d\\d|86)\\d{5}",,,,"88612345"],"NA",264,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NC:[,[,,"(?:050|[2-57-9]\\d\\d)\\d{3}",,,,,,,[6]],[,,"(?:2[03-9]|3[0-5]|4[1-7]|88)\\d{4}",,,,"201234"],[,,"(?:5[0-4]|[79]\\d|8[0-79])\\d{4}",,,,"751234"],[,,"050\\d{3}",,,,"050012"],[,,"36\\d{4}",,,,"366711"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NC",687,"00",,,,,,,,[[,"(\\d{3})","$1",["5[6-8]"]],[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[[,"(\\d{2})(\\d{2})(\\d{2})","$1.$2.$3",["[02-57-9]"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NE:[,[,,"[027-9]\\d{7}",,,,,,,[8]],[,,"2(?:0(?:20|3[1-8]|4[13-5]|5[14]|6[14578]|7[1-578])|1(?:4[145]|5[14]|6[14-68]|7[169]|88))\\d{4}",,,,"20201234"],[,,"(?:23|7[04]|[89]\\d)\\d{6}",,,,"93123456"],[,,"08\\d{6}",,,,"08123456"],[,,"09\\d{6}",,,,"09123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NE",227,"00",,,,,,,,[[,"(\\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[04]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NF:[,[,,"[13]\\d{5}",,,,,,,[6],[5]],[,,"(?:1(?:06|17|28|39)|3[0-2]\\d)\\d{3}",,,,"106609",,,,[5]],[,,"(?:14|3[58])\\d{4}",,,,"381234",,,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NF",672,"00",,,,"([0-258]\\d{4})$","3$1",,,[[,"(\\d{2})(\\d{4})","$1 $2",["1[0-3]"]],[,"(\\d)(\\d{5})","$1 $2",["[13]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NG:[,[,,"(?:[124-7]|9\\d{3})\\d{6}|[1-9]\\d{7}|[78]\\d{9,13}",,,,,,,[7,8,10,11,12,13,14],[5,6]],[,,"(?:(?:[1-356]\\d|4[02-8]|8[2-9])\\d|9(?:0[3-9]|[1-9]\\d))\\d{5}|7(?:0(?:[013-689]\\d|2[0-24-9])\\d{3,4}|[1-79]\\d{6})|(?:[12]\\d|4[147]|5[14579]|6[1578]|7[1-3578])\\d{5}",,,,"18040123",,,[7,8],[5,6]],[,,"(?:702[0-24-9]|819[01])\\d{6}|(?:70[13-689]|8(?:0[1-9]|1[0-8])|9(?:0[1-9]|1[1-356]))\\d{7}",,,,"8021234567",,,[10]],[,,"800\\d{7,11}",,,,"80017591759",,,[10,11,12,13,14]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NG",234,"009","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3",["78"],"0$1"],[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-7]|8[2-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[7-9]"],"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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"700\\d{7,11}",,,,"7001234567",,,[10,11,12,13,14]],,,[,,,,,,,,,[-1]]],NI:[,[,,"(?:1800|[25-8]\\d{3})\\d{4}",,,,,,,[8]],[,,"2\\d{7}",,,,"21234567"],[,,"(?:5(?:5[0-7]|[78]\\d)|6(?:20|3[035]|4[045]|5[05]|77|8[1-9]|9[059])|(?:7[5-8]|8\\d)\\d)\\d{5}",,,,"81234567"],[,,"1800\\d{4}",,,,"18001234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NI",505,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[125-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NL:[,[,,"(?:[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]],[,,"(?:1(?:[035]\\d|1[13-578]|6[124-8]|7[24]|8[0-467])|2(?:[0346]\\d|2[2-46-9]|5[125]|9[479])|3(?:[03568]\\d|1[3-8]|2[01]|4[1-8])|4(?:[0356]\\d|1[1-368]|7[58]|8[15-8]|9[23579])|5(?:[0358]\\d|[19][1-9]|2[1-57-9]|4[13-8]|6[126]|7[0-3578])|7\\d\\d)\\d{6}",,,,"101234567",,,[9]],[,,"(?:6[1-58]|970\\d)\\d{7}",,,,"612345678",,,[9,11]],[,,"800\\d{4,7}",,,,"8001234",,,[7,8,9,10]],[,,"90[069]\\d{4,7}",,,,"9061234",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:85|91)\\d{7}",,,,"851234567",,,[9]],"NL",31,"00","0",,,"0",,,,[[,"(\\d{4})","$1",["1[238]|[34]"]],[,"(\\d{2})(\\d{3,4})","$1 $2",["14"]],[,"(\\d{6})","$1",["1"]],[,"(\\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"]],[[,"(\\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"]],[,,"66\\d{7}",,,,"662345678",,,[9]],,,[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)\\d",,,,,,,[5,6]],[,,"140(?:1[035]|2[0346]|3[03568]|4[0356]|5[0358]|8[458])|(?:140(?:1[16-8]|2[259]|3[124]|4[17-9]|5[124679]|7)|8[478]\\d{6})\\d",,,,"14020",,,[5,6,9]],,,[,,,,,,,,,[-1]]],NO:[,[,,"(?:0|[2-9]\\d{3})\\d{4}",,,,,,,[5,8]],[,,"(?:2[1-4]|3[1-3578]|5[1-35-7]|6[1-4679]|7[0-8])\\d{6}",,,,"21234567",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"40612345",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"NO",47,"00",,,,,,,,[[,"(\\d{3})(\\d{2})(\\d{3})","$1 $2 $3",["[489]|59"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[235-7]"]]],,[,,,,,,,,,[-1]],1,"[02-689]|7[0-8]",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],NP:[,[,,"(?:1\\d|9)\\d{9}|[1-9]\\d{7}",,,,,,,[8,10,11],[6,7]],[,,"(?:1[0-6]\\d|99[02-6])\\d{5}|(?:2[13-79]|3[135-8]|4[146-9]|5[135-7]|6[13-9]|7[15-9]|8[1-46-9]|9[1-7])[2-6]\\d{5}",,,,"14567890",,,[8],[6,7]],[,,"9(?:6[0-3]|7[024-6]|8[0-24-68])\\d{7}",,,,"9841234567",,,[10]],[,,"1(?:66001|800\\d\\d)\\d{5}",,,,"16600101234",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NP",977,"00","0",,,"0",,,,[[,"(\\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"]],[,"(\\d{4})(\\d{2})(\\d{5})","$1-$2-$3",["1"]]],[[,"(\\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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NR:[,[,,"(?:444|(?:55|8\\d)\\d|666)\\d{4}",,,,,,,[7]],[,,"444\\d{4}",,,,"4441234"],[,,"(?:55[3-9]|666|8\\d\\d)\\d{4}",,,,"5551234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NR",674,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[4-68]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NU:[,[,,"(?:[47]|888\\d)\\d{3}",,,,,,,[4,7]],[,,"[47]\\d{3}",,,,"7012",,,[4]],[,,"888[4-9]\\d{3}",,,,"8884012",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"NU",683,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],NZ:[,[,,"[29]\\d{7,9}|50\\d{5}(?:\\d{2,3})?|6[0-35-9]\\d{6}|7\\d{7,8}|8\\d{4,9}|(?:11\\d|[34])\\d{7}",,,,,,,[5,6,7,8,9,10]],[,,"24099\\d{3}|(?:3[2-79]|[49][2-9]|6[235-9]|7[2-57-9])\\d{6}",,,,"32345678",,,[8],[7]],[,,"2[0-27-9]\\d{7,8}|21\\d{6}",,,,"211234567",,,[8,9,10]],[,,"508\\d{6,7}|80\\d{6,8}",,,,"800123456",,,[8,9,10]],[,,"(?:11\\d{5}|50(?:0[08]|30|66|77|88))\\d{3}|90\\d{6,8}",,,,"900123456",,,[7,8,9,10]],[,,,,,,,,,[-1]],[,,"70\\d{7}",,,,"701234567",,,[9]],[,,,,,,,,,[-1]],"NZ",64,"0(?:0|161)","0",,,"0",,"00",,[[,"(\\d{2})(\\d{3,8})","$1 $2",["8[1-579]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2,3})","$1 $2 $3",["50[036-8]|[89]0","50(?:[0367]|88)|[89]0"],"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)|[59]|80"],"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|86"],"0$1"]],,[,,"[28]6\\d{6,7}",,,,"26123456",,,[8,9]],,,[,,,,,,,,,[-1]],[,,"8(?:1[6-9]|22|3\\d|4[045]|5[459]|7[0-3579]|90)\\d{2,7}",,,,"83012378"],,,[,,,,,,,,,[-1]]],OM:[,[,,"(?:1505|[279]\\d{3}|500)\\d{4}|800\\d{5,6}",,,,,,,[7,8,9]],[,,"2[2-6]\\d{6}",,,,"23123456",,,[8]],[,,"1505\\d{4}|(?:7(?:[1289]\\d|7[0-5])|9(?:0[1-9]|[1-9]\\d))\\d{5}",,,,"92123456",,,[8]],[,,"8007\\d{4,5}|(?:500|800[05])\\d{4}",,,,"80071234"],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"OM",968,"00",,,,,,,,[[,"(\\d{3})(\\d{4,6})","$1 $2",["[58]"]],[,"(\\d{2})(\\d{6})","$1 $2",["2"]],[,"(\\d{4})(\\d{4})","$1 $2",["[179]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PA:[,[,,"(?:00800|8\\d{3})\\d{6}|[68]\\d{7}|[1-57-9]\\d{6}",,,,,,,[7,8,10,11]],[,,"(?:1(?:0\\d|1[479]|2[37]|3[0137]|4[17]|5[05]|6[58]|7[0167]|8[2358]|9[1389])|2(?:[0235-79]\\d|1[0-7]|4[013-9]|8[02-9])|3(?:[089]\\d|1[0-7]|2[0-5]|33|4[0-79]|5[0-35]|6[068]|7[0-8])|4(?:00|3[0-579]|4\\d|7[0-57-9])|5(?:[01]\\d|2[0-7]|[56]0|79)|7(?:0[09]|2[0-26-8]|3[03]|4[04]|5[05-9]|6[056]|7[0-24-9]|8[5-9]|90)|8(?:09|2[89]|3\\d|4[0-24-689]|5[014]|8[02])|9(?:0[5-9]|1[0135-8]|2[036-9]|3[35-79]|40|5[0457-9]|6[05-9]|7[04-9]|8[35-8]|9\\d))\\d{4}",,,,"2001234",,,[7]],[,,"(?:1[16]1|21[89]|6\\d{3}|8(?:1[01]|7[23]))\\d{4}",,,,"61234567",,,[7,8]],[,,"800\\d{4,5}|(?:00800|800\\d)\\d{6}",,,,"8001234"],[,,"(?:8(?:22|55|60|7[78]|86)|9(?:00|81))\\d{4}",,,,"8601234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PA",507,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PE:[,[,,"(?:[14-8]|9\\d)\\d{7}",,,,,,,[8,9],[6,7]],[,,"(?:(?:4[34]|5[14])[0-8]\\d|7(?:173|3[0-8]\\d)|8(?:10[05689]|6(?:0[06-9]|1[6-9]|29)|7(?:0[569]|[56]0)))\\d{4}|(?:1[0-8]|4[12]|5[236]|6[1-7]|7[246]|8[2-4])\\d{6}",,,,"11234567",,,[8],[6,7]],[,,"9\\d{8}",,,,"912345678",,,[9]],[,,"800\\d{5}",,,,"80012345",,,[8]],[,,"805\\d{5}",,,,"80512345",,,[8]],[,,"801\\d{5}",,,,"80112345",,,[8]],[,,"80[24]\\d{5}",,,,"80212345",,,[8]],[,,,,,,,,,[-1]],"PE",51,"00|19(?:1[124]|77|90)00","0"," Anexo ",,"0",,"00",,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PF:[,[,,"4\\d{5}(?:\\d{2})?|8\\d{7,8}",,,,,,,[6,8,9]],[,,"4(?:0[4-689]|9[4-68])\\d{5}",,,,"40412345",,,[8]],[,,"8[7-9]\\d{6}",,,,"87123456",,,[8]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"499\\d{5}",,,,"49901234",,,[8]],"PF",689,"00",,,,,,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,"44\\d{4}",,,,,,,[6]],[,,"44\\d{4}",,,,"440123",,,[6]],,,[,,,,,,,,,[-1]]],PG:[,[,,"(?:180|[78]\\d{3})\\d{4}|(?:[2-589]\\d|64)\\d{5}",,,,,,,[7,8]],[,,"(?:(?:3[0-2]|4[257]|5[34]|9[78])\\d|64[1-9]|85[02-46-9])\\d{4}",,,,"3123456",,,[7]],[,,"(?:7\\d|8[128])\\d{6}",,,,"70123456",,,[8]],[,,"180\\d{4}",,,,"1801234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"2(?:0[0-57]|7[568])\\d{4}",,,,"2751234",,,[7]],"PG",675,"00|140[1-3]",,,,,,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["18|[2-69]|85"]],[,"(\\d{4})(\\d{4})","$1 $2",["[78]"]]],,[,,"27[01]\\d{4}",,,,"2700123",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PH:[,[,,"(?:[2-7]|9\\d)\\d{8}|2\\d{5}|(?:1800|8)\\d{7,9}",,,,,,,[6,8,9,10,11,12,13],[4,5,7]],[,,"(?:(?:2[3-8]|3[2-68]|4[2-9]|5[2-6]|6[2-58]|7[24578])\\d{3}|88(?:22\\d\\d|42))\\d{4}|(?:2|8[2-8]\\d\\d)\\d{5}",,,,"232345678",,,[6,8,9,10],[4,5,7]],[,,"(?:8(?:1[37]|9[5-8])|9(?:0[5-9]|1[0-24-9]|[235-7]\\d|4[2-9]|8[135-9]|9[1-9]))\\d{7}",,,,"9051234567",,,[10]],[,,"1800\\d{7,9}",,,,"180012345678",,,[11,12,13]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PH",63,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PK:[,[,,"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],[5,6,7]],[,,"(?:(?:21|42)[2-9]|58[126])\\d{7}|(?:2[25]|4[0146-9]|5[1-35-7]|6[1-8]|7[14]|8[16]|91)[2-9]\\d{6,7}|(?: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]))[2-9]\\d{5,6}",,,,"2123456789",,,[9,10],[5,6,7,8]],[,,"3(?:[0-24]\\d|3[0-7]|55|64)\\d{7}",,,,"3012345678",,,[10]],[,,"800\\d{5}(?:\\d{3})?",,,,"80012345",,,[8,11]],[,,"900\\d{5}",,,,"90012345",,,[8]],[,,,,,,,,,[-1]],[,,"122\\d{6}",,,,"122044444",,,[9]],[,,,,,,,,,[-1]],"PK",92,"00","0",,,"0",,,,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:2(?:[125]|3[2358]|4[2-4]|9[2-8])|4(?:[0-246-9]|5[3479])|5(?:[1-35-7]|4[2-467])|6(?:0[468]|[1-8])|7(?:[14]|2[236])|8(?:[16]|2[2-689]|3[23578]|4[3478]|5[2356])|9(?:1|22|3[27-9]|4[2-6]|6[3569]|9[2-7]))111\\d{6}",,,,"21111825888",,,[11,12]],,,[,,,,,,,,,[-1]]],PL:[,[,,"(?:6|8\\d\\d)\\d{7}|[1-9]\\d{6}(?:\\d{2})?|[26]\\d{5}",,,,,,,[6,7,8,9,10]],[,,"47\\d{7}|(?: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])(?:[02-9]\\d{6}|1(?:[0-8]\\d{5}|9\\d{3}(?:\\d{2})?))",,,,"123456789",,,[7,9]],[,,"21(?:1(?:[145]\\d|3[1-5])|2[0-4]\\d)\\d{4}|(?:45|5[0137]|6[069]|7[2389]|88)\\d{7}",,,,"512345678",,,[9]],[,,"800\\d{6,7}",,,,"800123456",,,[9,10]],[,,"70[01346-8]\\d{6}",,,,"701234567",,,[9]],[,,"801\\d{6}",,,,"801234567",,,[9]],[,,,,,,,,,[-1]],[,,"39\\d{7}",,,,"391234567",,,[9]],"PL",48,"00",,,,,,,,[[,"(\\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"]]],,[,,"64\\d{4,7}",,,,"641234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]],[,,"804\\d{6}",,,,"804123456",,,[9]],,,[,,,,,,,,,[-1]]],PM:[,[,,"(?:[45]|80\\d\\d)\\d{5}",,,,,,,[6,9]],[,,"(?:4[1-356]|50)\\d{4}",,,,"430123",,,[6]],[,,"(?:4[02-4]|5[056])\\d{4}",,,,"551234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PM",508,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[45]"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PR:[,[,,"(?:[589]\\d\\d|787)\\d{7}",,,,,,,[10],[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"(?:787|939)[2-9]\\d{6}",,,,"7872345678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"PR",1,"011","1",,,"1",,,1,,,[,,,,,,,,,[-1]],,"787|939",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PS:[,[,,"[2489]2\\d{6}|(?:1\\d|5)\\d{8}",,,,,,,[8,9,10],[7]],[,,"(?:22[2-47-9]|42[45]|82[014-68]|92[3569])\\d{5}",,,,"22234567",,,[8],[7]],[,,"5[69]\\d{7}",,,,"599123456",,,[9]],[,,"1800\\d{6}",,,,"1800123456",,,[10]],[,,,,,,,,,[-1]],[,,"1700\\d{6}",,,,"1700123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PS",970,"00","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PT:[,[,,"1693\\d{5}|(?:[26-9]\\d|30)\\d{7}",,,,,,,[9]],[,,"2(?:[12]\\d|3[1-689]|4[1-59]|[57][1-9]|6[1-35689]|8[1-69]|9[1256])\\d{6}",,,,"212345678"],[,,"6(?:[06]92(?:30|9\\d)|[35]92(?:3[03]|9\\d))\\d{3}|(?:(?:16|6[0356])93|9(?:[1-36]\\d\\d|480))\\d{5}",,,,"912345678"],[,,"80[02]\\d{6}",,,,"800123456"],[,,"(?:6(?:0[178]|4[68])\\d|76(?:0[1-57]|1[2-47]|2[237]))\\d{5}",,,,"760123456"],[,,"80(?:8\\d|9[1579])\\d{5}",,,,"808123456"],[,,"884[0-4689]\\d{5}",,,,"884123456"],[,,"30\\d{7}",,,,"301234567"],"PT",351,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["2[12]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["16|[236-9]"]]],,[,,"6222\\d{5}",,,,"622212345"],,,[,,,,,,,,,[-1]],[,,"70(?:7\\d|8[17])\\d{5}",,,,"707123456"],,,[,,"600\\d{6}|6[06]9233\\d{3}",,,,"600110000"]],PW:[,[,,"(?:[24-8]\\d\\d|345|900)\\d{4}",,,,,,,[7]],[,,"(?:2(?:55|77)|345|488|5(?:35|44|87)|6(?:22|54|79)|7(?:33|47)|8(?:24|55|76)|900)\\d{4}",,,,"2771234"],[,,"(?:(?:46|83)[0-5]|6[2-4689]0)\\d{4}|(?:45|77|88)\\d{5}",,,,"6201234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"PW",680,"01[12]",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],PY:[,[,,"59\\d{4,6}|9\\d{5,10}|(?:[2-46-8]\\d|5[0-8])\\d{4,7}",,,,,,,[6,7,8,9,10,11],[5]],[,,"(?:[26]1|3[289]|4[1246-8]|7[1-3]|8[1-36])\\d{5,7}|(?:2(?:2[4-68]|[4-68]\\d|7[15]|9[1-5])|3(?:18|3[167]|4[2357]|51|[67]\\d)|4(?:3[12]|5[13]|9[1-47])|5(?:[1-4]\\d|5[02-4])|6(?:3[1-3]|44|7[1-8])|7(?:4[0-4]|5\\d|6[1-578]|75|8[0-8])|858)\\d{5,6}",,,,"212345678",,,[7,8,9],[5,6]],[,,"9(?:51|6[129]|[78][1-6]|9[1-5])\\d{6}",,,,"961456789",,,[9]],[,,"9800\\d{5,7}",,,,"98000123456",,,[9,10,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"8700[0-4]\\d{4}",,,,"870012345",,,[9]],"PY",595,"00","0",,,"0",,,,[[,"(\\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-6])"],"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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"[2-9]0\\d{4,7}",,,,"201234567",,,[6,7,8,9]],,,[,,,,,,,,,[-1]]],QA:[,[,,"800\\d{4}|(?:2|800)\\d{6}|(?:0080|[3-7])\\d{7}",,,,,,,[7,8,9,11]],[,,"4(?:1111|2022)\\d{3}|4(?:[04]\\d\\d|14[0-6]|999)\\d{4}",,,,"44123456",,,[8]],[,,"[35-7]\\d{7}",,,,"33123456",,,[8]],[,,"800\\d{4}|(?:0080[01]|800)\\d{6}",,,,"8001234",,,[7,9,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"QA",974,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["2[16]|8"]],[,"(\\d{4})(\\d{4})","$1 $2",["[3-7]"]]],,[,,"2(?:1\\d|61)\\d{4}",,,,"2123456",,,[7]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RE:[,[,,"976\\d{6}|(?:26|[68]\\d)\\d{7}",,,,,,,[9]],[,,"26(?:2\\d\\d|3(?:0\\d|1[0-2]))\\d{4}",,,,"262161234"],[,,"(?:69(?:2\\d\\d|3(?:0[0-46]|1[013]|2[0-2]|3[0-39]|4\\d|5[0-5]|6[0-6]|7[0-27]|8[0-8]|9[0-479]))|976(?:2[27]|3[0-37]|9\\d))\\d{4}",,,,"692123456"],[,,"80\\d{7}",,,,"801234567"],[,,"89[1-37-9]\\d{6}",,,,"891123456"],[,,"8(?:1[019]|2[0156]|84|90)\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RE",262,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2689]"],"0$1"]],,[,,,,,,,,,[-1]],1,"26[23]|69|[89]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RO:[,[,,"(?:[2378]\\d|90)\\d{7}|[23]\\d{5}",,,,,,,[6,9]],[,,"[23][13-6]\\d{7}|(?:2(?:19\\d|[3-6]\\d9)|31\\d\\d)\\d\\d",,,,"211234567"],[,,"7020\\d{5}|7(?:0[013-9]|1[0-3]|[2-7]\\d|8[03-8]|9[019])\\d{6}",,,,"712034567",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"90[0136]\\d{6}",,,,"900123456",,,[9]],[,,"801\\d{6}",,,,"801123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RO",40,"00","0"," int ",,"0",,,,[[,"(\\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",["[237-9]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:37\\d|80[578])\\d{6}",,,,"372123456",,,[9]],,,[,,,,,,,,,[-1]]],RS:[,[,,"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],[4,5]],[,,"(?:11[1-9]\\d|(?:2[389]|39)(?:0[2-9]|[2-9]\\d))\\d{3,8}|(?:1[02-9]|2[0-24-7]|3[0-8])[2-9]\\d{4,9}",,,,"10234567",,,[7,8,9,10,11,12],[4,5,6]],[,,"6(?:[0-689]|7\\d)\\d{6,7}",,,,"601234567",,,[8,9,10]],[,,"800\\d{3,9}",,,,"80012345"],[,,"(?:78\\d|90[0169])\\d{3,7}",,,,"90012345",,,[6,7,8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RS",381,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7[06]\\d{4,10}",,,,"700123456"],,,[,,,,,,,,,[-1]]],RU:[,[,,"8\\d{13}|[347-9]\\d{9}",,,,,,,[10,14],[7]],[,,"(?: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]|6[1-35-79]|7[1-37-9]))\\d{7}",,,,"3011234567",,,[10],[7]],[,,"9\\d{9}",,,,"9123456789",,,[10]],[,,"8(?:0[04]|108\\d{3})\\d{7}",,,,"8001234567"],[,,"80[39]\\d{7}",,,,"8091234567",,,[10]],[,,,,,,,,,[-1]],[,,"808\\d{7}",,,,"8081234567",,,[10]],[,,,,,,,,,[-1]],"RU",7,"810","8",,,"8",,"8~10",,[[,"(\\d{3})(\\d{2})(\\d{2})","$1-$2-$3",["[0-79]"]],[,"(\\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)"]],[[,"(\\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)"]],[,,,,,,,,,[-1]],1,"3[04-689]|[489]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],RW:[,[,,"(?:06|[27]\\d\\d|[89]00)\\d{6}",,,,,,,[8,9]],[,,"(?:06|2[23568]\\d)\\d{6}",,,,"250123456"],[,,"7[2389]\\d{7}",,,,"720123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"900\\d{6}",,,,"900123456",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"RW",250,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["0"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[7-9]"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["2"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SA:[,[,,"92\\d{7}|(?:[15]|8\\d)\\d{8}",,,,,,,[9,10],[7]],[,,"1(?:1\\d|2[24-8]|3[35-8]|4[3-68]|6[2-5]|7[235-7])\\d{6}",,,,"112345678",,,[9],[7]],[,,"579[01]\\d{5}|5(?:[013-689]\\d|7[0-35-8])\\d{6}",,,,"512345678",,,[9]],[,,"800\\d{7}",,,,"8001234567",,,[10]],[,,"925\\d{6}",,,,"925012345",,,[9]],[,,"920\\d{6}",,,,"920012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SA",966,"00","0",,,"0",,,,[[,"(\\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{3,4})","$1 $2 $3",["81"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"811\\d{7}",,,,"8110123456",,,[10]],,,[,,,,,,,,,[-1]]],SB:[,[,,"(?:[1-6]|[7-9]\\d\\d)\\d{4}",,,,,,,[5,7]],[,,"(?:1[4-79]|[23]\\d|4[0-2]|5[03]|6[0-37])\\d{3}",,,,"40123",,,[5]],[,,"48\\d{3}|(?:(?:7[1-9]|8[4-9])\\d|9(?:1[2-9]|2[013-9]|3[0-2]|[46]\\d|5[0-46-9]|7[0-689]|8[0-79]|9[0-8]))\\d{4}",,,,"7421234"],[,,"1[38]\\d{3}",,,,"18123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[12]\\d{3}",,,,"51123",,,[5]],"SB",677,"0[01]",,,,,,,,[[,"(\\d{2})(\\d{5})","$1 $2",["7|8[4-9]|9(?:[1-8]|9[0-8])"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SC:[,[,,"800\\d{4}|(?:[249]\\d|64)\\d{5}",,,,,,,[7]],[,,"4[2-46]\\d{5}",,,,"4217123"],[,,"2[125-8]\\d{5}",,,,"2510123"],[,,"800[08]\\d{3}",,,,"8000000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"971\\d{4}|(?:64|95)\\d{5}",,,,"6412345"],"SC",248,"010|0[0-2]",,,,,,"00",,[[,"(\\d)(\\d{3})(\\d{3})","$1 $2 $3",["[246]|9[57]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SD:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1(?:5\\d|8[35-7])\\d{6}",,,,"153123456"],[,,"(?:1[0-2]|9[0-3569])\\d{7}",,,,"911231234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SD",249,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SE:[,[,,"(?:[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]],[,,"(?:(?:[12][136]|3[356]|4[0246]|6[03]|8\\d)\\d|90[1-9])\\d{4,6}|(?:1(?:2[0-35]|4[0-4]|5[0-25-9]|7[13-6]|[89]\\d)|2(?:2[0-7]|4[0136-8]|5[0138]|7[018]|8[01]|9[0-57])|3(?:0[0-4]|1\\d|2[0-25]|4[056]|7[0-2]|8[0-3]|9[023])|4(?:1[013-8]|3[0135]|5[14-79]|7[0-246-9]|8[0156]|9[0-689])|5(?:0[0-6]|[15][0-5]|2[0-68]|3[0-4]|4\\d|6[03-5]|7[013]|8[0-79]|9[01])|6(?:1[1-3]|2[0-4]|4[02-57]|5[0-37]|6[0-3]|7[0-2]|8[0247]|9[0-356])|9(?:1[0-68]|2\\d|3[02-5]|4[0-3]|5[0-4]|[68][01]|7[0135-8]))\\d{5,6}",,,,"8123456",,,[7,8,9]],[,,"7[02369]\\d{7}",,,,"701234567",,,[9]],[,,"20\\d{4,7}",,,,"20123456",,,[6,7,8,9]],[,,"649\\d{6}|99[1-59]\\d{4}(?:\\d{3})?|9(?:00|39|44)[1-8]\\d{3,6}",,,,"9001234567",,,[7,8,9,10]],[,,"77[0-7]\\d{6}",,,,"771234567",,,[9]],[,,"75[1-8]\\d{6}",,,,"751234567",,,[9]],[,,,,,,,,,[-1]],"SE",46,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1-$2 $3",["20"],"0$1"],[,"(\\d{3})(\\d{4})","$1-$2",["9(?:00|39|44|9)"],"0$1"],[,"(\\d{2})(\\d{3})(\\d{2})","$1-$2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"],"0$1"],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1-$2 $3",["9(?:00|39|44)"],"0$1"],[,"(\\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"],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4",["10|7"],"0$1"],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1-$2 $3 $4",["8"],"0$1"],[,"(\\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"],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1-$2 $3 $4",["9"],"0$1"],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1-$2 $3 $4 $5",["[26]"],"0$1"]],[[,"(\\d{2})(\\d{2,3})(\\d{2})","$1 $2 $3",["20"]],[,"(\\d{3})(\\d{4})","$1 $2",["9(?:00|39|44|9)"]],[,"(\\d{2})(\\d{3})(\\d{2})","$1 $2 $3",["[12][136]|3[356]|4[0246]|6[03]|90[1-9]"]],[,"(\\d)(\\d{2,3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2,3})(\\d{3})","$1 $2 $3",["9(?:00|39|44)"]],[,"(\\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]"]],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["10|7"]],[,"(\\d)(\\d{3})(\\d{3})(\\d{2})","$1 $2 $3 $4",["8"]],[,"(\\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])"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{3})","$1 $2 $3 $4",["9"]],[,"(\\d{3})(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4 $5",["[26]"]]],[,,"74[02-9]\\d{6}",,,,"740123456",,,[9]],,,[,,,,,,,,,[-1]],[,,"10[1-8]\\d{6}",,,,"102345678",,,[9]],,,[,,"(?:25[245]|67[3-68])\\d{9}",,,,"254123456789",,,[12]]],SG:[,[,,"(?:(?:1\\d|8)\\d\\d|7000)\\d{7}|[3689]\\d{7}",,,,,,,[8,10,11]],[,,"662[0-24-9]\\d{4}|6(?:[0-578]\\d|6[013-57-9]|9[0-35-9])\\d{5}",,,,"61234567",,,[8]],[,,"8(?:06[0-6]|95[0-2])\\d{4}|(?:8(?:0[1-5]|[1-8]\\d|9[0-4])|9[0-8]\\d)\\d{5}",,,,"81234567",,,[8]],[,,"(?:18|8)00\\d{7}",,,,"18001234567",,,[10,11]],[,,"1900\\d{7}",,,,"19001234567",,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:3[12]\\d|666)\\d{5}",,,,"31234567",,,[8]],"SG",65,"0[0-3]\\d",,,,,,,,[[,"(\\d{4,5})","$1",["1[013-9]|77","1(?:[013-8]|9(?:0[1-9]|[1-9]))|77"]],[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-6]|[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"]]],[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8(?:0[1-6]|[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"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"7000\\d{7}",,,,"70001234567",,,[11]],,,[,,,,,,,,,[-1]]],SH:[,[,,"(?:[256]\\d|8)\\d{3}",,,,,,,[4,5]],[,,"2(?:[0-57-9]\\d|6[4-9])\\d\\d",,,,"22158"],[,,"[56]\\d{4}",,,,"51234",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"262\\d\\d",,,,"26212",,,[5]],"SH",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],1,"[256]",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SI:[,[,,"[1-7]\\d{7}|8\\d{4,7}|90\\d{4,6}",,,,,,,[5,6,7,8]],[,,"(?:[1-357][2-8]|4[24-8])\\d{6}",,,,"12345678",,,[8],[7]],[,,"65(?:1\\d|5[56]|6[01]|70)\\d{4}|(?:[37][01]|4[0139]|51|6[489])\\d{6}",,,,"31234567",,,[8]],[,,"80\\d{4,6}",,,,"80123456",,,[6,7,8]],[,,"89[1-3]\\d{2,5}|90\\d{4,6}",,,,"90123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:59\\d\\d|8(?:1(?:[67]\\d|8[0-589])|2(?:0\\d|2[0-37-9]|8[0-2489])|3[389]\\d))\\d{4}",,,,"59012345",,,[8]],"SI",386,"00|10(?:22|66|88|99)","0",,,"0",,"00",,[[,"(\\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)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SJ:[,[,,"0\\d{4}|(?:[489]\\d|[57]9)\\d{6}",,,,,,,[5,8]],[,,"79\\d{6}",,,,"79123456",,,[8]],[,,"(?:4[015-8]|59|9\\d)\\d{6}",,,,"41234567",,,[8]],[,,"80[01]\\d{5}",,,,"80012345",,,[8]],[,,"82[09]\\d{5}",,,,"82012345",,,[8]],[,,"810(?:0[0-6]|[2-8]\\d)\\d{3}",,,,"81021234",,,[8]],[,,"880\\d{5}",,,,"88012345",,,[8]],[,,"85[0-5]\\d{5}",,,,"85012345",,,[8]],"SJ",47,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"79",[,,,,,,,,,[-1]],[,,"(?:0[2-9]|81(?:0(?:0[7-9]|1\\d)|5\\d\\d))\\d{3}",,,,"02000"],,,[,,"81[23]\\d{5}",,,,"81212345",,,[8]]],SK:[,[,,"[2-689]\\d{8}|[2-59]\\d{6}|[2-5]\\d{5}",,,,,,,[6,7,9]],[,,"(?:2(?:16|[2-9]\\d{3})|(?:(?:[3-5][1-8]\\d|819)\\d|601[1-5])\\d)\\d{4}|(?:2|[3-5][1-8])1[67]\\d{3}|[3-5][1-8]16\\d\\d",,,,"221234567"],[,,"909[1-9]\\d{5}|9(?:0[1-8]|1[0-24-9]|4[03-57-9]|5\\d)\\d{6}",,,,"912123456",,,[9]],[,,"800\\d{6}",,,,"800123456",,,[9]],[,,"9(?:00|[78]\\d)\\d{6}",,,,"900123456",,,[9]],[,,"8[5-9]\\d{7}",,,,"850123456",,,[9]],[,,,,,,,,,[-1]],[,,"6(?:02|5[0-4]|9[0-6])\\d{6}",,,,"690123456",,,[9]],"SK",421,"00","0",,,"0",,,,[[,"(\\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{4})(\\d{3})","$1 $2",["909","9090"],"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"]],[[,"(\\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"]],[,,"9090\\d{3}",,,,"9090123",,,[7]],,,[,,"9090\\d{3}|(?:602|8(?:00|[5-9]\\d)|9(?:00|[78]\\d))\\d{6}",,,,,,,[7,9]],[,,"96\\d{7}",,,,"961234567",,,[9]],,,[,,,,,,,,,[-1]]],SL:[,[,,"(?:[237-9]\\d|66)\\d{6}",,,,,,,[8],[6]],[,,"22[2-4][2-9]\\d{4}",,,,"22221234",,,,[6]],[,,"(?:25|3[0-5]|66|7[2-9]|8[08]|9[09])\\d{6}",,,,"25123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SL",232,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{6})","$1 $2",["[236-9]"],"(0$1)"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SM:[,[,,"(?:0549|[5-7]\\d)\\d{6}",,,,,,,[8,10],[6]],[,,"0549(?:8[0157-9]|9\\d)\\d{4}",,,,"0549886377",,,[10],[6]],[,,"6[16]\\d{6}",,,,"66661212",,,[8]],[,,,,,,,,,[-1]],[,,"7[178]\\d{6}",,,,"71123456",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"5[158]\\d{6}",,,,"58001110",,,[8]],"SM",378,"00",,,,"([89]\\d{5})$","0549$1",,,[[,"(\\d{6})","$1",["[89]"]],[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[5-7]"]],[,"(\\d{4})(\\d{6})","$1 $2",["0"]]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SN:[,[,,"(?:[378]\\d|93)\\d{7}",,,,,,,[9]],[,,"3(?:0(?:1[0-2]|80)|282|3(?:8[1-9]|9[3-9])|611)\\d{5}",,,,"301012345"],[,,"7(?:(?:[06-8]\\d|21|90)\\d|5(?:01|[19]0|25|[38]3|[4-7]\\d))\\d{5}",,,,"701234567"],[,,"800\\d{6}",,,,"800123456"],[,,"88[4689]\\d{6}",,,,"884123456"],[,,"81[02468]\\d{6}",,,,"810123456"],[,,,,,,,,,[-1]],[,,"(?:3(?:392|9[01]\\d)\\d|93(?:3[13]0|929))\\d{4}",,,,"933301234"],"SN",221,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SO:[,[,,"[346-9]\\d{8}|[12679]\\d{7}|[1-5]\\d{6}|[1348]\\d{5}",,,,,,,[6,7,8,9]],[,,"(?:1\\d|2[0-79]|3[0-46-8]|4[0-7]|5[57-9])\\d{5}|(?:[134]\\d|8[125])\\d{4}",,,,"4012345",,,[6,7]],[,,"(?:(?:15|(?:3[59]|4[89]|79|8[08])\\d|6(?:0[5-7]|[1-9]\\d)|9(?:0\\d|[2-9]))\\d|2(?:4\\d|8))\\d{5}|(?:[67]\\d\\d|904)\\d{5}",,,,"71123456",,,[7,8,9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SO",252,"00","0",,,"0",,,,[[,"(\\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",["[3478]|64|90"]],[,"(\\d{2})(\\d{5,7})","$1 $2",["1|28|6(?:0[5-7]|[1-35-9])|9[2-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SR:[,[,,"(?:[2-5]|68|[78]\\d)\\d{5}",,,,,,,[6,7]],[,,"(?:2[1-3]|3[0-7]|(?:4|68)\\d|5[2-58])\\d{4}",,,,"211234"],[,,"(?:7[124-7]|8[124-9])\\d{5}",,,,"7412345",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"56\\d{4}",,,,"561234",,,[6]],"SR",597,"00",,,,,,,,[[,"(\\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-8]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SS:[,[,,"[19]\\d{8}",,,,,,,[9]],[,,"1[89]\\d{7}",,,,"181234567"],[,,"(?:12|9[1257-9])\\d{7}",,,,"977123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SS",211,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[19]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ST:[,[,,"(?:22|9\\d)\\d{5}",,,,,,,[7]],[,,"22\\d{5}",,,,"2221234"],[,,"900[5-9]\\d{3}|9(?:0[1-9]|[89]\\d)\\d{4}",,,,"9812345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"ST",239,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[29]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SV:[,[,,"[267]\\d{7}|[89]00\\d{4}(?:\\d{4})?",,,,,,,[7,8,11]],[,,"2(?:[1-6]\\d{3}|[79]90[034]|890[0245])\\d{3}",,,,"21234567",,,[8]],[,,"66(?:[02-9]\\d\\d|1(?:[02-9]\\d|16))\\d{3}|(?:6[0-57-9]|7\\d)\\d{6}",,,,"70123456",,,[8]],[,,"800\\d{4}(?:\\d{4})?",,,,"8001234",,,[7,11]],[,,"900\\d{4}(?:\\d{4})?",,,,"9001234",,,[7,11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SV",503,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[89]"]],[,"(\\d{4})(\\d{4})","$1 $2",["[267]"]],[,"(\\d{3})(\\d{4})(\\d{4})","$1 $2 $3",["[89]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SX:[,[,,"7215\\d{6}|(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"7215(?:4[2-8]|8[239]|9[056])\\d{4}",,,,"7215425678",,,,[7]],[,,"7215(?:1[02]|2\\d|5[034679]|8[014-8])\\d{4}",,,,"7215205678",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002123456"],[,,"900[2-9]\\d{6}",,,,"9002123456"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"SX",1,"011","1",,,"1|(5\\d{6})$","721$1",,,,,[,,,,,,,,,[-1]],,"721",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SY:[,[,,"[1-39]\\d{8}|[1-5]\\d{7}",,,,,,,[8,9],[6,7]],[,,"21\\d{6,7}|(?:1(?:[14]\\d|[2356])|2[235]|3(?:[13]\\d|4)|4[134]|5[1-3])\\d{6}",,,,"112345678",,,,[6,7]],[,,"9[1-689]\\d{7}",,,,"944567890",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"SY",963,"00","0",,,"0",,,,[[,"(\\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]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],SZ:[,[,,"0800\\d{4}|(?:[237]\\d|900)\\d{6}",,,,,,,[8,9]],[,,"[23][2-5]\\d{6}",,,,"22171234",,,[8]],[,,"7[6-9]\\d{6}",,,,"76123456",,,[8]],[,,"0800\\d{4}",,,,"08001234",,,[8]],[,,"900\\d{6}",,,,"900012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"70\\d{6}",,,,"70012345",,,[8]],"SZ",268,"00",,,,,,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[0237]"]],[,"(\\d{5})(\\d{4})","$1 $2",["9"]]],,[,,,,,,,,,[-1]],,,[,,"0800\\d{4}",,,,,,,[8]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TA:[,[,,"8\\d{3}",,,,,,,[4]],[,,"8\\d{3}",,,,"8999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TA",290,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"8",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TC:[,[,,"(?:[58]\\d\\d|649|900)\\d{7}",,,,,,,[10],[7]],[,,"649(?:266|712|9(?:4\\d|50))\\d{4}",,,,"6497121234",,,,[7]],[,,"649(?:2(?:3[129]|4[1-79])|3\\d\\d|4[34][1-3])\\d{4}",,,,"6492311234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"649(?:71[01]|966)\\d{4}",,,,"6497101234",,,,[7]],"TC",1,"011","1",,,"1|([2-479]\\d{6})$","649$1",,,,,[,,,,,,,,,[-1]],,"649",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TD:[,[,,"(?:22|[69]\\d|77)\\d{6}",,,,,,,[8]],[,,"22(?:[37-9]0|5[0-5]|6[89])\\d{4}",,,,"22501234"],[,,"(?:6[0235689]|77|9\\d)\\d{6}",,,,"63012345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TD",235,"00|16",,,,,,"00",,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[2679]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TG:[,[,,"[279]\\d{7}",,,,,,,[8]],[,,"2(?:2[2-7]|3[23]|4[45]|55|6[67]|77)\\d{5}",,,,"22212345"],[,,"(?:7[09]|9[0-36-9])\\d{6}",,,,"90112345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TG",228,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[279]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TH:[,[,,"(?:001800|[2-57]|[689]\\d)\\d{7}|1\\d{7,9}",,,,,,,[8,9,10,13]],[,,"(?:1[0689]|2\\d|3[2-9]|4[2-5]|5[2-6]|7[3-7])\\d{6}",,,,"21234567",,,[8]],[,,"671[0-8]\\d{5}|(?:14|6[1-6]|[89]\\d)\\d{7}",,,,"812345678",,,[9]],[,,"(?:001800\\d|1800)\\d{6}",,,,"1800123456",,,[10,13]],[,,"1900\\d{6}",,,,"1900123456",,,[10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"6[08]\\d{7}",,,,"601234567",,,[9]],"TH",66,"00[1-9]","0",,,"0",,,,[[,"(\\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"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TJ:[,[,,"(?:00|[1-57-9]\\d)\\d{7}",,,,,,,[9],[3,5,6,7]],[,,"(?:3(?:1[3-5]|2[245]|3[12]|4[24-7]|5[25]|72)|4(?:46|74|87))\\d{6}",,,,"372123456",,,,[3,5,6,7]],[,,"41[18]\\d{6}|(?:[034]0|1[017]|2[02]|5[05]|7[0178]|8[078]|9\\d)\\d{7}",,,,"917123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TJ",992,"810",,,,,,"8~10",,[[,"(\\d{6})(\\d)(\\d{2})","$1 $2 $3",["331","3317"]],[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[34]7|91[78]"]],[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["3[1-5]"]],[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["[0-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TK:[,[,,"[2-47]\\d{3,6}",,,,,,,[4,5,6,7]],[,,"(?:2[2-4]|[34]\\d)\\d{2,5}",,,,"3101"],[,,"7[2-4]\\d{2,5}",,,,"7290"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TK",690,"00",,,,,,,,,,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TL:[,[,,"7\\d{7}|(?:[2-47]\\d|[89]0)\\d{5}",,,,,,,[7,8]],[,,"(?:2[1-5]|3[1-9]|4[1-4])\\d{5}",,,,"2112345",,,[7]],[,,"7[2-8]\\d{6}",,,,"77212345",,,[8]],[,,"80\\d{5}",,,,"8012345",,,[7]],[,,"90\\d{5}",,,,"9012345",,,[7]],[,,,,,,,,,[-1]],[,,"70\\d{5}",,,,"7012345",,,[7]],[,,,,,,,,,[-1]],"TL",670,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[2-489]|70"]],[,"(\\d{4})(\\d{4})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TM:[,[,,"[1-6]\\d{7}",,,,,,,[8]],[,,"(?:1(?:2\\d|3[1-9])|2(?:22|4[0-35-8])|3(?:22|4[03-9])|4(?:22|3[128]|4\\d|6[15])|5(?:22|5[7-9]|6[014-689]))\\d{5}",,,,"12345678"],[,,"6\\d{7}",,,,"66123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TM",993,"810","8",,,"8",,"8~10",,[[,"(\\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",["6"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TN:[,[,,"[2-57-9]\\d{7}",,,,,,,[8]],[,,"81200\\d{3}|(?:3[0-2]|7\\d)\\d{6}",,,,"30010123"],[,,"3(?:001|[12]40)\\d{4}|(?:(?:[259]\\d|4[0-7])\\d|3(?:1[1-35]|6[0-4]|91))\\d{5}",,,,"20123456"],[,,"8010\\d{4}",,,,"80101234"],[,,"88\\d{6}",,,,"88123456"],[,,"8[12]10\\d{4}",,,,"81101234"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TN",216,"00",,,,,,,,[[,"(\\d{2})(\\d{3})(\\d{3})","$1 $2 $3",["[2-57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TO:[,[,,"(?:0800|(?:[5-8]\\d\\d|999)\\d)\\d{3}|[2-8]\\d{4}",,,,,,,[5,7]],[,,"(?:2\\d|3[0-8]|4[0-4]|50|6[09]|7[0-24-69]|8[05])\\d{3}",,,,"20123",,,[5]],[,,"(?:55[4-6]|6(?:[09]\\d|3[02]|8[15-9])|(?:7\\d|8[46-9])\\d|999)\\d{4}",,,,"7715123",,,[7]],[,,"0800\\d{3}",,,,"0800222",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"55[0-37-9]\\d{4}",,,,"5510123",,,[7]],"TO",676,"00",,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TR:[,[,,"4\\d{6}|8\\d{11,12}|(?:[2-58]\\d\\d|900)\\d{7}",,,,,,,[7,10,12,13]],[,,"(?:2(?:[13][26]|[28][2468]|[45][268]|[67][246])|3(?:[13][28]|[24-6][2468]|[78][02468]|92)|4(?:[16][246]|[23578][2468]|4[26]))\\d{7}",,,,"2123456789",,,[10]],[,,"56161\\d{5}|5(?:0[15-7]|1[06]|24|[34]\\d|5[1-59]|9[46])\\d{7}",,,,"5012345678",,,[10]],[,,"8(?:00\\d{7}(?:\\d{2,3})?|11\\d{7})",,,,"8001234567",,,[10,12,13]],[,,"(?:8[89]8|900)\\d{7}",,,,"9001234567",,,[10]],[,,,,,,,,,[-1]],[,,"592(?:21[12]|461)\\d{4}",,,,"5922121234",,,[10]],[,,"850\\d{7}",,,,"8500123456",,,[10]],"TR",90,"00","0",,,"0",,,,[[,"(\\d{3})(\\d)(\\d{3})","$1 $2 $3",["444"],,,1],[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[[,"(\\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]|616)","5(?:[0-59]|6161)"],"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]],[,,"512\\d{7}",,,,"5123456789",,,[10]],,,[,,"(?:444|811\\d{3})\\d{4}",,,,,,,[7,10]],[,,"444\\d{4}",,,,"4441444",,,[7]],,,[,,,,,,,,,[-1]]],TT:[,[,,"(?:[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"868(?:2(?:01|1[5-9]|[23]\\d|4[0-2])|6(?:0[7-9]|1[02-8]|2[1-9]|[3-69]\\d|7[0-79])|82[124])\\d{4}",,,,"8682211234",,,,[7]],[,,"868(?:(?:2[5-9]|3\\d)\\d|4(?:3[0-6]|[6-9]\\d)|6(?:20|78|8\\d)|7(?:0[1-9]|1[02-9]|[2-9]\\d))\\d{4}",,,,"8682911234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"TT",1,"011","1",,,"1|([2-46-8]\\d{6})$","868$1",,,,,[,,,,,,,,,[-1]],,"868",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"868619\\d{4}",,,,"8686191234",,,,[7]]],TV:[,[,,"(?:2|7\\d\\d|90)\\d{4}",,,,,,,[5,6,7]],[,,"2[02-9]\\d{3}",,,,"20123",,,[5]],[,,"(?:7[01]\\d|90)\\d{4}",,,,"901234",,,[6,7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"TV",688,"00",,,,,,,,[[,"(\\d{2})(\\d{3})","$1 $2",["2"]],[,"(\\d{2})(\\d{4})","$1 $2",["90"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],TW:[,[,,"[2-689]\\d{8}|7\\d{9,10}|[2-8]\\d{7}|2\\d{6}",,,,,,,[7,8,9,10,11]],[,,"(?:2[2-8]\\d|370|55[01]|7[1-9])\\d{6}|4(?:(?:0(?:0[1-9]|[2-48]\\d)|1[023]\\d)\\d{4,5}|(?:[239]\\d\\d|4(?:0[56]|12|49))\\d{5})|6(?:[01]\\d{7}|4(?:0[56]|12|24|4[09])\\d{4,5})|8(?:(?:2(?:3\\d|4[0-269]|[578]0|66)|36[24-9]|90\\d\\d)\\d{4}|4(?:0[56]|12|24|4[09])\\d{4,5})|(?:2(?:2(?:0\\d\\d|4(?:0[68]|[249]0|3[0-467]|5[0-25-9]|6[0235689]))|(?:3(?:[09]\\d|1[0-4])|(?:4\\d|5[0-49]|6[0-29]|7[0-5])\\d)\\d)|(?:(?:3[2-9]|5[2-8]|6[0-35-79]|8[7-9])\\d\\d|4(?:2(?:[089]\\d|7[1-9])|(?:3[0-4]|[78]\\d|9[01])\\d))\\d)\\d{3}",,,,"221234567",,,[8,9]],[,,"(?:40001[0-2]|9[0-8]\\d{4})\\d{3}",,,,"912345678",,,[9]],[,,"80[0-79]\\d{6}|800\\d{5}",,,,"800123456",,,[8,9]],[,,"20(?:[013-9]\\d\\d|2)\\d{4}",,,,"203123456",,,[7,9]],[,,,,,,,,,[-1]],[,,"99\\d{7}",,,,"990123456",,,[9]],[,,"7010(?:[0-2679]\\d|3[0-7]|8[0-5])\\d{5}|70\\d{8}",,,,"7012345678",,,[10,11]],"TW",886,"0(?:0[25-79]|19)","0","#",,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"50[0-46-9]\\d{6}",,,,"500123456",,,[9]],,,[,,,,,,,,,[-1]]],TZ:[,[,,"(?:[25-8]\\d|41|90)\\d{7}",,,,,,,[9]],[,,"2[2-8]\\d{7}",,,,"222345678"],[,,"77[2-9]\\d{6}|(?:6[125-9]|7[13-689])\\d{7}",,,,"621234567"],[,,"80[08]\\d{6}",,,,"800123456"],[,,"90\\d{7}",,,,"900123456"],[,,"8(?:40|6[01])\\d{6}",,,,"840123456"],[,,,,,,,,,[-1]],[,,"41\\d{7}",,,,"412345678"],"TZ",255,"00[056]","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,"(?:8(?:[04]0|6[01])|90\\d)\\d{6}"],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UA:[,[,,"[89]\\d{9}|[3-9]\\d{8}",,,,,,,[9,10],[5,6,7]],[,,"(?:3[1-8]|4[13-8]|5[1-7]|6[12459])\\d{7}",,,,"311234567",,,[9],[5,6,7]],[,,"(?:39|50|6[36-8]|7[1-3]|9[1-9])\\d{7}",,,,"501234567",,,[9]],[,,"800[1-8]\\d{5,6}",,,,"800123456"],[,,"900[239]\\d{5,6}",,,,"900212345"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"89[1-579]\\d{6}",,,,"891234567",,,[9]],"UA",380,"00","0",,,"0",,"0~0",,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UG:[,[,,"800\\d{6}|(?:[29]0|[347]\\d)\\d{7}",,,,,,,[9],[5,6,7]],[,,"20(?:(?:240|30[67])\\d|6(?:00[0-2]|30[0-4]))\\d{3}|(?:20(?:[017]\\d|2[5-9]|32|5[0-4]|6[15-9])|[34]\\d{3})\\d{5}",,,,"312345678",,,,[5,6,7]],[,,"726[01]\\d{5}|7(?:[01578]\\d|20|36|[46][0-4]|9[89])\\d{6}",,,,"712345678"],[,,"800[1-3]\\d{5}",,,,"800123456"],[,,"90[1-3]\\d{6}",,,,"901123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UG",256,"00[057]","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],US:[,[,,"[2-9]\\d{9}|3\\d{6}",,,,,,,[10],[7]],[,,"505(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|4[46]))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|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[19]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"505(?:[2-57-9]\\d\\d|6(?:[0-35-9]\\d|4[46]))\\d{4}|(?:2(?:0[1-35-9]|1[02-9]|2[03-589]|3[149]|4[08]|5[1-46]|6[0279]|7[0269]|8[13])|3(?:0[1-57-9]|1[02-9]|2[01356]|3[0-24679]|4[167]|5[0-2]|6[014]|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[19]|6[1-47]|7[0-5]|8[0256])|6(?:0[1-35-9]|1[024-9]|2[03689]|[34][016]|5[01679]|6[0-279]|78|8[0-29])|7(?:0[1-46-8]|1[2-9]|2[04-7]|3[1247]|4[037]|5[47]|6[02359]|7[0-59]|8[156])|8(?:0[1-68]|1[02-8]|2[068]|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-389]|8[04-69]))[2-9]\\d{6}",,,,"2015550123",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"US",1,"011","1",,,"1",,,1,[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{4})","$1-$2",["[24-9]|3(?:[02-9]|1[1-9])"]],[,"(\\d{3})(\\d{3})(\\d{4})","($1) $2-$3",["[2-9]"],,,1]],[[,"(\\d{3})(\\d{4})","$1-$2",["310"],,,1],[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[2-9]"]]],[,,,,,,,,,[-1]],1,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UY:[,[,,"(?:0004|4)\\d{9}|[1249]\\d{7}|(?:[49]\\d|80)\\d{5}",,,,,,,[7,8,10,13]],[,,"(?:1(?:770|987)|(?:2\\d|4[2-7])\\d\\d)\\d{4}",,,,"21231234",,,[8],[7]],[,,"9[1-9]\\d{6}",,,,"94231234",,,[8]],[,,"(?:(?:0004|4)\\d{5}|80[05])\\d{4}|405\\d{4}",,,,"8001234",,,[7,10,13]],[,,"90[0-8]\\d{4}",,,,"9001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UY",598,"0(?:0|1[3-9]\\d)","0"," int. ",,"0",,"00",,[[,"(\\d{3})(\\d{4})","$1 $2",["405|8|90"],"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{4})","$1 $2 $3",["4"],"0$1"],[,"(\\d{3})(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["0"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],UZ:[,[,,"(?:33|[5-79]\\d|88)\\d{7}",,,,,,,[9]],[,,"(?:5570|6(?:1(?:22|3[124]|4[1-4]|5[1-3578]|64)|2(?:22|3[0-57-9]|41)|5(?:22|3[3-7]|5[024-8])|6\\d\\d|7(?:[23]\\d|7[69])|9(?:22|4[1-8]|6[135]))|7(?:0(?:5[4-9]|6[0146]|7[124-6]|9[135-8])|(?:1[12]|8\\d)\\d|2(?:22|3[13-57-9]|4[1-3579]|5[14])|3(?:2\\d|3[1578]|4[1-35-7]|5[1-57]|61)|4(?:2\\d|3[1-579]|7[1-79])|5(?:22|5[1-9]|6[1457])|6(?:22|3[12457]|4[13-8])|9(?:22|5[1-9])))\\d{5}",,,,"669050123"],[,,"(?:(?:33|88|9[0-57-9])\\d{3}|5(?:0\\d{3}|5(?:50[013]|90\\d))|6(?:1(?:2(?:2[01]|98)|35[0-4]|50\\d|61[23]|7(?:[01][017]|4\\d|55|9[5-9]))|2(?:(?:11|7\\d)\\d|2(?:[12]1|9[01379])|5(?:[126]\\d|3[0-4]))|5(?:19[01]|2(?:27|9[26])|(?:30|59|7\\d)\\d)|6(?:2(?:1[5-9]|2[0367]|38|41|52|60)|(?:3[79]|9[0-3])\\d|4(?:56|83)|7(?:[07]\\d|1[017]|3[07]|4[047]|5[057]|67|8[0178]|9[79]))|7(?:2(?:24|3[237]|4[5-9]|7[15-8])|5(?:7[12]|8[0589])|7(?:0\\d|[39][07])|9(?:0\\d|7[079]))|9(?:2(?:1[1267]|3[01]|5\\d|7[0-4])|(?:5[67]|7\\d)\\d|6(?:2[0-26]|8\\d)))|7(?:[07]\\d{3}|1(?:13[01]|6(?:0[47]|1[67]|66)|71[3-69]|98\\d)|2(?:2(?:2[79]|95)|3(?:2[5-9]|6[0-6])|57\\d|7(?:0\\d|1[17]|2[27]|3[37]|44|5[057]|66|88))|3(?:2(?:1[0-6]|21|3[469]|7[159])|(?:33|9[4-6])\\d|5(?:0[0-4]|5[579]|9\\d)|7(?:[0-3579]\\d|4[0467]|6[67]|8[078]))|4(?:2(?:29|5[0257]|6[0-7]|7[1-57])|5(?:1[0-4]|8\\d|9[5-9])|7(?:0\\d|1[024589]|2[0-27]|3[0137]|[46][07]|5[01]|7[5-9]|9[079])|9(?:7[015-9]|[89]\\d))|5(?:112|2(?:0\\d|2[29]|[49]4)|3[1568]\\d|52[6-9]|7(?:0[01578]|1[017]|[23]7|4[047]|[5-7]\\d|8[78]|9[079]))|6(?:2(?:2[1245]|4[2-4])|39\\d|41[179]|5(?:[349]\\d|5[0-2])|7(?:0[017]|[13]\\d|22|44|55|67|88))|9(?:22[128]|3(?:2[0-4]|7\\d)|57[02569]|7(?:2[05-9]|3[37]|4\\d|60|7[2579]|87|9[07]))))\\d{4}",,,,"912345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"UZ",998,"810","8",,,"8",,"8~10",,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[35-9]"],"8 $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VA:[,[,,"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]],[,,"06698\\d{1,6}",,,,"0669812345",,,[6,7,8,9,10,11]],[,,"3[1-9]\\d{8}|3[2-9]\\d{7}",,,,"3123456789",,,[9,10]],[,,"80(?:0\\d{3}|3)\\d{3}",,,,"800123456",,,[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}",,,,"899123456",,,[6,8,9,10]],[,,"84(?:[08]\\d{3}|[17])\\d{3}",,,,"848123456",,,[6,9]],[,,"1(?:78\\d|99)\\d{6}",,,,"1781234567",,,[9,10]],[,,"55\\d{8}",,,,"5512345678",,,[10]],"VA",39,"00",,,,,,,,,,[,,,,,,,,,[-1]],,"06698",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"3[2-8]\\d{9,10}",,,,"33101234501",,,[11,12]]],VC:[,[,,"(?:[58]\\d\\d|784|900)\\d{7}",,,,,,,[10],[7]],[,,"784(?:266|3(?:6[6-9]|7\\d|8[0-6])|4(?:38|5[0-36-8]|8[0-8])|5(?:55|7[0-2]|93)|638|784)\\d{4}",,,,"7842661234",,,,[7]],[,,"784(?:4(?:3[0-5]|5[45]|89|9[0-8])|5(?:2[6-9]|3[0-4])|720)\\d{4}",,,,"7844301234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,"78451[0-2]\\d{4}",,,,"7845101234",,,,[7]],"VC",1,"011","1",,,"1|([2-7]\\d{6})$","784$1",,,,,[,,,,,,,,,[-1]],,"784",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VE:[,[,,"[68]00\\d{7}|(?:[24]\\d|[59]0)\\d{8}",,,,,,,[10],[7]],[,,"(?:2(?:12|3[457-9]|[467]\\d|[58][1-9]|9[1-6])|[4-6]00)\\d{7}",,,,"2121234567",,,,[7]],[,,"4(?:1[24-8]|2[46])\\d{7}",,,,"4121234567"],[,,"800\\d{7}",,,,"8001234567"],[,,"90[01]\\d{7}",,,,"9001234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"VE",58,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{7})","$1-$2",["[24-689]"],"0$1","$CC $1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"501\\d{7}",,,,"5010123456",,,,[7]],,,[,,,,,,,,,[-1]]],VG:[,[,,"(?:284|[58]\\d\\d|900)\\d{7}",,,,,,,[10],[7]],[,,"284496[0-5]\\d{3}|284(?:229|4(?:22|9[45])|774|8(?:52|6[459]))\\d{4}",,,,"2842291234",,,,[7]],[,,"284496[6-9]\\d{3}|284(?:245|3(?:0[0-3]|4[0-7]|68|9[34])|4(?:4[0-6]|68|99)|5(?:4[0-7]|68|9[69]))\\d{4}",,,,"2843001234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VG",1,"011","1",,,"1|([2-578]\\d{6})$","284$1",,,,,[,,,,,,,,,[-1]],,"284",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VI:[,[,,"[58]\\d{9}|(?:34|90)0\\d{7}",,,,,,,[10],[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"340(?:2(?:0[0-368]|2[06-8]|4[49]|77)|3(?:32|44)|4(?:2[23]|44|7[34]|89)|5(?:1[34]|55)|6(?:2[56]|4[23]|77|9[023])|7(?:1[2-57-9]|2[57]|7\\d)|884|998)\\d{4}",,,,"3406421234",,,,[7]],[,,"8(?:00|33|44|55|66|77|88)[2-9]\\d{6}",,,,"8002345678"],[,,"900[2-9]\\d{6}",,,,"9002345678"],[,,,,,,,,,[-1]],[,,"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-7]|33|44|66|77|88)[2-9]\\d{6}",,,,"5002345678"],[,,,,,,,,,[-1]],"VI",1,"011","1",,,"1|([2-9]\\d{6})$","340$1",,1,,,[,,,,,,,,,[-1]],,"340",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],VN:[,[,,"[12]\\d{9}|[135-9]\\d{8}|[16]\\d{7}|[16-8]\\d{6}",,,,,,,[7,8,9,10]],[,,"2(?:0[3-9]|1[0-689]|2[0-25-9]|3[2-9]|4[2-8]|5[124-9]|6[0-39]|7[0-7]|8[2-79]|9[0-4679])\\d{7}",,,,"2101234567",,,[10]],[,,"(?:5(?:2[238]|59)|89[6-9]|99[013-9])\\d{6}|(?:3\\d|5[689]|7[06-9]|8[1-8]|9[0-8])\\d{7}",,,,"912345678",,,[9]],[,,"1800\\d{4,6}|12(?:0[13]|28)\\d{4}",,,,"1800123456",,,[8,9,10]],[,,"1900\\d{4,6}",,,,"1900123456",,,[8,9,10]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"672\\d{6}",,,,"672012345",,,[9]],"VN",84,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[17]99"],"0$1",,1],[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{3})(\\d{4,5})","$1 $2",["69"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[[,"(\\d{2})(\\d{5})","$1 $2",["80"],"0$1",,1],[,"(\\d{4})(\\d{4,6})","$1 $2",["1"],,,1],[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",["[69]"],"0$1",,1],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[3578]"],"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]],[,,,,,,,,,[-1]],,,[,,"[17]99\\d{4}|69\\d{5,6}",,,,,,,[7,8]],[,,"(?:[17]99|80\\d)\\d{4}|69\\d{5,6}",,,,"1992000",,,[7,8]],,,[,,,,,,,,,[-1]]],VU:[,[,,"[57-9]\\d{6}|(?:[238]\\d|48)\\d{3}",,,,,,,[5,7]],[,,"(?:38[0-8]|48[4-9])\\d\\d|(?:2[02-9]|3[4-7]|88)\\d{3}",,,,"22123",,,[5]],[,,"(?:[58]\\d|7[013-7])\\d{5}",,,,"5912345",,,[7]],[,,"81[18]\\d\\d",,,,"81123",,,[5]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"9(?:0[1-9]|1[01])\\d{4}",,,,"9010123",,,[7]],"VU",678,"00",,,,,,,,[[,"(\\d{3})(\\d{4})","$1 $2",["[57-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"(?:3[03]|900\\d)\\d{3}",,,,"30123"],,,[,,,,,,,,,[-1]]],WF:[,[,,"(?:40|72)\\d{4}|8\\d{5}(?:\\d{3})?",,,,,,,[6,9]],[,,"72\\d{4}",,,,"721234",,,[6]],[,,"(?:72|8[23])\\d{4}",,,,"821234",,,[6]],[,,"80[0-5]\\d{6}",,,,"800012345",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WF",681,"00",,,,,,,,[[,"(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3",["[478]"]],[,"(\\d{3})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",["8"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"[48]0\\d{4}",,,,"401234",,,[6]]],WS:[,[,,"(?:[2-6]|8\\d{5})\\d{4}|[78]\\d{6}|[68]\\d{5}",,,,,,,[5,6,7,10]],[,,"6[1-9]\\d{3}|(?:[2-5]|60)\\d{4}",,,,"22123",,,[5,6]],[,,"(?:7[1-35-7]|8(?:[3-7]|9\\d{3}))\\d{5}",,,,"7212345",,,[7,10]],[,,"800\\d{3}",,,,"800123",,,[6]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"WS",685,"0",,,,,,,,[[,"(\\d{5})","$1",["[2-5]|6[1-9]"]],[,"(\\d{3})(\\d{3,7})","$1 $2",["[68]"]],[,"(\\d{2})(\\d{5})","$1 $2",["7"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],XK:[,[,,"[23]\\d{7,8}|(?:4\\d\\d|[89]00)\\d{5}",,,,,,,[8,9]],[,,"(?:2[89]|39)0\\d{6}|[23][89]\\d{6}",,,,"28012345"],[,,"4[3-9]\\d{6}",,,,"43201234",,,[8]],[,,"800\\d{5}",,,,"80001234",,,[8]],[,,"900\\d{5}",,,,"90001234",,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"XK",383,"00","0",,,"0",,,,[[,"(\\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",["[23]"],"0$1"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YE:[,[,,"(?:1|7\\d)\\d{7}|[1-7]\\d{6}",,,,,,,[7,8,9],[6]],[,,"78[0-7]\\d{4}|17\\d{6}|(?:[12][2-68]|3[2358]|4[2-58]|5[2-6]|6[3-58]|7[24-6])\\d{5}",,,,"1234567",,,[7,8],[6]],[,,"7[01378]\\d{7}",,,,"712345678",,,[9]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YE",967,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],YT:[,[,,"80\\d{7}|(?:26|63)9\\d{6}",,,,,,,[9]],[,,"269(?:0[0-367]|5[0-3]|6\\d|[78]0)\\d{4}",,,,"269601234"],[,,"639(?:0[0-79]|1[019]|[267]\\d|3[09]|40|5[05-9]|9[04-79])\\d{4}",,,,"639012345"],[,,"80\\d{7}",,,,"801234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"YT",262,"00","0",,,"0",,,,,,[,,,,,,,,,[-1]],,"269|63",[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZA:[,[,,"[1-79]\\d{8}|8\\d{4,9}",,,,,,,[5,6,7,8,9,10]],[,,"(?:2(?:0330|4302)|52087)0\\d{3}|(?:1[0-8]|2[1-378]|3[1-69]|4\\d|5[1346-8])\\d{7}",,,,"101234567",,,[9]],[,,"(?:1(?:3492[0-25]|4495[0235]|549(?:20|5[01]))|4[34]492[01])\\d{3}|8[1-4]\\d{3,7}|(?:2[27]|47|54)4950\\d{3}|(?:1(?:049[2-4]|9[12]\\d\\d)|(?:6\\d|7[0-46-9])\\d{3}|8(?:5\\d{3}|7(?:08[67]|158|28[5-9]|310)))\\d{4}|(?:1[6-8]|28|3[2-69]|4[025689]|5[36-8])4920\\d{3}|(?:12|[2-5]1)492\\d{4}",,,,"711234567",,,[5,6,7,8,9]],[,,"80\\d{7}",,,,"801234567",,,[9]],[,,"(?:86[2-9]|9[0-2]\\d)\\d{6}",,,,"862345678",,,[9]],[,,"860\\d{6}",,,,"860123456",,,[9]],[,,,,,,,,,[-1]],[,,"87(?:08[0-589]|15[0-79]|28[0-4]|31[1-9])\\d{4}|87(?:[02][0-79]|1[0-46-9]|3[02-9]|[4-9]\\d)\\d{5}",,,,"871234567",,,[9]],"ZA",27,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"861\\d{6,7}",,,,"861123456",,,[9,10]],,,[,,,,,,,,,[-1]]],ZM:[,[,,"800\\d{6}|(?:21|63|[79]\\d)\\d{7}",,,,,,,[9],[6]],[,,"21[1-8]\\d{6}",,,,"211234567",,,,[6]],[,,"(?:7[5-79]|9[5-8])\\d{7}",,,,"955123456"],[,,"800\\d{6}",,,,"800123456"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"63\\d{7}",,,,"630123456"],"ZM",260,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3})","$1 $2",["[1-9]"]],[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[28]"],"0$1"],[,"(\\d{2})(\\d{7})","$1 $2",["[79]"],"0$1"]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],ZW:[,[,,"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],[3,4]],[,,"(?:1(?:(?:3\\d|9)\\d|[4-8])|2(?:(?:(?:0(?:2[014]|5)|(?:2[0157]|31|84|9)\\d\\d|[56](?:[14]\\d\\d|20)|7(?:[089]|2[03]|[35]\\d\\d))\\d|4(?:2\\d\\d|8))\\d|1(?:2|[39]\\d{4}))|3(?:(?:123|(?:29\\d|92)\\d)\\d\\d|7(?:[19]|[56]\\d))|5(?:0|1[2-478]|26|[37]2|4(?:2\\d{3}|83)|5(?:25\\d\\d|[78])|[689]\\d)|6(?:(?:[16-8]21|28|52[013])\\d\\d|[39])|8(?:[1349]28|523)\\d\\d)\\d{3}|(?:4\\d\\d|9[2-9])\\d{4,5}|(?:(?:2(?:(?:(?:0|8[146])\\d|7[1-7])\\d|2(?:[278]\\d|92)|58(?:2\\d|3))|3(?:[26]|9\\d{3})|5(?:4\\d|5)\\d\\d)\\d|6(?:(?:(?:[0-246]|[78]\\d)\\d|37)\\d|5[2-8]))\\d\\d|(?:2(?:[569]\\d|8[2-57-9])|3(?:[013-59]\\d|8[37])|6[89]8)\\d{3}",,,,"1312345",,,,[3,4]],[,,"7(?:[178]\\d|3[1-9])\\d{6}",,,,"712345678",,,[9]],[,,"80(?:[01]\\d|20|8[0-8])\\d{3}",,,,"8001234",,,[7]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"86(?:1[12]|22|30|44|55|77|8[368])\\d{6}",,,,"8686123456",,,[10]],"ZW",263,"00","0",,,"0",,,,[[,"(\\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"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],800:[,[,,"(?:00|[1-9]\\d)\\d{6}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:00|[1-9]\\d)\\d{6}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",800,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["\\d"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],808:[,[,,"[1-9]\\d{7}",,,,,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1-9]\\d{7}",,,,"12345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",808,,,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",["[1-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],870:[,[,,"7\\d{11}|[35-7]\\d{8}",,,,,,,[9,12]],[,,,,,,,,,[-1]],[,,"(?:[356]|774[45])\\d{8}|7[6-8]\\d{7}",,,,"301234567"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",870,,,,,,,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",["[35-7]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],878:[,[,,"10\\d{10}",,,,,,,[12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"10\\d{10}",,,,"101234567890"],"001",878,,,,,,,,1,[[,"(\\d{2})(\\d{5})(\\d{5})","$1 $2 $3",["1"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],881:[,[,,"[0-36-9]\\d{8}",,,,,,,[9]],[,,,,,,,,,[-1]],[,,"[0-36-9]\\d{8}",,,,"612345678"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",881,,,,,,,,,[[,"(\\d)(\\d{3})(\\d{5})","$1 $2 $3",["[0-36-9]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],882:[,[,,"[13]\\d{6}(?:\\d{2,5})?|[19]\\d{7}|(?:[25]\\d\\d|4)\\d{7}(?:\\d{2})?",,,,,,,[7,8,9,10,11,12]],[,,,,,,,,,[-1]],[,,"342\\d{4}|(?:337|49)\\d{6}|(?:3(?:2|47|7\\d{3})|50\\d{3})\\d{7}",,,,"3421234",,,[7,8,9,10,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"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}",,,,"390123456789"],"001",882,,,,,,,,,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,"348[57]\\d{7}",,,,"34851234567",,,[11]]],883:[,[,,"(?:[1-4]\\d|51)\\d{6,10}",,,,,,,[8,9,10,11,12]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"(?:2(?:00\\d\\d|10)|(?:370[1-9]|51\\d0)\\d)\\d{7}|51(?:00\\d{5}|[24-9]0\\d{4,7})|(?:1[013-79]|2[24-689]|3[02-689]|4[0-4])0\\d{5,9}",,,,"510012345"],"001",883,,,,,,,,1,[[,"(\\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]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]],888:[,[,,"\\d{11}",,,,,,,[11]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",888,,,,,,,,1,[[,"(\\d{3})(\\d{3})(\\d{5})","$1 $2 $3"]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,"\\d{11}",,,,"12345678901"],,,[,,,,,,,,,[-1]]],979:[,[,,"[1359]\\d{8}",,,,,,,[9],[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,"[1359]\\d{8}",,,,"123456789",,,,[8]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],"001",979,,,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",["[1359]"]]],,[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,[,,,,,,,,,[-1]]]},i18n.phonenumbers.PhoneNumberUtil=function(){this.regionToMetadataMap={}},goog.addSingletonGetter(i18n.phonenumbers.PhoneNumberUtil),i18n.phonenumbers.Error={INVALID_COUNTRY_CODE:"Invalid country calling code",NOT_A_NUMBER:"The string supplied did not seem to be a phone number",TOO_SHORT_AFTER_IDD:"Phone number too short after IDD",TOO_SHORT_NSN:"The string supplied is too short to be a phone number",TOO_LONG:"The string supplied is too long to be a phone number"},i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_=1,i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_=2,i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_=17,i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE_=3,i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_=250,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_="ZZ",i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_={54:"9"},i18n.phonenumbers.PhoneNumberUtil.GEO_MOBILE_COUNTRIES_=[52,54,55],i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN="+",i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_="*",i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_=";ext=",i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_="tel:",i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_=";phone-context=",i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_=";isub=",i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9"},i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","+":i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN,"*":"*","#":"#"},i18n.phonenumbers.PhoneNumberUtil.ALPHA_MAPPINGS_={A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9","\uff10":"0","\uff11":"1","\uff12":"2","\uff13":"3","\uff14":"4","\uff15":"5","\uff16":"6","\uff17":"7","\uff18":"8","\uff19":"9","\u0660":"0","\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u06f0":"0","\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9",A:"2",B:"2",C:"2",D:"3",E:"3",F:"3",G:"4",H:"4",I:"4",J:"5",K:"5",L:"5",M:"6",N:"6",O:"6",P:"7",Q:"7",R:"7",S:"7",T:"8",U:"8",V:"8",W:"9",X:"9",Y:"9",Z:"9"},i18n.phonenumbers.PhoneNumberUtil.ALL_PLUS_NUMBER_GROUPING_SYMBOLS_={0:"0",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",A:"A",B:"B",C:"C",D:"D",E:"E",F:"F",G:"G",H:"H",I:"I",J:"J",K:"K",L:"L",M:"M",N:"N",O:"O",P:"P",Q:"Q",R:"R",S:"S",T:"T",U:"U",V:"V",W:"W",X:"X",Y:"Y",Z:"Z",a:"A",b:"B",c:"C",d:"D",e:"E",f:"F",g:"G",h:"H",i:"I",j:"J",k:"K",l:"L",m:"M",n:"N",o:"O",p:"P",q:"Q",r:"R",s:"S",t:"T",u:"U",v:"V",w:"W",x:"X",y:"Y",z:"Z","-":"-","\uff0d":"-","\u2010":"-","\u2011":"-","\u2012":"-","\u2013":"-","\u2014":"-","\u2015":"-","\u2212":"-","/":"/","\uff0f":"/"," ":" ","\u3000":" ","\u2060":" ",".":".","\uff0e":"."},i18n.phonenumbers.PhoneNumberUtil.SINGLE_INTERNATIONAL_PREFIX_=/[\d]+(?:[~\u2053\u223C\uFF5E][\d]+)?/,i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION="-x\u2010-\u2015\u2212\u30fc\uff0d-\uff0f \xa0\xad\u200b\u2060\u3000()\uff08\uff09\uff3b\uff3d.\\[\\]/~\u2053\u223c\uff5e",i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_="0-9\uff10-\uff19\u0660-\u0669\u06f0-\u06f9",i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_="A-Za-z",i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_="+\uff0b",i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN=new RegExp("["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]+"),i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN=new RegExp("^["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]+"),i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_="["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]+",i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN=new RegExp("(["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"])"),i18n.phonenumbers.PhoneNumberUtil.VALID_START_CHAR_PATTERN_=new RegExp("["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]"),i18n.phonenumbers.PhoneNumberUtil.SECOND_NUMBER_START_PATTERN_=/[\\\/] *x/,i18n.phonenumbers.PhoneNumberUtil.UNWANTED_END_CHAR_PATTERN_=new RegExp("[^"+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_+"#]+$"),i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_=/(?:.*?[A-Za-z]){3}.*/,i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_PHONE_NUMBER_PATTERN_="["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]{"+i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_+"}",i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_="["+i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_+"]*(?:["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_+"]*["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]){3,}["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+i18n.phonenumbers.PhoneNumberUtil.STAR_SIGN_+i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]*",i18n.phonenumbers.PhoneNumberUtil.DEFAULT_EXTN_PREFIX_=" ext. ",i18n.phonenumbers.PhoneNumberUtil.extnDigits_=function(v){return"(["+i18n.phonenumbers.PhoneNumberUtil.VALID_DIGITS_+"]{1,"+v+"})"},i18n.phonenumbers.PhoneNumberUtil.createExtnPattern_=function(){return i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("20")+"|[ \xa0\\t,]*(?:e?xt(?:ensi(?:o\u0301?|\xf3))?n?|\uff45?\uff58\uff54\uff4e?|\u0434\u043e\u0431|anexo)[:\\.\uff0e]?[ \xa0\\t,-]*"+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("20")+"#?|[ \xa0\\t,]*(?:[x\uff58#\uff03~\uff5e]|int|\uff49\uff4e\uff54)[:\\.\uff0e]?[ \xa0\\t,-]*"+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("9")+"#?|[- ]+"+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("6")+"#|[ \xa0\\t]*(?:,{2}|;)[:\\.\uff0e]?[ \xa0\\t,-]*"+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("15")+"#?|[ \xa0\\t]*(?:,)+[:\\.\uff0e]?[ \xa0\\t,-]*"+i18n.phonenumbers.PhoneNumberUtil.extnDigits_("9")+"#?"},i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_=new RegExp("(?:"+i18n.phonenumbers.PhoneNumberUtil.createExtnPattern_()+")$","i"),i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN_=new RegExp("^"+i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_PHONE_NUMBER_PATTERN_+"$|^"+i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_+"(?:"+i18n.phonenumbers.PhoneNumberUtil.createExtnPattern_()+")?$","i"),i18n.phonenumbers.PhoneNumberUtil.NON_DIGITS_PATTERN_=/\D+/,i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_=/(\$\d)/,i18n.phonenumbers.PhoneNumberUtil.NP_PATTERN_=/\$NP/,i18n.phonenumbers.PhoneNumberUtil.FG_PATTERN_=/\$FG/,i18n.phonenumbers.PhoneNumberUtil.CC_PATTERN_=/\$CC/,i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_ONLY_PREFIX_PATTERN_=/^\(?\$1\)?$/,i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY="001",i18n.phonenumbers.PhoneNumberFormat={E164:0,INTERNATIONAL:1,NATIONAL:2,RFC3966:3},i18n.phonenumbers.PhoneNumberType={FIXED_LINE:0,MOBILE:1,FIXED_LINE_OR_MOBILE:2,TOLL_FREE:3,PREMIUM_RATE:4,SHARED_COST:5,VOIP:6,PERSONAL_NUMBER:7,PAGER:8,UAN:9,VOICEMAIL:10,UNKNOWN:-1},i18n.phonenumbers.PhoneNumberUtil.MatchType={NOT_A_NUMBER:0,NO_MATCH:1,SHORT_NSN_MATCH:2,NSN_MATCH:3,EXACT_MATCH:4},i18n.phonenumbers.PhoneNumberUtil.ValidationResult={IS_POSSIBLE:0,IS_POSSIBLE_LOCAL_ONLY:4,INVALID_COUNTRY_CODE:1,TOO_SHORT:2,INVALID_LENGTH:5,TOO_LONG:3},i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber=function(v){var x=v.search(i18n.phonenumbers.PhoneNumberUtil.VALID_START_CHAR_PATTERN_);return 0<=x?0<=(x=(v=(v=v.substring(x)).replace(i18n.phonenumbers.PhoneNumberUtil.UNWANTED_END_CHAR_PATTERN_,"")).search(i18n.phonenumbers.PhoneNumberUtil.SECOND_NUMBER_START_PATTERN_))&&(v=v.substring(0,x)):v="",v},i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber=function(v){return!(v.length<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_)&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(i18n.phonenumbers.PhoneNumberUtil.VALID_PHONE_NUMBER_PATTERN_,v)},i18n.phonenumbers.PhoneNumberUtil.normalize=function(v){return i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_,v)?i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(v,i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_,!0):i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(v)},i18n.phonenumbers.PhoneNumberUtil.normalizeSB_=function(v){var x=i18n.phonenumbers.PhoneNumberUtil.normalize(v.toString());v.clear(),v.append(x)},i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly=function(v){return i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(v,i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS,!0)},i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly=function(v){return i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(v,i18n.phonenumbers.PhoneNumberUtil.DIALLABLE_CHAR_MAPPINGS_,!0)},i18n.phonenumbers.PhoneNumberUtil.convertAlphaCharactersInNumber=function(v){return i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(v,i18n.phonenumbers.PhoneNumberUtil.ALL_NORMALIZATION_MAPPINGS_,!1)},i18n.phonenumbers.PhoneNumberUtil.prototype.getLengthOfGeographicalAreaCode=function(v){var x=this.getMetadataForRegion(this.getRegionCodeForNumber(v));return null!=x&&(x.hasNationalPrefix()||v.hasItalianLeadingZero())&&this.isNumberGeographical(v)?this.getLengthOfNationalDestinationCode(v):0},i18n.phonenumbers.PhoneNumberUtil.prototype.getLengthOfNationalDestinationCode=function(v){if(v.hasExtension()){var x=v.clone();x.clearExtension()}else x=v;return 0==(x=this.format(x,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(i18n.phonenumbers.PhoneNumberUtil.NON_DIGITS_PATTERN_))[0].length&&x.shift(),2>=x.length?0:this.getNumberType(v)==i18n.phonenumbers.PhoneNumberType.MOBILE&&""!=(v=i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken(v.getCountryCodeOrDefault()))?x[2].length+v.length:x[1].length},i18n.phonenumbers.PhoneNumberUtil.getCountryMobileToken=function(v){return i18n.phonenumbers.PhoneNumberUtil.MOBILE_TOKEN_MAPPINGS_[v]||""},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedRegions=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(v){return isNaN(v)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedGlobalNetworkCallingCodes=function(){return Object.keys(i18n.phonenumbers.metadata.countryToMetadata).filter(function(v){return!isNaN(v)}).map(function(v){return parseInt(v,10)})},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedCallingCodes=function(){var v=Object.keys(i18n.phonenumbers.metadata.countryCodeToRegionCodeMap);return[].concat($jscomp.arrayFromIterable(this.getSupportedGlobalNetworkCallingCodes()),$jscomp.arrayFromIterable(v.map(function(x){return parseInt(x,10)})))},i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_=function(v){return null!=v&&(1!=v.possibleLengthCount()||-1!=v.possibleLengthArray()[0])},i18n.phonenumbers.PhoneNumberUtil.descHasData_=function(v){return null!=v&&(v.hasExampleNumber()||i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(v)||v.hasNationalNumberPattern())},i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_=function(v){var x=[];return goog.object.forEach(i18n.phonenumbers.PhoneNumberType,function(S){if(S!=i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE&&S!=i18n.phonenumbers.PhoneNumberType.UNKNOWN){var D=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(v,S);i18n.phonenumbers.PhoneNumberUtil.descHasData_(D)&&x.push(S)}}),x},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForRegion=function(v){return this.isValidRegionCode_(v)?i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(this.getMetadataForRegion(v)):[]},i18n.phonenumbers.PhoneNumberUtil.prototype.getSupportedTypesForNonGeoEntity=function(v){return null==(v=this.getMetadataForNonGeographicalRegion(v))?[]:i18n.phonenumbers.PhoneNumberUtil.getSupportedTypesForMetadata_(v)},i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_=function(v,x,S){for(var n,O,D=new goog.string.StringBuffer,R=v.length,U=0;U<R;++U)null!=(O=x[(n=v.charAt(U)).toUpperCase()])?D.append(O):S||D.append(n);return D.toString()},i18n.phonenumbers.PhoneNumberUtil.prototype.formattingRuleHasFirstGroupOnly=function(v){return 0==v.length||i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_ONLY_PREFIX_PATTERN_.test(v)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberGeographical=function(v){var x=this.getNumberType(v);return x==i18n.phonenumbers.PhoneNumberType.FIXED_LINE||x==i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE||i18n.phonenumbers.PhoneNumberUtil.GEO_MOBILE_COUNTRIES_.includes(v.getCountryCodeOrDefault())&&x==i18n.phonenumbers.PhoneNumberType.MOBILE},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidRegionCode_=function(v){return null!=v&&isNaN(v)&&v.toUpperCase()in i18n.phonenumbers.metadata.countryToMetadata},i18n.phonenumbers.PhoneNumberUtil.prototype.hasValidCountryCallingCode_=function(v){return v in i18n.phonenumbers.metadata.countryCodeToRegionCodeMap},i18n.phonenumbers.PhoneNumberUtil.prototype.format=function(v,x){if(0==v.getNationalNumber()&&v.hasRawInput()){var S=v.getRawInputOrDefault();if(0<S.length)return S}S=v.getCountryCodeOrDefault();var D=this.getNationalSignificantNumber(v);if(x==i18n.phonenumbers.PhoneNumberFormat.E164)return this.prefixNumberWithCountryCallingCode_(S,i18n.phonenumbers.PhoneNumberFormat.E164,D,"");if(!this.hasValidCountryCallingCode_(S))return D;var n=this.getRegionCodeForCountryCode(S);return n=this.getMetadataForRegionOrCallingCode_(S,n),v=this.maybeGetFormattedExtension_(v,n,x),D=this.formatNsn_(D,n,x),this.prefixNumberWithCountryCallingCode_(S,x,D,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatByPattern=function(v,x,S){var D=v.getCountryCodeOrDefault(),n=this.getNationalSignificantNumber(v);if(!this.hasValidCountryCallingCode_(D))return n;var O=this.getRegionCodeForCountryCode(D);O=this.getMetadataForRegionOrCallingCode_(D,O);var R=this.chooseFormattingPatternForNumber_(S,n);if(null!=R){if(S=R.clone(),0<(R=R.getNationalPrefixFormattingRuleOrDefault()).length){var U=O.getNationalPrefixOrDefault();0<U.length?(R=R.replace(i18n.phonenumbers.PhoneNumberUtil.NP_PATTERN_,U).replace(i18n.phonenumbers.PhoneNumberUtil.FG_PATTERN_,"$1"),S.setNationalPrefixFormattingRule(R)):S.clearNationalPrefixFormattingRule()}n=this.formatNsnUsingPattern_(n,S,x)}return v=this.maybeGetFormattedExtension_(v,O,x),this.prefixNumberWithCountryCallingCode_(D,x,n,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNationalNumberWithCarrierCode=function(v,x){var S=v.getCountryCodeOrDefault(),D=this.getNationalSignificantNumber(v);if(!this.hasValidCountryCallingCode_(S))return D;var n=this.getRegionCodeForCountryCode(S);return n=this.getMetadataForRegionOrCallingCode_(S,n),v=this.maybeGetFormattedExtension_(v,n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL),x=this.formatNsn_(D,n,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,x),this.prefixNumberWithCountryCallingCode_(S,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,x,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForRegionOrCallingCode_=function(v,x){return i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY==x?this.getMetadataForNonGeographicalRegion(v):this.getMetadataForRegion(x)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNationalNumberWithPreferredCarrierCode=function(v,x){return this.formatNationalNumberWithCarrierCode(v,0<v.getPreferredDomesticCarrierCodeOrDefault().length?v.getPreferredDomesticCarrierCodeOrDefault():x)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNumberForMobileDialing=function(v,x,S){var D=v.getCountryCodeOrDefault();if(!this.hasValidCountryCallingCode_(D))return v.hasRawInput()?v.getRawInputOrDefault():"";var n="";(v=v.clone()).clearExtension();var O=this.getRegionCodeForCountryCode(D),R=this.getNumberType(v),U=R!=i18n.phonenumbers.PhoneNumberType.UNKNOWN;if(x==O)n=R==i18n.phonenumbers.PhoneNumberType.FIXED_LINE||R==i18n.phonenumbers.PhoneNumberType.MOBILE||R==i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE,"BR"==O&&n?n=0<v.getPreferredDomesticCarrierCodeOrDefault().length?this.formatNationalNumberWithPreferredCarrierCode(v,""):"":D==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_?(x=this.getMetadataForRegion(x),n=this.canBeInternationallyDialled(v)&&this.testNumberLength_(this.getNationalSignificantNumber(v),x)!=i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT?this.format(v,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL):this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL)):n=(O==i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY||("MX"==O||"CL"==O||"UZ"==O)&&n)&&this.canBeInternationallyDialled(v)?this.format(v,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL):this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);else if(U&&this.canBeInternationallyDialled(v))return this.format(v,S?i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL:i18n.phonenumbers.PhoneNumberFormat.E164);return S?n:i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly(n)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatOutOfCountryCallingNumber=function(v,x){if(!this.isValidRegionCode_(x))return this.format(v,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);var S=v.getCountryCodeOrDefault(),D=this.getNationalSignificantNumber(v);if(!this.hasValidCountryCallingCode_(S))return D;if(S==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_){if(this.isNANPACountry(x))return S+" "+this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL)}else if(S==this.getCountryCodeForValidRegion_(x))return this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);var n=this.getMetadataForRegion(x),O=n.getInternationalPrefixOrDefault();return x="",n.hasPreferredInternationalPrefix()?x=n.getPreferredInternationalPrefixOrDefault():i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(i18n.phonenumbers.PhoneNumberUtil.SINGLE_INTERNATIONAL_PREFIX_,O)&&(x=O),n=this.getRegionCodeForCountryCode(S),n=this.getMetadataForRegionOrCallingCode_(S,n),D=this.formatNsn_(D,n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),v=this.maybeGetFormattedExtension_(v,n,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),0<x.length?x+" "+S+" "+D+v:this.prefixNumberWithCountryCallingCode_(S,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL,D,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.formatInOriginalFormat=function(v,x){if(v.hasRawInput()&&!this.hasFormattingPatternForNumber_(v))return v.getRawInputOrDefault();if(!v.hasCountryCodeSource())return this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL);switch(v.getCountryCodeSource()){case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN:x=this.format(v,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL);break;case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_IDD:x=this.formatOutOfCountryCallingNumber(v,x);break;case i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN:x=this.format(v,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL).substring(1);break;default:var S=this.getRegionCodeForCountryCode(v.getCountryCodeOrDefault()),D=this.getNddPrefixForRegion(S,!0);if(x=this.format(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL),null!=D&&0!=D.length&&!this.rawInputContainsNationalPrefix_(v.getRawInputOrDefault(),D,S)&&(S=this.getMetadataForRegion(S),D=this.getNationalSignificantNumber(v),null!=(S=this.chooseFormattingPatternForNumber_(S.numberFormatArray(),D)))){var n=(D=S.getNationalPrefixFormattingRuleOrDefault()).indexOf("$1");0>=n||(D=D.substring(0,n),0!=(D=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(D)).length&&((x=S.clone()).clearNationalPrefixFormattingRule(),x=this.formatByPattern(v,i18n.phonenumbers.PhoneNumberFormat.NATIONAL,[x])))}}return v=v.getRawInputOrDefault(),null!=x&&0<v.length&&(S=i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly(x))!=(D=i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly(v))&&(x=v),x},i18n.phonenumbers.PhoneNumberUtil.prototype.rawInputContainsNationalPrefix_=function(v,x,S){if(v=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(v),goog.string.startsWith(v,x))try{return this.isValidNumber(this.parse(v.substring(x.length),S))}catch{}return!1},i18n.phonenumbers.PhoneNumberUtil.prototype.hasFormattingPatternForNumber_=function(v){var x=v.getCountryCodeOrDefault(),S=this.getRegionCodeForCountryCode(x);return null!=(x=this.getMetadataForRegionOrCallingCode_(x,S))&&(v=this.getNationalSignificantNumber(v),null!=this.chooseFormattingPatternForNumber_(x.numberFormatArray(),v))},i18n.phonenumbers.PhoneNumberUtil.prototype.formatOutOfCountryKeepingAlphaChars=function(v,x){var S=v.getRawInputOrDefault();if(0==S.length)return this.formatOutOfCountryCallingNumber(v,x);var D=v.getCountryCodeOrDefault();if(!this.hasValidCountryCallingCode_(D))return S;S=i18n.phonenumbers.PhoneNumberUtil.normalizeHelper_(S,i18n.phonenumbers.PhoneNumberUtil.ALL_PLUS_NUMBER_GROUPING_SYMBOLS_,!0);var n=this.getNationalSignificantNumber(v);if(3<n.length){var O=S.indexOf(n.substring(0,3));-1!=O&&(S=S.substring(O))}if(O=this.getMetadataForRegion(x),D==i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_){if(this.isNANPACountry(x))return D+" "+S}else if(null!=O&&D==this.getCountryCodeForValidRegion_(x))return null==(D=this.chooseFormattingPatternForNumber_(O.numberFormatArray(),n))?S:((D=D.clone()).setPattern("(\\d+)(.*)"),D.setFormat("$1$2"),this.formatNsnUsingPattern_(S,D,i18n.phonenumbers.PhoneNumberFormat.NATIONAL));return x="",null!=O&&(x=O.getInternationalPrefixOrDefault(),x=i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(i18n.phonenumbers.PhoneNumberUtil.SINGLE_INTERNATIONAL_PREFIX_,x)?x:O.getPreferredInternationalPrefixOrDefault()),O=this.getRegionCodeForCountryCode(D),O=this.getMetadataForRegionOrCallingCode_(D,O),v=this.maybeGetFormattedExtension_(v,O,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL),0<x.length?x+" "+D+" "+S+v:this.prefixNumberWithCountryCallingCode_(D,i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL,S,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.getNationalSignificantNumber=function(v){if(!v.hasNationalNumber())return"";var x=""+v.getNationalNumber();return v.hasItalianLeadingZero()&&v.getItalianLeadingZero()&&0<v.getNumberOfLeadingZerosOrDefault()?Array(v.getNumberOfLeadingZerosOrDefault()+1).join("0")+x:x},i18n.phonenumbers.PhoneNumberUtil.prototype.prefixNumberWithCountryCallingCode_=function(v,x,S,D){switch(x){case i18n.phonenumbers.PhoneNumberFormat.E164:return i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+v+S+D;case i18n.phonenumbers.PhoneNumberFormat.INTERNATIONAL:return i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+v+" "+S+D;case i18n.phonenumbers.PhoneNumberFormat.RFC3966:return i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_+i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+v+"-"+S+D;default:return S+D}},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNsn_=function(v,x,S,D){return x=0==x.intlNumberFormatArray().length||S==i18n.phonenumbers.PhoneNumberFormat.NATIONAL?x.numberFormatArray():x.intlNumberFormatArray(),null==(x=this.chooseFormattingPatternForNumber_(x,v))?v:this.formatNsnUsingPattern_(v,x,S,D)},i18n.phonenumbers.PhoneNumberUtil.prototype.chooseFormattingPatternForNumber_=function(v,x){for(var S,D=v.length,n=0;n<D;++n){var O=(S=v[n]).leadingDigitsPatternCount();if((0==O||0==x.search(S.getLeadingDigitsPattern(O-1)))&&(O=new RegExp(S.getPattern()),i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(O,x)))return S}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.formatNsnUsingPattern_=function(v,x,S,D){var n=x.getFormatOrDefault(),O=new RegExp(x.getPattern()),R=x.getDomesticCarrierCodeFormattingRuleOrDefault();return S==i18n.phonenumbers.PhoneNumberFormat.NATIONAL&&null!=D&&0<D.length&&0<R.length?(x=R.replace(i18n.phonenumbers.PhoneNumberUtil.CC_PATTERN_,D),n=n.replace(i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_,x),v=v.replace(O,n)):(x=x.getNationalPrefixFormattingRuleOrDefault(),v=v.replace(O,S==i18n.phonenumbers.PhoneNumberFormat.NATIONAL&&null!=x&&0<x.length?n.replace(i18n.phonenumbers.PhoneNumberUtil.FIRST_GROUP_PATTERN_,x):n)),S==i18n.phonenumbers.PhoneNumberFormat.RFC3966&&(v=(v=v.replace(new RegExp("^"+i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_),"")).replace(new RegExp(i18n.phonenumbers.PhoneNumberUtil.SEPARATOR_PATTERN_,"g"),"-")),v},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumber=function(v){return this.getExampleNumberForType(v,i18n.phonenumbers.PhoneNumberType.FIXED_LINE)},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumberForType=function(v,x){if(!this.isValidRegionCode_(v))return null;x=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(this.getMetadataForRegion(v),x);try{if(x.hasExampleNumber())return this.parse(x.getExampleNumber(),v)}catch{}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.getExampleNumberForNonGeoEntity=function(v){var x=this.getMetadataForNonGeographicalRegion(v);if(null!=x&&void 0!==(x=[x.getMobile(),x.getTollFree(),x.getSharedCost(),x.getVoip(),x.getVoicemail(),x.getUan(),x.getPremiumRate()].find(function(S,D){return S.hasExampleNumber()})))try{return this.parse("+"+v+x.getExampleNumber(),"ZZ")}catch{}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeGetFormattedExtension_=function(v,x,S){return v.hasExtension()&&0!=v.getExtension().length?S==i18n.phonenumbers.PhoneNumberFormat.RFC3966?i18n.phonenumbers.PhoneNumberUtil.RFC3966_EXTN_PREFIX_+v.getExtension():x.hasPreferredExtnPrefix()?x.getPreferredExtnPrefix()+v.getExtensionOrDefault():i18n.phonenumbers.PhoneNumberUtil.DEFAULT_EXTN_PREFIX_+v.getExtensionOrDefault():""},i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_=function(v,x){switch(x){case i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE:return v.getPremiumRate();case i18n.phonenumbers.PhoneNumberType.TOLL_FREE:return v.getTollFree();case i18n.phonenumbers.PhoneNumberType.MOBILE:return v.getMobile();case i18n.phonenumbers.PhoneNumberType.FIXED_LINE:case i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE:return v.getFixedLine();case i18n.phonenumbers.PhoneNumberType.SHARED_COST:return v.getSharedCost();case i18n.phonenumbers.PhoneNumberType.VOIP:return v.getVoip();case i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER:return v.getPersonalNumber();case i18n.phonenumbers.PhoneNumberType.PAGER:return v.getPager();case i18n.phonenumbers.PhoneNumberType.UAN:return v.getUan();case i18n.phonenumbers.PhoneNumberType.VOICEMAIL:return v.getVoicemail();default:return v.getGeneralDesc()}},i18n.phonenumbers.PhoneNumberUtil.prototype.getNumberType=function(v){var x=this.getRegionCodeForNumber(v);return null==(x=this.getMetadataForRegionOrCallingCode_(v.getCountryCodeOrDefault(),x))?i18n.phonenumbers.PhoneNumberType.UNKNOWN:(v=this.getNationalSignificantNumber(v),this.getNumberTypeHelper_(v,x))},i18n.phonenumbers.PhoneNumberUtil.prototype.getNumberTypeHelper_=function(v,x){return this.isNumberMatchingDesc_(v,x.getGeneralDesc())?this.isNumberMatchingDesc_(v,x.getPremiumRate())?i18n.phonenumbers.PhoneNumberType.PREMIUM_RATE:this.isNumberMatchingDesc_(v,x.getTollFree())?i18n.phonenumbers.PhoneNumberType.TOLL_FREE:this.isNumberMatchingDesc_(v,x.getSharedCost())?i18n.phonenumbers.PhoneNumberType.SHARED_COST:this.isNumberMatchingDesc_(v,x.getVoip())?i18n.phonenumbers.PhoneNumberType.VOIP:this.isNumberMatchingDesc_(v,x.getPersonalNumber())?i18n.phonenumbers.PhoneNumberType.PERSONAL_NUMBER:this.isNumberMatchingDesc_(v,x.getPager())?i18n.phonenumbers.PhoneNumberType.PAGER:this.isNumberMatchingDesc_(v,x.getUan())?i18n.phonenumbers.PhoneNumberType.UAN:this.isNumberMatchingDesc_(v,x.getVoicemail())?i18n.phonenumbers.PhoneNumberType.VOICEMAIL:this.isNumberMatchingDesc_(v,x.getFixedLine())?x.getSameMobileAndFixedLinePattern()||this.isNumberMatchingDesc_(v,x.getMobile())?i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE:i18n.phonenumbers.PhoneNumberType.FIXED_LINE:!x.getSameMobileAndFixedLinePattern()&&this.isNumberMatchingDesc_(v,x.getMobile())?i18n.phonenumbers.PhoneNumberType.MOBILE:i18n.phonenumbers.PhoneNumberType.UNKNOWN:i18n.phonenumbers.PhoneNumberType.UNKNOWN},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForRegion=function(v){if(null==v)return null;v=v.toUpperCase();var x=this.regionToMetadataMap[v];if(null==x){x=new goog.proto2.PbLiteSerializer;var S=i18n.phonenumbers.metadata.countryToMetadata[v];if(null==S)return null;x=x.deserialize(i18n.phonenumbers.PhoneMetadata.getDescriptor(),S),this.regionToMetadataMap[v]=x}return x},i18n.phonenumbers.PhoneNumberUtil.prototype.getMetadataForNonGeographicalRegion=function(v){return this.getMetadataForRegion(""+v)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberMatchingDesc_=function(v,x){var S=v.length;return!(0<x.possibleLengthCount()&&-1==x.possibleLengthArray().indexOf(S))&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(x.getNationalNumberPatternOrDefault(),v)},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidNumber=function(v){var x=this.getRegionCodeForNumber(v);return this.isValidNumberForRegion(v,x)},i18n.phonenumbers.PhoneNumberUtil.prototype.isValidNumberForRegion=function(v,x){var S=v.getCountryCodeOrDefault(),D=this.getMetadataForRegionOrCallingCode_(S,x);return null!=D&&(i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY==x||S==this.getCountryCodeForValidRegion_(x))&&(v=this.getNationalSignificantNumber(v),this.getNumberTypeHelper_(v,D)!=i18n.phonenumbers.PhoneNumberType.UNKNOWN)},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForNumber=function(v){if(null==v)return null;var x=v.getCountryCodeOrDefault();return null==(x=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[x])?null:1==x.length?x[0]:this.getRegionCodeForNumberFromRegionList_(v,x)},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForNumberFromRegionList_=function(v,x){v=this.getNationalSignificantNumber(v);for(var S,D=x.length,n=0;n<D;n++){var O=this.getMetadataForRegion(S=x[n]);if(O.hasLeadingDigits()){if(0==v.search(O.getLeadingDigits()))return S}else if(this.getNumberTypeHelper_(v,O)!=i18n.phonenumbers.PhoneNumberType.UNKNOWN)return S}return null},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodeForCountryCode=function(v){return null==(v=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[v])?i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_:v[0]},i18n.phonenumbers.PhoneNumberUtil.prototype.getRegionCodesForCountryCode=function(v){return(v=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[v])??[]},i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForRegion=function(v){return this.isValidRegionCode_(v)?this.getCountryCodeForValidRegion_(v):0},i18n.phonenumbers.PhoneNumberUtil.prototype.getCountryCodeForValidRegion_=function(v){var x=this.getMetadataForRegion(v);if(null==x)throw Error("Invalid region code: "+v);return x.getCountryCodeOrDefault()},i18n.phonenumbers.PhoneNumberUtil.prototype.getNddPrefixForRegion=function(v,x){return null==(v=this.getMetadataForRegion(v))||0==(v=v.getNationalPrefixOrDefault()).length?null:(x&&(v=v.replace("~","")),v)},i18n.phonenumbers.PhoneNumberUtil.prototype.isNANPACountry=function(v){return null!=v&&i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[i18n.phonenumbers.PhoneNumberUtil.NANPA_COUNTRY_CODE_].includes(v.toUpperCase())},i18n.phonenumbers.PhoneNumberUtil.prototype.isAlphaNumber=function(v){return!!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(v)&&(v=new goog.string.StringBuffer(v),this.maybeStripExtension(v),i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(i18n.phonenumbers.PhoneNumberUtil.VALID_ALPHA_PHONE_PATTERN_,v.toString()))},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumber=function(v){return(v=this.isPossibleNumberWithReason(v))==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE||v==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE_LOCAL_ONLY},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberForType=function(v,x){return(v=this.isPossibleNumberForTypeWithReason(v,x))==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE||v==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE_LOCAL_ONLY},i18n.phonenumbers.PhoneNumberUtil.prototype.testNumberLength_=function(v,x){return this.testNumberLengthForType_(v,x,i18n.phonenumbers.PhoneNumberType.UNKNOWN)},i18n.phonenumbers.PhoneNumberUtil.prototype.testNumberLengthForType_=function(v,x,S){var D=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(x,S),n=0==D.possibleLengthCount()?x.getGeneralDesc().possibleLengthArray():D.possibleLengthArray();if(D=D.possibleLengthLocalOnlyArray(),S==i18n.phonenumbers.PhoneNumberType.FIXED_LINE_OR_MOBILE){if(!i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(x,i18n.phonenumbers.PhoneNumberType.FIXED_LINE)))return this.testNumberLengthForType_(v,x,i18n.phonenumbers.PhoneNumberType.MOBILE);S=i18n.phonenumbers.PhoneNumberUtil.getNumberDescByType_(x,i18n.phonenumbers.PhoneNumberType.MOBILE),i18n.phonenumbers.PhoneNumberUtil.descHasPossibleNumberData_(S)&&((n=n.concat(0==S.possibleLengthCount()?x.getGeneralDesc().possibleLengthArray():S.possibleLengthArray())).sort(),0==D.length?D=S.possibleLengthLocalOnlyArray():(D=D.concat(S.possibleLengthLocalOnlyArray())).sort())}return-1==n[0]?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_LENGTH:-1<D.indexOf(v=v.length)?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE_LOCAL_ONLY:(x=n[0])==v?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE:x>v?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT:n[n.length-1]<v?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_LONG:-1<n.indexOf(v,1)?i18n.phonenumbers.PhoneNumberUtil.ValidationResult.IS_POSSIBLE:i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_LENGTH},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberWithReason=function(v){return this.isPossibleNumberForTypeWithReason(v,i18n.phonenumbers.PhoneNumberType.UNKNOWN)},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberForTypeWithReason=function(v,x){var S=this.getNationalSignificantNumber(v);if(v=v.getCountryCodeOrDefault(),!this.hasValidCountryCallingCode_(v))return i18n.phonenumbers.PhoneNumberUtil.ValidationResult.INVALID_COUNTRY_CODE;var D=this.getRegionCodeForCountryCode(v);return v=this.getMetadataForRegionOrCallingCode_(v,D),this.testNumberLengthForType_(S,v,x)},i18n.phonenumbers.PhoneNumberUtil.prototype.isPossibleNumberString=function(v,x){try{return this.isPossibleNumber(this.parse(v,x))}catch{return!1}},i18n.phonenumbers.PhoneNumberUtil.prototype.truncateTooLongNumber=function(v){if(this.isValidNumber(v))return!0;var x=v.clone(),S=v.getNationalNumberOrDefault();do{if(S=Math.floor(S/10),x.setNationalNumber(S),0==S||this.isPossibleNumberWithReason(x)==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_SHORT)return!1}while(!this.isValidNumber(x));return v.setNationalNumber(S),!0},i18n.phonenumbers.PhoneNumberUtil.prototype.extractCountryCode=function(v,x){if(0==(v=v.toString()).length||"0"==v.charAt(0))return 0;for(var S,D=v.length,n=1;n<=i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_COUNTRY_CODE_&&n<=D;++n)if((S=parseInt(v.substring(0,n),10))in i18n.phonenumbers.metadata.countryCodeToRegionCodeMap)return x.append(v.substring(n)),S;return 0},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeExtractCountryCode=function(v,x,S,D,n){if(0==v.length)return 0;var O;if(v=new goog.string.StringBuffer(v),null!=x&&(O=x.getInternationalPrefix()),null==O&&(O="NonMatch"),O=this.maybeStripInternationalPrefixAndNormalize(v,O),D&&n.setCountryCodeSource(O),O!=i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY){if(v.getLength()<=i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_)throw Error(i18n.phonenumbers.Error.TOO_SHORT_AFTER_IDD);if(0!=(x=this.extractCountryCode(v,S)))return n.setCountryCode(x),x;throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE)}if(null!=x){var R=""+(O=x.getCountryCodeOrDefault()),U=v.toString();if(goog.string.startsWith(U,R)&&(R=new goog.string.StringBuffer(U.substring(R.length)),U=x.getGeneralDesc(),U=new RegExp(U.getNationalNumberPatternOrDefault()),this.maybeStripNationalPrefixAndCarrierCode(R,x,null),R=R.toString(),!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(U,v.toString())&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(U,R)||this.testNumberLength_(v.toString(),x)==i18n.phonenumbers.PhoneNumberUtil.ValidationResult.TOO_LONG))return S.append(R),D&&n.setCountryCodeSource(i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITHOUT_PLUS_SIGN),n.setCountryCode(O),O}return n.setCountryCode(0),0},i18n.phonenumbers.PhoneNumberUtil.prototype.parsePrefixAsIdd_=function(v,x){var S=x.toString();if(0==S.search(v)){v=S.match(v)[0].length;var D=S.substring(v).match(i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN);return!(D&&null!=D[1]&&0<D[1].length&&"0"==i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(D[1])||(x.clear(),x.append(S.substring(v)),0))}return!1},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripInternationalPrefixAndNormalize=function(v,x){var S=v.toString();return 0==S.length?i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY:i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(S)?(S=S.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN,""),v.clear(),v.append(i18n.phonenumbers.PhoneNumberUtil.normalize(S)),i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_PLUS_SIGN):(x=new RegExp(x),i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(v),this.parsePrefixAsIdd_(x,v)?i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_NUMBER_WITH_IDD:i18n.phonenumbers.PhoneNumber.CountryCodeSource.FROM_DEFAULT_COUNTRY)},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripNationalPrefixAndCarrierCode=function(v,x,S){var D=v.toString(),n=D.length,O=x.getNationalPrefixForParsing();if(0==n||null==O||0==O.length)return!1;var R=new RegExp("^(?:"+O+")");if(n=R.exec(D)){O=new RegExp(x.getGeneralDesc().getNationalNumberPatternOrDefault());var U=i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(O,D),q=n.length-1;if(null==(x=x.getNationalPrefixTransformRule())||0==x.length||null==n[q]||0==n[q].length){if(U&&!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(O,D.substring(n[0].length)))return!1;null!=S&&0<q&&null!=n[q]&&S.append(n[1]),v.set(D.substring(n[0].length))}else{if(D=D.replace(R,x),U&&!i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(O,D))return!1;null!=S&&0<q&&S.append(n[1]),v.set(D)}return!0}return!1},i18n.phonenumbers.PhoneNumberUtil.prototype.maybeStripExtension=function(v){var x=v.toString(),S=x.search(i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_);if(0<=S&&i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(x.substring(0,S)))for(var D=x.match(i18n.phonenumbers.PhoneNumberUtil.EXTN_PATTERN_),n=D.length,O=1;O<n;++O)if(null!=D[O]&&0<D[O].length)return v.clear(),v.append(x.substring(0,S)),D[O];return""},i18n.phonenumbers.PhoneNumberUtil.prototype.checkRegionForParsing_=function(v,x){return this.isValidRegionCode_(x)||null!=v&&0<v.length&&i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(v)},i18n.phonenumbers.PhoneNumberUtil.prototype.parse=function(v,x){return this.parseHelper_(v,x,!1,!0)},i18n.phonenumbers.PhoneNumberUtil.prototype.parseAndKeepRawInput=function(v,x){if(!this.isValidRegionCode_(x)&&0<v.length&&v.charAt(0)!=i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN)throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE);return this.parseHelper_(v,x,!0,!0)},i18n.phonenumbers.PhoneNumberUtil.setItalianLeadingZerosForPhoneNumber_=function(v,x){if(1<v.length&&"0"==v.charAt(0)){x.setItalianLeadingZero(!0);for(var S=1;S<v.length-1&&"0"==v.charAt(S);)S++;1!=S&&x.setNumberOfLeadingZeros(S)}},i18n.phonenumbers.PhoneNumberUtil.prototype.parseHelper_=function(v,x,S,D){if(null==v)throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(v.length>i18n.phonenumbers.PhoneNumberUtil.MAX_INPUT_STRING_LENGTH_)throw Error(i18n.phonenumbers.Error.TOO_LONG);var n=new goog.string.StringBuffer;if(this.buildNationalNumberForParsing_(v,n),!i18n.phonenumbers.PhoneNumberUtil.isViablePhoneNumber(n.toString()))throw Error(i18n.phonenumbers.Error.NOT_A_NUMBER);if(D&&!this.checkRegionForParsing_(n.toString(),x))throw Error(i18n.phonenumbers.Error.INVALID_COUNTRY_CODE);D=new i18n.phonenumbers.PhoneNumber,S&&D.setRawInput(v),0<(v=this.maybeStripExtension(n)).length&&D.setExtension(v);var O=this.getMetadataForRegion(x);v=new goog.string.StringBuffer;var R=0,U=n.toString();try{R=this.maybeExtractCountryCode(U,O,v,S,D)}catch(q){if(q.message!=i18n.phonenumbers.Error.INVALID_COUNTRY_CODE||!i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(U))throw q;if(U=U.replace(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN,""),0==(R=this.maybeExtractCountryCode(U,O,v,S,D)))throw q}if(0!=R?(n=this.getRegionCodeForCountryCode(R))!=x&&(O=this.getMetadataForRegionOrCallingCode_(R,n)):(i18n.phonenumbers.PhoneNumberUtil.normalizeSB_(n),v.append(n.toString()),null!=x?(R=O.getCountryCodeOrDefault(),D.setCountryCode(R)):S&&D.clearCountryCodeSource()),v.getLength()<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_||(null!=O&&(x=new goog.string.StringBuffer,n=new goog.string.StringBuffer(v.toString()),this.maybeStripNationalPrefixAndCarrierCode(n,O,x),(O=this.testNumberLength_(n.toString(),O))!=(R=i18n.phonenumbers.PhoneNumberUtil.ValidationResult).TOO_SHORT&&O!=R.IS_POSSIBLE_LOCAL_ONLY&&O!=R.INVALID_LENGTH&&(v=n,S&&0<x.toString().length&&D.setPreferredDomesticCarrierCode(x.toString()))),S=v.toString(),(v=S.length)<i18n.phonenumbers.PhoneNumberUtil.MIN_LENGTH_FOR_NSN_))throw Error(i18n.phonenumbers.Error.TOO_SHORT_NSN);if(v>i18n.phonenumbers.PhoneNumberUtil.MAX_LENGTH_FOR_NSN_)throw Error(i18n.phonenumbers.Error.TOO_LONG);return i18n.phonenumbers.PhoneNumberUtil.setItalianLeadingZerosForPhoneNumber_(S,D),D.setNationalNumber(parseInt(S,10)),D},i18n.phonenumbers.PhoneNumberUtil.prototype.buildNationalNumberForParsing_=function(v,x){var S=v.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_);if(0<=S){var D=S+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PHONE_CONTEXT_.length;if(v.charAt(D)==i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN){var n=v.indexOf(";",D);x.append(0<n?v.substring(D,n):v.substring(D))}D=v.indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_),x.append(v.substring(0<=D?D+i18n.phonenumbers.PhoneNumberUtil.RFC3966_PREFIX_.length:0,S))}else x.append(i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber(v));0<(S=(v=x.toString()).indexOf(i18n.phonenumbers.PhoneNumberUtil.RFC3966_ISDN_SUBADDRESS_))&&(x.clear(),x.append(v.substring(0,S)))},i18n.phonenumbers.PhoneNumberUtil.copyCoreFieldsOnly_=function(v){var x=new i18n.phonenumbers.PhoneNumber;return x.setCountryCode(v.getCountryCodeOrDefault()),x.setNationalNumber(v.getNationalNumberOrDefault()),0<v.getExtensionOrDefault().length&&x.setExtension(v.getExtensionOrDefault()),v.getItalianLeadingZero()&&(x.setItalianLeadingZero(!0),x.setNumberOfLeadingZeros(v.getNumberOfLeadingZerosOrDefault())),x},i18n.phonenumbers.PhoneNumberUtil.prototype.isNumberMatch=function(v,x){if("string"==typeof v)try{var S=this.parse(v,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_)}catch(O){if(O.message!=i18n.phonenumbers.Error.INVALID_COUNTRY_CODE)return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER;if("string"!=typeof x){var D=this.getRegionCodeForCountryCode(x.getCountryCodeOrDefault());if(D!=i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_){try{S=this.parse(v,D)}catch{return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER}var n=this.isNumberMatch(S,x);return n==i18n.phonenumbers.PhoneNumberUtil.MatchType.EXACT_MATCH?i18n.phonenumbers.PhoneNumberUtil.MatchType.NSN_MATCH:n}}try{S=this.parseHelper_(v,null,!1,!1)}catch{return i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER}}else S=v.clone();if("string"==typeof x)try{return n=this.parse(x,i18n.phonenumbers.PhoneNumberUtil.UNKNOWN_REGION_),this.isNumberMatch(v,n)}catch(O){return O.message!=i18n.phonenumbers.Error.INVALID_COUNTRY_CODE?i18n.phonenumbers.PhoneNumberUtil.MatchType.NOT_A_NUMBER:this.isNumberMatch(x,S)}else n=x.clone();return v=i18n.phonenumbers.PhoneNumberUtil.copyCoreFieldsOnly_(S),n=i18n.phonenumbers.PhoneNumberUtil.copyCoreFieldsOnly_(n),v.hasExtension()&&n.hasExtension()&&v.getExtension()!=n.getExtension()?i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH:(x=v.getCountryCodeOrDefault(),S=n.getCountryCodeOrDefault(),0!=x&&0!=S?v.equals(n)?i18n.phonenumbers.PhoneNumberUtil.MatchType.EXACT_MATCH:x==S&&this.isNationalNumberSuffixOfTheOther_(v,n)?i18n.phonenumbers.PhoneNumberUtil.MatchType.SHORT_NSN_MATCH:i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH:(v.setCountryCode(0),n.setCountryCode(0),v.equals(n)?i18n.phonenumbers.PhoneNumberUtil.MatchType.NSN_MATCH:this.isNationalNumberSuffixOfTheOther_(v,n)?i18n.phonenumbers.PhoneNumberUtil.MatchType.SHORT_NSN_MATCH:i18n.phonenumbers.PhoneNumberUtil.MatchType.NO_MATCH))},i18n.phonenumbers.PhoneNumberUtil.prototype.isNationalNumberSuffixOfTheOther_=function(v,x){return v=""+v.getNationalNumber(),x=""+x.getNationalNumber(),goog.string.endsWith(v,x)||goog.string.endsWith(x,v)},i18n.phonenumbers.PhoneNumberUtil.prototype.canBeInternationallyDialled=function(v){var x=this.getMetadataForRegion(this.getRegionCodeForNumber(v));return null==x||(v=this.getNationalSignificantNumber(v),!this.isNumberMatchingDesc_(v,x.getNoInternationalDialling()))},i18n.phonenumbers.PhoneNumberUtil.matchesEntirely=function(v,x){return!(!(v=x.match("string"==typeof v?"^(?:"+v+")$":v))||v[0].length!=x.length)},i18n.phonenumbers.PhoneNumberUtil.matchesPrefix=function(v,x){return!(!(v=x.match("string"==typeof v?"^(?:"+v+")":v))||!goog.string.startsWith(x,v[0]))},i18n.phonenumbers.shortnumbermetadata={},i18n.phonenumbers.shortnumbermetadata.countryCodeToRegionCodeMap={0:"AC AD AE AF AG AI AL AM AO AR AS AT AU AW AX AZ BA BB BD BE BF BG BH BI BJ BL BM BN BO BQ BR BS BT BW BY BZ CA CC CD CF CG CH CI CK CL CM CN CO CR CU CV CW CX CY CZ DE DJ DK DM DO DZ EC EE EG EH ER ES ET FI FJ FK FM FO FR GA GB GD GE GF GG GH GI GL GM GN GP GR GT GU GW GY HK HN HR HT HU ID IE IL IM IN IQ IR IS IT JE JM JO JP KE KG KH KI KM KN KP KR KW KY KZ LA LB LC LI LK LR LS LT LU LV LY MA MC MD ME MF MG MH MK ML MM MN MO MP MQ MR MS MT MU MV MW MX MY MZ NA NC NE NF NG NI NL NO NP NR NU NZ OM PA PE PF PG PH PK PL PM PR PS PT PW PY QA RE RO RS RU RW SA SB SC SD SE SG SH SI SJ SK SL SM SN SO SR SS ST SV SX SY SZ TC TD TG TH TJ TL TM TN TO TR TT TV TW TZ UA UG US UY UZ VA VC VE VG VI VN VU WF WS XK YE YT ZA ZM ZW".split(" ")},i18n.phonenumbers.shortnumbermetadata.countryToMetadata={AC:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"AC",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"9(?:11|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],AD:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[0268]",,,,"110"],[,,,,,,,,,[-1]],,,,"AD",,,,,,,,,,,,,,,,,,[,,"11[0268]",,,,"110"],,[,,"11[0268]",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],AE:[,[,,"[149]\\d{2,3}",,,,,,,[3,4]],,,[,,"112|99[7-9]",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"AE",,,,,,,,,,,,,,,,,,[,,"112|99[7-9]",,,,"112",,,[3]],,[,,"112|445[16]|99[7-9]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"445\\d",,,,"4450",,,[4]]],AF:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"1(?:0[02]|19)",,,,"100",,,[3]],[,,,,,,,,,[-1]],,,,"AF",,,,,,,,,,,,,,,,,,[,,"1(?:0[02]|19)",,,,"100",,,[3]],,[,,"1(?:0[02]|19)|40404",,,,"100"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],AG:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"AG",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"176|9(?:11|88|99)",,,,"176"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],AI:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"AI",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"176|9(?:11|88)",,,,"176"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],AL:[,[,,"[15]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1(?:2|6[01]\\d\\d)|2[7-9]|3[15]|41)",,,,"112",,,[3,6]],[,,"5\\d{4}",,,,"50000",,,[5]],,,,"AL",,,,,,,,,,,,,,,,,,[,,"1(?:12|2[7-9])",,,,"112",,,[3]],,[,,"1(?:1(?:6(?:000|1(?:06|11|23))|8\\d\\d)|65\\d|89[12])|5\\d{4}|1(?:[1349]\\d|2[2-9])",,,,"110"],[,,,,,,,,,[-1]],[,,"123",,,,"123",,,[3]],,[,,"131|5\\d{4}",,,,"131",,,[3,5]]],AM:[,[,,"[148]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"10[1-3]",,,,"101",,,[3]],[,,,,,,,,,[-1]],,,,"AM",,,,,,,,,,,,,,,,,,[,,"10[1-3]",,,,"101",,,[3]],,[,,"(?:1|8[1-7])\\d\\d|40404",,,,"100"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],AO:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[235]",,,,"112"],[,,,,,,,,,[-1]],,,,"AO",,,,,,,,,,,,,,,,,,[,,"11[235]",,,,"112"],,[,,"11[235]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],AR:[,[,,"[01389]\\d{1,4}",,,,,,,[2,3,4,5]],,,[,,"000|1(?:0[0-35-7]|1[0245]|2[015]|3[47]|4[478]|9)|911",,,,"19",,,[2,3]],[,,,,,,,,,[-1]],,,,"AR",,,,,,,,,,,,,,,,,,[,,"10[017]|911",,,,"100",,,[3]],,[,,"000|1(?:0[0-35-7]|1[02-5]|2[015]|3[47]|4[478]|9)|3372|89338|911",,,,"19"],[,,,,,,,,,[-1]],[,,"893\\d\\d",,,,"89300",,,[5]],,[,,"(?:337|893\\d)\\d",,,,"3370",,,[4,5]]],AS:[,[,,"[49]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"9(?:11|88)",,,,"911",,,[3]],[,,,,,,,,,[-1]],,,,"AS",,,,,,,,,,,,,,,,,,[,,"911",,,,"911",,,[3]],,[,,"40404|9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"404\\d\\d",,,,"40400",,,[5]]],AT:[,[,,"[168]\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"1(?:12|2[0238]|3[03]|4[0-247])|1(?:16\\d\\d|4[58])\\d",,,,"112"],[,,,,,,,,,[-1]],,,,"AT",,,,,,,,,,,,,,,,,,[,,"1(?:[12]2|33|44)",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:00[06]|1(?:17|23)))|2[0238]|3[03]|4(?:[0-247]|5[05]|84))|(?:61|8108[1-3])0",,,,"112"],[,,,,,,,,,[-1]],[,,"610|810\\d{3}",,,,"610",,,[3,6]],,[,,,,,,,,,[-1]]],AU:[,[,,"[0-27]\\d{2,7}",,,,,,,[3,4,5,6,7,8]],,,[,,"000|1(?:06|12|258885|55\\d)|733",,,,"000",,,[3,4,7]],[,,"1(?:2(?:34|456)|9\\d{4,6})",,,,"1234",,,[4,5,6,7,8]],,,,"AU",,,,,,,,,,,,,,,,,,[,,"000|1(?:06|12)",,,,"000",,,[3]],,[,,"000|1(?:06|1(?:00|2|9[46])|2(?:014[1-3]|[23]\\d|(?:4|5\\d)\\d{2,3}|68[689]|72(?:20|3\\d\\d)|8(?:[013-9]\\d|2))|555|9\\d{4,6})|225|7(?:33|67)",,,,"000"],[,,"1(?:1[09]\\d|24733)|225|767",,,,"225",,,[3,4,6]],[,,"1(?:258885|55\\d)",,,,"1550",,,[4,7]],,[,,"19\\d{4,6}",,,,"190000",,,[6,7,8]]],AW:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"100|911",,,,"100"],[,,,,,,,,,[-1]],,,,"AW",,,,,,,,,,,,,,,,,,[,,"100|911",,,,"100"],,[,,"1(?:00|18|76)|91[13]",,,,"100"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],AX:[,[,,"[17]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"112",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"AX",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"112|75[12]\\d\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],AZ:[,[,,"[148]\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:0[1-3]|12)",,,,"101",,,[3]],[,,,,,,,,,[-1]],,,,"AZ",,,,,,,,,,,,,,,,,,[,,"1(?:0[1-3]|12)",,,,"101",,,[3]],,[,,"1(?:0[1-3]|12)|(?:404|880)0",,,,"101"],[,,,,,,,,,[-1]],[,,"(?:404|880)\\d",,,,"4040",,,[4]],,[,,"(?:404|880)\\d",,,,"4040",,,[4]]],BA:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:16\\d{3}|2[2-4])",,,,"122",,,[3,6]],[,,,,,,,,,[-1]],,,,"BA",,,,,,,,,,,,,,,,,,[,,"12[2-4]",,,,"122",,,[3]],,[,,"1(?:16(?:00[06]|1(?:1[17]|23))|2(?:0[0-7]|[2-5]|6[0-26])|(?:[3-5]|7\\d)\\d\\d)|1(?:18|2[78])\\d\\d?",,,,"122"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BB:[,[,,"[2-689]\\d\\d",,,,,,,[3]],,,[,,"988|[2359]11",,,,"211"],[,,,,,,,,,[-1]],,,,"BB",,,,,,,,,,,,,,,,,,[,,"[2359]11",,,,"211"],,[,,"988|[2-689]11",,,,"211"],[,,,,,,,,,[-1]],[,,"[468]11",,,,"411"],,[,,,,,,,,,[-1]]],BD:[,[,,"[1579]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"10[0-26]|[19]99",,,,"100",,,[3]],[,,,,,,,,,[-1]],,,,"BD",,,,,,,,,,,,,,,,,,[,,"10[0-2]|[19]99",,,,"100",,,[3]],,[,,"1(?:0(?:[0-369]|5[1-4]|7[0-4]|8[0-29])|1[16-9]|2(?:[134]|2[0-5])|3(?:1\\d?|6[3-6])|5[2-9])|5012|786|9594|[19]99|1(?:0(?:50|6\\d)|33|4(?:0|1\\d))\\d",,,,"100"],[,,,,,,,,,[-1]],[,,"1(?:11|2[13])|(?:501|959)\\d|786",,,,"111",,,[3,4]],,[,,"959\\d",,,,"9590",,,[4]]],BE:[,[,,"[1-9]\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"1(?:0[0-35-8]|1[0269]|7(?:12|77)|813)|(?:116|8)\\d{3}",,,,"100"],[,,"1(?:2[03]|40)4|(?:1(?:[24]1|3[01])|[2-79]\\d\\d)\\d",,,,"1204",,,[4]],,,,"BE",,,,,,,,,,,,,,,,,,[,,"1(?:0[01]|12)",,,,"100",,,[3]],,[,,"1(?:0[0-8]|16117|2(?:12|3[0-24])|313|414|5(?:1[05]|5[15]|66|95)|6(?:1[167]|36|6[16])|7(?:[07][017]|1[27-9]|22|33|65)|81[39])|[2-9]\\d{3}|11[02679]|1(?:1600|45)0|1(?:[2-4]9|78)9|1[2-4]0[47]",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"[2-9]\\d{3}",,,,"2000",,,[4]]],BF:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],,,,"BF",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17"],,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BG:[,[,,"1\\d\\d(?:\\d{3})?",,,,,,,[3,6]],,,[,,"1(?:1(?:2|6\\d{3})|50|6[06])",,,,"112"],[,,,,,,,,,[-1]],,,,"BG",,,,,,,,,,,,,,,,,,[,,"1(?:12|50|6[06])",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:000|111))|50|6[06])",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BH:[,[,,"[0189]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"(?:0[167]|81)\\d{3}|[19]99",,,,"199"],[,,"9[148]\\d{3}",,,,"91000",,,[5]],,,,"BH",,,,,,,,,,,,,,,,,,[,,"[19]99",,,,"199",,,[3]],,[,,"1(?:[02]\\d|12|4[01]|51|8[18]|9[169])|99[02489]|(?:0[167]|8[158]|9[148])\\d{3}",,,,"100"],[,,,,,,,,,[-1]],[,,"0[67]\\d{3}|88000|98555",,,,"06000",,,[5]],,[,,"88000|98555",,,,"88000",,,[5]]],BI:[,[,,"[16-9]\\d{2,3}",,,,,,,[3,4]],,,[,,"11[237]|611",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"BI",,,,,,,,,,,,,,,,,,[,,"11[237]",,,,"112",,,[3]],,[,,"1(?:1\\d|5[2-9]|6[0-256])|611|7(?:10|77|979)|8[28]8|900",,,,"110"],[,,,,,,,,,[-1]],[,,"611|7(?:10|77)|888|900",,,,"611",,,[3]],,[,,"(?:71|90)0",,,,"710",,,[3]]],BJ:[,[,,"[17]\\d{2,3}",,,,,,,[3,4]],,,[,,"11[78]|7[3-5]\\d\\d",,,,"117"],[,,,,,,,,,[-1]],,,,"BJ",,,,,,,,,,,,,,,,,,[,,"11[78]",,,,"117",,,[3]],,[,,"1(?:1[78]|2[02-5]|60)|7[0-5]\\d\\d",,,,"117"],[,,,,,,,,,[-1]],[,,"12[02-5]",,,,"120",,,[3]],,[,,,,,,,,,[-1]]],BL:[,[,,"1\\d",,,,,,,[2]],,,[,,"18",,,,"18"],[,,,,,,,,,[-1]],,,,"BL",,,,,,,,,,,,,,,,,,[,,"18",,,,"18"],,[,,"18",,,,"18"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BM:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"BM",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"176|9(?:11|88)",,,,"176"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],BN:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"99[135]",,,,"991"],[,,,,,,,,,[-1]],,,,"BN",,,,,,,,,,,,,,,,,,[,,"99[135]",,,,"991"],,[,,"99[135]",,,,"991"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BO:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"11[089]",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"BO",,,,,,,,,,,,,,,,,,[,,"11[089]",,,,"110",,,[3]],,[,,"11[089]|40404",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"404\\d\\d",,,,"40400",,,[5]]],BQ:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"112|911",,,,"112"],[,,,,,,,,,[-1]],,,,"BQ",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112"],,[,,"1(?:12|76)|911",,,,"112"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],BR:[,[,,"[1-69]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:00|12|28|8[015]|9[0-47-9])|4(?:57|82\\d)|911",,,,"100",,,[3,4]],[,,,,,,,,,[-1]],,,,"BR",,,,,,,,,,,,,,,,,,[,,"1(?:12|28|9[023])|911",,,,"112",,,[3]],,[,,"1(?:0(?:[02]|3(?:1[2-579]|2[13-9]|3[124-9]|4[1-3578]|5[1-468]|6[139]|8[149]|9[168])|5[0-35-9]|6(?:0|1[0-35-8]?|2[0145]|3[0137]?|4[37-9]?|5[0-35]|6[016]?|7[137]?|8[5-8]|9[1359]))|1[25-8]|2[357-9]|3[024-68]|4[12568]|5\\d|6[0-8]|8[015]|9[0-47-9])|2(?:7(?:330|878)|85959?)|(?:32|91)1|4(?:0404?|57|828)|55555|6(?:0\\d{4}|10000)|(?:133|411)[12]",,,,"100"],[,,"102|273\\d\\d|321",,,,"102",,,[3,5]],[,,"151|(?:278|555)\\d\\d|4(?:04\\d\\d?|11\\d|57)",,,,"151",,,[3,4,5]],,[,,"285\\d{2,3}|321|40404|(?:27[38]\\d|482)\\d|6(?:0\\d|10)\\d{3}",,,,"321"]],BS:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:1[19]|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"BS",,,,,,,,,,,,,,,,,,[,,"91[19]",,,,"911"],,[,,"9(?:1[19]|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BT:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"11[023]",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"BT",,,,,,,,,,,,,,,,,,[,,"11[023]",,,,"110",,,[3]],,[,,"11[0-6]|40404",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"404\\d\\d",,,,"40400",,,[5]]],BW:[,[,,"[19]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"9(?:11|9[7-9])",,,,"911",,,[3]],[,,,,,,,,,[-1]],,,,"BW",,,,,,,,,,,,,,,,,,[,,"9(?:11|9[7-9])",,,,"911",,,[3]],,[,,"1(?:1[26]|3123)|9(?:1[14]|9[1-57-9])",,,,"112"],[,,,,,,,,,[-1]],[,,"131\\d\\d",,,,"13100",,,[5]],,[,,"131\\d\\d",,,,"13100",,,[5]]],BY:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"1(?:0[1-3]|12)",,,,"101"],[,,,,,,,,,[-1]],,,,"BY",,,,,,,,,,,,,,,,,,[,,"1(?:0[1-3]|12)",,,,"101"],,[,,"1(?:0[1-79]|1[246]|35|5[1-35]|6[89]|7[5-7]|8[58]|9[1-7])",,,,"101"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],BZ:[,[,,"9\\d\\d?",,,,,,,[2,3]],,,[,,"9(?:0|11|22|66|77|9[09])",,,,"90"],[,,,,,,,,,[-1]],,,,"BZ",,,,,,,,,,,,,,,,,,[,,"9(?:0|11|90)",,,,"90"],,[,,"9(?:0|11|22|66|77|9[09])",,,,"90"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CA:[,[,,"[1-9]\\d\\d(?:\\d\\d(?:\\d(?:\\d{2})?)?)?",,,,,,,[3,5,6,8]],,,[,,"112|988|[29]11",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"CA",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112",,,[3]],,[,,"112|30000\\d{3}|[1-35-9]\\d{4,5}|[2-8]11|9(?:11|88)",,,,"112"],[,,,,,,,,,[-1]],[,,"[235-7]11",,,,"211",,,[3]],,[,,"300\\d{5}|[1-35-9]\\d{4,5}",,,,"10000",,,[5,6,8]]],CC:[,[,,"[01]\\d\\d",,,,,,,[3]],,,[,,"000|112",,,,"000"],[,,,,,,,,,[-1]],,,,"CC",,,,,,,,,,,,,,,,,,[,,"000|112",,,,"000"],,[,,"000|112",,,,"000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CD:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"1(?:1[348]|77|88)",,,,"113",,,[3]],[,,,,,,,,,[-1]],,,,"CD",,,,,,,,,,,,,,,,,,[,,"1(?:1[348]|77|88)",,,,"113",,,[3]],,[,,"1(?:1[348]|23|77|88)|40404",,,,"113"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],CF:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[78]|22\\d)",,,,"117"],[,,,,,,,,,[-1]],,,,"CF",,,,,,,,,,,,,,,,,,[,,"1(?:1[78]|220)",,,,"117"],,[,,"1(?:1[478]|220)",,,,"114"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CG:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[178]",,,,"111"],[,,,,,,,,,[-1]],,,,"CG",,,,,,,,,,,,,,,,,,[,,"11[78]",,,,"117"],,[,,"11[126-8]",,,,"111"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CH:[,[,,"[1-9]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1(?:[278]|6\\d{3})|4[47])|5200",,,,"112",,,[3,4,6]],[,,"1(?:14|8[01589])\\d|543|83111",,,,"543",,,[3,4,5]],,,,"CH",,,,,,,,,,,,,,,,,,[,,"1(?:1[278]|44)",,,,"112",,,[3]],,[,,"1(?:0[78]\\d\\d|1(?:[278]|45|6(?:000|111))|4(?:[03-57]|1[45])|6(?:00|[1-46])|8(?:02|1[189]|50|7|8[08]|99))|[2-9]\\d{2,4}",,,,"112"],[,,"1(?:4[035]|6[1-46])|1(?:41|60)\\d",,,,"140",,,[3,4]],[,,"5(?:200|35)",,,,"535",,,[3,4]],,[,,"[2-9]\\d{2,4}",,,,"200",,,[3,4,5]]],CI:[,[,,"[14]\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[01]|[78]0)",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"CI",,,,,,,,,,,,,,,,,,[,,"1(?:1[01]|[78]0)",,,,"110",,,[3]],,[,,"1(?:1[01]|[78]0)|4443",,,,"110"],[,,,,,,,,,[-1]],[,,"444\\d",,,,"4440",,,[4]],,[,,"444\\d",,,,"4440",,,[4]]],CK:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"99[689]",,,,"996"],[,,,,,,,,,[-1]],,,,"CK",,,,,,,,,,,,,,,,,,[,,"99[689]",,,,"996"],,[,,"99[689]",,,,"996"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CL:[,[,,"[1-9]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:213|3[1-3])|434\\d|911",,,,"131",,,[3,4]],[,,"1(?:211|3(?:13|[348]0|5[01]))|(?:1(?:[05]6|[48]1|9[18])|2(?:01\\d|[23]2|77|88)|3(?:0[59]|13|3[279]|66)|4(?:[12]4|36\\d|4[017]|55)|5(?:00|41\\d|5[67]|99)|6(?:07\\d|13|22|3[06]|50|69)|787|8(?:[01]1|[48]8)|9(?:01|[12]0|33))\\d",,,,"1060",,,[4,5]],,,,"CL",,,,,,,,,,,,,,,,,,[,,"13[1-3]|911",,,,"131",,,[3]],,[,,"1(?:00|21[13]|3(?:13|[348]0|5[01])|4(?:0[02-6]|17|[379])|818|919)|2(?:0(?:01|122)|22[47]|323|777|882)|3(?:0(?:51|99)|132|3(?:29|[37]7)|665)|43656|5(?:(?:00|415)4|5(?:66|77)|995)|6(?:131|222|366|699)|7878|8(?:011|11[28]|482|889)|9(?:01|1)1|13\\d|4(?:[13]42|243|4(?:02|15|77)|554)|(?:1(?:[05]6|98)|339|6(?:07|[35])0|9(?:[12]0|33))0",,,,"100"],[,,"(?:200|333)\\d",,,,"2000",,,[4]],[,,,,,,,,,[-1]],,[,,"13(?:13|[348]0|5[01])|(?:1(?:[05]6|[28]1|4[01]|9[18])|2(?:0(?:0|1\\d)|[23]2|77|88)|3(?:0[59]|13|3[2379]|66)|436\\d|5(?:00|41\\d|5[67]|99)|6(?:07\\d|13|22|3[06]|50|69)|787|8(?:[01]1|[48]8)|9(?:01|[12]0|33))\\d|4(?:[1-3]4|4[017]|55)\\d",,,,"1060",,,[4,5]]],CM:[,[,,"[18]\\d{1,3}",,,,,,,[2,3,4]],,,[,,"1(?:1[37]|[37])",,,,"13",,,[2,3]],[,,,,,,,,,[-1]],,,,"CM",,,,,,,,,,,,,,,,,,[,,"1(?:1[37]|[37])",,,,"13",,,[2,3]],,[,,"1(?:1[37]|[37])|8711",,,,"13"],[,,,,,,,,,[-1]],[,,"871\\d",,,,"8710",,,[4]],,[,,"871\\d",,,,"8710",,,[4]]],CN:[,[,,"[19]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"1(?:1[09]|20)",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"CN",,,,,,,,,,,,,,,,,,[,,"1(?:1[09]|20)",,,,"110",,,[3]],,[,,"1(?:00\\d\\d|1[029]|20)|95\\d{3,4}",,,,"110"],[,,"1(?:00\\d\\d|12)|95\\d{3,4}",,,,"112"],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CO:[,[,,"[1-589]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"1(?:1[29]|23|32|56)",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"CO",,,,,,,,,,,,,,,,,,[,,"1(?:1[29]|23|32|56)",,,,"112",,,[3]],,[,,"1(?:06|1[2-9]|2[35-7]|3[27]|4[467]|5[36]|6[4-7]|95)|(?:29002|39003)9|40404|5930\\d\\d|85432|(?:[2359][57]|8(?:7|9\\d))\\d{3}",,,,"106"],[,,,,,,,,,[-1]],[,,"(?:40|85)4\\d\\d",,,,"40400",,,[5]],,[,,"(?:40|85)4\\d\\d",,,,"40400",,,[5]]],CR:[,[,,"[1359]\\d{2,3}",,,,,,,[3,4]],,,[,,"112|911",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"CR",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112",,,[3]],,[,,"1(?:0(?:00|15|2[2-4679])|1(?:1[0-35-9]|2|37|[46]6|7[57]|8[79]|9[0-379])|2(?:00|[12]2|34|55)|3(?:21|33)|4(?:0[06]|1[4-6])|5(?:15|5[15])|693|7(?:00|1[7-9]|2[02]|[67]7)|975)|3855|5(?:0(?:30|49)|510)|911",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"(?:385|5(?:0[34]|51))\\d",,,,"3850",,,[4]]],CU:[,[,,"[12]\\d\\d(?:\\d{3,4})?",,,,,,,[3,6,7]],,,[,,"10[4-7]|(?:116|204\\d)\\d{3}",,,,"104"],[,,,,,,,,,[-1]],,,,"CU",,,,,,,,,,,,,,,,,,[,,"10[4-6]",,,,"104",,,[3]],,[,,"1(?:0[4-7]|1(?:6111|8)|40)|2045252",,,,"104"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CV:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"13[0-2]",,,,"130"],[,,,,,,,,,[-1]],,,,"CV",,,,,,,,,,,,,,,,,,[,,"13[0-2]",,,,"130"],,[,,"13[0-2]",,,,"130"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CW:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"112|911",,,,"112"],[,,,,,,,,,[-1]],,,,"CW",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112"],,[,,"1(?:12|76)|911",,,,"112"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],CX:[,[,,"[01]\\d\\d",,,,,,,[3]],,,[,,"000|112",,,,"000"],[,,,,,,,,,[-1]],,,,"CX",,,,,,,,,,,,,,,,,,[,,"000|112",,,,"000"],,[,,"000|112",,,,"000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CY:[,[,,"1\\d\\d(?:\\d{3})?",,,,,,,[3,6]],,,[,,"1(?:1(?:2|6\\d{3})|99)",,,,"112"],[,,,,,,,,,[-1]],,,,"CY",,,,,,,,,,,,,,,,,,[,,"1(?:12|99)",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:000|111))|99)",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],CZ:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1(?:2|6(?:00[06]|1(?:11|23)))|5[0568])",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"CZ",,,,,,,,,,,,,,,,,,[,,"1(?:12|5[0568])",,,,"112",,,[3]],,[,,"1(?:1(?:2|8\\d)|(?:2|3\\d)\\d{2,3}|5[0568]|99)|1(?:16|4)\\d{3}",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DE:[,[,,"1\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"11(?:[02]|6\\d{3})",,,,"110",,,[3,6]],[,,,,,,,,,[-1]],,,,"DE",,,,,,,,,,,,,,,,,,[,,"11[02]",,,,"110",,,[3]],,[,,"11(?:[025]|6(?:00[06]|1(?:1[167]|23))|800\\d)|118\\d\\d",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DJ:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],,,,"DJ",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17"],,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DK:[,[,,"1\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"11(?:[24]|6\\d{3})",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"DK",,,,,,,,,,,,,,,,,,[,,"11[24]",,,,"112",,,[3]],,[,,"1(?:1(?:[2-48]|6(?:00[06]|111))|8(?:[08]1|1[0238]|28|30|5[13]))",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DM:[,[,,"[39]\\d\\d",,,,,,,[3]],,,[,,"333|9(?:11|88|99)",,,,"333"],[,,,,,,,,,[-1]],,,,"DM",,,,,,,,,,,,,,,,,,[,,"333|9(?:11|99)",,,,"333"],,[,,"333|9(?:11|88|99)",,,,"333"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DO:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"112|9(?:11|88)",,,,"112"],[,,,,,,,,,[-1]],,,,"DO",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112"],,[,,"112|9(?:11|88)",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],DZ:[,[,,"[17]\\d{1,3}",,,,,,,[2,3,4]],,,[,,"1(?:12|[47]|54\\d)",,,,"14"],[,,,,,,,,,[-1]],,,,"DZ",,,,,,,,,,,,,,,,,,[,,"1(?:12|[47])",,,,"14",,,[2,3]],,[,,"1(?:055|12|[47]|548)|730",,,,"14"],[,,,,,,,,,[-1]],[,,"730",,,,"730",,,[3]],,[,,"730",,,,"730",,,[3]]],EC:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"1(?:0[12]|12)|911",,,,"101"],[,,,,,,,,,[-1]],,,,"EC",,,,,,,,,,,,,,,,,,[,,"1(?:0[12]|12)|911",,,,"101"],,[,,"1(?:0[12]|12)|911",,,,"101"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],EE:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1(?:[02]|6\\d{3})|2(?:05|28)|3(?:014|3(?:21|5\\d?)|660)|492|5(?:1[03]|410|501)|6(?:112|333|644)|7(?:012|127|89)|8(?:10|8[57])|9(?:0[134]|14))",,,,"110"],[,,"1(?:18(?:00|[12458]\\d?)|2(?:0(?:[02-46-8]\\d?|1[0-36])|1(?:[0-4]\\d?|6[06])|2(?:[0-4]\\d?|5[25])|[367]|4(?:0[04]|[12]\\d?|4[24]|54)|55[12457])|3(?:0(?:[02]\\d?|1[13578]|3[356])|1[1347]|2[02-5]|3(?:[01347]\\d?|2[023]|88)|4(?:[35]\\d?|4[34])|5(?:3[134]|5[035])|666)|4(?:2(?:00|4\\d?)|4(?:0[01358]|1[024]|50|7\\d?)|900)|5(?:0[0-35]|1(?:[1267]\\d?|5[0-7]|82)|2(?:[014-6]\\d?|22)|330|4(?:[35]\\d?|44)|5(?:00|[1-69]\\d?)|9(?:[159]\\d?|[38]0|77))|6(?:1(?:00|1[19]|[35-9]\\d?)|2(?:2[26]|[68]\\d?)|3(?:22|36|6[36])|5|6(?:[0-359]\\d?|6[0-26])|7(?:00|55|7\\d?|8[89])|9(?:00|1\\d?|69))|7(?:0(?:[023]\\d?|1[0578])|1(?:00|2[034]|[4-9]\\d?)|2(?:[07]\\d?|20|44)|7(?:[0-57]\\d?|9[79])|8(?:0[08]|2\\d?|8[0178])|9(?:00|97))|8(?:1[127]|8[1268]|9[269])|9(?:0(?:[02]\\d?|69|9[0269])|1[1-3689]|21))",,,,"123",,,[3,4,5]],,,,"EE",,,,,,,,,,,,,,,,,,[,,"11[02]",,,,"110",,,[3]],,[,,"1(?:1(?:[02-579]|6(?:000|111)|8(?:[09]\\d|[1-8]))|2[36-9]|3[7-9]|4[05-7]|5[6-8]|6[05]|7[3-6]|8[02-7]|9[3-9])|1(?:2[0-245]|3[0-6]|4[1-489]|5[0-59]|6[1-46-9]|7[0-27-9]|8[189]|9[0-2])\\d\\d?",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"1(?:18[1258]|2(?:0(?:1[036]|[46]\\d?)|166|21|4(?:0[04]|1\\d?|5[47])|[67])|3(?:0(?:1[13-578]|2\\d?|3[56])|1[15]|2[045]|3(?:[13]\\d?|2[13])|43|5(?:00|3[34]|53))|44(?:0[0135]|14|50|7\\d?)|5(?:05|1(?:[12]\\d?|5[1246]|8[12])|2(?:[01]\\d?|22)|3(?:00|3[03])|4(?:15|5\\d?)|500|9(?:5\\d?|77|80))|6(?:1[35-8]|226|3(?:22|3[36]|66)|644|7(?:00|7\\d?|89)|9(?:00|69))|7(?:01[258]|1(?:00|[15]\\d?)|2(?:44|7\\d?)|8(?:00|87|9\\d?))|8(?:1[128]|8[56]|9(?:[26]\\d?|77))|90(?:2\\d?|69|92))",,,,"126",,,[3,4,5]]],EG:[,[,,"[13]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"1(?:2[23]|80)",,,,"122",,,[3]],[,,,,,,,,,[-1]],,,,"EG",,,,,,,,,,,,,,,,,,[,,"1(?:2[23]|80)",,,,"122",,,[3]],,[,,"1(?:2[23]|[69]\\d{3}|80)|34400",,,,"122"],[,,,,,,,,,[-1]],[,,"344\\d\\d",,,,"34400",,,[5]],,[,,"344\\d\\d",,,,"34400",,,[5]]],EH:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:[59]|77)",,,,"15"],[,,,,,,,,,[-1]],,,,"EH",,,,,,,,,,,,,,,,,,[,,"1(?:[59]|77)",,,,"15"],,[,,"1(?:[59]|77)",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ER:[,[,,"[12]\\d\\d(?:\\d{3})?",,,,,,,[3,6]],,,[,,"11[2-46]|(?:12[47]|20[12])\\d{3}",,,,"112"],[,,,,,,,,,[-1]],,,,"ER",,,,,,,,,,,,,,,,,,[,,"1(?:1[2-46]|24422)|20(?:1(?:606|917)|2914)|(?:1277|2020)99",,,,"112"],,[,,"1(?:1[2-6]|24422)|20(?:1(?:606|917)|2914)|(?:1277|2020)99",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ES:[,[,,"[0-379]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"0(?:16|6[57]|8[58])|1(?:006|12|[3-7]\\d\\d)|(?:116|20\\d)\\d{3}",,,,"016",,,[3,4,6]],[,,"[12]2\\d{1,4}|90(?:5\\d|7)|(?:118|2(?:[357]\\d|80)|3[357]\\d)\\d\\d|[79]9[57]\\d{3}",,,,"120"],,,,"ES",,,,,,,,,,,,,,,,,,[,,"08[58]|112",,,,"085",,,[3]],,[,,"0(?:1[0-26]|6[0-257]|8[058]|9[12])|1(?:0[03-57]\\d{1,3}|1(?:2|6(?:000|111)|8\\d\\d)|2\\d{1,4}|[3-9]\\d\\d)|2(?:2\\d{1,4}|80\\d\\d)|90(?:5[124578]|7)|1(?:3[34]|77)|(?:2[01]\\d|[79]9[57])\\d{3}|[23][357]\\d{3}",,,,"010"],[,,"0(?:[16][0-2]|80|9[12])|21\\d{4}",,,,"010",,,[3,6]],[,,"1(?:3[34]|77)|[12]2\\d{1,4}",,,,"120"],,[,,"(?:2[0-2]\\d|3[357]|[79]9[57])\\d{3}|2(?:[2357]\\d|80)\\d\\d",,,,"22000",,,[5,6]]],ET:[,[,,"9\\d\\d?",,,,,,,[2,3]],,,[,,"9(?:07|11?|2|39?|9[17])",,,,"91"],[,,,,,,,,,[-1]],,,,"ET",,,,,,,,,,,,,,,,,,[,,"9(?:11?|2|39?|9[17])",,,,"91"],,[,,"9(?:07|11?|2|39?|45|9[17])",,,,"91"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],FI:[,[,,"[17]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"11(?:2|6\\d{3})",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"FI",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"11(?:2|6(?:00[06]|1(?:1[17]|23)))|75[12]\\d\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],FJ:[,[,,"[0-579]\\d(?:\\d(?:\\d{2})?)?",,,,,,,[2,3,5]],,,[,,"91[17]",,,,"911",,,[3]],[,,,,,,,,,[-1]],,,,"FJ",,,,,,,,,,,,,,,,,,[,,"91[17]",,,,"911",,,[3]],,[,,"0(?:1[34]|8[1-4])|1(?:0[1-3]|[25]9)|2[289]|30|40404|91[137]|[45]4|75",,,,"22"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"404\\d\\d",,,,"40400",,,[5]]],FK:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"FK",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"1\\d\\d|999",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],FM:[,[,,"[39]\\d\\d(?:\\d{3})?",,,,,,,[3,6]],,,[,,"320\\d{3}|911",,,,"911"],[,,,,,,,,,[-1]],,,,"FM",,,,,,,,,,,,,,,,,,[,,"(?:32022|91)1",,,,"911"],,[,,"(?:32022|91)1",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],FO:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[24]|81\\d)",,,,"112"],[,,,,,,,,,[-1]],,,,"FO",,,,,,,,,,,,,,,,,,[,,"11[24]",,,,"112",,,[3]],,[,,"1(?:1[248]|819)|1(?:4[124]|71|8[7-9])\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],FR:[,[,,"[1-8]\\d{1,5}",,,,,,,[2,3,4,5,6]],,,[,,"1(?:0(?:07|[13]3)|1[02459]|[578]|9[167])|224|(?:3370|74)0|(?:116\\d|3[01])\\d\\d",,,,"15"],[,,"(?:118|[4-8]\\d)\\d{3}|36665",,,,"36665",,,[5,6]],,,,"FR",,,,,,,,,,,,,,,,,,[,,"1(?:12|[578])",,,,"15",,,[2,3]],,[,,"1(?:0\\d\\d|1(?:[02459]|6(?:000|111)|8\\d{3})|[578]|9[167])|2(?:0(?:00|2)0|24)|[3-8]\\d{4}|3\\d{3}|6(?:1[14]|34)|7(?:0[06]|22|40)",,,,"15"],[,,"10(?:[134]4|2[23]|5\\d|99)|202\\d|3(?:646|9[07]0)|634|70[06]|(?:106|61)[14]",,,,"611",,,[3,4]],[,,"118777|224|6(?:1[14]|34)|7(?:0[06]|22|40)|20(?:0\\d|2)\\d",,,,"224",,,[3,4,5,6]],,[,,"114|[3-8]\\d{4}",,,,"114",,,[3,5]]],GA:[,[,,"1\\d(?:\\d{2})?",,,,,,,[2,4]],,,[,,"18|1(?:3\\d|73)\\d",,,,"18"],[,,,,,,,,,[-1]],,,,"GA",,,,,,,,,,,,,,,,,,[,,"1(?:3\\d\\d|730|8)",,,,"18"],,[,,"1(?:3\\d\\d|730|8)",,,,"18"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GB:[,[,,"[1-46-9]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:05|1(?:[29]|6\\d{3})|7[56]\\d|8000)|2(?:20\\d|48)|4444|999",,,,"105"],[,,,,,,,,,[-1]],,,,"GB",,,,,,,,,,,,,,,,,,[,,"112|999",,,,"112",,,[3]],,[,,"1(?:0[015]|1(?:[129]|6(?:000|1(?:11|23))|8\\d{3})|2(?:[1-3]|50)|33|4(?:1|7\\d)|571|7(?:0\\d|[56]0)|800\\d|9[15])|2(?:0202|1300|2(?:02|11)|3(?:02|336|45)|4(?:25|8))|3[13]3|4(?:0[02]|35[01]|44[45]|5\\d)|(?:[68]\\d|7[089])\\d{3}|15\\d|2[02]2|650|789|9(?:01|99)",,,,"100"],[,,,,,,,,,[-1]],[,,"1(?:(?:25|7[56])\\d|571)|2(?:02(?:\\d{2})?|[13]3\\d\\d|48)|4444|901",,,,"202",,,[3,4,5]],,[,,"(?:125|2(?:020|13\\d)|(?:7[089]|8[01])\\d\\d)\\d",,,,"1250",,,[4,5]]],GD:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"GD",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"176|9(?:11|88)",,,,"176"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],GE:[,[,,"[014]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"0(?:11|33)|11[1-3]|[01]22",,,,"011",,,[3]],[,,,,,,,,,[-1]],,,,"GE",,,,,,,,,,,,,,,,,,[,,"0(?:11|33)|11[1-3]|[01]22",,,,"011",,,[3]],,[,,"0(?:11|33)|11[1-3]|40404|[01]22",,,,"011"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],GF:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],,,,"GF",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15"],,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GG:[,[,,"[19]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"112|999",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"GG",,,,,,,,,,,,,,,,,,[,,"112|999",,,,"112",,,[3]],,[,,"1(?:0[01]|1[12]|23|41|55|9[05])|999|1(?:1[68]\\d\\d|47|800)\\d",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GH:[,[,,"[14589]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"19[1-3]|999",,,,"191",,,[3]],[,,,,,,,,,[-1]],,,,"GH",,,,,,,,,,,,,,,,,,[,,"19[1-3]|999",,,,"191",,,[3]],,[,,"19[1-3]|40404|(?:54|83)00|999",,,,"191"],[,,,,,,,,,[-1]],[,,"404\\d\\d|(?:54|83)0\\d",,,,"5400",,,[4,5]],,[,,"404\\d\\d|(?:54|83)0\\d",,,,"5400",,,[4,5]]],GI:[,[,,"[158]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:00|1[25]|23|4(?:1|7\\d)|5[15]|9[02-49])|555|(?:116\\d|80)\\d\\d",,,,"100",,,[3,4,6]],[,,"8[1-69]\\d\\d",,,,"8100",,,[4]],,,,"GI",,,,,,,,,,,,,,,,,,[,,"1(?:12|9[09])",,,,"112",,,[3]],,[,,"1(?:00|1(?:[25]|6(?:00[06]|1(?:1[17]|23))|8\\d\\d)|23|4(?:1|7[014])|5[015]|9[02-49])|555|8[0-79]\\d\\d|8(?:00|4[0-2]|8[0-589])",,,,"100"],[,,"150|87\\d\\d",,,,"150",,,[3,4]],[,,"1(?:00|1(?:5|8\\d\\d)|23|51|9[2-4])|555|8(?:00|4[0-2]|8[0-589])",,,,"100",,,[3,5]],,[,,,,,,,,,[-1]]],GL:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"112",,,,"112"],[,,,,,,,,,[-1]],,,,"GL",,,,,,,,,,,,,,,,,,[,,"112",,,,"112"],,[,,"112",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GM:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:1[6-8]|[6-8])",,,,"16"],[,,,,,,,,,[-1]],,,,"GM",,,,,,,,,,,,,,,,,,[,,"1(?:1[6-8]|[6-8])",,,,"16"],,[,,"1(?:1[6-8]|[6-8])",,,,"16"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GN:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,,,"GN",,,,,,,,,,,,,,,,,,[,,,,,,,,,[-1]],,[,,"12\\d|40404",,,,"120"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],GP:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],,,,"GP",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15"],,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GR:[,[,,"1\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"1(?:0[089]|1(?:2|6\\d{3})|66|99)",,,,"100",,,[3,6]],[,,,,,,,,,[-1]],,,,"GR",,,,,,,,,,,,,,,,,,[,,"1(?:00|12|66|99)",,,,"100",,,[3]],,[,,"1(?:0[089]|1(?:2|320|6(?:000|1(?:1[17]|23)))|(?:389|9)9|66)",,,,"100"],[,,"113\\d\\d",,,,"11300",,,[5]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GT:[,[,,"[14]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:10|2[03])",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"GT",,,,,,,,,,,,,,,,,,[,,"1(?:10|2[03])",,,,"110",,,[3]],,[,,"110|40404|1(?:2|[57]\\d)\\d",,,,"110"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],GU:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"GU",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GW:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[378]",,,,"113"],[,,,,,,,,,[-1]],,,,"GW",,,,,,,,,,,,,,,,,,[,,"11[378]",,,,"113"],,[,,"11[378]",,,,"113"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],GY:[,[,,"[019]\\d{2,3}",,,,,,,[3,4]],,,[,,"91[1-3]",,,,"911",,,[3]],[,,,,,,,,,[-1]],,,,"GY",,,,,,,,,,,,,,,,,,[,,"91[1-3]",,,,"911",,,[3]],,[,,"0(?:02|(?:17|80)1|444|7(?:[67]7|9)|9(?:0[78]|[2-47]))|1(?:443|5[568])|91[1-3]",,,,"002"],[,,,,,,,,,[-1]],[,,"144\\d",,,,"1440",,,[4]],,[,,"144\\d",,,,"1440",,,[4]]],HK:[,[,,"[19]\\d{2,6}",,,,,,,[3,4,5,6,7]],,,[,,"112|99[29]",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"HK",,,,,,,,,,,,,,,,,,[,,"112|99[29]",,,,"112",,,[3]],,[,,"1(?:0(?:(?:[0136]\\d|2[14])\\d{0,3}|8[138])|12|2(?:[0-3]\\d{0,4}|(?:58|8[13])\\d{0,3})|7(?:[135-9]\\d{0,4}|219\\d{0,2})|8(?:0(?:(?:[13]|60\\d)\\d|8)|1(?:0\\d|[2-8])|2(?:0[5-9]|(?:18|2)2|3|8[128])|(?:(?:3[0-689]\\d|7(?:2[1-389]|8[0235-9]|93))\\d|8)\\d|50[138]|6(?:1(?:11|86)|8)))|99[29]|10[0139]",,,,"100"],[,,,,,,,,,[-1]],[,,"109|1(?:08|85\\d)\\d",,,,"109",,,[3,4,5]],,[,,"992",,,,"992",,,[3]]],HN:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"199",,,,"199",,,[3]],[,,,,,,,,,[-1]],,,,"HN",,,,,,,,,,,,,,,,,,[,,"199",,,,"199",,,[3]],,[,,"199|40404",,,,"199"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],HR:[,[,,"[19]\\d{1,5}",,,,,,,[2,3,4,5,6]],,,[,,"1(?:12|9[2-4])|9[34]|1(?:16\\d|39)\\d\\d",,,,"93",,,[2,3,5,6]],[,,"118\\d\\d",,,,"11800",,,[5]],,,,"HR",,,,,,,,,,,,,,,,,,[,,"1(?:12|9[2-4])|9[34]",,,,"93",,,[2,3]],,[,,"1(?:1(?:2|6(?:00[06]|1(?:1[17]|23))|8\\d\\d)|3977|9(?:[2-5]|87))|9[34]",,,,"93"],[,,,,,,,,,[-1]],[,,"139\\d\\d",,,,"13900",,,[5]],,[,,"139\\d\\d",,,,"13900",,,[5]]],HT:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"11[48]",,,,"114",,,[3]],[,,,,,,,,,[-1]],,,,"HT",,,,,,,,,,,,,,,,,,[,,"11[48]",,,,"114",,,[3]],,[,,"11[48]|40404",,,,"114"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],HU:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:0[457]|12|4[0-4]\\d)|1(?:16\\d|37|45)\\d\\d",,,,"104"],[,,,,,,,,,[-1]],,,,"HU",,,,,,,,,,,,,,,,,,[,,"1(?:0[457]|12)",,,,"104",,,[3]],,[,,"1(?:0[457]|1(?:2|6(?:000|1(?:11|23))|800)|2(?:0[0-4]|1[013489]|2[0-5]|3[0-46]|4[0-24-68]|5[0-2568]|6[06]|7[0-25-7]|8[028]|9[08])|37(?:00|37|7[07])|4(?:0[0-5]|1[013-8]|2[034]|3[23]|4[02-9]|5(?:00|41|67))|777|8(?:1[27-9]|2[04]|40|[589]))",,,,"104"],[,,,,,,,,,[-1]],[,,"1(?:4[0-4]|77)\\d|1(?:18|2|45)\\d\\d",,,,"1200",,,[4,5]],,[,,"184\\d",,,,"1840",,,[4]]],ID:[,[,,"[178]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"11[02389]",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"ID",,,,,,,,,,,,,,,,,,[,,"11[02389]",,,,"110",,,[3]],,[,,"1(?:1[02389]|40\\d\\d|50264)|71400|89887",,,,"110"],[,,,,,,,,,[-1]],[,,"(?:714|898)\\d\\d",,,,"71400",,,[5]],,[,,"714\\d\\d",,,,"71400",,,[5]]],IE:[,[,,"[159]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:2|6\\d{3})|999",,,,"112",,,[3,6]],[,,"5[37]\\d{3}",,,,"53000",,,[5]],,,,"IE",,,,,,,,,,,,,,,,,,[,,"112|999",,,,"112",,,[3]],,[,,"11(?:2|6(?:00[06]|1(?:1[17]|23)))|999|(?:1(?:18|9)|5[0137]\\d)\\d\\d",,,,"112"],[,,"51\\d{3}",,,,"51000",,,[5]],[,,"51210",,,,"51210",,,[5]],,[,,"51210|(?:118|5[037]\\d)\\d\\d",,,,"11800",,,[5]]],IL:[,[,,"[12]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:0[0-2]|12)",,,,"100",,,[3]],[,,,,,,,,,[-1]],,,,"IL",,,,,,,,,,,,,,,,,,[,,"1(?:0[0-2]|12)",,,,"100",,,[3]],,[,,"1(?:0[0-2]|1(?:[013-9]\\d|2)|[2-9]\\d\\d)|2407|(?:104|27)00",,,,"100"],[,,,,,,,,,[-1]],[,,"104\\d\\d",,,,"10400",,,[5]],,[,,"104\\d\\d",,,,"10400",,,[5]]],IM:[,[,,"[189]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"999",,,,"999",,,[3]],[,,,,,,,,,[-1]],,,,"IM",,,,,,,,,,,,,,,,,,[,,"999",,,,"999",,,[3]],,[,,"1\\d\\d(?:\\d{3})?|8(?:6444|9887)|999",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"8(?:64|98)\\d\\d",,,,"86400",,,[5]]],IN:[,[,,"[12578]\\d{2,8}",,,,,,,[3,4,5,6,7,8,9]],,,[,,"1(?:0[0-248]|1[289]|21|[39][89]|4[01]|6(?:1|6\\d?)|8[12])|777|800|1[05]5\\d|1(?:07|51|94)\\d\\d?|(?:1(?:[05]5\\d|70)\\d|261)\\d|1(?:0[369]|10|29|3[126]|9[0-256])\\d",,,,"100",,,[3,4,5,6]],[,,"11[67]\\d{4}|56161561",,,,"1160000",,,[7,8]],,,,"IN",,,,,,,,,,,,,,,,,,[,,"1(?:0[0-28]|12|298)|2611",,,,"100",,,[3,4]],,[,,"1(?:0(?:[0-248]|3[39]|5(?:010|6)|6[3468]|7(?:[01357]|[28]0?|4[01])|9[0135-9])|1(?:00|[289])|2(?:1|98)|3(?:11|2[0-2]|63|[89])|4[01]|5(?:1(?:0[0-36]|[127])|54)|6(?:1|6[01]?)|7000|8[12]|9(?:0[013-59]|12|25|4[4-9]\\d?|50|6[1347]|[89]))|2611|5(?:0(?:0(?:0\\d|1|20?)|325|5[2-79]\\d{3,5})|1(?:234|555|717|818|96[49])|2(?:0(?:0[01]|[14]0)|151|555|666|888|9(?:06|99\\d?))|3(?:0[01]0|131|553|(?:66|77)6)|(?:464|55[05])\\d{1,3}|6(?:070|3[68]|43)|717\\d)|777|800|5(?:05(?:0|1\\d)|221|3(?:03|3[23]))\\d{1,4}|5(?:(?:04|88)0|2(?:2[0267]|3[16])|4(?:1[04]|20|3[02])|5(?:3[16]|67)|6(?:06|[67]\\d)|787|9(?:64|90))\\d\\d?|(?:1(?:05[79]|(?:1[67][0-2]|802)\\d|55[23])\\d|5(?:(?:00(?:0\\d|1)|(?:304|616)\\d\\d)\\d|1(?:0[12]|4[2-4])|2(?:2[3589]|3(?:1\\d{3}|2)|4[04]|7[78])|4(?:[02]4|32\\d{4}|4[04]|99)|5(?:1[25]|[36]5|4[45]|93)|7(?:(?:17\\d|57)\\d\\d|[27]7|88)|8(?:3[4-69]|4[01]|5[58]|88(?:8\\d\\d|9)|99)|9(?:0(?:0|2\\d{3})|55|6[67]|77|88)))\\d",,,,"100"],[,,"5(?:14(?:2[5-9]|[34]\\d)|757555)",,,,"51425",,,[5,7]],[,,"1(?:(?:1[67]\\d\\d|70)\\d\\d|55330|909)|5(?:300\\d|6161(?:17[89]|561))|1(?:[19][89]|21|4[01])",,,,"118",,,[3,4,5,6,7,8]],,[,,"1(?:39|90[019])|5(?:14(?:2[5-9]|[34]\\d)|6161(?:17[89]|561)|757555)",,,,"139",,,[3,4,5,7,8]]],IQ:[,[,,"[1479]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:0[04]|15|22)",,,,"100",,,[3]],[,,,,,,,,,[-1]],,,,"IQ",,,,,,,,,,,,,,,,,,[,,"1(?:0[04]|15|22)",,,,"100",,,[3]],,[,,"1(?:0[04]|15|22)|4432|71117|9988",,,,"100"],[,,,,,,,,,[-1]],[,,"(?:443|711\\d|998)\\d",,,,"4430",,,[4,5]],,[,,"(?:443|711\\d|998)\\d",,,,"4430",,,[4,5]]],IR:[,[,,"[129]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1[0-68]|2[0-59]|9[0-579])|911",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"IR",,,,,,,,,,,,,,,,,,[,,"1(?:1[025]|25)|911",,,,"110",,,[3]],,[,,"1(?:1[0-68]|2[0-59]|3[346-8]|4(?:[0147]|[289]0)|5(?:0[14]|1[02479]|2[0-3]|39|[49]0|65)|6(?:[16]6|[27]|90)|8(?:03|1[18]|22|3[37]|4[28]|88|99)|9[0-579])|20(?:[09]0|1(?:[038]|1[079]|26|9[69])|2[01])|9(?:11|9(?:0009|90))",,,,"110"],[,,"1(?:5[0-469]|8[0-489])\\d",,,,"1500",,,[4]],[,,"(?:1(?:5[0-469]|8[0-489])|99(?:0\\d\\d|9))\\d",,,,"1500",,,[4,6]],,[,,"990\\d{3}",,,,"990000",,,[6]]],IS:[,[,,"1\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"1(?:12|71\\d)",,,,"112",,,[3,4]],[,,,,,,,,,[-1]],,,,"IS",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"1(?:1(?:[28]|61(?:16|23))|4(?:00|1[145]|4[0146])|55|7(?:00|17|7[07-9])|8(?:[02]0|1[16-9]|88)|900)",,,,"112"],[,,,,,,,,,[-1]],[,,"14(?:0\\d|41)",,,,"1400",,,[4]],,[,,"1(?:415|90\\d)",,,,"1415",,,[4]]],IT:[,[,,"[14]\\d{2,6}",,,,,,,[3,4,5,6,7]],,,[,,"1(?:1(?:[2358]|6\\d{3})|87)",,,,"112",,,[3,6]],[,,"(?:12|4(?:[478](?:[0-4]|[5-9]\\d\\d)|55))\\d\\d",,,,"1200",,,[4,5,7]],,,,"IT",,,,,,,,,,,,,,,,,,[,,"11[2358]",,,,"112",,,[3]],,[,,"1(?:0\\d{2,3}|1(?:[2-57-9]|6(?:000|111))|3[39]|4(?:82|9\\d{1,3})|5(?:00|1[58]|2[25]|3[03]|44|[59])|60|8[67]|9(?:[01]|2[2-9]|4\\d|696))|4(?:2323|5045)|(?:1(?:2|92[01])|4(?:3(?:[01]|[45]\\d\\d)|[478](?:[0-4]|[5-9]\\d\\d)|55))\\d\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"4(?:3(?:[01]|[45]\\d\\d)|[478](?:[0-4]|[5-9]\\d\\d)|5[05])\\d\\d",,,,"43000",,,[5,7]]],JE:[,[,,"[129]\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"112|999",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"JE",,,,,,,,,,,,,,,,,,[,,"112|999",,,,"112",,,[3]],,[,,"1(?:00|1(?:2|8\\d{3})|23|4(?:[14]|28|7\\d)|5\\d|7(?:0[12]|[128]|35?)|808|9[0135])|23[2-4]|999",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],JM:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"11[029]|9(?:11|88)",,,,"110"],[,,,,,,,,,[-1]],,,,"JM",,,,,,,,,,,,,,,,,,[,,"11[029]|911",,,,"110"],,[,,"1(?:1[029]|76)|9(?:11|88)",,,,"110"],[,,,,,,,,,[-1]],[,,"176",,,,"176"],,[,,"176",,,,"176"]],JO:[,[,,"[19]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"1(?:1[24]|9[127])|911",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"JO",,,,,,,,,,,,,,,,,,[,,"1(?:12|9[127])|911",,,,"112",,,[3]],,[,,"1(?:09|1[0-248]|9[0-24-79])|9(?:0903|11|8788)",,,,"109"],[,,,,,,,,,[-1]],[,,"9(?:09|87)\\d\\d",,,,"90900",,,[5]],,[,,"9(?:09|87)\\d\\d",,,,"90900",,,[5]]],JP:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[089]",,,,"110"],[,,,,,,,,,[-1]],,,,"JP",,,,,,,,,,,,,,,,,,[,,"11[09]",,,,"110"],,[,,"1(?:0[24]|1[089]|44|89)",,,,"102"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KE:[,[,,"[1-9]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:1(?:[246]|9\\d)|5(?:01|2[127]|6[26]\\d))|999",,,,"112"],[,,"909\\d\\d",,,,"90900",,,[5]],,,,"KE",,,,,,,,,,,,,,,,,,[,,"11[24]|999",,,,"112",,,[3]],,[,,"1(?:0(?:[07-9]|1[0-25]|400)|1(?:[024-6]|9[0-579])|2[1-3]|3[01]|4[14]|5(?:[01][01]|2[0-24-79]|33|4[05]|5[59]|6(?:00|29|6[67]))|(?:6[035]\\d|[78])\\d|9(?:[02-9]\\d\\d|19))|(?:(?:2[0-79]|[37][0-29]|4[0-4]|6[2357]|8\\d)\\d|5(?:[0-7]\\d|99))\\d\\d|9(?:09\\d\\d|99)|8988",,,,"100"],[,,,,,,,,,[-1]],[,,"1(?:(?:04|6[35])\\d\\d|3[01]|4[14]|5(?:1\\d|2[25]))|(?:(?:2[0-79]|[37][0-29]|4[0-4]|6[2357]|8\\d)\\d|5(?:[0-7]\\d|99)|909)\\d\\d|898\\d",,,,"130"],,[,,"1(?:(?:04|6[035])\\d\\d|4[14]|5(?:01|55|6[26]\\d))|40404|8988|909\\d\\d",,,,"141"]],KG:[,[,,"[14]\\d{2,3}",,,,,,,[3,4]],,,[,,"10[1-3]",,,,"101",,,[3]],[,,,,,,,,,[-1]],,,,"KG",,,,,,,,,,,,,,,,,,[,,"10[1-3]",,,,"101",,,[3]],,[,,"10[1-3]|4040",,,,"101"],[,,,,,,,,,[-1]],[,,"404\\d",,,,"4040",,,[4]],,[,,"404\\d",,,,"4040",,,[4]]],KH:[,[,,"[146]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"11[7-9]|666",,,,"117",,,[3]],[,,,,,,,,,[-1]],,,,"KH",,,,,,,,,,,,,,,,,,[,,"11[7-9]|666",,,,"117",,,[3]],,[,,"11[7-9]|40404|666",,,,"117"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],KI:[,[,,"[179]\\d{2,3}",,,,,,,[3,4]],,,[,,"19[2-5]|99[2-4]",,,,"192",,,[3]],[,,,,,,,,,[-1]],,,,"KI",,,,,,,,,,,,,,,,,,[,,"19[2-5]|99[2-4]",,,,"192",,,[3]],,[,,"1(?:05[0-259]|88|9[2-5])|777|99[2-4]|10[0-8]",,,,"100"],[,,"103",,,,"103",,,[3]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KM:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],,,,"KM",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17"],,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KN:[,[,,"[39]\\d\\d",,,,,,,[3]],,,[,,"333|9(?:11|88|99)",,,,"333"],[,,,,,,,,,[-1]],,,,"KN",,,,,,,,,,,,,,,,,,[,,"333|9(?:11|99)",,,,"333"],,[,,"333|9(?:11|88|99)",,,,"333"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KP:[,[,,"[18]\\d\\d",,,,,,,[3]],,,[,,"11[29]|819",,,,"112"],[,,,,,,,,,[-1]],,,,"KP",,,,,,,,,,,,,,,,,,[,,"11[29]|819",,,,"112"],,[,,"11[29]|819",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KR:[,[,,"1\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:1[27-9]|28|330|82)",,,,"112",,,[3,4]],[,,,,,,,,,[-1]],,,,"KR",,,,,,,,,,,,,,,,,,[,,"11[29]",,,,"112",,,[3]],,[,,"1(?:[016-9]114|3(?:0[01]|2|3[0-35-9]|45?|5[057]|6[569]|7[79]|8[2589]|9[0189]))|1(?:0[015]|1\\d|2[01357-9]|41|8[28])",,,,"100"],[,,,,,,,,,[-1]],[,,"1(?:0[01]|1[4-6]|41)|1(?:[06-9]1\\d|111)\\d",,,,"100",,,[3,5]],,[,,,,,,,,,[-1]]],KW:[,[,,"[18]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"112",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"KW",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"1[0-7]\\d|89887",,,,"100"],[,,,,,,,,,[-1]],[,,"898\\d\\d",,,,"89800",,,[5]],,[,,,,,,,,,[-1]]],KY:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"KY",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],KZ:[,[,,"[134]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:0[1-3]|12)",,,,"101",,,[3]],[,,,,,,,,,[-1]],,,,"KZ",,,,,,,,,,,,,,,,,,[,,"1(?:0[1-3]|12)",,,,"101",,,[3]],,[,,"1(?:0[1-4]|12)|(?:3040|404)0",,,,"101"],[,,,,,,,,,[-1]],[,,"(?:304\\d|404)\\d",,,,"4040",,,[4,5]],,[,,"(?:304\\d|404)\\d",,,,"4040",,,[4,5]]],LA:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"19[015]",,,,"190"],[,,,,,,,,,[-1]],,,,"LA",,,,,,,,,,,,,,,,,,[,,"19[015]",,,,"190"],,[,,"19[015]",,,,"190"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LB:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"1(?:12|40|75)|999",,,,"112"],[,,,,,,,,,[-1]],,,,"LB",,,,,,,,,,,,,,,,,,[,,"1(?:12|40|75)|999",,,,"112"],,[,,"1(?:12|40|75)|999",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LC:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"LC",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LI:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[278]|44)",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"LI",,,,,,,,,,,,,,,,,,[,,"1(?:1[278]|44)",,,,"112",,,[3]],,[,,"1(?:1(?:[278]|45)|4[3-57]|50|75|81[18])",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LK:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"11[02689]",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"LK",,,,,,,,,,,,,,,,,,[,,"11[02689]",,,,"110",,,[3]],,[,,"1(?:1[024-9]|3(?:00|1[2-49]|2[23]|3[1-3]|44|5[07]|[67]9|88|9[039])|9(?:0[0-2589]|1[0-357-9]|2[0-25689]|3[0389]|4[0489]|5[014-69]|6[0-2689]|7[03579]|8[02457-9]|9[0-2569]))",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LR:[,[,,"[3489]\\d{2,3}",,,,,,,[3,4]],,,[,,"355|911",,,,"355",,,[3]],[,,,,,,,,,[-1]],,,,"LR",,,,,,,,,,,,,,,,,,[,,"355|911",,,,"355",,,[3]],,[,,"355|4040|8(?:400|933)|911",,,,"355"],[,,,,,,,,,[-1]],[,,"(?:404|8(?:40|93))\\d",,,,"4040",,,[4]],,[,,"(?:404|8(?:40|93))\\d",,,,"4040",,,[4]]],LS:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[257]",,,,"112"],[,,,,,,,,,[-1]],,,,"LS",,,,,,,,,,,,,,,,,,[,,"11[257]",,,,"112"],,[,,"11[257]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LT:[,[,,"[01]\\d(?:\\d(?:\\d{3})?)?",,,,,,,[2,3,6]],,,[,,"0(?:11?|22?|33?)|1(?:0[1-3]|1(?:2|6111))|116(?:0\\d|12)\\d",,,,"01"],[,,,,,,,,,[-1]],,,,"LT",,,,,,,,,,,,,,,,,,[,,"0(?:11?|22?|33?)|1(?:0[1-3]|12)",,,,"01",,,[2,3]],,[,,"0(?:11?|22?|33?)|1(?:0[1-3]|1(?:[27-9]|6(?:000|1(?:1[17]|23))))",,,,"01"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LU:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:[23]|6\\d{3})",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"LU",,,,,,,,,,,,,,,,,,[,,"11[23]",,,,"112",,,[3]],,[,,"11(?:[23]|6(?:000|111))|1(?:18|[25]\\d|3)\\d\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],LV:[,[,,"[018]\\d{1,5}",,,,,,,[2,3,4,5,6]],,,[,,"0[1-3]|11(?:[023]|6\\d{3})",,,,"01",,,[2,3,6]],[,,"1180|821\\d\\d",,,,"1180",,,[4,5]],,,,"LV",,,,,,,,,,,,,,,,,,[,,"0[1-3]|11[023]",,,,"01",,,[2,3]],,[,,"0[1-4]|1(?:1(?:[02-4]|6(?:000|111)|8[0189])|(?:5|65)5|77)|821[57]4",,,,"01"],[,,"1181",,,,"1181",,,[4]],[,,"165\\d",,,,"1650",,,[4]],,[,,,,,,,,,[-1]]],LY:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"19[013]",,,,"190"],[,,,,,,,,,[-1]],,,,"LY",,,,,,,,,,,,,,,,,,[,,"19[013]",,,,"190"],,[,,"19[013]",,,,"190"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MA:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:[59]|77)",,,,"15"],[,,,,,,,,,[-1]],,,,"MA",,,,,,,,,,,,,,,,,,[,,"1(?:[59]|77)",,,,"15"],,[,,"1(?:[59]|77)",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MC:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:12|[578])",,,,"15"],[,,,,,,,,,[-1]],,,,"MC",,,,,,,,,,,,,,,,,,[,,"1(?:12|[578])",,,,"15"],,[,,"1(?:12|41|[578])",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MD:[,[,,"[19]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:2|6(?:000|1(?:11|2\\d)))|90[1-3]",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"MD",,,,,,,,,,,,,,,,,,[,,"112|90[1-3]",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:00[06]|1(?:1[17]|23))|8\\d\\d?|99)|90[04-9])|90[1-3]|1(?:4\\d\\d|6[0-389]|9[1-4])\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ME:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:12|2[2-4])",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"ME",,,,,,,,,,,,,,,,,,[,,"1(?:12|2[2-4])",,,,"112",,,[3]],,[,,"1(?:1(?:(?:[013-57-9]|6\\d\\d)\\d|2)|[249]\\d{3}|5999|8(?:0[089]|1[0-8]|888))|1(?:[02-5]\\d\\d|60[06]|700)|12\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MF:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],,,,"MF",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15"],,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MG:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:1[78]|[78])",,,,"17"],[,,,,,,,,,[-1]],,,,"MG",,,,,,,,,,,,,,,,,,[,,"1(?:1[78]|[78])",,,,"17"],,[,,"1(?:1[78]|[78])",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MH:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"911",,,,"911"],[,,,,,,,,,[-1]],,,,"MH",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"911",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MK:[,[,,"1\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"1(?:1(?:2|6\\d{3})|9[2-4])",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"MK",,,,,,,,,,,,,,,,,,[,,"1(?:12|9[2-4])",,,,"112",,,[3]],,[,,"1(?:1(?:2|8\\d)|3\\d|9[2-4])|1(?:16|2\\d)\\d{3}",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ML:[,[,,"[136-8]\\d{1,4}",,,,,,,[2,3,4,5]],,,[,,"1[578]|(?:352|67)00|7402|(?:677|744|8000)\\d",,,,"15",,,[2,4,5]],[,,"(?:12|800)2\\d|3(?:52(?:11|2[02]|3[04-6]|99)|7574)",,,,"1220",,,[4,5]],,,,"ML",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15",,,[2]],,[,,"1(?:1(?:[013-9]\\d|2)|2(?:1[02-469]|2[13])|[578])|350(?:35|57)|67(?:0[09]|[59]9|77|8[89])|74(?:0[02]|44|55)|800[0-2][12]|3(?:52|[67]\\d)\\d\\d",,,,"15"],[,,"37(?:433|575)|7400|8001\\d",,,,"7400",,,[4,5]],[,,"3503\\d|(?:3[67]\\d|800)\\d\\d",,,,"35030",,,[5]],,[,,"374(?:0[24-9]|[1-9]\\d)|7400|3(?:6\\d|75)\\d\\d",,,,"7400",,,[4,5]]],MM:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"199",,,,"199"],[,,,,,,,,,[-1]],,,,"MM",,,,,,,,,,,,,,,,,,[,,"199",,,,"199"],,[,,"199",,,,"199"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MN:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"10[0-35]",,,,"100"],[,,,,,,,,,[-1]],,,,"MN",,,,,,,,,,,,,,,,,,[,,"10[0-35]",,,,"100"],,[,,"10[0-35]",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MO:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"MO",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"999",,,,"999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MP:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"MP",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MQ:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:12|[578])",,,,"15"],[,,,,,,,,,[-1]],,,,"MQ",,,,,,,,,,,,,,,,,,[,,"1(?:12|[578])",,,,"15"],,[,,"1(?:12|[578])",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MR:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],,,,"MR",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17"],,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MS:[,[,,"[29]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"MS",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"211|9(?:11|88|99)",,,,"211"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MT:[,[,,"1\\d\\d(?:\\d{3})?",,,,,,,[3,6]],,,[,,"11(?:2|6\\d{3})",,,,"112"],[,,,,,,,,,[-1]],,,,"MT",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"11(?:2|6(?:000|1(?:11|23)))",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MU:[,[,,"[189]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"11[45]|99[59]",,,,"114",,,[3]],[,,,,,,,,,[-1]],,,,"MU",,,,,,,,,,,,,,,,,,[,,"11[45]|99[59]",,,,"114",,,[3]],,[,,"1\\d{2,4}|(?:8\\d\\d|99)\\d",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],MV:[,[,,"[14]\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:02|1[89])",,,,"102",,,[3]],[,,,,,,,,,[-1]],,,,"MV",,,,,,,,,,,,,,,,,,[,,"1(?:02|1[89])",,,,"102",,,[3]],,[,,"1(?:[0-37-9]|[4-6]\\d)\\d|4040|1[45]1",,,,"100"],[,,,,,,,,,[-1]],[,,"1[45]1",,,,"141",,,[3]],,[,,,,,,,,,[-1]]],MW:[,[,,"[189]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"199|99[7-9]",,,,"199",,,[3]],[,,,,,,,,,[-1]],,,,"MW",,,,,,,,,,,,,,,,,,[,,"199|99[7-9]",,,,"199",,,[3]],,[,,"199|80400|99[7-9]",,,,"199"],[,,,,,,,,,[-1]],[,,"804\\d\\d",,,,"80400",,,[5]],,[,,"804\\d\\d",,,,"80400",,,[5]]],MX:[,[,,"[0579]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"0(?:6[0568]|80)|911",,,,"060",,,[3]],[,,"(?:530\\d|776)\\d",,,,"7760",,,[4,5]],,,,"MX",,,,,,,,,,,,,,,,,,[,,"0(?:6[0568]|80)|911",,,,"060",,,[3]],,[,,"0[1-9]\\d|53053|7766|911",,,,"010"],[,,,,,,,,,[-1]],[,,"0(?:[249]0|[35][01])",,,,"020",,,[3]],,[,,,,,,,,,[-1]]],MY:[,[,,"[1369]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"112|999",,,,"112",,,[3]],[,,,,,,,,,[-1]],,,,"MY",,,,,,,,,,,,,,,,,,[,,"112|999",,,,"112",,,[3]],,[,,"1(?:0[01348]|1(?:[02]|1[128]|311)|2(?:0[125]|[13-6]|2\\d{0,2})|(?:3[1-35-79]|7[45])\\d\\d?|5(?:454|5\\d\\d?|77|888|999?)|8(?:18?|2|8[18])|9(?:[124]\\d?|68|71|9[0679]))|66628|99[1-469]|13[5-7]|(?:1(?:0[569]|309|5[12]|7[136-9]|9[03])|3[23679]\\d\\d)\\d",,,,"100"],[,,"666\\d\\d",,,,"66600",,,[5]],[,,,,,,,,,[-1]],,[,,"(?:3[23679]\\d|666)\\d\\d",,,,"32000",,,[5]]],MZ:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[79]|9[78])",,,,"117",,,[3]],[,,,,,,,,,[-1]],,,,"MZ",,,,,,,,,,,,,,,,,,[,,"1(?:1[79]|9[78])",,,,"117",,,[3]],,[,,"1(?:[02-5]\\d\\d|1[79]|9[78])",,,,"117"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NA:[,[,,"[19]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"10111",,,,"10111",,,[5]],[,,,,,,,,,[-1]],,,,"NA",,,,,,,,,,,,,,,,,,[,,"10111",,,,"10111",,,[5]],,[,,"(?:10|93)111|(?:1\\d|9)\\d\\d",,,,"900"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NC:[,[,,"[135]\\d{1,3}",,,,,,,[2,3,4]],,,[,,"1(?:0(?:00|1[23]|3[0-2]|8\\d)|[5-8])|363\\d|577",,,,"15"],[,,,,,,,,,[-1]],,,,"NC",,,,,,,,,,,,,,,,,,[,,"1[5-8]",,,,"15",,,[2]],,[,,"1(?:0(?:0[06]|1[02-46]|20|3[0-25]|42|5[058]|77|88)|[5-8])|3631|5[6-8]\\d",,,,"15"],[,,"5(?:67|88)",,,,"567",,,[3]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NE:[,[,,"[1-3578]\\d(?:\\d(?:\\d{3})?)?",,,,,,,[2,3,6]],,,[,,"1(?:18|[578])|723\\d{3}",,,,"15"],[,,,,,,,,,[-1]],,,,"NE",,,,,,,,,,,,,,,,,,[,,"1(?:18|[578])|723141",,,,"15"],,[,,"1(?:0[01]|1[128]|2[034]|3[013]|[46]0|55?|[78])|222|333|555|723141|888",,,,"15"],[,,,,,,,,,[-1]],[,,"1(?:0[01]|1[12]|2[034]|3[013]|[46]0|55)|222|333|555|888",,,,"100",,,[3]],,[,,,,,,,,,[-1]]],NF:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|55|77)",,,,"911"],[,,,,,,,,,[-1]],,,,"NF",,,,,,,,,,,,,,,,,,[,,"9(?:11|55|77)",,,,"911"],,[,,"9(?:11|55|77)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NG:[,[,,"[14]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"199",,,,"199",,,[3]],[,,,,,,,,,[-1]],,,,"NG",,,,,,,,,,,,,,,,,,[,,"199",,,,"199",,,[3]],,[,,"199|40700",,,,"199"],[,,,,,,,,,[-1]],[,,"407\\d\\d",,,,"40700",,,[5]],,[,,"407\\d\\d",,,,"40700",,,[5]]],NI:[,[,,"[12467]\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[58]|2[08])|737\\d",,,,"115"],[,,,,,,,,,[-1]],,,,"NI",,,,,,,,,,,,,,,,,,[,,"1(?:1[58]|2[08])",,,,"115",,,[3]],,[,,"1(?:1[58]|200)|4878|7(?:010|373)|12[0158]|(?:19|[267]1)00",,,,"115"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NL:[,[,,"[1349]\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"11(?:2|6\\d{3})|911",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"NL",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:00[06]|1(?:11|23)))|2(?:0[0-4]|3[34]|44)|3[03-9]\\d|400|8(?:[02-9]\\d|1[0-79]))|[34]000|911",,,,"112"],[,,,,,,,,,[-1]],[,,"120\\d",,,,"1200",,,[4]],,[,,"[34]00\\d",,,,"3000",,,[4]]],NO:[,[,,"1\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"11(?:[023]|6\\d{3})",,,,"110",,,[3,6]],[,,,,,,,,,[-1]],,,,"NO",,,,,,,,,,,,,,,,,,[,,"11[023]",,,,"110",,,[3]],,[,,"1(?:1(?:[0239]|61(?:1[17]|23))|2[048]|4(?:12|[59])|7[57]|8[5-9]\\d|90)",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NP:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:0[0-36]|12)|1(?:09|11)\\d",,,,"100"],[,,,,,,,,,[-1]],,,,"NP",,,,,,,,,,,,,,,,,,[,,"1(?:0[0-3]|12)",,,,"100",,,[3]],,[,,"1(?:0(?:[0-36]|98)|1(?:1[1-4]|2))",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NR:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[0-2]",,,,"110"],[,,,,,,,,,[-1]],,,,"NR",,,,,,,,,,,,,,,,,,[,,"11[0-2]",,,,"110"],,[,,"1(?:1[0-2]|23|92)",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],NU:[,[,,"[019]\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"NU",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"01[05]|101|999",,,,"010"],[,,,,,,,,,[-1]],[,,"010",,,,"010"],,[,,,,,,,,,[-1]]],NZ:[,[,,"\\d{3,4}",,,,,,,[3,4]],,,[,,"111",,,,"111",,,[3]],[,,"018",,,,"018",,,[3]],,,,"NZ",,,,,,,,,,,,,,,,,,[,,"111",,,,"111",,,[3]],,[,,"018|1(?:(?:1|37)1|(?:23|94)4|7[03]7)|[2-57-9]\\d{2,3}|6(?:161|26[0-3]|742)",,,,"018"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"018|(?:1(?:23|37|7[03]|94)|6(?:[12]6|74))\\d|[2-57-9]\\d{2,3}",,,,"018"]],OM:[,[,,"[19]\\d{3}",,,,,,,[4]],,,[,,"1444|999\\d",,,,"1444"],[,,,,,,,,,[-1]],,,,"OM",,,,,,,,,,,,,,,,,,[,,"1444|9999",,,,"1444"],,[,,"1(?:111|222|4(?:4[0-5]|50|66|7[7-9])|51[0-8])|9999|1(?:2[3-5]|3[0-2]|50)\\d",,,,"1111"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PA:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"911",,,,"911"],[,,,,,,,,,[-1]],,,,"PA",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"10[2-4]|911",,,,"102"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PE:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"1(?:05|1[67])",,,,"105"],[,,,,,,,,,[-1]],,,,"PE",,,,,,,,,,,,,,,,,,[,,"1(?:05|1[67])",,,,"105"],,[,,"1(?:05|1[67])",,,,"105"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PF:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],,,,"PF",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15"],,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PG:[,[,,"[01]\\d{2,6}",,,,,,,[3,4,5,6,7]],,,[,,"000|11[01]",,,,"000",,,[3]],[,,,,,,,,,[-1]],,,,"PG",,,,,,,,,,,,,,,,,,[,,"000|11[01]",,,,"000",,,[3]],,[,,"000|1(?:1[01]|5\\d\\d|6\\d{2,5})",,,,"000"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"16\\d{2,5}",,,,"1600",,,[4,5,6,7]]],PH:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"11[27]|911",,,,"112"],[,,,,,,,,,[-1]],,,,"PH",,,,,,,,,,,,,,,,,,[,,"11[27]|911",,,,"112"],,[,,"11[27]|911",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PK:[,[,,"1\\d{1,3}",,,,,,,[2,3,4]],,,[,,"1(?:1(?:2\\d?|5)|[56])",,,,"15"],[,,,,,,,,,[-1]],,,,"PK",,,,,,,,,,,,,,,,,,[,,"1(?:1(?:22?|5)|[56])",,,,"15"],,[,,"1(?:122|3[014]|[56])|11[2457-9]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PL:[,[,,"[19]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"11(?:2|6\\d{3})|99[7-9]",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"PL",,,,,,,,,,,,,,,,,,[,,"112|99[7-9]",,,,"112",,,[3]],,[,,"1(?:1(?:2|61(?:11|23)|891[23])|9\\d{3})|9(?:8[4-7]|9[1-9])|11[68]000",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PM:[,[,,"[13]\\d(?:\\d{2})?",,,,,,,[2,4]],,,[,,"1[578]",,,,"15",,,[2]],[,,,,,,,,,[-1]],,,,"PM",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15",,,[2]],,[,,"1[578]|3103",,,,"15"],[,,,,,,,,,[-1]],[,,"310\\d",,,,"3100",,,[4]],,[,,,,,,,,,[-1]]],PR:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"PR",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PS:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:0[0-2]|66)",,,,"100",,,[3]],[,,,,,,,,,[-1]],,,,"PS",,,,,,,,,,,,,,,,,,[,,"10[0-2]",,,,"100",,,[3]],,[,,"1(?:0[0-2]|122|44|66|99)",,,,"100"],[,,,,,,,,,[-1]],[,,"112\\d",,,,"1120",,,[4]],,[,,,,,,,,,[-1]]],PT:[,[,,"1\\d\\d(?:\\d(?:\\d{2})?)?",,,,,,,[3,4,6]],,,[,,"11[257]|1(?:16\\d\\d|5[1589]|8[279])\\d",,,,"112"],[,,,,,,,,,[-1]],,,,"PT",,,,,,,,,,,,,,,,,,[,,"11[25]",,,,"112",,,[3]],,[,,"1(?:0(?:45|5[01])|1(?:[2578]|600[06])|4(?:1[45]|4)|583|6(?:1[0236]|3[02]|9[169]))|1(?:1611|59)1|1[068]78|1[08]9[16]|1(?:0[1-38]|40|5[15]|6[258]|82)0",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PW:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"911",,,,"911"],[,,,,,,,,,[-1]],,,,"PW",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"911",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],PY:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"128|911",,,,"128"],[,,,,,,,,,[-1]],,,,"PY",,,,,,,,,,,,,,,,,,[,,"128|911",,,,"128"],,[,,"1[1-9]\\d|911",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],QA:[,[,,"[129]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"999",,,,"999",,,[3]],[,,,,,,,,,[-1]],,,,"QA",,,,,,,,,,,,,,,,,,[,,"999",,,,"999",,,[3]],,[,,"999|(?:1|20|9[27]\\d)\\d\\d",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],RE:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:12|[578])",,,,"15"],[,,,,,,,,,[-1]],,,,"RE",,,,,,,,,,,,,,,,,,[,,"1(?:12|[578])",,,,"15"],,[,,"1(?:12|[578])",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],RO:[,[,,"[18]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:2|6\\d{3})",,,,"112",,,[3,6]],[,,"(?:1(?:18[39]|[24])|8[48])\\d\\d",,,,"1200",,,[4,6]],,,,"RO",,,,,,,,,,,,,,,,,,[,,"112",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:000|1(?:11|23))|8(?:(?:01|8[18])1|119|[23]00|932))|[24]\\d\\d|9(?:0(?:00|19)|1[19]|21|3[02]|5[178]))|8[48]\\d\\d",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"(?:1[24]|8[48])\\d\\d",,,,"1200",,,[4]]],RS:[,[,,"[19]\\d{1,5}",,,,,,,[2,3,4,5,6]],,,[,,"112|9[2-4]",,,,"92",,,[2,3]],[,,,,,,,,,[-1]],,,,"RS",,,,,,,,,,,,,,,,,,[,,"112|9[2-4]",,,,"92",,,[2,3]],,[,,"1[189]\\d{1,4}|9[2-4]",,,,"92"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],RU:[,[,,"[01]\\d\\d?",,,,,,,[2,3]],,,[,,"112|(?:0|10)[1-3]",,,,"01"],[,,,,,,,,,[-1]],,,,"RU",,,,,,,,,,,,,,,,,,[,,"112|(?:0|10)[1-3]",,,,"01"],,[,,"112|(?:0|10)[1-4]",,,,"01"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],RW:[,[,,"[14]\\d\\d",,,,,,,[3]],,,[,,"11[1245]",,,,"111"],[,,,,,,,,,[-1]],,,,"RW",,,,,,,,,,,,,,,,,,[,,"11[12]",,,,"111"],,[,,"1(?:0[0-2]|1[0-24-6]|2[13]|70|99)|456",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SA:[,[,,"[19]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:2|6\\d{3})|9(?:11|37|9[7-9])",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"SA",,,,,,,,,,,,,,,,,,[,,"112|9(?:11|9[79])",,,,"112",,,[3]],,[,,"1(?:1(?:00|2|6111)|410|9(?:00|1[89]|9(?:099|22|9[0-3])))|9(?:0[24-79]|11|3[379]|40|66|8[5-9]|9[02-9])",,,,"112"],[,,"141\\d",,,,"1410",,,[4]],[,,"1(?:10|41)\\d|90[24679]",,,,"902",,,[3,4]],,[,,,,,,,,,[-1]]],SB:[,[,,"[127-9]\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"SB",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"1(?:[02]\\d|1[12]|[35][01]|[49][1-9]|6[2-9]|7[7-9]|8[0-8])|269|777|835|9(?:[01]1|22|33|55|77|88|99)",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SC:[,[,,"[19]\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[146]|60)|999",,,,"111",,,[3]],[,,,,,,,,,[-1]],,,,"SC",,,,,,,,,,,,,,,,,,[,,"999",,,,"999",,,[3]],,[,,"1(?:[06]\\d|1[0-2467]|2[0-8]|3[13]|4[0-2]|[59][15]|7[124-6]|8[158])|9(?:6\\d\\d|99)",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SD:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"SD",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"999",,,,"999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SE:[,[,,"[1-37-9]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:2|(?:3|6\\d)\\d\\d|414|77)|900\\d\\d",,,,"112"],[,,"11811[89]|72\\d{3}",,,,"72000",,,[5,6]],,,,"SE",,,,,,,,,,,,,,,,,,[,,"112|90000",,,,"112",,,[3,5]],,[,,"11(?:[25]|313|6(?:00[06]|1(?:1[17]|23))|7[0-8])|2(?:2[02358]|33|4[01]|50|6[1-4])|32[13]|8(?:22|88)|9(?:0(?:00|51)0|12)|(?:11(?:4|8[02-46-9])|7\\d\\d|90[2-4])\\d\\d|(?:118|90)1(?:[02-9]\\d|1[013-9])",,,,"112"],[,,,,,,,,,[-1]],[,,"2(?:2[02358]|33|4[01]|50|6[1-4])|32[13]|8(?:22|88)|912",,,,"220",,,[3]],,[,,"7\\d{4}",,,,"70000",,,[5]]],SG:[,[,,"[179]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"99[359]",,,,"993",,,[3]],[,,,,,,,,,[-1]],,,,"SG",,,,,,,,,,,,,,,,,,[,,"99[359]",,,,"993",,,[3]],,[,,"1(?:(?:[01368]\\d|44)\\d|[57]\\d{2,3}|9(?:0[1-9]|[1-9]\\d))|77222|99[02-9]|100",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,"772\\d\\d",,,,"77200",,,[5]]],SH:[,[,,"[129]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"9(?:11|99)",,,,"911",,,[3]],[,,,,,,,,,[-1]],,,,"SH",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911",,,[3]],,[,,"1\\d{2,3}|26[01]\\d\\d|9(?:11|99)",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SI:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"11(?:(?:0|6\\d)\\d\\d|[23]|8\\d\\d?)",,,,"112"],[,,,,,,,,,[-1]],,,,"SI",,,,,,,,,,,,,,,,,,[,,"11[23]",,,,"112",,,[3]],,[,,"1(?:1(?:00[146]|[23]|6(?:000|1(?:11|23))|8(?:[08]|99))|9(?:059|1(?:0[12]|16)|5|70|87|9(?:00|[149])))|19(?:08|81)[09]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SJ:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[023]",,,,"110"],[,,,,,,,,,[-1]],,,,"SJ",,,,,,,,,,,,,,,,,,[,,"11[023]",,,,"110"],,[,,"11[023]",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SK:[,[,,"1\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:1(?:2|6\\d{3})|5[058])",,,,"112",,,[3,6]],[,,,,,,,,,[-1]],,,,"SK",,,,,,,,,,,,,,,,,,[,,"1(?:12|5[058])",,,,"112",,,[3]],,[,,"1(?:1(?:2|6(?:000|111)|8[0-8])|[248]\\d{3}|5[0589])",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SL:[,[,,"[069]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"(?:01|99)9",,,,"019",,,[3]],[,,,,,,,,,[-1]],,,,"SL",,,,,,,,,,,,,,,,,,[,,"(?:01|99)9",,,,"019",,,[3]],,[,,"(?:01|99)9|60400",,,,"019"],[,,,,,,,,,[-1]],[,,"604\\d\\d",,,,"60400",,,[5]],,[,,"604\\d\\d",,,,"60400",,,[5]]],SM:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[358]",,,,"113"],[,,,,,,,,,[-1]],,,,"SM",,,,,,,,,,,,,,,,,,[,,"11[358]",,,,"113"],,[,,"11[358]",,,,"113"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SN:[,[,,"[12]\\d{1,5}",,,,,,,[2,3,4,5,6]],,,[,,"1(?:515|[78])|2(?:00|1)\\d{3}",,,,"17",,,[2,4,5,6]],[,,"2(?:0[246]|[468])\\d{3}",,,,"24000",,,[5,6]],,,,"SN",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17",,,[2]],,[,,"1(?:1[69]|(?:[246]\\d|51)\\d)|2(?:0[0-246]|[12468])\\d{3}|1[278]",,,,"12"],[,,"2(?:01|2)\\d{3}",,,,"22000",,,[5,6]],[,,"1[46]\\d\\d",,,,"1400",,,[4]],,[,,"2[468]\\d{3}",,,,"24000",,,[5]]],SO:[,[,,"[57-9]\\d\\d",,,,,,,[3]],,,[,,"555|888|999",,,,"555"],[,,,,,,,,,[-1]],,,,"SO",,,,,,,,,,,,,,,,,,[,,"555|888|999",,,,"555"],,[,,"555|777|888|999",,,,"555"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SR:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"115",,,,"115",,,[3]],[,,,,,,,,,[-1]],,,,"SR",,,,,,,,,,,,,,,,,,[,,"115",,,,"115",,,[3]],,[,,"1\\d{2,3}",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SS:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"SS",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"999",,,,"999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ST:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"112",,,,"112"],[,,,,,,,,,[-1]],,,,"ST",,,,,,,,,,,,,,,,,,[,,"112",,,,"112"],,[,,"112",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SV:[,[,,"[149]\\d\\d(?:\\d{2,3})?",,,,,,,[3,5,6]],,,[,,"116\\d{3}|911",,,,"911",,,[3,6]],[,,,,,,,,,[-1]],,,,"SV",,,,,,,,,,,,,,,,,,[,,"91[13]",,,,"911",,,[3]],,[,,"1(?:1(?:2|6111)|2[136-8]|3[0-6]|9[05])|40404|9(?:1\\d|29)",,,,"112"],[,,,,,,,,,[-1]],[,,"404\\d\\d",,,,"40400",,,[5]],,[,,"404\\d\\d",,,,"40400",,,[5]]],SX:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:19|88)",,,,"919"],[,,,,,,,,,[-1]],,,,"SX",,,,,,,,,,,,,,,,,,[,,"919",,,,"919"],,[,,"9(?:19|88)",,,,"919"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SY:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[023]",,,,"110"],[,,,,,,,,,[-1]],,,,"SY",,,,,,,,,,,,,,,,,,[,,"11[023]",,,,"110"],,[,,"11[023]",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],SZ:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"SZ",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"999",,,,"999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TC:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"TC",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TD:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],,,,"TD",,,,,,,,,,,,,,,,,,[,,"1[78]",,,,"17"],,[,,"1[78]",,,,"17"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TG:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1[78]|7[127])",,,,"117",,,[3]],[,,,,,,,,,[-1]],,,,"TG",,,,,,,,,,,,,,,,,,[,,"1(?:1[78]|7[127])",,,,"117",,,[3]],,[,,"1(?:011|1[078]|7[127])",,,,"110"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TH:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"1(?:1(?:00|2[03]|3[3479]|7[67]|9[0246])|578|6(?:44|6[79]|88|9[16])|88\\d|9[19])|1[15]55",,,,"191"],[,,"1(?:113|2[23]\\d|5(?:09|56))",,,,"1113",,,[4]],,,,"TH",,,,,,,,,,,,,,,,,,[,,"1(?:669|9[19])",,,,"191"],,[,,"1(?:0[0-2]|1(?:0[03]|1[1-35]|2[0358]|3[03-79]|4[02-489]|5[04-9]|6[04-79]|7[03-9]|8[027-9]|9[02-9])|2(?:22|3[89]|66)|3(?:18|2[23]|3[013]|5[56]|6[45]|73)|477|5(?:0\\d|4[0-37-9]|5[1-8]|6[01679]|7[12568]|8[0-24589]|9[013589])|6(?:0[0-29]|2[03]|4[3-6]|6[1-9]|7[0257-9]|8[0158]|9[014-9])|7(?:[14]9|7[27]|90)|888|9[19])",,,,"100"],[,,"1(?:1(?:03|1[15]|2[58]|3[056]|4[02-49]|5[046-9]|7[03-589]|9[57-9])|5(?:0[0-8]|4[0-378]|5[1-478]|7[156])|6(?:20|4[356]|6[1-68]|7[057-9]|8[015]|9[0457-9]))|1(?:1[68]|26|3[1-35]|5[689]|60|7[17])\\d",,,,"1103",,,[4]],[,,"114[89]",,,,"1148",,,[4]],,[,,,,,,,,,[-1]]],TJ:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"1(?:0[1-3]|12)",,,,"101"],[,,,,,,,,,[-1]],,,,"TJ",,,,,,,,,,,,,,,,,,[,,"1(?:0[1-3]|12)",,,,"101"],,[,,"1(?:0[1-3]|12)",,,,"101"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TL:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[25]",,,,"112"],[,,,,,,,,,[-1]],,,,"TL",,,,,,,,,,,,,,,,,,[,,"11[25]",,,,"112"],,[,,"1(?:0[02]|1[25]|2[0138]|72|9[07])",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TM:[,[,,"0\\d",,,,,,,[2]],,,[,,"0[1-49]",,,,"01"],[,,,,,,,,,[-1]],,,,"TM",,,,,,,,,,,,,,,,,,[,,"0[1-3]",,,,"01"],,[,,"0[1-49]",,,,"01"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TN:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"19[078]",,,,"190"],[,,,,,,,,,[-1]],,,,"TN",,,,,,,,,,,,,,,,,,[,,"19[078]",,,,"190"],,[,,"19[078]",,,,"190"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TO:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|22|33|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"TO",,,,,,,,,,,,,,,,,,[,,"9(?:11|22|33|99)",,,,"911"],,[,,"9(?:11|22|33|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TR:[,[,,"[1-9]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:1[02]|22|3[126]|4[04]|5[15-9]|6[18]|77|83)",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"TR",,,,,,,,,,,,,,,,,,[,,"1(?:1[02]|55)",,,,"110",,,[3]],,[,,"1(?:1(?:[02-79]|8(?:1[018]|2[0245]|3[2-4]|42|5[058]|6[06]|7[07]|8[01389]|9[089]))|3(?:37|[58]6|65)|471|5(?:07|78)|6(?:[02]6|99)|8(?:63|95))|2(?:077|268|4(?:17|23)|5(?:7[26]|82)|6[14]4|8\\d\\d|9(?:30|89))|3(?:0(?:05|72)|353|4(?:06|30|64)|502|674|747|851|9(?:1[29]|60))|4(?:0(?:25|3[12]|[47]2)|3(?:3[13]|[89]1)|439|5(?:43|55)|717|832)|5(?:145|290|[4-6]\\d\\d|772|833|9(?:[06]1|92))|6(?:236|6(?:12|39|8[59])|769)|7890|8(?:688|7(?:28|65)|85[06])|9(?:159|290)|1[2-9]\\d",,,,"110"],[,,"(?:285|542)0",,,,"2850",,,[4]],[,,,,,,,,,[-1]],,[,,"1(?:3(?:37|[58]6|65)|4(?:4|71)|5(?:07|78)|6(?:[02]6|99)|8(?:3|63|95))|(?:2(?:07|26|4[12]|5[78]|6[14]|8\\d|9[38])|3(?:0[07]|[38]5|4[036]|50|67|74|9[16])|4(?:0[2-47]|3[389]|[48]3|5[45]|71)|5(?:14|29|[4-6]\\d|77|83|9[069])|6(?:23|6[138]|76)|789|8(?:68|7[26]|85)|9(?:15|29))\\d",,,,"144",,,[3,4]]],TT:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:88|9[09])",,,,"988"],[,,,,,,,,,[-1]],,,,"TT",,,,,,,,,,,,,,,,,,[,,"99[09]",,,,"990"],,[,,"9(?:88|9[09])",,,,"988"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TV:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"911",,,,"911"],[,,,,,,,,,[-1]],,,,"TV",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"1\\d\\d|911",,,,"100"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TW:[,[,,"1\\d{2,3}",,,,,,,[3,4]],,,[,,"11[0289]|1(?:81|92)\\d",,,,"110"],[,,"10[56]",,,,"105",,,[3]],,,,"TW",,,,,,,,,,,,,,,,,,[,,"11[029]",,,,"110",,,[3]],,[,,"1(?:0[04-6]|1[0237-9]|3[389]|6[05-8]|7[07]|8(?:0|11)|9(?:19|22|5[057]|68|8[05]|9[15689]))",,,,"100"],[,,"1(?:65|9(?:1\\d|50|85|98))",,,,"165"],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],TZ:[,[,,"[149]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"1(?:1[0-79]|9[09])|999",,,,"110",,,[3]],[,,,,,,,,,[-1]],,,,"TZ",,,,,,,,,,,,,,,,,,[,,"11[0-245]|999",,,,"110",,,[3]],,[,,"1(?:1\\d|9[09])|46400|999",,,,"110"],[,,,,,,,,,[-1]],[,,"464\\d\\d",,,,"46400",,,[5]],,[,,"464\\d\\d",,,,"46400",,,[5]]],UA:[,[,,"[189]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"1(?:0[1-3]|1(?:2|6\\d{3}))",,,,"101",,,[3,6]],[,,,,,,,,,[-1]],,,,"UA",,,,,,,,,,,,,,,,,,[,,"1(?:0[1-3]|12)",,,,"101",,,[3]],,[,,"1(?:0[1-49]|1(?:2|6(?:000|1(?:11|23))|8\\d\\d?)|(?:[278]|5\\d)\\d)|[89]00\\d\\d?|151|1(?:06|4\\d|6)\\d\\d",,,,"101"],[,,,,,,,,,[-1]],[,,"(?:118|[89]00)\\d\\d?",,,,"1180",,,[4,5]],,[,,,,,,,,,[-1]]],UG:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"999",,,,"999"],[,,,,,,,,,[-1]],,,,"UG",,,,,,,,,,,,,,,,,,[,,"999",,,,"999"],,[,,"999",,,,"999"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],US:[,[,,"[1-9]\\d{2,5}",,,,,,,[3,4,5,6]],,,[,,"112|611|9(?:11|33|88)",,,,"112",,,[3]],[,,"24280|(?:381|968)35|4(?:3355|7553|8221)|5(?:(?:489|934)2|5928)|72078|(?:323|960)40|(?:276|414)63|(?:2(?:520|744)|7390|9968)9|(?:693|732|976)88|(?:3(?:556|825)|5294|8623|9729)4|(?:3378|4136|7642|8961|9979)6|(?:4(?:6(?:15|32)|827)|(?:591|720)8|9529)7",,,,"24280",,,[5]],,,,"US",,,,,,,,,,,,,,,,,,[,,"112|911",,,,"112",,,[3]],,[,,"11(?:2|5[1-47]|[68]\\d|7[0-57]|98)|[2-9]\\d{3,5}|[2-8]11|9(?:11|33|88)",,,,"112"],[,,"2(?:3333|(?:4224|7562|900)2|56447|6688)|3(?:1010|2665|7404)|40404|560560|6(?:0060|22639|5246|7622)|7(?:0701|3822|4666)|8(?:(?:3825|7226)5|4816)|99099",,,,"23333",,,[5,6]],[,,"336\\d\\d|[2-9]\\d{3}|[2356]11",,,,"211",,,[3,4,5]],,[,,"[2-9]\\d{4,5}",,,,"20000",,,[5,6]]],UY:[,[,,"[19]\\d{2,3}",,,,,,,[3,4]],,,[,,"128|911",,,,"128",,,[3]],[,,,,,,,,,[-1]],,,,"UY",,,,,,,,,,,,,,,,,,[,,"128|911",,,,"128",,,[3]],,[,,"1(?:0[4-9]|1[2368]|2[0-3568]|787)|911",,,,"104"],[,,"178\\d",,,,"1780",,,[4]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],UZ:[,[,,"[04]\\d(?:\\d(?:\\d{2})?)?",,,,,,,[2,3,5]],,,[,,"0(?:0[1-3]|[1-3]|50)",,,,"01",,,[2,3]],[,,,,,,,,,[-1]],,,,"UZ",,,,,,,,,,,,,,,,,,[,,"0(?:0[1-3]|[1-3]|50)",,,,"01",,,[2,3]],,[,,"0(?:0[1-3]|[1-3]|50)|45400",,,,"01"],[,,,,,,,,,[-1]],[,,"454\\d\\d",,,,"45400",,,[5]],,[,,"454\\d\\d",,,,"45400",,,[5]]],VA:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[2358]",,,,"112"],[,,,,,,,,,[-1]],,,,"VA",,,,,,,,,,,,,,,,,,[,,"11[2358]",,,,"112"],,[,,"11[2358]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VC:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"VC",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VE:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"1(?:12|71)|911",,,,"112"],[,,,,,,,,,[-1]],,,,"VE",,,,,,,,,,,,,,,,,,[,,"1(?:12|71)|911",,,,"112"],,[,,"1(?:12|71)|911",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VG:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],,,,"VG",,,,,,,,,,,,,,,,,,[,,"9(?:11|99)",,,,"911"],,[,,"9(?:11|88|99)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VI:[,[,,"9\\d\\d",,,,,,,[3]],,,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],,,,"VI",,,,,,,,,,,,,,,,,,[,,"911",,,,"911"],,[,,"9(?:11|88)",,,,"911"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VN:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"11[3-5]",,,,"113"],[,,,,,,,,,[-1]],,,,"VN",,,,,,,,,,,,,,,,,,[,,"11[3-5]",,,,"113"],,[,,"11[3-5]",,,,"113"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],VU:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"112",,,,"112"],[,,,,,,,,,[-1]],,,,"VU",,,,,,,,,,,,,,,,,,[,,"112",,,,"112"],,[,,"112",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],WF:[,[,,"1\\d",,,,,,,[2]],,,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],,,,"WF",,,,,,,,,,,,,,,,,,[,,"1[578]",,,,"15"],,[,,"1[578]",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],WS:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"9(?:11|9[4-69])",,,,"911"],[,,,,,,,,,[-1]],,,,"WS",,,,,,,,,,,,,,,,,,[,,"9(?:11|9[4-69])",,,,"911"],,[,,"1(?:1[12]|2[0-6]|[39]0)|9(?:11|9[4-79])",,,,"111"],[,,,,,,,,,[-1]],[,,"12[0-6]",,,,"120"],,[,,,,,,,,,[-1]]],XK:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"1(?:12|9[2-4])",,,,"112"],[,,,,,,,,,[-1]],,,,"XK",,,,,,,,,,,,,,,,,,[,,"1(?:12|9[2-4])",,,,"112"],,[,,"1(?:12|9[2-4])",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],YE:[,[,,"1\\d\\d",,,,,,,[3]],,,[,,"19[1459]",,,,"191"],[,,,,,,,,,[-1]],,,,"YE",,,,,,,,,,,,,,,,,,[,,"19[1459]",,,,"191"],,[,,"19[1459]",,,,"191"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],YT:[,[,,"1\\d\\d?",,,,,,,[2,3]],,,[,,"1(?:12|5)",,,,"15"],[,,,,,,,,,[-1]],,,,"YT",,,,,,,,,,,,,,,,,,[,,"1(?:12|5)",,,,"15"],,[,,"1(?:12|5)",,,,"15"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ZA:[,[,,"[134]\\d{2,4}",,,,,,,[3,4,5]],,,[,,"1(?:01\\d\\d|12)",,,,"112",,,[3,5]],[,,"41(?:348|851)",,,,"41348",,,[5]],,,,"ZA",,,,,,,,,,,,,,,,,,[,,"1(?:01(?:11|77)|12)",,,,"112",,,[3,5]],,[,,"1(?:0(?:1(?:11|77)|20|7)|1[12]|77(?:3[237]|[45]7|6[279]|9[26]))|[34]\\d{4}",,,,"107"],[,,"3(?:078[23]|7(?:064|567)|8126)|4(?:394[16]|7751|8837)|4[23]699",,,,"30782",,,[5]],[,,"111",,,,"111",,,[3]],,[,,"[34]\\d{4}",,,,"30000",,,[5]]],ZM:[,[,,"[19]\\d\\d",,,,,,,[3]],,,[,,"112|99[139]",,,,"112"],[,,,,,,,,,[-1]],,,,"ZM",,,,,,,,,,,,,,,,,,[,,"112|99[139]",,,,"112"],,[,,"112|99[139]",,,,"112"],[,,,,,,,,,[-1]],[,,,,,,,,,[-1]],,[,,,,,,,,,[-1]]],ZW:[,[,,"[139]\\d\\d(?:\\d{2})?",,,,,,,[3,5]],,,[,,"112|9(?:5[023]|61|9[3-59])",,,,"112",,,[3]],[,,"3[013-57-9]\\d{3}",,,,"30000",,,[5]],,,,"ZW",,,,,,,,,,,,,,,,,,[,,"112|99[3-59]",,,,"112",,,[3]],,[,,"11[2469]|3[013-57-9]\\d{3}|9(?:5[023]|6[0-25]|9[3-59])",,,,"112"],[,,,,,,,,,[-1]],[,,"114|9(?:5[023]|6[0-25])",,,,"114",,,[3]],,[,,,,,,,,,[-1]]]},i18n.phonenumbers.ShortNumberInfo=function(){this.regionToMetadataMap={}},goog.addSingletonGetter(i18n.phonenumbers.ShortNumberInfo),i18n.phonenumbers.ShortNumberInfo.REGIONS_WHERE_EMERGENCY_NUMBERS_MUST_BE_EXACT_=["BR","CL","NI"],i18n.phonenumbers.ShortNumberInfo.ShortNumberCost={TOLL_FREE:0,STANDARD_RATE:1,PREMIUM_RATE:2,UNKNOWN_COST:3},i18n.phonenumbers.ShortNumberInfo.prototype.getRegionCodesForCountryCode_=function(v){return(v=i18n.phonenumbers.metadata.countryCodeToRegionCodeMap[v])?v:[]},i18n.phonenumbers.ShortNumberInfo.prototype.regionDialingFromMatchesNumber_=function(v,x){return v=this.getRegionCodesForCountryCode_(v.getCountryCodeOrDefault()),null!=x&&v.includes(x)},i18n.phonenumbers.ShortNumberInfo.prototype.isPossibleShortNumberForRegion=function(v,x){return!(!this.regionDialingFromMatchesNumber_(v,x)||(x=this.getMetadataForRegion_(x),!x))&&(v=this.getNationalSignificantNumber_(v).length,x.getGeneralDesc().possibleLengthArray().includes(v))},i18n.phonenumbers.ShortNumberInfo.prototype.isPossibleShortNumber=function(v){var x=this.getRegionCodesForCountryCode_(v.getCountryCodeOrDefault());v=this.getNationalSignificantNumber_(v).length;for(var S=0;S<x.length;S++){var D=this.getMetadataForRegion_(x[S]);if(D&&D.getGeneralDesc().possibleLengthArray().includes(v))return!0}return!1},i18n.phonenumbers.ShortNumberInfo.prototype.isValidShortNumberForRegion=function(v,x){if(!this.regionDialingFromMatchesNumber_(v,x)||!(x=this.getMetadataForRegion_(x)))return!1;v=this.getNationalSignificantNumber_(v);var S=x.getGeneralDesc();return!!this.matchesPossibleNumberAndNationalNumber_(v,S)&&(x=x.getShortCode(),this.matchesPossibleNumberAndNationalNumber_(v,x))},i18n.phonenumbers.ShortNumberInfo.prototype.isValidShortNumber=function(v){var x=this.getRegionCodesForCountryCode_(v.getCountryCodeOrDefault()),S=this.getRegionCodeForShortNumberFromRegionList_(v,x);return 1<x.length&&null!=S||this.isValidShortNumberForRegion(v,S)},i18n.phonenumbers.ShortNumberInfo.prototype.getExpectedCostForRegion=function(v,x){var S=i18n.phonenumbers.ShortNumberInfo.ShortNumberCost;if(!this.regionDialingFromMatchesNumber_(v,x))return S.UNKNOWN_COST;var D=this.getMetadataForRegion_(x);return D?(v=this.getNationalSignificantNumber_(v),D.getGeneralDesc().possibleLengthArray().includes(v.length)?this.matchesPossibleNumberAndNationalNumber_(v,D.getPremiumRate())?S.PREMIUM_RATE:this.matchesPossibleNumberAndNationalNumber_(v,D.getStandardRate())?S.STANDARD_RATE:this.matchesPossibleNumberAndNationalNumber_(v,D.getTollFree())||this.isEmergencyNumber(v,x)?S.TOLL_FREE:S.UNKNOWN_COST:S.UNKNOWN_COST):S.UNKNOWN_COST},i18n.phonenumbers.ShortNumberInfo.prototype.getExpectedCost=function(v){var x=i18n.phonenumbers.ShortNumberInfo.ShortNumberCost,S=this.getRegionCodesForCountryCode_(v.getCountryCodeOrDefault());if(0===S.length)return x.UNKNOWN_COST;if(1===S.length)return this.getExpectedCostForRegion(v,S[0]);for(var D=x.TOLL_FREE,n=0;n<S.length;n++){var O=this.getExpectedCostForRegion(v,S[n]);switch(O){case x.PREMIUM_RATE:return x.PREMIUM_RATE;case x.UNKNOWN_COST:D=x.UNKNOWN_COST;break;case x.STANDARD_RATE:D!==x.UNKNOWN_COST&&(D=x.STANDARD_RATE);break;case x.TOLL_FREE:break;default:throw Error("Unrecognized cost for region: "+O)}}return D},i18n.phonenumbers.ShortNumberInfo.prototype.getRegionCodeForShortNumberFromRegionList_=function(v,x){if(0===x.length)return null;if(1===x.length)return x[0];v=this.getNationalSignificantNumber_(v);for(var S=0;S<x.length;S++){var D=x[S],n=this.getMetadataForRegion_(D);if(n&&this.matchesPossibleNumberAndNationalNumber_(v,n.getShortCode()))return D}return null},i18n.phonenumbers.ShortNumberInfo.prototype.getSupportedRegions=function(){return Object.keys(i18n.phonenumbers.shortnumbermetadata.countryToMetadata).filter(function(v){return isNaN(v)})},i18n.phonenumbers.ShortNumberInfo.prototype.getExampleShortNumber=function(v){return(v=this.getMetadataForRegion_(v))&&(v=v.getShortCode()).hasExampleNumber()&&v.getExampleNumber()||""},i18n.phonenumbers.ShortNumberInfo.prototype.getExampleShortNumberForCost=function(v,x){if(!(v=this.getMetadataForRegion_(v)))return"";var S=i18n.phonenumbers.ShortNumberInfo.ShortNumberCost,D=null;switch(x){case S.TOLL_FREE:D=v.getTollFree();break;case S.STANDARD_RATE:D=v.getStandardRate();break;case S.PREMIUM_RATE:D=v.getPremiumRate()}return D&&D.hasExampleNumber()&&D.getExampleNumber()||""},i18n.phonenumbers.ShortNumberInfo.prototype.connectsToEmergencyNumber=function(v,x){return this.matchesEmergencyNumberHelper_(v,x,!0)},i18n.phonenumbers.ShortNumberInfo.prototype.isEmergencyNumber=function(v,x){return this.matchesEmergencyNumberHelper_(v,x,!1)},i18n.phonenumbers.ShortNumberInfo.prototype.getMetadataForRegion_=function(v){if(!v)return null;v=v.toUpperCase();var x=this.regionToMetadataMap[v];if(null==x){x=new goog.proto2.PbLiteSerializer;var S=i18n.phonenumbers.shortnumbermetadata.countryToMetadata[v];if(null==S)return null;x=x.deserialize(i18n.phonenumbers.PhoneMetadata.getDescriptor(),S),this.regionToMetadataMap[v]=x}return x},i18n.phonenumbers.ShortNumberInfo.prototype.matchesEmergencyNumberHelper_=function(v,x,S){var D=i18n.phonenumbers.PhoneNumberUtil.extractPossibleNumber(v);return!(i18n.phonenumbers.PhoneNumberUtil.LEADING_PLUS_CHARS_PATTERN.test(D)||(v=this.getMetadataForRegion_(x),null==v||!v.hasEmergency()))&&(D=i18n.phonenumbers.PhoneNumberUtil.normalizeDigitsOnly(D),x=S&&!i18n.phonenumbers.ShortNumberInfo.REGIONS_WHERE_EMERGENCY_NUMBERS_MUST_BE_EXACT_.includes(x),S=v.getEmergency().getNationalNumberPatternOrDefault(),i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(S,D)||x&&i18n.phonenumbers.PhoneNumberUtil.matchesPrefix(S,D))},i18n.phonenumbers.ShortNumberInfo.prototype.isCarrierSpecific=function(v){var x=this.getRegionCodesForCountryCode_(v.getCountryCodeOrDefault());return x=this.getRegionCodeForShortNumberFromRegionList_(v,x),v=this.getNationalSignificantNumber_(v),!!(x=this.getMetadataForRegion_(x))&&this.matchesPossibleNumberAndNationalNumber_(v,x.getCarrierSpecific())},i18n.phonenumbers.ShortNumberInfo.prototype.isCarrierSpecificForRegion=function(v,x){return!!this.regionDialingFromMatchesNumber_(v,x)&&(v=this.getNationalSignificantNumber_(v),!!(x=this.getMetadataForRegion_(x))&&this.matchesPossibleNumberAndNationalNumber_(v,x.getCarrierSpecific()))},i18n.phonenumbers.ShortNumberInfo.prototype.isSmsServiceForRegion=function(v,x){return!!this.regionDialingFromMatchesNumber_(v,x)&&(x=this.getMetadataForRegion_(x),v=this.getNationalSignificantNumber_(v),!!x&&this.matchesPossibleNumberAndNationalNumber_(v,x.getSmsServices()))},i18n.phonenumbers.ShortNumberInfo.prototype.getNationalSignificantNumber_=function(v){if(!v.hasNationalNumber())return"";var x=""+v.getNationalNumber();return v.hasItalianLeadingZero()&&v.getItalianLeadingZero()&&0<v.getNumberOfLeadingZerosOrDefault()?Array(v.getNumberOfLeadingZerosOrDefault()+1).join("0")+x:x},i18n.phonenumbers.ShortNumberInfo.prototype.matchesPossibleNumberAndNationalNumber_=function(v,x){return!(0<x.possibleLengthArray().length&&!x.possibleLengthArray().includes(v.length))&&i18n.phonenumbers.PhoneNumberUtil.matchesEntirely(x.getNationalNumberPatternOrDefault(),v.toString())},i18n.phonenumbers.AsYouTypeFormatter=function(v){this.DIGIT_PLACEHOLDER_="\u2008",this.DIGIT_PATTERN_=new RegExp(this.DIGIT_PLACEHOLDER_),this.currentOutput_="",this.formattingTemplate_=new goog.string.StringBuffer,this.currentFormattingPattern_="",this.accruedInput_=new goog.string.StringBuffer,this.accruedInputWithoutFormatting_=new goog.string.StringBuffer,this.ableToFormat_=!0,this.isExpectingCountryCallingCode_=this.isCompleteNumber_=this.inputHasFormatting_=!1,this.phoneUtil_=i18n.phonenumbers.PhoneNumberUtil.getInstance(),this.positionToRemember_=this.originalPosition_=this.lastMatchPosition_=0,this.prefixBeforeNationalNumber_=new goog.string.StringBuffer,this.shouldAddSpaceAfterNationalPrefix_=!1,this.extractedNationalPrefix_="",this.nationalNumber_=new goog.string.StringBuffer,this.possibleFormats_=[],this.defaultCountry_=v,this.defaultMetadata_=this.currentMetadata_=this.getMetadataForRegion_(this.defaultCountry_)},i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_=" ",i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_=new i18n.phonenumbers.PhoneMetadata,i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_.setInternationalPrefix("NA"),i18n.phonenumbers.AsYouTypeFormatter.ELIGIBLE_FORMAT_PATTERN_=new RegExp("^["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]*\\$1["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]*(\\$\\d["+i18n.phonenumbers.PhoneNumberUtil.VALID_PUNCTUATION+"]*)*$"),i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_=/[- ]/,i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_=3,i18n.phonenumbers.AsYouTypeFormatter.prototype.getMetadataForRegion_=function(v){return v=this.phoneUtil_.getCountryCodeForRegion(v),v=this.phoneUtil_.getRegionCodeForCountryCode(v),(v=this.phoneUtil_.getMetadataForRegion(v))??i18n.phonenumbers.AsYouTypeFormatter.EMPTY_METADATA_},i18n.phonenumbers.AsYouTypeFormatter.prototype.maybeCreateNewTemplate_=function(){for(var v=this.possibleFormats_.length,x=0;x<v;++x){var S=this.possibleFormats_[x],D=S.getPatternOrDefault();if(this.currentFormattingPattern_==D)return!1;if(this.createFormattingTemplate_(S))return this.currentFormattingPattern_=D,this.shouldAddSpaceAfterNationalPrefix_=i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_.test(S.getNationalPrefixFormattingRule()),this.lastMatchPosition_=0,!0}return this.ableToFormat_=!1},i18n.phonenumbers.AsYouTypeFormatter.prototype.getAvailableFormats_=function(v){for(var x=this.isCompleteNumber_&&0==this.extractedNationalPrefix_.length&&0<this.currentMetadata_.intlNumberFormatCount()?this.currentMetadata_.intlNumberFormatArray():this.currentMetadata_.numberFormatArray(),S=x.length,D=0;D<S;++D){var n=x[D];0<this.extractedNationalPrefix_.length&&this.phoneUtil_.formattingRuleHasFirstGroupOnly(n.getNationalPrefixFormattingRuleOrDefault())&&!n.getNationalPrefixOptionalWhenFormatting()&&!n.hasDomesticCarrierCodeFormattingRule()||(0!=this.extractedNationalPrefix_.length||this.isCompleteNumber_||this.phoneUtil_.formattingRuleHasFirstGroupOnly(n.getNationalPrefixFormattingRuleOrDefault())||n.getNationalPrefixOptionalWhenFormatting())&&i18n.phonenumbers.AsYouTypeFormatter.ELIGIBLE_FORMAT_PATTERN_.test(n.getFormatOrDefault())&&this.possibleFormats_.push(n)}this.narrowDownPossibleFormats_(v)},i18n.phonenumbers.AsYouTypeFormatter.prototype.narrowDownPossibleFormats_=function(v){for(var x=[],S=v.length-i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_,D=this.possibleFormats_.length,n=0;n<D;++n){var O=this.possibleFormats_[n];if(0==O.leadingDigitsPatternCount())x.push(this.possibleFormats_[n]);else{var R=Math.min(S,O.leadingDigitsPatternCount()-1);O=O.getLeadingDigitsPattern(R),0==v.search(O)&&x.push(this.possibleFormats_[n])}}this.possibleFormats_=x},i18n.phonenumbers.AsYouTypeFormatter.prototype.createFormattingTemplate_=function(v){var x=v.getPatternOrDefault();return this.formattingTemplate_.clear(),0<(v=this.getFormattingTemplate_(x,v.getFormatOrDefault())).length&&(this.formattingTemplate_.append(v),!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.getFormattingTemplate_=function(v,x){var S="999999999999999".match(v)[0];return S.length<this.nationalNumber_.getLength()?"":v=(v=S.replace(new RegExp(v,"g"),x)).replace(/9/g,this.DIGIT_PLACEHOLDER_)},i18n.phonenumbers.AsYouTypeFormatter.prototype.clear=function(){this.currentOutput_="",this.accruedInput_.clear(),this.accruedInputWithoutFormatting_.clear(),this.formattingTemplate_.clear(),this.lastMatchPosition_=0,this.currentFormattingPattern_="",this.prefixBeforeNationalNumber_.clear(),this.extractedNationalPrefix_="",this.nationalNumber_.clear(),this.ableToFormat_=!0,this.inputHasFormatting_=!1,this.originalPosition_=this.positionToRemember_=0,this.isExpectingCountryCallingCode_=this.isCompleteNumber_=!1,this.possibleFormats_=[],this.shouldAddSpaceAfterNationalPrefix_=!1,this.currentMetadata_!=this.defaultMetadata_&&(this.currentMetadata_=this.getMetadataForRegion_(this.defaultCountry_))},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigit=function(v){return this.currentOutput_=this.inputDigitWithOptionToRememberPosition_(v,!1)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitAndRememberPosition=function(v){return this.currentOutput_=this.inputDigitWithOptionToRememberPosition_(v,!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitWithOptionToRememberPosition_=function(v,x){if(this.accruedInput_.append(v),x&&(this.originalPosition_=this.accruedInput_.getLength()),this.isDigitOrLeadingPlusSign_(v)?v=this.normalizeAndAccrueDigitsAndPlusSign_(v,x):(this.ableToFormat_=!1,this.inputHasFormatting_=!0),!this.ableToFormat_){if(!this.inputHasFormatting_)if(this.attemptToExtractIdd_()){if(this.attemptToExtractCountryCallingCode_())return this.attemptToChoosePatternWithPrefixExtracted_()}else if(this.ableToExtractLongerNdd_())return this.prefixBeforeNationalNumber_.append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.attemptToChoosePatternWithPrefixExtracted_();return this.accruedInput_.toString()}switch(this.accruedInputWithoutFormatting_.getLength()){case 0:case 1:case 2:return this.accruedInput_.toString();case 3:if(!this.attemptToExtractIdd_())return this.extractedNationalPrefix_=this.removeNationalPrefixFromNationalNumber_(),this.attemptToChooseFormattingPattern_();this.isExpectingCountryCallingCode_=!0;default:return this.isExpectingCountryCallingCode_?(this.attemptToExtractCountryCallingCode_()&&(this.isExpectingCountryCallingCode_=!1),this.prefixBeforeNationalNumber_.toString()+this.nationalNumber_.toString()):0<this.possibleFormats_.length?(v=this.inputDigitHelper_(v),0<(x=this.attemptToFormatAccruedDigits_()).length?x:(this.narrowDownPossibleFormats_(this.nationalNumber_.toString()),this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.ableToFormat_?this.appendNationalNumber_(v):this.accruedInput_.toString())):this.attemptToChooseFormattingPattern_()}},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToChoosePatternWithPrefixExtracted_=function(){return this.ableToFormat_=!0,this.isExpectingCountryCallingCode_=!1,this.possibleFormats_=[],this.lastMatchPosition_=0,this.formattingTemplate_.clear(),this.currentFormattingPattern_="",this.attemptToChooseFormattingPattern_()},i18n.phonenumbers.AsYouTypeFormatter.prototype.getExtractedNationalPrefix_=function(){return this.extractedNationalPrefix_},i18n.phonenumbers.AsYouTypeFormatter.prototype.ableToExtractLongerNdd_=function(){if(0<this.extractedNationalPrefix_.length){var v=this.nationalNumber_.toString();this.nationalNumber_.clear(),this.nationalNumber_.append(this.extractedNationalPrefix_),this.nationalNumber_.append(v);var x=(v=this.prefixBeforeNationalNumber_.toString()).lastIndexOf(this.extractedNationalPrefix_);this.prefixBeforeNationalNumber_.clear(),this.prefixBeforeNationalNumber_.append(v.substring(0,x))}return this.extractedNationalPrefix_!=this.removeNationalPrefixFromNationalNumber_()},i18n.phonenumbers.AsYouTypeFormatter.prototype.isDigitOrLeadingPlusSign_=function(v){return i18n.phonenumbers.PhoneNumberUtil.CAPTURING_DIGIT_PATTERN.test(v)||1==this.accruedInput_.getLength()&&i18n.phonenumbers.PhoneNumberUtil.PLUS_CHARS_PATTERN.test(v)},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToFormatAccruedDigits_=function(){for(var v=this.nationalNumber_.toString(),x=this.possibleFormats_.length,S=0;S<x;++S){var D=this.possibleFormats_[S],n=D.getPatternOrDefault();if(new RegExp("^(?:"+n+")$").test(v)&&(this.shouldAddSpaceAfterNationalPrefix_=i18n.phonenumbers.AsYouTypeFormatter.NATIONAL_PREFIX_SEPARATORS_PATTERN_.test(D.getNationalPrefixFormattingRule()),D=v.replace(new RegExp(n,"g"),D.getFormat()),D=this.appendNationalNumber_(D),i18n.phonenumbers.PhoneNumberUtil.normalizeDiallableCharsOnly(D)==this.accruedInputWithoutFormatting_))return D}return""},i18n.phonenumbers.AsYouTypeFormatter.prototype.appendNationalNumber_=function(v){var x=this.prefixBeforeNationalNumber_.getLength();return this.shouldAddSpaceAfterNationalPrefix_&&0<x&&this.prefixBeforeNationalNumber_.toString().charAt(x-1)!=i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_?this.prefixBeforeNationalNumber_+i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_+v:this.prefixBeforeNationalNumber_+v},i18n.phonenumbers.AsYouTypeFormatter.prototype.getRememberedPosition=function(){if(!this.ableToFormat_)return this.originalPosition_;for(var v=0,x=0,S=this.accruedInputWithoutFormatting_.toString(),D=this.currentOutput_.toString();v<this.positionToRemember_&&x<D.length;)S.charAt(v)==D.charAt(x)&&v++,x++;return x},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToChooseFormattingPattern_=function(){var v=this.nationalNumber_.toString();return v.length>=i18n.phonenumbers.AsYouTypeFormatter.MIN_LEADING_DIGITS_LENGTH_?(this.getAvailableFormats_(v),0<(v=this.attemptToFormatAccruedDigits_()).length?v:this.maybeCreateNewTemplate_()?this.inputAccruedNationalNumber_():this.accruedInput_.toString()):this.appendNationalNumber_(v)},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputAccruedNationalNumber_=function(){var v=this.nationalNumber_.toString(),x=v.length;if(0<x){for(var S="",D=0;D<x;D++)S=this.inputDigitHelper_(v.charAt(D));return this.ableToFormat_?this.appendNationalNumber_(S):this.accruedInput_.toString()}return this.prefixBeforeNationalNumber_.toString()},i18n.phonenumbers.AsYouTypeFormatter.prototype.isNanpaNumberWithNationalPrefix_=function(){if(1!=this.currentMetadata_.getCountryCode())return!1;var v=this.nationalNumber_.toString();return"1"==v.charAt(0)&&"0"!=v.charAt(1)&&"1"!=v.charAt(1)},i18n.phonenumbers.AsYouTypeFormatter.prototype.removeNationalPrefixFromNationalNumber_=function(){var v=this.nationalNumber_.toString(),x=0;if(this.isNanpaNumberWithNationalPrefix_())x=1,this.prefixBeforeNationalNumber_.append("1").append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.isCompleteNumber_=!0;else if(this.currentMetadata_.hasNationalPrefixForParsing()){var S=new RegExp("^(?:"+this.currentMetadata_.getNationalPrefixForParsing()+")");null!=(S=v.match(S))&&null!=S[0]&&0<S[0].length&&(this.isCompleteNumber_=!0,this.prefixBeforeNationalNumber_.append(v.substring(0,x=S[0].length)))}return this.nationalNumber_.clear(),this.nationalNumber_.append(v.substring(x)),v.substring(0,x)},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToExtractIdd_=function(){var v=this.accruedInputWithoutFormatting_.toString(),x=new RegExp("^(?:\\"+i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN+"|"+this.currentMetadata_.getInternationalPrefix()+")");return null!=(x=v.match(x))&&null!=x[0]&&0<x[0].length&&(this.isCompleteNumber_=!0,x=x[0].length,this.nationalNumber_.clear(),this.nationalNumber_.append(v.substring(x)),this.prefixBeforeNationalNumber_.clear(),this.prefixBeforeNationalNumber_.append(v.substring(0,x)),v.charAt(0)!=i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN&&this.prefixBeforeNationalNumber_.append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.attemptToExtractCountryCallingCode_=function(){if(0==this.nationalNumber_.getLength())return!1;var v=new goog.string.StringBuffer,x=this.phoneUtil_.extractCountryCode(this.nationalNumber_,v);return 0!=x&&(this.nationalNumber_.clear(),this.nationalNumber_.append(v.toString()),v=this.phoneUtil_.getRegionCodeForCountryCode(x),i18n.phonenumbers.PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY==v?this.currentMetadata_=this.phoneUtil_.getMetadataForNonGeographicalRegion(x):v!=this.defaultCountry_&&(this.currentMetadata_=this.getMetadataForRegion_(v)),this.prefixBeforeNationalNumber_.append(""+x).append(i18n.phonenumbers.AsYouTypeFormatter.SEPARATOR_BEFORE_NATIONAL_NUMBER_),this.extractedNationalPrefix_="",!0)},i18n.phonenumbers.AsYouTypeFormatter.prototype.normalizeAndAccrueDigitsAndPlusSign_=function(v,x){if(v==i18n.phonenumbers.PhoneNumberUtil.PLUS_SIGN){var S=v;this.accruedInputWithoutFormatting_.append(v)}else this.accruedInputWithoutFormatting_.append(S=i18n.phonenumbers.PhoneNumberUtil.DIGIT_MAPPINGS[v]),this.nationalNumber_.append(S);return x&&(this.positionToRemember_=this.accruedInputWithoutFormatting_.getLength()),S},i18n.phonenumbers.AsYouTypeFormatter.prototype.inputDigitHelper_=function(v){var x=this.formattingTemplate_.toString();if(0<=x.substring(this.lastMatchPosition_).search(this.DIGIT_PATTERN_)){var S=x.search(this.DIGIT_PATTERN_);return v=x.replace(this.DIGIT_PATTERN_,v),this.formattingTemplate_.clear(),this.formattingTemplate_.append(v),this.lastMatchPosition_=S,v.substring(0,this.lastMatchPosition_+1)}return 1==this.possibleFormats_.length&&(this.ableToFormat_=!1),this.currentFormattingPattern_="",this.accruedInput_.toString()},Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=i18n.phonenumbers,module.exports=exports.default}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[1])(1)},module.exports=v()},8685:function(v,x,S){!function(D){"use strict";D.defineLocale("af",{months:"Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),weekdays:"Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),weekdaysShort:"Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),weekdaysMin:"So_Ma_Di_Wo_Do_Vr_Sa".split("_"),meridiemParse:/vm|nm/i,isPM:function(O){return/^nm$/i.test(O)},meridiem:function(O,R,U){return O<12?U?"vm":"VM":U?"nm":"NM"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Vandag om] LT",nextDay:"[M\xf4re om] LT",nextWeek:"dddd [om] LT",lastDay:"[Gister om] LT",lastWeek:"[Laas] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oor %s",past:"%s gelede",s:"'n paar sekondes",ss:"%d sekondes",m:"'n minuut",mm:"%d minute",h:"'n uur",hh:"%d ure",d:"'n dag",dd:"%d dae",M:"'n maand",MM:"%d maande",y:"'n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(O){return O+(1===O||8===O||O>=20?"ste":"de")},week:{dow:1,doy:4}})}(S(6908))},4312:function(v,x,S){!function(D){"use strict";D.defineLocale("ar-dz",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u0623\u062d_\u0625\u062b_\u062b\u0644\u0627_\u0623\u0631_\u062e\u0645_\u062c\u0645_\u0633\u0628".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:4}})}(S(6908))},2614:function(v,x,S){!function(D){"use strict";D.defineLocale("ar-kw",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:0,doy:12}})}(S(6908))},8630:function(v,x,S){!function(D){"use strict";var n={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},O=function(ie){return 0===ie?0:1===ie?1:2===ie?2:ie%100>=3&&ie%100<=10?3:ie%100>=11?4:5},R={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},U=function(ie){return function(pe,de,Ce,me){var we=O(pe),Ve=R[ie][O(pe)];return 2===we&&(Ve=Ve[de?0:1]),Ve.replace(/%d/i,pe)}},q=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];D.defineLocale("ar-ly",{months:q,monthsShort:q,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(ie){return"\u0645"===ie},meridiem:function(ie,pe,de){return ie<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:U("s"),ss:U("s"),m:U("m"),mm:U("m"),h:U("h"),hh:U("h"),d:U("d"),dd:U("d"),M:U("M"),MM:U("M"),y:U("y"),yy:U("y")},preparse:function(ie){return ie.replace(/\u060c/g,",")},postformat:function(ie){return ie.replace(/\d/g,function(pe){return n[pe]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(S(6908))},8674:function(v,x,S){!function(D){"use strict";D.defineLocale("ar-ma",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648\u0632_\u063a\u0634\u062a_\u0634\u062a\u0646\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0646\u0628\u0631_\u062f\u062c\u0646\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062a\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0627\u062d\u062f_\u0627\u062a\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:6,doy:12}})}(S(6908))},9032:function(v,x,S){!function(D){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},O={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"};D.defineLocale("ar-sa",{months:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u064a\u0646\u0627\u064a\u0631_\u0641\u0628\u0631\u0627\u064a\u0631_\u0645\u0627\u0631\u0633_\u0623\u0628\u0631\u064a\u0644_\u0645\u0627\u064a\u0648_\u064a\u0648\u0646\u064a\u0648_\u064a\u0648\u0644\u064a\u0648_\u0623\u063a\u0633\u0637\u0633_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(U){return"\u0645"===U},meridiem:function(U,q,te){return U<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},preparse:function(U){return U.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(q){return O[q]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]}).replace(/,/g,"\u060c")},week:{dow:0,doy:6}})}(S(6908))},4730:function(v,x,S){!function(D){"use strict";D.defineLocale("ar-tn",{months:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),monthsShort:"\u062c\u0627\u0646\u0641\u064a_\u0641\u064a\u0641\u0631\u064a_\u0645\u0627\u0631\u0633_\u0623\u0641\u0631\u064a\u0644_\u0645\u0627\u064a_\u062c\u0648\u0627\u0646_\u062c\u0648\u064a\u0644\u064a\u0629_\u0623\u0648\u062a_\u0633\u0628\u062a\u0645\u0628\u0631_\u0623\u0643\u062a\u0648\u0628\u0631_\u0646\u0648\u0641\u0645\u0628\u0631_\u062f\u064a\u0633\u0645\u0628\u0631".split("_"),weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u0627 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0644\u0649 \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0641\u064a %s",past:"\u0645\u0646\u0630 %s",s:"\u062b\u0648\u0627\u0646",ss:"%d \u062b\u0627\u0646\u064a\u0629",m:"\u062f\u0642\u064a\u0642\u0629",mm:"%d \u062f\u0642\u0627\u0626\u0642",h:"\u0633\u0627\u0639\u0629",hh:"%d \u0633\u0627\u0639\u0627\u062a",d:"\u064a\u0648\u0645",dd:"%d \u0623\u064a\u0627\u0645",M:"\u0634\u0647\u0631",MM:"%d \u0623\u0634\u0647\u0631",y:"\u0633\u0646\u0629",yy:"%d \u0633\u0646\u0648\u0627\u062a"},week:{dow:1,doy:4}})}(S(6908))},254:function(v,x,S){!function(D){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},O={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},R=function(pe){return 0===pe?0:1===pe?1:2===pe?2:pe%100>=3&&pe%100<=10?3:pe%100>=11?4:5},U={s:["\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629","\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062b\u0627\u0646\u064a\u062a\u0627\u0646","\u062b\u0627\u0646\u064a\u062a\u064a\u0646"],"%d \u062b\u0648\u0627\u0646","%d \u062b\u0627\u0646\u064a\u0629","%d \u062b\u0627\u0646\u064a\u0629"],m:["\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629","\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629",["\u062f\u0642\u064a\u0642\u062a\u0627\u0646","\u062f\u0642\u064a\u0642\u062a\u064a\u0646"],"%d \u062f\u0642\u0627\u0626\u0642","%d \u062f\u0642\u064a\u0642\u0629","%d \u062f\u0642\u064a\u0642\u0629"],h:["\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629",["\u0633\u0627\u0639\u062a\u0627\u0646","\u0633\u0627\u0639\u062a\u064a\u0646"],"%d \u0633\u0627\u0639\u0627\u062a","%d \u0633\u0627\u0639\u0629","%d \u0633\u0627\u0639\u0629"],d:["\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645","\u064a\u0648\u0645 \u0648\u0627\u062d\u062f",["\u064a\u0648\u0645\u0627\u0646","\u064a\u0648\u0645\u064a\u0646"],"%d \u0623\u064a\u0627\u0645","%d \u064a\u0648\u0645\u064b\u0627","%d \u064a\u0648\u0645"],M:["\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631","\u0634\u0647\u0631 \u0648\u0627\u062d\u062f",["\u0634\u0647\u0631\u0627\u0646","\u0634\u0647\u0631\u064a\u0646"],"%d \u0623\u0634\u0647\u0631","%d \u0634\u0647\u0631\u0627","%d \u0634\u0647\u0631"],y:["\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645","\u0639\u0627\u0645 \u0648\u0627\u062d\u062f",["\u0639\u0627\u0645\u0627\u0646","\u0639\u0627\u0645\u064a\u0646"],"%d \u0623\u0639\u0648\u0627\u0645","%d \u0639\u0627\u0645\u064b\u0627","%d \u0639\u0627\u0645"]},q=function(pe){return function(de,Ce,me,we){var Ve=R(de),Pe=U[pe][R(de)];return 2===Ve&&(Pe=Pe[Ce?0:1]),Pe.replace(/%d/i,de)}},te=["\u064a\u0646\u0627\u064a\u0631","\u0641\u0628\u0631\u0627\u064a\u0631","\u0645\u0627\u0631\u0633","\u0623\u0628\u0631\u064a\u0644","\u0645\u0627\u064a\u0648","\u064a\u0648\u0646\u064a\u0648","\u064a\u0648\u0644\u064a\u0648","\u0623\u063a\u0633\u0637\u0633","\u0633\u0628\u062a\u0645\u0628\u0631","\u0623\u0643\u062a\u0648\u0628\u0631","\u0646\u0648\u0641\u0645\u0628\u0631","\u062f\u064a\u0633\u0645\u0628\u0631"];D.defineLocale("ar",{months:te,monthsShort:te,weekdays:"\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a".split("_"),weekdaysShort:"\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a".split("_"),weekdaysMin:"\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/\u200fM/\u200fYYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0635|\u0645/,isPM:function(pe){return"\u0645"===pe},meridiem:function(pe,de,Ce){return pe<12?"\u0635":"\u0645"},calendar:{sameDay:"[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextDay:"[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",nextWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastDay:"[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",lastWeek:"dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT",sameElse:"L"},relativeTime:{future:"\u0628\u0639\u062f %s",past:"\u0645\u0646\u0630 %s",s:q("s"),ss:q("s"),m:q("m"),mm:q("m"),h:q("h"),hh:q("h"),d:q("d"),dd:q("d"),M:q("M"),MM:q("M"),y:q("y"),yy:q("y")},preparse:function(pe){return pe.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(de){return O[de]}).replace(/\u060c/g,",")},postformat:function(pe){return pe.replace(/\d/g,function(de){return n[de]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(S(6908))},3052:function(v,x,S){!function(D){"use strict";var n={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-\xfcnc\xfc",4:"-\xfcnc\xfc",100:"-\xfcnc\xfc",6:"-nc\u0131",9:"-uncu",10:"-uncu",30:"-uncu",60:"-\u0131nc\u0131",90:"-\u0131nc\u0131"};D.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ert\u0259si_\xc7\u0259r\u015f\u0259nb\u0259 ax\u015fam\u0131_\xc7\u0259r\u015f\u0259nb\u0259_C\xfcm\u0259 ax\u015fam\u0131_C\xfcm\u0259_\u015e\u0259nb\u0259".split("_"),weekdaysShort:"Baz_BzE_\xc7Ax_\xc7\u0259r_CAx_C\xfcm_\u015e\u0259n".split("_"),weekdaysMin:"Bz_BE_\xc7A_\xc7\u0259_CA_C\xfc_\u015e\u0259".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[g\u0259l\u0259n h\u0259ft\u0259] dddd [saat] LT",lastDay:"[d\xfcn\u0259n] LT",lastWeek:"[ke\xe7\u0259n h\u0259ft\u0259] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \u0259vv\u0259l",s:"birne\xe7\u0259 saniy\u0259",ss:"%d saniy\u0259",m:"bir d\u0259qiq\u0259",mm:"%d d\u0259qiq\u0259",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gec\u0259|s\u0259h\u0259r|g\xfcnd\xfcz|ax\u015fam/,isPM:function(R){return/^(g\xfcnd\xfcz|ax\u015fam)$/.test(R)},meridiem:function(R,U,q){return R<4?"gec\u0259":R<12?"s\u0259h\u0259r":R<17?"g\xfcnd\xfcz":"ax\u015fam"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0131nc\u0131|inci|nci|\xfcnc\xfc|nc\u0131|uncu)/,ordinal:function(R){if(0===R)return R+"-\u0131nc\u0131";var U=R%10;return R+(n[U]||n[R%100-U]||n[R>=100?100:null])},week:{dow:1,doy:7}})}(S(6908))},150:function(v,x,S){!function(D){"use strict";function O(U,q,te){return"m"===te?q?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443":"h"===te?q?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443":U+" "+function n(U,q){var te=U.split("_");return q%10==1&&q%100!=11?te[0]:q%10>=2&&q%10<=4&&(q%100<10||q%100>=20)?te[1]:te[2]}({ss:q?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:q?"\u0445\u0432\u0456\u043b\u0456\u043d\u0430_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d":"\u0445\u0432\u0456\u043b\u0456\u043d\u0443_\u0445\u0432\u0456\u043b\u0456\u043d\u044b_\u0445\u0432\u0456\u043b\u0456\u043d",hh:q?"\u0433\u0430\u0434\u0437\u0456\u043d\u0430_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d":"\u0433\u0430\u0434\u0437\u0456\u043d\u0443_\u0433\u0430\u0434\u0437\u0456\u043d\u044b_\u0433\u0430\u0434\u0437\u0456\u043d",dd:"\u0434\u0437\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u0437\u0451\u043d",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u044b_\u043c\u0435\u0441\u044f\u0446\u0430\u045e",yy:"\u0433\u043e\u0434_\u0433\u0430\u0434\u044b_\u0433\u0430\u0434\u043e\u045e"}[te],+U)}D.defineLocale("be",{months:{format:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044f_\u043b\u044e\u0442\u0430\u0433\u0430_\u0441\u0430\u043a\u0430\u0432\u0456\u043a\u0430_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a\u0430_\u0442\u0440\u0430\u045e\u043d\u044f_\u0447\u044d\u0440\u0432\u0435\u043d\u044f_\u043b\u0456\u043f\u0435\u043d\u044f_\u0436\u043d\u0456\u045e\u043d\u044f_\u0432\u0435\u0440\u0430\u0441\u043d\u044f_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a\u0430_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434\u0430_\u0441\u043d\u0435\u0436\u043d\u044f".split("_"),standalone:"\u0441\u0442\u0443\u0434\u0437\u0435\u043d\u044c_\u043b\u044e\u0442\u044b_\u0441\u0430\u043a\u0430\u0432\u0456\u043a_\u043a\u0440\u0430\u0441\u0430\u0432\u0456\u043a_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u044d\u0440\u0432\u0435\u043d\u044c_\u043b\u0456\u043f\u0435\u043d\u044c_\u0436\u043d\u0456\u0432\u0435\u043d\u044c_\u0432\u0435\u0440\u0430\u0441\u0435\u043d\u044c_\u043a\u0430\u0441\u0442\u0440\u044b\u0447\u043d\u0456\u043a_\u043b\u0456\u0441\u0442\u0430\u043f\u0430\u0434_\u0441\u043d\u0435\u0436\u0430\u043d\u044c".split("_")},monthsShort:"\u0441\u0442\u0443\u0434_\u043b\u044e\u0442_\u0441\u0430\u043a_\u043a\u0440\u0430\u0441_\u0442\u0440\u0430\u0432_\u0447\u044d\u0440\u0432_\u043b\u0456\u043f_\u0436\u043d\u0456\u0432_\u0432\u0435\u0440_\u043a\u0430\u0441\u0442_\u043b\u0456\u0441\u0442_\u0441\u043d\u0435\u0436".split("_"),weekdays:{format:"\u043d\u044f\u0434\u0437\u0435\u043b\u044e_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0443_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0443_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),standalone:"\u043d\u044f\u0434\u0437\u0435\u043b\u044f_\u043f\u0430\u043d\u044f\u0434\u0437\u0435\u043b\u0430\u043a_\u0430\u045e\u0442\u043e\u0440\u0430\u043a_\u0441\u0435\u0440\u0430\u0434\u0430_\u0447\u0430\u0446\u0432\u0435\u0440_\u043f\u044f\u0442\u043d\u0456\u0446\u0430_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),isFormat:/\[ ?[\u0423\u0443\u045e] ?(?:\u043c\u0456\u043d\u0443\u043b\u0443\u044e|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u0443\u044e)? ?\] ?dddd/},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0430\u0442_\u0441\u0440_\u0447\u0446_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., HH:mm",LLLL:"dddd, D MMMM YYYY \u0433., HH:mm"},calendar:{sameDay:"[\u0421\u0451\u043d\u043d\u044f \u045e] LT",nextDay:"[\u0417\u0430\u045e\u0442\u0440\u0430 \u045e] LT",lastDay:"[\u0423\u0447\u043e\u0440\u0430 \u045e] LT",nextWeek:function(){return"[\u0423] dddd [\u045e] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u0443\u044e] dddd [\u045e] LT";case 1:case 2:case 4:return"[\u0423 \u043c\u0456\u043d\u0443\u043b\u044b] dddd [\u045e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u0440\u0430\u0437 %s",past:"%s \u0442\u0430\u043c\u0443",s:"\u043d\u0435\u043a\u0430\u043b\u044c\u043a\u0456 \u0441\u0435\u043a\u0443\u043d\u0434",m:O,mm:O,h:O,hh:O,d:"\u0434\u0437\u0435\u043d\u044c",dd:O,M:"\u043c\u0435\u0441\u044f\u0446",MM:O,y:"\u0433\u043e\u0434",yy:O},meridiemParse:/\u043d\u043e\u0447\u044b|\u0440\u0430\u043d\u0456\u0446\u044b|\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430/,isPM:function(U){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0430\u0440\u0430)$/.test(U)},meridiem:function(U,q,te){return U<4?"\u043d\u043e\u0447\u044b":U<12?"\u0440\u0430\u043d\u0456\u0446\u044b":U<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0430\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0456|\u044b|\u0433\u0430)/,ordinal:function(U,q){switch(q){case"M":case"d":case"DDD":case"w":case"W":return U%10!=2&&U%10!=3||U%100==12||U%100==13?U+"-\u044b":U+"-\u0456";case"D":return U+"-\u0433\u0430";default:return U}},week:{dow:1,doy:7}})}(S(6908))},3069:function(v,x,S){!function(D){"use strict";D.defineLocale("bg",{months:"\u044f\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u044f\u043d\u0440_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u044e\u043d\u0438_\u044e\u043b\u0438_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u044f\u0434\u0430_\u0447\u0435\u0442\u0432\u044a\u0440\u0442\u044a\u043a_\u043f\u0435\u0442\u044a\u043a_\u0441\u044a\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u044f_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u044a\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u043d\u0435\u0441 \u0432] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432] LT",nextWeek:"dddd [\u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0430\u0442\u0430] dddd [\u0432] LT";case 1:case 2:case 4:case 5:return"[\u0412 \u0438\u0437\u043c\u0438\u043d\u0430\u043b\u0438\u044f] dddd [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0441\u043b\u0435\u0434 %s",past:"\u043f\u0440\u0435\u0434\u0438 %s",s:"\u043d\u044f\u043a\u043e\u043b\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u043d\u0438",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0430",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(O){var R=O%10,U=O%100;return 0===O?O+"-\u0435\u0432":0===U?O+"-\u0435\u043d":U>10&&U<20?O+"-\u0442\u0438":1===R?O+"-\u0432\u0438":2===R?O+"-\u0440\u0438":7===R||8===R?O+"-\u043c\u0438":O+"-\u0442\u0438"},week:{dow:1,doy:7}})}(S(6908))},3466:function(v,x,S){!function(D){"use strict";D.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_M\u025bkalo_Zuw\u025bnkalo_Zuluyekalo_Utikalo_S\u025btanburukalo_\u0254kut\u0254burukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_M\u025b_Zuw_Zul_Uti_S\u025bt_\u0254ku_Now_Des".split("_"),weekdays:"Kari_Nt\u025bn\u025bn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Nt\u025b_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [l\u025br\u025b] HH:mm"},calendar:{sameDay:"[Bi l\u025br\u025b] LT",nextDay:"[Sini l\u025br\u025b] LT",nextWeek:"dddd [don l\u025br\u025b] LT",lastDay:"[Kunu l\u025br\u025b] LT",lastWeek:"dddd [t\u025bm\u025bnen l\u025br\u025b] LT",sameElse:"L"},relativeTime:{future:"%s k\u0254n\u0254",past:"a b\u025b %s b\u0254",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"l\u025br\u025b kelen",hh:"l\u025br\u025b %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(S(6908))},8516:function(v,x,S){!function(D){"use strict";var n={1:"\u09e7",2:"\u09e8",3:"\u09e9",4:"\u09ea",5:"\u09eb",6:"\u09ec",7:"\u09ed",8:"\u09ee",9:"\u09ef",0:"\u09e6"},O={"\u09e7":"1","\u09e8":"2","\u09e9":"3","\u09ea":"4","\u09eb":"5","\u09ec":"6","\u09ed":"7","\u09ee":"8","\u09ef":"9","\u09e6":"0"};D.defineLocale("bn",{months:"\u099c\u09be\u09a8\u09c1\u09df\u09be\u09b0\u09c0_\u09ab\u09c7\u09ac\u09cd\u09b0\u09c1\u09df\u09be\u09b0\u09bf_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0\u09bf\u09b2_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2\u09be\u0987_\u0986\u0997\u09b8\u09cd\u099f_\u09b8\u09c7\u09aa\u09cd\u099f\u09c7\u09ae\u09cd\u09ac\u09b0_\u0985\u0995\u09cd\u099f\u09cb\u09ac\u09b0_\u09a8\u09ad\u09c7\u09ae\u09cd\u09ac\u09b0_\u09a1\u09bf\u09b8\u09c7\u09ae\u09cd\u09ac\u09b0".split("_"),monthsShort:"\u099c\u09be\u09a8\u09c1_\u09ab\u09c7\u09ac_\u09ae\u09be\u09b0\u09cd\u099a_\u098f\u09aa\u09cd\u09b0_\u09ae\u09c7_\u099c\u09c1\u09a8_\u099c\u09c1\u09b2_\u0986\u0997_\u09b8\u09c7\u09aa\u09cd\u099f_\u0985\u0995\u09cd\u099f\u09cb_\u09a8\u09ad\u09c7_\u09a1\u09bf\u09b8\u09c7".split("_"),weekdays:"\u09b0\u09ac\u09bf\u09ac\u09be\u09b0_\u09b8\u09cb\u09ae\u09ac\u09be\u09b0_\u09ae\u0999\u09cd\u0997\u09b2\u09ac\u09be\u09b0_\u09ac\u09c1\u09a7\u09ac\u09be\u09b0_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf\u09ac\u09be\u09b0_\u09b6\u09c1\u0995\u09cd\u09b0\u09ac\u09be\u09b0_\u09b6\u09a8\u09bf\u09ac\u09be\u09b0".split("_"),weekdaysShort:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997\u09b2_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u09b8\u09cd\u09aa\u09a4\u09bf_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),weekdaysMin:"\u09b0\u09ac\u09bf_\u09b8\u09cb\u09ae_\u09ae\u0999\u09cd\u0997_\u09ac\u09c1\u09a7_\u09ac\u09c3\u09b9\u0983_\u09b6\u09c1\u0995\u09cd\u09b0_\u09b6\u09a8\u09bf".split("_"),longDateFormat:{LT:"A h:mm \u09b8\u09ae\u09df",LTS:"A h:mm:ss \u09b8\u09ae\u09df",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u09b8\u09ae\u09df",LLLL:"dddd, D MMMM YYYY, A h:mm \u09b8\u09ae\u09df"},calendar:{sameDay:"[\u0986\u099c] LT",nextDay:"[\u0986\u0997\u09be\u09ae\u09c0\u0995\u09be\u09b2] LT",nextWeek:"dddd, LT",lastDay:"[\u0997\u09a4\u0995\u09be\u09b2] LT",lastWeek:"[\u0997\u09a4] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u09aa\u09b0\u09c7",past:"%s \u0986\u0997\u09c7",s:"\u0995\u09df\u09c7\u0995 \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",ss:"%d \u09b8\u09c7\u0995\u09c7\u09a8\u09cd\u09a1",m:"\u098f\u0995 \u09ae\u09bf\u09a8\u09bf\u099f",mm:"%d \u09ae\u09bf\u09a8\u09bf\u099f",h:"\u098f\u0995 \u0998\u09a8\u09cd\u099f\u09be",hh:"%d \u0998\u09a8\u09cd\u099f\u09be",d:"\u098f\u0995 \u09a6\u09bf\u09a8",dd:"%d \u09a6\u09bf\u09a8",M:"\u098f\u0995 \u09ae\u09be\u09b8",MM:"%d \u09ae\u09be\u09b8",y:"\u098f\u0995 \u09ac\u099b\u09b0",yy:"%d \u09ac\u099b\u09b0"},preparse:function(U){return U.replace(/[\u09e7\u09e8\u09e9\u09ea\u09eb\u09ec\u09ed\u09ee\u09ef\u09e6]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u09b0\u09be\u09a4|\u09b8\u0995\u09be\u09b2|\u09a6\u09c1\u09aa\u09c1\u09b0|\u09ac\u09bf\u0995\u09be\u09b2|\u09b0\u09be\u09a4/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u09b0\u09be\u09a4"===q&&U>=4||"\u09a6\u09c1\u09aa\u09c1\u09b0"===q&&U<5||"\u09ac\u09bf\u0995\u09be\u09b2"===q?U+12:U},meridiem:function(U,q,te){return U<4?"\u09b0\u09be\u09a4":U<10?"\u09b8\u0995\u09be\u09b2":U<17?"\u09a6\u09c1\u09aa\u09c1\u09b0":U<20?"\u09ac\u09bf\u0995\u09be\u09b2":"\u09b0\u09be\u09a4"},week:{dow:0,doy:6}})}(S(6908))},6273:function(v,x,S){!function(D){"use strict";var n={1:"\u0f21",2:"\u0f22",3:"\u0f23",4:"\u0f24",5:"\u0f25",6:"\u0f26",7:"\u0f27",8:"\u0f28",9:"\u0f29",0:"\u0f20"},O={"\u0f21":"1","\u0f22":"2","\u0f23":"3","\u0f24":"4","\u0f25":"5","\u0f26":"6","\u0f27":"7","\u0f28":"8","\u0f29":"9","\u0f20":"0"};D.defineLocale("bo",{months:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),monthsShort:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f44\u0f0b\u0f54\u0f7c_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f66\u0f74\u0f58\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f5e\u0f72\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f63\u0f94\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0fb2\u0f74\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f62\u0f92\u0fb1\u0f51\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f51\u0f42\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f45\u0f72\u0f42\u0f0b\u0f54_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f56\u0f45\u0f74\u0f0b\u0f42\u0f49\u0f72\u0f66\u0f0b\u0f54".split("_"),weekdays:"\u0f42\u0f5f\u0f60\u0f0b\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f42\u0f5f\u0f60\u0f0b\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f42\u0f5f\u0f60\u0f0b\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysShort:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),weekdaysMin:"\u0f49\u0f72\u0f0b\u0f58\u0f0b_\u0f5f\u0fb3\u0f0b\u0f56\u0f0b_\u0f58\u0f72\u0f42\u0f0b\u0f51\u0f58\u0f62\u0f0b_\u0f63\u0fb7\u0f42\u0f0b\u0f54\u0f0b_\u0f55\u0f74\u0f62\u0f0b\u0f56\u0f74_\u0f54\u0f0b\u0f66\u0f44\u0f66\u0f0b_\u0f66\u0fa4\u0f7a\u0f53\u0f0b\u0f54\u0f0b".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0f51\u0f72\u0f0b\u0f62\u0f72\u0f44] LT",nextDay:"[\u0f66\u0f44\u0f0b\u0f49\u0f72\u0f53] LT",nextWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f62\u0f97\u0f7a\u0f66\u0f0b\u0f58], LT",lastDay:"[\u0f41\u0f0b\u0f66\u0f44] LT",lastWeek:"[\u0f56\u0f51\u0f74\u0f53\u0f0b\u0f55\u0fb2\u0f42\u0f0b\u0f58\u0f50\u0f60\u0f0b\u0f58] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0f63\u0f0b",past:"%s \u0f66\u0f94\u0f53\u0f0b\u0f63",s:"\u0f63\u0f58\u0f0b\u0f66\u0f44",ss:"%d \u0f66\u0f90\u0f62\u0f0b\u0f46\u0f0d",m:"\u0f66\u0f90\u0f62\u0f0b\u0f58\u0f0b\u0f42\u0f45\u0f72\u0f42",mm:"%d \u0f66\u0f90\u0f62\u0f0b\u0f58",h:"\u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51\u0f0b\u0f42\u0f45\u0f72\u0f42",hh:"%d \u0f46\u0f74\u0f0b\u0f5a\u0f7c\u0f51",d:"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f45\u0f72\u0f42",dd:"%d \u0f49\u0f72\u0f53\u0f0b",M:"\u0f5f\u0fb3\u0f0b\u0f56\u0f0b\u0f42\u0f45\u0f72\u0f42",MM:"%d \u0f5f\u0fb3\u0f0b\u0f56",y:"\u0f63\u0f7c\u0f0b\u0f42\u0f45\u0f72\u0f42",yy:"%d \u0f63\u0f7c"},preparse:function(U){return U.replace(/[\u0f21\u0f22\u0f23\u0f24\u0f25\u0f26\u0f27\u0f28\u0f29\u0f20]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c|\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66|\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44|\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42|\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"===q&&U>=4||"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44"===q&&U<5||"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42"===q?U+12:U},meridiem:function(U,q,te){return U<4?"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c":U<10?"\u0f5e\u0f7c\u0f42\u0f66\u0f0b\u0f40\u0f66":U<17?"\u0f49\u0f72\u0f53\u0f0b\u0f42\u0f74\u0f44":U<20?"\u0f51\u0f42\u0f7c\u0f44\u0f0b\u0f51\u0f42":"\u0f58\u0f5a\u0f53\u0f0b\u0f58\u0f7c"},week:{dow:0,doy:6}})}(S(6908))},9588:function(v,x,S){!function(D){"use strict";function n(ie,pe,de){return ie+" "+function U(ie,pe){return 2===pe?function q(ie){var pe={m:"v",b:"v",d:"z"};return void 0===pe[ie.charAt(0)]?ie:pe[ie.charAt(0)]+ie.substring(1)}(ie):ie}({mm:"munutenn",MM:"miz",dd:"devezh"}[de],ie)}function R(ie){return ie>9?R(ie%10):ie}D.defineLocale("br",{months:"Genver_C'hwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_C'hwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Merc'her_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h[e]mm A",LTS:"h[e]mm:ss A",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY h[e]mm A",LLLL:"dddd, D [a viz] MMMM YYYY h[e]mm A"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warc'hoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Dec'h da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s 'zo",s:"un nebeud segondenno\xf9",ss:"%d eilenn",m:"ur vunutenn",mm:n,h:"un eur",hh:"%d eur",d:"un devezh",dd:n,M:"ur miz",MM:n,y:"ur bloaz",yy:function O(ie){switch(R(ie)){case 1:case 3:case 4:case 5:case 9:return ie+" bloaz";default:return ie+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(a\xf1|vet)/,ordinal:function(ie){return ie+(1===ie?"a\xf1":"vet")},week:{dow:1,doy:4}})}(S(6908))},9815:function(v,x,S){!function(D){"use strict";function n(R,U,q){var te=R+" ";switch(q){case"ss":return te+(1===R?"sekunda":2===R||3===R||4===R?"sekunde":"sekundi");case"m":return U?"jedna minuta":"jedne minute";case"mm":return te+(1===R?"minuta":2===R||3===R||4===R?"minute":"minuta");case"h":return U?"jedan sat":"jednog sata";case"hh":return te+(1===R?"sat":2===R||3===R||4===R?"sata":"sati");case"dd":return te+(1===R?"dan":"dana");case"MM":return te+(1===R?"mjesec":2===R||3===R||4===R?"mjeseca":"mjeseci");case"yy":return te+(1===R?"godina":2===R||3===R||4===R?"godine":"godina")}}D.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},3331:function(v,x,S){!function(D){"use strict";D.defineLocale("ca",{months:{standalone:"gener_febrer_mar\xe7_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de mar\xe7_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._mar\xe7_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[dem\xe0 a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aqu\xed %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|\xe8|a)/,ordinal:function(O,R){var U=1===O?"r":2===O?"n":3===O?"r":4===O?"t":"\xe8";return("w"===R||"W"===R)&&(U="a"),O+U},week:{dow:1,doy:4}})}(S(6908))},1320:function(v,x,S){!function(D){"use strict";var n="leden_\xfanor_b\u0159ezen_duben_kv\u011bten_\u010derven_\u010dervenec_srpen_z\xe1\u0159\xed_\u0159\xedjen_listopad_prosinec".split("_"),O="led_\xfano_b\u0159e_dub_kv\u011b_\u010dvn_\u010dvc_srp_z\xe1\u0159_\u0159\xedj_lis_pro".split("_"),R=[/^led/i,/^\xfano/i,/^b\u0159e/i,/^dub/i,/^kv\u011b/i,/^(\u010dvn|\u010derven$|\u010dervna)/i,/^(\u010dvc|\u010dervenec|\u010dervence)/i,/^srp/i,/^z\xe1\u0159/i,/^\u0159\xedj/i,/^lis/i,/^pro/i],U=/^(leden|\xfanor|b\u0159ezen|duben|kv\u011bten|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|z\xe1\u0159\xed|\u0159\xedjen|listopad|prosinec|led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i;function q(pe){return pe>1&&pe<5&&1!=~~(pe/10)}function te(pe,de,Ce,me){var we=pe+" ";switch(Ce){case"s":return de||me?"p\xe1r sekund":"p\xe1r sekundami";case"ss":return de||me?we+(q(pe)?"sekundy":"sekund"):we+"sekundami";case"m":return de?"minuta":me?"minutu":"minutou";case"mm":return de||me?we+(q(pe)?"minuty":"minut"):we+"minutami";case"h":return de?"hodina":me?"hodinu":"hodinou";case"hh":return de||me?we+(q(pe)?"hodiny":"hodin"):we+"hodinami";case"d":return de||me?"den":"dnem";case"dd":return de||me?we+(q(pe)?"dny":"dn\xed"):we+"dny";case"M":return de||me?"m\u011bs\xedc":"m\u011bs\xedcem";case"MM":return de||me?we+(q(pe)?"m\u011bs\xedce":"m\u011bs\xedc\u016f"):we+"m\u011bs\xedci";case"y":return de||me?"rok":"rokem";case"yy":return de||me?we+(q(pe)?"roky":"let"):we+"lety"}}D.defineLocale("cs",{months:n,monthsShort:O,monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(leden|ledna|\xfanora|\xfanor|b\u0159ezen|b\u0159ezna|duben|dubna|kv\u011bten|kv\u011btna|\u010dervenec|\u010dervence|\u010derven|\u010dervna|srpen|srpna|z\xe1\u0159\xed|\u0159\xedjen|\u0159\xedjna|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|\xfano|b\u0159e|dub|kv\u011b|\u010dvn|\u010dvc|srp|z\xe1\u0159|\u0159\xedj|lis|pro)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"ned\u011ble_pond\u011bl\xed_\xfater\xfd_st\u0159eda_\u010dtvrtek_p\xe1tek_sobota".split("_"),weekdaysShort:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),weekdaysMin:"ne_po_\xfat_st_\u010dt_p\xe1_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[z\xedtra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v ned\u011bli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve st\u0159edu v] LT";case 4:return"[ve \u010dtvrtek v] LT";case 5:return"[v p\xe1tek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[v\u010dera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou ned\u011bli v] LT";case 1:case 2:return"[minul\xe9] dddd [v] LT";case 3:return"[minulou st\u0159edu v] LT";case 4:case 5:return"[minul\xfd] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"p\u0159ed %s",s:te,ss:te,m:te,mm:te,h:te,hh:te,d:te,dd:te,M:te,MM:te,y:te,yy:te},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},2219:function(v,x,S){!function(D){"use strict";D.defineLocale("cv",{months:"\u043a\u04d1\u0440\u043b\u0430\u0447_\u043d\u0430\u0440\u04d1\u0441_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440\u0442\u043c\u0435_\u0443\u0442\u04d1_\u04ab\u0443\u0440\u043b\u0430_\u0430\u0432\u04d1\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448\u0442\u0430\u0432".split("_"),monthsShort:"\u043a\u04d1\u0440_\u043d\u0430\u0440_\u043f\u0443\u0448_\u0430\u043a\u0430_\u043c\u0430\u0439_\u04ab\u04d7\u0440_\u0443\u0442\u04d1_\u04ab\u0443\u0440_\u0430\u0432\u043d_\u044e\u043f\u0430_\u0447\u04f3\u043a_\u0440\u0430\u0448".split("_"),weekdays:"\u0432\u044b\u0440\u0441\u0430\u0440\u043d\u0438\u043a\u0443\u043d_\u0442\u0443\u043d\u0442\u0438\u043a\u0443\u043d_\u044b\u0442\u043b\u0430\u0440\u0438\u043a\u0443\u043d_\u044e\u043d\u043a\u0443\u043d_\u043a\u04d7\u04ab\u043d\u0435\u0440\u043d\u0438\u043a\u0443\u043d_\u044d\u0440\u043d\u0435\u043a\u0443\u043d_\u0448\u04d1\u043c\u0430\u0442\u043a\u0443\u043d".split("_"),weekdaysShort:"\u0432\u044b\u0440_\u0442\u0443\u043d_\u044b\u0442\u043b_\u044e\u043d_\u043a\u04d7\u04ab_\u044d\u0440\u043d_\u0448\u04d1\u043c".split("_"),weekdaysMin:"\u0432\u0440_\u0442\u043d_\u044b\u0442_\u044e\u043d_\u043a\u04ab_\u044d\u0440_\u0448\u043c".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7]",LLL:"YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm",LLLL:"dddd, YYYY [\u04ab\u0443\u043b\u0445\u0438] MMMM [\u0443\u0439\u04d1\u0445\u04d7\u043d] D[-\u043c\u04d7\u0448\u04d7], HH:mm"},calendar:{sameDay:"[\u041f\u0430\u044f\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextDay:"[\u042b\u0440\u0430\u043d] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastDay:"[\u04d6\u043d\u0435\u0440] LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",nextWeek:"[\u04aa\u0438\u0442\u0435\u0441] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",lastWeek:"[\u0418\u0440\u0442\u043d\u04d7] dddd LT [\u0441\u0435\u0445\u0435\u0442\u0440\u0435]",sameElse:"L"},relativeTime:{future:function(O){return O+(/\u0441\u0435\u0445\u0435\u0442$/i.exec(O)?"\u0440\u0435\u043d":/\u04ab\u0443\u043b$/i.exec(O)?"\u0442\u0430\u043d":"\u0440\u0430\u043d")},past:"%s \u043a\u0430\u044f\u043b\u043b\u0430",s:"\u043f\u04d7\u0440-\u0438\u043a \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",ss:"%d \u04ab\u0435\u043a\u043a\u0443\u043d\u0442",m:"\u043f\u04d7\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u043f\u04d7\u0440 \u0441\u0435\u0445\u0435\u0442",hh:"%d \u0441\u0435\u0445\u0435\u0442",d:"\u043f\u04d7\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u043f\u04d7\u0440 \u0443\u0439\u04d1\u0445",MM:"%d \u0443\u0439\u04d1\u0445",y:"\u043f\u04d7\u0440 \u04ab\u0443\u043b",yy:"%d \u04ab\u0443\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-\u043c\u04d7\u0448/,ordinal:"%d-\u043c\u04d7\u0448",week:{dow:1,doy:7}})}(S(6908))},8266:function(v,x,S){!function(D){"use strict";D.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn \xf4l",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(O){var U="";return O>20?U=40===O||50===O||60===O||80===O||100===O?"fed":"ain":O>0&&(U=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][O]),O+U},week:{dow:1,doy:4}})}(S(6908))},6427:function(v,x,S){!function(D){"use strict";D.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8n_man_tir_ons_tor_fre_l\xf8r".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"p\xe5 dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"f\xe5 sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"et \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},2871:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[R+" Tage",R+" Tagen"],M:["ein Monat","einem Monat"],MM:[R+" Monate",R+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[R+" Jahre",R+" Jahren"]};return U?ie[q][0]:ie[q][1]}D.defineLocale("de-at",{months:"J\xe4nner_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"J\xe4n._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},2994:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[R+" Tage",R+" Tagen"],M:["ein Monat","einem Monat"],MM:[R+" Monate",R+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[R+" Jahre",R+" Jahren"]};return U?ie[q][0]:ie[q][1]}D.defineLocale("de-ch",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},7435:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[R+" Tage",R+" Tagen"],M:["ein Monat","einem Monat"],MM:[R+" Monate",R+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[R+" Jahre",R+" Jahren"]};return U?ie[q][0]:ie[q][1]}D.defineLocale("de",{months:"Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:n,mm:"%d Minuten",h:n,hh:"%d Stunden",d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},2357:function(v,x,S){!function(D){"use strict";var n=["\u0796\u07ac\u0782\u07aa\u0787\u07a6\u0783\u07a9","\u078a\u07ac\u0784\u07b0\u0783\u07aa\u0787\u07a6\u0783\u07a9","\u0789\u07a7\u0783\u07a8\u0797\u07aa","\u0787\u07ad\u0795\u07b0\u0783\u07a9\u078d\u07aa","\u0789\u07ad","\u0796\u07ab\u0782\u07b0","\u0796\u07aa\u078d\u07a6\u0787\u07a8","\u0787\u07af\u078e\u07a6\u0790\u07b0\u0793\u07aa","\u0790\u07ac\u0795\u07b0\u0793\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0787\u07ae\u0786\u07b0\u0793\u07af\u0784\u07a6\u0783\u07aa","\u0782\u07ae\u0788\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa","\u0791\u07a8\u0790\u07ac\u0789\u07b0\u0784\u07a6\u0783\u07aa"],O=["\u0787\u07a7\u078b\u07a8\u0787\u07b0\u078c\u07a6","\u0780\u07af\u0789\u07a6","\u0787\u07a6\u0782\u07b0\u078e\u07a7\u0783\u07a6","\u0784\u07aa\u078b\u07a6","\u0784\u07aa\u0783\u07a7\u0790\u07b0\u078a\u07a6\u078c\u07a8","\u0780\u07aa\u0786\u07aa\u0783\u07aa","\u0780\u07ae\u0782\u07a8\u0780\u07a8\u0783\u07aa"];D.defineLocale("dv",{months:n,monthsShort:n,weekdays:O,weekdaysShort:O,weekdaysMin:"\u0787\u07a7\u078b\u07a8_\u0780\u07af\u0789\u07a6_\u0787\u07a6\u0782\u07b0_\u0784\u07aa\u078b\u07a6_\u0784\u07aa\u0783\u07a7_\u0780\u07aa\u0786\u07aa_\u0780\u07ae\u0782\u07a8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0789\u0786|\u0789\u078a/,isPM:function(U){return"\u0789\u078a"===U},meridiem:function(U,q,te){return U<12?"\u0789\u0786":"\u0789\u078a"},calendar:{sameDay:"[\u0789\u07a8\u0787\u07a6\u078b\u07aa] LT",nextDay:"[\u0789\u07a7\u078b\u07a6\u0789\u07a7] LT",nextWeek:"dddd LT",lastDay:"[\u0787\u07a8\u0787\u07b0\u0794\u07ac] LT",lastWeek:"[\u078a\u07a7\u0787\u07a8\u078c\u07aa\u0788\u07a8] dddd LT",sameElse:"L"},relativeTime:{future:"\u078c\u07ac\u0783\u07ad\u078e\u07a6\u0787\u07a8 %s",past:"\u0786\u07aa\u0783\u07a8\u0782\u07b0 %s",s:"\u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa\u0786\u07ae\u0785\u07ac\u0787\u07b0",ss:"d% \u0790\u07a8\u0786\u07aa\u0782\u07b0\u078c\u07aa",m:"\u0789\u07a8\u0782\u07a8\u0793\u07ac\u0787\u07b0",mm:"\u0789\u07a8\u0782\u07a8\u0793\u07aa %d",h:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07ac\u0787\u07b0",hh:"\u078e\u07a6\u0791\u07a8\u0787\u07a8\u0783\u07aa %d",d:"\u078b\u07aa\u0788\u07a6\u0780\u07ac\u0787\u07b0",dd:"\u078b\u07aa\u0788\u07a6\u0790\u07b0 %d",M:"\u0789\u07a6\u0780\u07ac\u0787\u07b0",MM:"\u0789\u07a6\u0790\u07b0 %d",y:"\u0787\u07a6\u0780\u07a6\u0783\u07ac\u0787\u07b0",yy:"\u0787\u07a6\u0780\u07a6\u0783\u07aa %d"},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/,/g,"\u060c")},week:{dow:7,doy:12}})}(S(6908))},5649:function(v,x,S){!function(D){"use strict";D.defineLocale("el",{monthsNominativeEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03ac\u03c1\u03b9\u03bf\u03c2_\u039c\u03ac\u03c1\u03c4\u03b9\u03bf\u03c2_\u0391\u03c0\u03c1\u03af\u03bb\u03b9\u03bf\u03c2_\u039c\u03ac\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bd\u03b9\u03bf\u03c2_\u0399\u03bf\u03cd\u03bb\u03b9\u03bf\u03c2_\u0391\u03cd\u03b3\u03bf\u03c5\u03c3\u03c4\u03bf\u03c2_\u03a3\u03b5\u03c0\u03c4\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u039f\u03ba\u03c4\u03ce\u03b2\u03c1\u03b9\u03bf\u03c2_\u039d\u03bf\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2_\u0394\u03b5\u03ba\u03ad\u03bc\u03b2\u03c1\u03b9\u03bf\u03c2".split("_"),monthsGenitiveEl:"\u0399\u03b1\u03bd\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u03a6\u03b5\u03b2\u03c1\u03bf\u03c5\u03b1\u03c1\u03af\u03bf\u03c5_\u039c\u03b1\u03c1\u03c4\u03af\u03bf\u03c5_\u0391\u03c0\u03c1\u03b9\u03bb\u03af\u03bf\u03c5_\u039c\u03b1\u0390\u03bf\u03c5_\u0399\u03bf\u03c5\u03bd\u03af\u03bf\u03c5_\u0399\u03bf\u03c5\u03bb\u03af\u03bf\u03c5_\u0391\u03c5\u03b3\u03bf\u03cd\u03c3\u03c4\u03bf\u03c5_\u03a3\u03b5\u03c0\u03c4\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u039f\u03ba\u03c4\u03c9\u03b2\u03c1\u03af\u03bf\u03c5_\u039d\u03bf\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5_\u0394\u03b5\u03ba\u03b5\u03bc\u03b2\u03c1\u03af\u03bf\u03c5".split("_"),months:function(R,U){return R?"string"==typeof U&&/D/.test(U.substring(0,U.indexOf("MMMM")))?this._monthsGenitiveEl[R.month()]:this._monthsNominativeEl[R.month()]:this._monthsNominativeEl},monthsShort:"\u0399\u03b1\u03bd_\u03a6\u03b5\u03b2_\u039c\u03b1\u03c1_\u0391\u03c0\u03c1_\u039c\u03b1\u03ca_\u0399\u03bf\u03c5\u03bd_\u0399\u03bf\u03c5\u03bb_\u0391\u03c5\u03b3_\u03a3\u03b5\u03c0_\u039f\u03ba\u03c4_\u039d\u03bf\u03b5_\u0394\u03b5\u03ba".split("_"),weekdays:"\u039a\u03c5\u03c1\u03b9\u03b1\u03ba\u03ae_\u0394\u03b5\u03c5\u03c4\u03ad\u03c1\u03b1_\u03a4\u03c1\u03af\u03c4\u03b7_\u03a4\u03b5\u03c4\u03ac\u03c1\u03c4\u03b7_\u03a0\u03ad\u03bc\u03c0\u03c4\u03b7_\u03a0\u03b1\u03c1\u03b1\u03c3\u03ba\u03b5\u03c5\u03ae_\u03a3\u03ac\u03b2\u03b2\u03b1\u03c4\u03bf".split("_"),weekdaysShort:"\u039a\u03c5\u03c1_\u0394\u03b5\u03c5_\u03a4\u03c1\u03b9_\u03a4\u03b5\u03c4_\u03a0\u03b5\u03bc_\u03a0\u03b1\u03c1_\u03a3\u03b1\u03b2".split("_"),weekdaysMin:"\u039a\u03c5_\u0394\u03b5_\u03a4\u03c1_\u03a4\u03b5_\u03a0\u03b5_\u03a0\u03b1_\u03a3\u03b1".split("_"),meridiem:function(R,U,q){return R>11?q?"\u03bc\u03bc":"\u039c\u039c":q?"\u03c0\u03bc":"\u03a0\u039c"},isPM:function(R){return"\u03bc"===(R+"").toLowerCase()[0]},meridiemParse:/[\u03a0\u039c]\.?\u039c?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[\u03a3\u03ae\u03bc\u03b5\u03c1\u03b1 {}] LT",nextDay:"[\u0391\u03cd\u03c1\u03b9\u03bf {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[\u03a7\u03b8\u03b5\u03c2 {}] LT",lastWeek:function(){return 6===this.day()?"[\u03c4\u03bf \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03bf] dddd [{}] LT":"[\u03c4\u03b7\u03bd \u03c0\u03c1\u03bf\u03b7\u03b3\u03bf\u03cd\u03bc\u03b5\u03bd\u03b7] dddd [{}] LT"},sameElse:"L"},calendar:function(R,U){var q=this._calendarEl[R],te=U&&U.hours();return function n(R){return R instanceof Function||"[object Function]"===Object.prototype.toString.call(R)}(q)&&(q=q.apply(U)),q.replace("{}",te%12==1?"\u03c3\u03c4\u03b7":"\u03c3\u03c4\u03b9\u03c2")},relativeTime:{future:"\u03c3\u03b5 %s",past:"%s \u03c0\u03c1\u03b9\u03bd",s:"\u03bb\u03af\u03b3\u03b1 \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",ss:"%d \u03b4\u03b5\u03c5\u03c4\u03b5\u03c1\u03cc\u03bb\u03b5\u03c0\u03c4\u03b1",m:"\u03ad\u03bd\u03b1 \u03bb\u03b5\u03c0\u03c4\u03cc",mm:"%d \u03bb\u03b5\u03c0\u03c4\u03ac",h:"\u03bc\u03af\u03b1 \u03ce\u03c1\u03b1",hh:"%d \u03ce\u03c1\u03b5\u03c2",d:"\u03bc\u03af\u03b1 \u03bc\u03ad\u03c1\u03b1",dd:"%d \u03bc\u03ad\u03c1\u03b5\u03c2",M:"\u03ad\u03bd\u03b1\u03c2 \u03bc\u03ae\u03bd\u03b1\u03c2",MM:"%d \u03bc\u03ae\u03bd\u03b5\u03c2",y:"\u03ad\u03bd\u03b1\u03c2 \u03c7\u03c1\u03cc\u03bd\u03bf\u03c2",yy:"%d \u03c7\u03c1\u03cc\u03bd\u03b9\u03b1"},dayOfMonthOrdinalParse:/\d{1,2}\u03b7/,ordinal:"%d\u03b7",week:{dow:1,doy:4}})}(S(6908))},8661:function(v,x,S){!function(D){"use strict";D.defineLocale("en-SG",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},9961:function(v,x,S){!function(D){"use strict";D.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},9878:function(v,x,S){!function(D){"use strict";D.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")}})}(S(6908))},3924:function(v,x,S){!function(D){"use strict";D.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},864:function(v,x,S){!function(D){"use strict";D.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},1579:function(v,x,S){!function(D){"use strict";D.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")}})}(S(6908))},6181:function(v,x,S){!function(D){"use strict";D.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},5291:function(v,x,S){!function(D){"use strict";D.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_a\u016dgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_a\u016dg_sep_okt_nov_dec".split("_"),weekdays:"diman\u0109o_lundo_mardo_merkredo_\u0135a\u016ddo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_\u0135a\u016d_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_\u0135a_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D[-a de] MMMM, YYYY",LLL:"D[-a de] MMMM, YYYY HH:mm",LLLL:"dddd, [la] D[-a de] MMMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(O){return"p"===O.charAt(0).toLowerCase()},meridiem:function(O,R,U){return O>11?U?"p.t.m.":"P.T.M.":U?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodia\u016d je] LT",nextDay:"[Morga\u016d je] LT",nextWeek:"dddd [je] LT",lastDay:"[Hiera\u016d je] LT",lastWeek:"[pasinta] dddd [je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"anta\u016d %s",s:"sekundoj",ss:"%d sekundoj",m:"minuto",mm:"%d minutoj",h:"horo",hh:"%d horoj",d:"tago",dd:"%d tagoj",M:"monato",MM:"%d monatoj",y:"jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(S(6908))},3764:function(v,x,S){!function(D){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),O="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),R=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],U=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;D.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(te,ie){return te?/-MMM-/.test(ie)?O[te.month()]:n[te.month()]:n},monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},3425:function(v,x,S){!function(D){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),O="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),R=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],U=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;D.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(te,ie){return te?/-MMM-/.test(ie)?O[te.month()]:n[te.month()]:n},monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:0,doy:6}})}(S(6908))},4529:function(v,x,S){!function(D){"use strict";var n="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),O="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),R=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],U=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;D.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(te,ie){return te?/-MMM-/.test(ie)?O[te.month()]:n[te.month()]:n},monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},5203:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie={s:["m\xf5ne sekundi","m\xf5ni sekund","paar sekundit"],ss:[R+"sekundi",R+"sekundit"],m:["\xfche minuti","\xfcks minut"],mm:[R+" minuti",R+" minutit"],h:["\xfche tunni","tund aega","\xfcks tund"],hh:[R+" tunni",R+" tundi"],d:["\xfche p\xe4eva","\xfcks p\xe4ev"],M:["kuu aja","kuu aega","\xfcks kuu"],MM:[R+" kuu",R+" kuud"],y:["\xfche aasta","aasta","\xfcks aasta"],yy:[R+" aasta",R+" aastat"]};return U?ie[q][2]?ie[q][2]:ie[q][1]:te?ie[q][0]:ie[q][1]}D.defineLocale("et",{months:"jaanuar_veebruar_m\xe4rts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_m\xe4rts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"p\xfchap\xe4ev_esmasp\xe4ev_teisip\xe4ev_kolmap\xe4ev_neljap\xe4ev_reede_laup\xe4ev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[T\xe4na,] LT",nextDay:"[Homme,] LT",nextWeek:"[J\xe4rgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s p\xe4rast",past:"%s tagasi",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:"%d p\xe4eva",M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},678:function(v,x,S){!function(D){"use strict";D.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},3483:function(v,x,S){!function(D){"use strict";var n={1:"\u06f1",2:"\u06f2",3:"\u06f3",4:"\u06f4",5:"\u06f5",6:"\u06f6",7:"\u06f7",8:"\u06f8",9:"\u06f9",0:"\u06f0"},O={"\u06f1":"1","\u06f2":"2","\u06f3":"3","\u06f4":"4","\u06f5":"5","\u06f6":"6","\u06f7":"7","\u06f8":"8","\u06f9":"9","\u06f0":"0"};D.defineLocale("fa",{months:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),monthsShort:"\u0698\u0627\u0646\u0648\u06cc\u0647_\u0641\u0648\u0631\u06cc\u0647_\u0645\u0627\u0631\u0633_\u0622\u0648\u0631\u06cc\u0644_\u0645\u0647_\u0698\u0648\u0626\u0646_\u0698\u0648\u0626\u06cc\u0647_\u0627\u0648\u062a_\u0633\u067e\u062a\u0627\u0645\u0628\u0631_\u0627\u06a9\u062a\u0628\u0631_\u0646\u0648\u0627\u0645\u0628\u0631_\u062f\u0633\u0627\u0645\u0628\u0631".split("_"),weekdays:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysShort:"\u06cc\u06a9\u200c\u0634\u0646\u0628\u0647_\u062f\u0648\u0634\u0646\u0628\u0647_\u0633\u0647\u200c\u0634\u0646\u0628\u0647_\u0686\u0647\u0627\u0631\u0634\u0646\u0628\u0647_\u067e\u0646\u062c\u200c\u0634\u0646\u0628\u0647_\u062c\u0645\u0639\u0647_\u0634\u0646\u0628\u0647".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u062c_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631|\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/,isPM:function(U){return/\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631/.test(U)},meridiem:function(U,q,te){return U<12?"\u0642\u0628\u0644 \u0627\u0632 \u0638\u0647\u0631":"\u0628\u0639\u062f \u0627\u0632 \u0638\u0647\u0631"},calendar:{sameDay:"[\u0627\u0645\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",nextDay:"[\u0641\u0631\u062f\u0627 \u0633\u0627\u0639\u062a] LT",nextWeek:"dddd [\u0633\u0627\u0639\u062a] LT",lastDay:"[\u062f\u06cc\u0631\u0648\u0632 \u0633\u0627\u0639\u062a] LT",lastWeek:"dddd [\u067e\u06cc\u0634] [\u0633\u0627\u0639\u062a] LT",sameElse:"L"},relativeTime:{future:"\u062f\u0631 %s",past:"%s \u067e\u06cc\u0634",s:"\u0686\u0646\u062f \u062b\u0627\u0646\u06cc\u0647",ss:"\u062b\u0627\u0646\u06cc\u0647 d%",m:"\u06cc\u06a9 \u062f\u0642\u06cc\u0642\u0647",mm:"%d \u062f\u0642\u06cc\u0642\u0647",h:"\u06cc\u06a9 \u0633\u0627\u0639\u062a",hh:"%d \u0633\u0627\u0639\u062a",d:"\u06cc\u06a9 \u0631\u0648\u0632",dd:"%d \u0631\u0648\u0632",M:"\u06cc\u06a9 \u0645\u0627\u0647",MM:"%d \u0645\u0627\u0647",y:"\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(U){return U.replace(/[\u06f0-\u06f9]/g,function(q){return O[q]}).replace(/\u060c/g,",")},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]}).replace(/,/g,"\u060c")},dayOfMonthOrdinalParse:/\d{1,2}\u0645/,ordinal:"%d\u0645",week:{dow:6,doy:12}})}(S(6908))},6262:function(v,x,S){!function(D){"use strict";var n="nolla yksi kaksi kolme nelj\xe4 viisi kuusi seitsem\xe4n kahdeksan yhdeks\xe4n".split(" "),O=["nolla","yhden","kahden","kolmen","nelj\xe4n","viiden","kuuden",n[7],n[8],n[9]];function R(te,ie,pe,de){var Ce="";switch(pe){case"s":return de?"muutaman sekunnin":"muutama sekunti";case"ss":return de?"sekunnin":"sekuntia";case"m":return de?"minuutin":"minuutti";case"mm":Ce=de?"minuutin":"minuuttia";break;case"h":return de?"tunnin":"tunti";case"hh":Ce=de?"tunnin":"tuntia";break;case"d":return de?"p\xe4iv\xe4n":"p\xe4iv\xe4";case"dd":Ce=de?"p\xe4iv\xe4n":"p\xe4iv\xe4\xe4";break;case"M":return de?"kuukauden":"kuukausi";case"MM":Ce=de?"kuukauden":"kuukautta";break;case"y":return de?"vuoden":"vuosi";case"yy":Ce=de?"vuoden":"vuotta"}return function U(te,ie){return te<10?ie?O[te]:n[te]:te}(te,de)+" "+Ce}D.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kes\xe4kuu_hein\xe4kuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kes\xe4_hein\xe4_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[t\xe4n\xe4\xe4n] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s p\xe4\xe4st\xe4",past:"%s sitten",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},4555:function(v,x,S){!function(D){"use strict";D.defineLocale("fo",{months:"januar_februar_mars_apr\xedl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_m\xe1nadagur_t\xfdsdagur_mikudagur_h\xf3sdagur_fr\xedggjadagur_leygardagur".split("_"),weekdaysShort:"sun_m\xe1n_t\xfds_mik_h\xf3s_fr\xed_ley".split("_"),weekdaysMin:"su_m\xe1_t\xfd_mi_h\xf3_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[\xcd dag kl.] LT",nextDay:"[\xcd morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xcd gj\xe1r kl.] LT",lastWeek:"[s\xed\xf0stu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s s\xed\xf0ani",s:"f\xe1 sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein t\xedmi",hh:"%d t\xedmar",d:"ein dagur",dd:"%d dagar",M:"ein m\xe1na\xf0ur",MM:"%d m\xe1na\xf0ir",y:"eitt \xe1r",yy:"%d \xe1r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},8239:function(v,x,S){!function(D){"use strict";D.defineLocale("fr-ca",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(O,R){switch(R){default:case"M":case"Q":case"D":case"DDD":case"d":return O+(1===O?"er":"e");case"w":case"W":return O+(1===O?"re":"e")}}})}(S(6908))},1702:function(v,x,S){!function(D){"use strict";D.defineLocale("fr-ch",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(O,R){switch(R){default:case"M":case"Q":case"D":case"DDD":case"d":return O+(1===O?"er":"e");case"w":case"W":return O+(1===O?"re":"e")}},week:{dow:1,doy:4}})}(S(6908))},3131:function(v,x,S){!function(D){"use strict";D.defineLocale("fr",{months:"janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre".split("_"),monthsShort:"janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd\u2019hui \xe0] LT",nextDay:"[Demain \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[Hier \xe0] LT",lastWeek:"dddd [dernier \xe0] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(O,R){switch(R){case"D":return O+(1===O?"er":"");default:case"M":case"Q":case"DDD":case"d":return O+(1===O?"er":"e");case"w":case"W":return O+(1===O?"re":"e")}},week:{dow:1,doy:4}})}(S(6908))},267:function(v,x,S){!function(D){"use strict";var n="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),O="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");D.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(U,q){return U?/-MMM-/.test(q)?O[U.month()]:n[U.month()]:n},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[\xf4fr\xfbne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien min\xfat",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(U){return U+(1===U||8===U||U>=20?"ste":"de")},week:{dow:1,doy:4}})}(S(6908))},3821:function(v,x,S){!function(D){"use strict";D.defineLocale("ga",{months:["Ean\xe1ir","Feabhra","M\xe1rta","Aibre\xe1n","Bealtaine","M\xe9itheamh","I\xfail","L\xfanasa","Me\xe1n F\xf3mhair","Deaireadh F\xf3mhair","Samhain","Nollaig"],monthsShort:["Ean\xe1","Feab","M\xe1rt","Aibr","Beal","M\xe9it","I\xfail","L\xfana","Me\xe1n","Deai","Samh","Noll"],monthsParseExact:!0,weekdays:["D\xe9 Domhnaigh","D\xe9 Luain","D\xe9 M\xe1irt","D\xe9 C\xe9adaoin","D\xe9ardaoin","D\xe9 hAoine","D\xe9 Satharn"],weekdaysShort:["Dom","Lua","M\xe1i","C\xe9a","D\xe9a","hAo","Sat"],weekdaysMin:["Do","Lu","M\xe1","Ce","D\xe9","hA","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Am\xe1rach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inn\xe9 aig] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s \xf3 shin",s:"c\xfapla soicind",ss:"%d soicind",m:"n\xf3im\xe9ad",mm:"%d n\xf3im\xe9ad",h:"uair an chloig",hh:"%d uair an chloig",d:"l\xe1",dd:"%d l\xe1",M:"m\xed",MM:"%d m\xed",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ie){return ie+(1===ie?"d":ie%10==2?"na":"mh")},week:{dow:1,doy:4}})}(S(6908))},1753:function(v,x,S){!function(D){"use strict";D.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am M\xe0rt","An Giblean","An C\xe8itean","An t-\xd2gmhios","An t-Iuchar","An L\xf9nastal","An t-Sultain","An D\xe0mhair","An t-Samhain","An D\xf9bhlachd"],monthsShort:["Faoi","Gear","M\xe0rt","Gibl","C\xe8it","\xd2gmh","Iuch","L\xf9n","Sult","D\xe0mh","Samh","D\xf9bh"],monthsParseExact:!0,weekdays:["Did\xf2mhnaich","Diluain","Dim\xe0irt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["D\xf2","Lu","M\xe0","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-m\xe0ireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-d\xe8 aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"m\xecos",MM:"%d m\xecosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(ie){return ie+(1===ie?"d":ie%10==2?"na":"mh")},week:{dow:1,doy:4}})}(S(6908))},4074:function(v,x,S){!function(D){"use strict";D.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xu\xf1o_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xu\xf1._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_m\xe9rcores_xoves_venres_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._m\xe9r._xov._ven._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_m\xe9_xo_ve_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextDay:function(){return"[ma\xf1\xe1 "+(1!==this.hours()?"\xe1s":"\xe1")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"\xe1s":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"\xe1":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"\xe1s":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(O){return 0===O.indexOf("un")?"n"+O:"en "+O},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un d\xeda",dd:"%d d\xedas",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},5969:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie={s:["thodde secondanim","thodde second"],ss:[R+" secondanim",R+" second"],m:["eka mintan","ek minute"],mm:[R+" mintanim",R+" mintam"],h:["eka voran","ek vor"],hh:[R+" voranim",R+" voram"],d:["eka disan","ek dis"],dd:[R+" disanim",R+" dis"],M:["eka mhoinean","ek mhoino"],MM:[R+" mhoineanim",R+" mhoine"],y:["eka vorsan","ek voros"],yy:[R+" vorsanim",R+" vorsam"]};return U?ie[q][0]:ie[q][1]}D.defineLocale("gom-latn",{months:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budvar_Brestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM[achea] Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Ieta to] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fatlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(R,U){return"D"===U?R+"er":R},week:{dow:1,doy:4},meridiemParse:/rati|sokalli|donparam|sanje/,meridiemHour:function(R,U){return 12===R&&(R=0),"rati"===U?R<4?R:R+12:"sokalli"===U?R:"donparam"===U?R>12?R:R+12:"sanje"===U?R+12:void 0},meridiem:function(R,U,q){return R<4?"rati":R<12?"sokalli":R<16?"donparam":R<20?"sanje":"rati"}})}(S(6908))},2809:function(v,x,S){!function(D){"use strict";var n={1:"\u0ae7",2:"\u0ae8",3:"\u0ae9",4:"\u0aea",5:"\u0aeb",6:"\u0aec",7:"\u0aed",8:"\u0aee",9:"\u0aef",0:"\u0ae6"},O={"\u0ae7":"1","\u0ae8":"2","\u0ae9":"3","\u0aea":"4","\u0aeb":"5","\u0aec":"6","\u0aed":"7","\u0aee":"8","\u0aef":"9","\u0ae6":"0"};D.defineLocale("gu",{months:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1\u0a86\u0ab0\u0ac0_\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1\u0a86\u0ab0\u0ac0_\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf\u0ab2_\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe\u0a88_\u0a91\u0a97\u0ab8\u0acd\u0a9f_\u0ab8\u0aaa\u0acd\u0a9f\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0a91\u0a95\u0acd\u0a9f\u0acd\u0aac\u0ab0_\u0aa8\u0ab5\u0ac7\u0aae\u0acd\u0aac\u0ab0_\u0aa1\u0abf\u0ab8\u0ac7\u0aae\u0acd\u0aac\u0ab0".split("_"),monthsShort:"\u0a9c\u0abe\u0aa8\u0acd\u0aaf\u0ac1._\u0aab\u0ac7\u0aac\u0acd\u0ab0\u0ac1._\u0aae\u0abe\u0ab0\u0acd\u0a9a_\u0a8f\u0aaa\u0acd\u0ab0\u0abf._\u0aae\u0ac7_\u0a9c\u0ac2\u0aa8_\u0a9c\u0ac1\u0ab2\u0abe._\u0a91\u0a97._\u0ab8\u0aaa\u0acd\u0a9f\u0ac7._\u0a91\u0a95\u0acd\u0a9f\u0acd._\u0aa8\u0ab5\u0ac7._\u0aa1\u0abf\u0ab8\u0ac7.".split("_"),monthsParseExact:!0,weekdays:"\u0ab0\u0ab5\u0abf\u0ab5\u0abe\u0ab0_\u0ab8\u0acb\u0aae\u0ab5\u0abe\u0ab0_\u0aae\u0a82\u0a97\u0ab3\u0ab5\u0abe\u0ab0_\u0aac\u0ac1\u0aa7\u0acd\u0ab5\u0abe\u0ab0_\u0a97\u0ac1\u0ab0\u0ac1\u0ab5\u0abe\u0ab0_\u0ab6\u0ac1\u0a95\u0acd\u0ab0\u0ab5\u0abe\u0ab0_\u0ab6\u0aa8\u0abf\u0ab5\u0abe\u0ab0".split("_"),weekdaysShort:"\u0ab0\u0ab5\u0abf_\u0ab8\u0acb\u0aae_\u0aae\u0a82\u0a97\u0ab3_\u0aac\u0ac1\u0aa7\u0acd_\u0a97\u0ac1\u0ab0\u0ac1_\u0ab6\u0ac1\u0a95\u0acd\u0ab0_\u0ab6\u0aa8\u0abf".split("_"),weekdaysMin:"\u0ab0_\u0ab8\u0acb_\u0aae\u0a82_\u0aac\u0ac1_\u0a97\u0ac1_\u0ab6\u0ac1_\u0ab6".split("_"),longDateFormat:{LT:"A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LTS:"A h:mm:ss \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7",LLLL:"dddd, D MMMM YYYY, A h:mm \u0ab5\u0abe\u0a97\u0acd\u0aaf\u0ac7"},calendar:{sameDay:"[\u0a86\u0a9c] LT",nextDay:"[\u0a95\u0abe\u0ab2\u0ac7] LT",nextWeek:"dddd, LT",lastDay:"[\u0a97\u0a87\u0a95\u0abe\u0ab2\u0ac7] LT",lastWeek:"[\u0aaa\u0abe\u0a9b\u0ab2\u0abe] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0aae\u0abe",past:"%s \u0aaa\u0ac7\u0ab9\u0ab2\u0abe",s:"\u0a85\u0aae\u0ac1\u0a95 \u0aaa\u0ab3\u0acb",ss:"%d \u0ab8\u0ac7\u0a95\u0a82\u0aa1",m:"\u0a8f\u0a95 \u0aae\u0abf\u0aa8\u0abf\u0a9f",mm:"%d \u0aae\u0abf\u0aa8\u0abf\u0a9f",h:"\u0a8f\u0a95 \u0a95\u0ab2\u0abe\u0a95",hh:"%d \u0a95\u0ab2\u0abe\u0a95",d:"\u0a8f\u0a95 \u0aa6\u0abf\u0ab5\u0ab8",dd:"%d \u0aa6\u0abf\u0ab5\u0ab8",M:"\u0a8f\u0a95 \u0aae\u0ab9\u0abf\u0aa8\u0acb",MM:"%d \u0aae\u0ab9\u0abf\u0aa8\u0acb",y:"\u0a8f\u0a95 \u0ab5\u0ab0\u0acd\u0ab7",yy:"%d \u0ab5\u0ab0\u0acd\u0ab7"},preparse:function(U){return U.replace(/[\u0ae7\u0ae8\u0ae9\u0aea\u0aeb\u0aec\u0aed\u0aee\u0aef\u0ae6]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0ab0\u0abe\u0aa4|\u0aac\u0aaa\u0acb\u0ab0|\u0ab8\u0ab5\u0abe\u0ab0|\u0ab8\u0abe\u0a82\u0a9c/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0ab0\u0abe\u0aa4"===q?U<4?U:U+12:"\u0ab8\u0ab5\u0abe\u0ab0"===q?U:"\u0aac\u0aaa\u0acb\u0ab0"===q?U>=10?U:U+12:"\u0ab8\u0abe\u0a82\u0a9c"===q?U+12:void 0},meridiem:function(U,q,te){return U<4?"\u0ab0\u0abe\u0aa4":U<10?"\u0ab8\u0ab5\u0abe\u0ab0":U<17?"\u0aac\u0aaa\u0acb\u0ab0":U<20?"\u0ab8\u0abe\u0a82\u0a9c":"\u0ab0\u0abe\u0aa4"},week:{dow:0,doy:6}})}(S(6908))},5402:function(v,x,S){!function(D){"use strict";D.defineLocale("he",{months:"\u05d9\u05e0\u05d5\u05d0\u05e8_\u05e4\u05d1\u05e8\u05d5\u05d0\u05e8_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05d9\u05dc_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05d5\u05e1\u05d8_\u05e1\u05e4\u05d8\u05de\u05d1\u05e8_\u05d0\u05d5\u05e7\u05d8\u05d5\u05d1\u05e8_\u05e0\u05d5\u05d1\u05de\u05d1\u05e8_\u05d3\u05e6\u05de\u05d1\u05e8".split("_"),monthsShort:"\u05d9\u05e0\u05d5\u05f3_\u05e4\u05d1\u05e8\u05f3_\u05de\u05e8\u05e5_\u05d0\u05e4\u05e8\u05f3_\u05de\u05d0\u05d9_\u05d9\u05d5\u05e0\u05d9_\u05d9\u05d5\u05dc\u05d9_\u05d0\u05d5\u05d2\u05f3_\u05e1\u05e4\u05d8\u05f3_\u05d0\u05d5\u05e7\u05f3_\u05e0\u05d5\u05d1\u05f3_\u05d3\u05e6\u05de\u05f3".split("_"),weekdays:"\u05e8\u05d0\u05e9\u05d5\u05df_\u05e9\u05e0\u05d9_\u05e9\u05dc\u05d9\u05e9\u05d9_\u05e8\u05d1\u05d9\u05e2\u05d9_\u05d7\u05de\u05d9\u05e9\u05d9_\u05e9\u05d9\u05e9\u05d9_\u05e9\u05d1\u05ea".split("_"),weekdaysShort:"\u05d0\u05f3_\u05d1\u05f3_\u05d2\u05f3_\u05d3\u05f3_\u05d4\u05f3_\u05d5\u05f3_\u05e9\u05f3".split("_"),weekdaysMin:"\u05d0_\u05d1_\u05d2_\u05d3_\u05d4_\u05d5_\u05e9".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [\u05d1]MMMM YYYY",LLL:"D [\u05d1]MMMM YYYY HH:mm",LLLL:"dddd, D [\u05d1]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[\u05d4\u05d9\u05d5\u05dd \u05d1\u05be]LT",nextDay:"[\u05de\u05d7\u05e8 \u05d1\u05be]LT",nextWeek:"dddd [\u05d1\u05e9\u05e2\u05d4] LT",lastDay:"[\u05d0\u05ea\u05de\u05d5\u05dc \u05d1\u05be]LT",lastWeek:"[\u05d1\u05d9\u05d5\u05dd] dddd [\u05d4\u05d0\u05d7\u05e8\u05d5\u05df \u05d1\u05e9\u05e2\u05d4] LT",sameElse:"L"},relativeTime:{future:"\u05d1\u05e2\u05d5\u05d3 %s",past:"\u05dc\u05e4\u05e0\u05d9 %s",s:"\u05de\u05e1\u05e4\u05e8 \u05e9\u05e0\u05d9\u05d5\u05ea",ss:"%d \u05e9\u05e0\u05d9\u05d5\u05ea",m:"\u05d3\u05e7\u05d4",mm:"%d \u05d3\u05e7\u05d5\u05ea",h:"\u05e9\u05e2\u05d4",hh:function(O){return 2===O?"\u05e9\u05e2\u05ea\u05d9\u05d9\u05dd":O+" \u05e9\u05e2\u05d5\u05ea"},d:"\u05d9\u05d5\u05dd",dd:function(O){return 2===O?"\u05d9\u05d5\u05de\u05d9\u05d9\u05dd":O+" \u05d9\u05de\u05d9\u05dd"},M:"\u05d7\u05d5\u05d3\u05e9",MM:function(O){return 2===O?"\u05d7\u05d5\u05d3\u05e9\u05d9\u05d9\u05dd":O+" \u05d7\u05d5\u05d3\u05e9\u05d9\u05dd"},y:"\u05e9\u05e0\u05d4",yy:function(O){return 2===O?"\u05e9\u05e0\u05ea\u05d9\u05d9\u05dd":O%10==0&&10!==O?O+" \u05e9\u05e0\u05d4":O+" \u05e9\u05e0\u05d9\u05dd"}},meridiemParse:/\u05d0\u05d7\u05d4"\u05e6|\u05dc\u05e4\u05e0\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8|\u05d1\u05d1\u05d5\u05e7\u05e8|\u05d1\u05e2\u05e8\u05d1/i,isPM:function(O){return/^(\u05d0\u05d7\u05d4"\u05e6|\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd|\u05d1\u05e2\u05e8\u05d1)$/.test(O)},meridiem:function(O,R,U){return O<5?"\u05dc\u05e4\u05e0\u05d5\u05ea \u05d1\u05d5\u05e7\u05e8":O<10?"\u05d1\u05d1\u05d5\u05e7\u05e8":O<12?U?'\u05dc\u05e4\u05e0\u05d4"\u05e6':"\u05dc\u05e4\u05e0\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":O<18?U?'\u05d0\u05d7\u05d4"\u05e6':"\u05d0\u05d7\u05e8\u05d9 \u05d4\u05e6\u05d4\u05e8\u05d9\u05d9\u05dd":"\u05d1\u05e2\u05e8\u05d1"}})}(S(6908))},315:function(v,x,S){!function(D){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},O={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};D.defineLocale("hi",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u093c\u0930\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948\u0932_\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0938\u094d\u0924_\u0938\u093f\u0924\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u0942\u092c\u0930_\u0928\u0935\u092e\u094d\u092c\u0930_\u0926\u093f\u0938\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u093c\u0930._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u0948._\u092e\u0908_\u091c\u0942\u0928_\u091c\u0941\u0932._\u0905\u0917._\u0938\u093f\u0924._\u0905\u0915\u094d\u091f\u0942._\u0928\u0935._\u0926\u093f\u0938.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0932\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0932_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u092c\u091c\u0947",LTS:"A h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A h:mm \u092c\u091c\u0947"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0915\u0932] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u0932] LT",lastWeek:"[\u092a\u093f\u091b\u0932\u0947] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u092e\u0947\u0902",past:"%s \u092a\u0939\u0932\u0947",s:"\u0915\u0941\u091b \u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0902\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u091f",mm:"%d \u092e\u093f\u0928\u091f",h:"\u090f\u0915 \u0918\u0902\u091f\u093e",hh:"%d \u0918\u0902\u091f\u0947",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u0940\u0928\u0947",MM:"%d \u092e\u0939\u0940\u0928\u0947",y:"\u090f\u0915 \u0935\u0930\u094d\u0937",yy:"%d \u0935\u0930\u094d\u0937"},preparse:function(U){return U.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0930\u093e\u0924|\u0938\u0941\u092c\u0939|\u0926\u094b\u092a\u0939\u0930|\u0936\u093e\u092e/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0930\u093e\u0924"===q?U<4?U:U+12:"\u0938\u0941\u092c\u0939"===q?U:"\u0926\u094b\u092a\u0939\u0930"===q?U>=10?U:U+12:"\u0936\u093e\u092e"===q?U+12:void 0},meridiem:function(U,q,te){return U<4?"\u0930\u093e\u0924":U<10?"\u0938\u0941\u092c\u0939":U<17?"\u0926\u094b\u092a\u0939\u0930":U<20?"\u0936\u093e\u092e":"\u0930\u093e\u0924"},week:{dow:0,doy:6}})}(S(6908))},410:function(v,x,S){!function(D){"use strict";function n(R,U,q){var te=R+" ";switch(q){case"ss":return te+(1===R?"sekunda":2===R||3===R||4===R?"sekunde":"sekundi");case"m":return U?"jedna minuta":"jedne minute";case"mm":return te+(1===R?"minuta":2===R||3===R||4===R?"minute":"minuta");case"h":return U?"jedan sat":"jednog sata";case"hh":return te+(1===R?"sat":2===R||3===R||4===R?"sata":"sati");case"dd":return te+(1===R?"dan":"dana");case"MM":return te+(1===R?"mjesec":2===R||3===R||4===R?"mjeseca":"mjeseci");case"yy":return te+(1===R?"godina":2===R||3===R||4===R?"godine":"godina")}}D.defineLocale("hr",{months:{format:"sije\u010dnja_velja\u010de_o\u017eujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"sije\u010danj_velja\u010da_o\u017eujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._o\u017eu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010der u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[pro\u0161lu] dddd [u] LT";case 6:return"[pro\u0161le] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[pro\u0161li] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:n,m:n,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},8288:function(v,x,S){!function(D){"use strict";var n="vas\xe1rnap h\xe9tf\u0151n kedden szerd\xe1n cs\xfct\xf6rt\xf6k\xf6n p\xe9nteken szombaton".split(" ");function O(q,te,ie,pe){var de=q;switch(ie){case"s":return pe||te?"n\xe9h\xe1ny m\xe1sodperc":"n\xe9h\xe1ny m\xe1sodperce";case"ss":return de+(pe||te)?" m\xe1sodperc":" m\xe1sodperce";case"m":return"egy"+(pe||te?" perc":" perce");case"mm":return de+(pe||te?" perc":" perce");case"h":return"egy"+(pe||te?" \xf3ra":" \xf3r\xe1ja");case"hh":return de+(pe||te?" \xf3ra":" \xf3r\xe1ja");case"d":return"egy"+(pe||te?" nap":" napja");case"dd":return de+(pe||te?" nap":" napja");case"M":return"egy"+(pe||te?" h\xf3nap":" h\xf3napja");case"MM":return de+(pe||te?" h\xf3nap":" h\xf3napja");case"y":return"egy"+(pe||te?" \xe9v":" \xe9ve");case"yy":return de+(pe||te?" \xe9v":" \xe9ve")}return""}function R(q){return(q?"":"[m\xfalt] ")+"["+n[this.day()]+"] LT[-kor]"}D.defineLocale("hu",{months:"janu\xe1r_febru\xe1r_m\xe1rcius_\xe1prilis_m\xe1jus_j\xfanius_j\xfalius_augusztus_szeptember_okt\xf3ber_november_december".split("_"),monthsShort:"jan_feb_m\xe1rc_\xe1pr_m\xe1j_j\xfan_j\xfal_aug_szept_okt_nov_dec".split("_"),weekdays:"vas\xe1rnap_h\xe9tf\u0151_kedd_szerda_cs\xfct\xf6rt\xf6k_p\xe9ntek_szombat".split("_"),weekdaysShort:"vas_h\xe9t_kedd_sze_cs\xfct_p\xe9n_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(q){return"u"===q.charAt(1).toLowerCase()},meridiem:function(q,te,ie){return q<12?!0===ie?"de":"DE":!0===ie?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return R.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return R.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s m\xfalva",past:"%s",s:O,ss:O,m:O,mm:O,h:O,hh:O,d:O,dd:O,M:O,MM:O,y:O,yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},7928:function(v,x,S){!function(D){"use strict";D.defineLocale("hy-am",{months:{format:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580\u056b_\u0583\u0565\u057f\u0580\u057e\u0561\u0580\u056b_\u0574\u0561\u0580\u057f\u056b_\u0561\u057a\u0580\u056b\u056c\u056b_\u0574\u0561\u0575\u056b\u057d\u056b_\u0570\u0578\u0582\u0576\u056b\u057d\u056b_\u0570\u0578\u0582\u056c\u056b\u057d\u056b_\u0585\u0563\u0578\u057d\u057f\u0578\u057d\u056b_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580\u056b_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580\u056b".split("_"),standalone:"\u0570\u0578\u0582\u0576\u057e\u0561\u0580_\u0583\u0565\u057f\u0580\u057e\u0561\u0580_\u0574\u0561\u0580\u057f_\u0561\u057a\u0580\u056b\u056c_\u0574\u0561\u0575\u056b\u057d_\u0570\u0578\u0582\u0576\u056b\u057d_\u0570\u0578\u0582\u056c\u056b\u057d_\u0585\u0563\u0578\u057d\u057f\u0578\u057d_\u057d\u0565\u057a\u057f\u0565\u0574\u0562\u0565\u0580_\u0570\u0578\u056f\u057f\u0565\u0574\u0562\u0565\u0580_\u0576\u0578\u0575\u0565\u0574\u0562\u0565\u0580_\u0564\u0565\u056f\u057f\u0565\u0574\u0562\u0565\u0580".split("_")},monthsShort:"\u0570\u0576\u057e_\u0583\u057f\u0580_\u0574\u0580\u057f_\u0561\u057a\u0580_\u0574\u0575\u057d_\u0570\u0576\u057d_\u0570\u056c\u057d_\u0585\u0563\u057d_\u057d\u057a\u057f_\u0570\u056f\u057f_\u0576\u0574\u0562_\u0564\u056f\u057f".split("_"),weekdays:"\u056f\u056b\u0580\u0561\u056f\u056b_\u0565\u0580\u056f\u0578\u0582\u0577\u0561\u0562\u0569\u056b_\u0565\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0579\u0578\u0580\u0565\u0584\u0577\u0561\u0562\u0569\u056b_\u0570\u056b\u0576\u0563\u0577\u0561\u0562\u0569\u056b_\u0578\u0582\u0580\u0562\u0561\u0569_\u0577\u0561\u0562\u0561\u0569".split("_"),weekdaysShort:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),weekdaysMin:"\u056f\u0580\u056f_\u0565\u0580\u056f_\u0565\u0580\u0584_\u0579\u0580\u0584_\u0570\u0576\u0563_\u0578\u0582\u0580\u0562_\u0577\u0562\u0569".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0569.",LLL:"D MMMM YYYY \u0569., HH:mm",LLLL:"dddd, D MMMM YYYY \u0569., HH:mm"},calendar:{sameDay:"[\u0561\u0575\u057d\u0585\u0580] LT",nextDay:"[\u057e\u0561\u0572\u0568] LT",lastDay:"[\u0565\u0580\u0565\u056f] LT",nextWeek:function(){return"dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},lastWeek:function(){return"[\u0561\u0576\u0581\u0561\u056e] dddd [\u0585\u0580\u0568 \u056a\u0561\u0574\u0568] LT"},sameElse:"L"},relativeTime:{future:"%s \u0570\u0565\u057f\u0578",past:"%s \u0561\u057c\u0561\u057b",s:"\u0574\u056b \u0584\u0561\u0576\u056b \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",ss:"%d \u057e\u0561\u0575\u0580\u056f\u0575\u0561\u0576",m:"\u0580\u0578\u057a\u0565",mm:"%d \u0580\u0578\u057a\u0565",h:"\u056a\u0561\u0574",hh:"%d \u056a\u0561\u0574",d:"\u0585\u0580",dd:"%d \u0585\u0580",M:"\u0561\u0574\u056b\u057d",MM:"%d \u0561\u0574\u056b\u057d",y:"\u057f\u0561\u0580\u056b",yy:"%d \u057f\u0561\u0580\u056b"},meridiemParse:/\u0563\u056b\u0577\u0565\u0580\u057e\u0561|\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561|\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576/,isPM:function(O){return/^(\u0581\u0565\u0580\u0565\u056f\u057e\u0561|\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576)$/.test(O)},meridiem:function(O){return O<4?"\u0563\u056b\u0577\u0565\u0580\u057e\u0561":O<12?"\u0561\u057c\u0561\u057e\u0578\u057f\u057e\u0561":O<17?"\u0581\u0565\u0580\u0565\u056f\u057e\u0561":"\u0565\u0580\u0565\u056f\u0578\u0575\u0561\u0576"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(\u056b\u0576|\u0580\u0564)/,ordinal:function(O,R){switch(R){case"DDD":case"w":case"W":case"DDDo":return 1===O?O+"-\u056b\u0576":O+"-\u0580\u0564";default:return O}},week:{dow:1,doy:7}})}(S(6908))},1334:function(v,x,S){!function(D){"use strict";D.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(O,R){return 12===O&&(O=0),"pagi"===R?O:"siang"===R?O>=11?O:O+12:"sore"===R||"malam"===R?O+12:void 0},meridiem:function(O,R,U){return O<11?"pagi":O<15?"siang":O<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(S(6908))},6959:function(v,x,S){!function(D){"use strict";function n(U){return U%100==11||U%10!=1}function O(U,q,te,ie){var pe=U+" ";switch(te){case"s":return q||ie?"nokkrar sek\xfandur":"nokkrum sek\xfandum";case"ss":return n(U)?pe+(q||ie?"sek\xfandur":"sek\xfandum"):pe+"sek\xfanda";case"m":return q?"m\xedn\xfata":"m\xedn\xfatu";case"mm":return n(U)?pe+(q||ie?"m\xedn\xfatur":"m\xedn\xfatum"):q?pe+"m\xedn\xfata":pe+"m\xedn\xfatu";case"hh":return n(U)?pe+(q||ie?"klukkustundir":"klukkustundum"):pe+"klukkustund";case"d":return q?"dagur":ie?"dag":"degi";case"dd":return n(U)?q?pe+"dagar":pe+(ie?"daga":"d\xf6gum"):q?pe+"dagur":pe+(ie?"dag":"degi");case"M":return q?"m\xe1nu\xf0ur":ie?"m\xe1nu\xf0":"m\xe1nu\xf0i";case"MM":return n(U)?q?pe+"m\xe1nu\xf0ir":pe+(ie?"m\xe1nu\xf0i":"m\xe1nu\xf0um"):q?pe+"m\xe1nu\xf0ur":pe+(ie?"m\xe1nu\xf0":"m\xe1nu\xf0i");case"y":return q||ie?"\xe1r":"\xe1ri";case"yy":return n(U)?pe+(q||ie?"\xe1r":"\xe1rum"):pe+(q||ie?"\xe1r":"\xe1ri")}}D.defineLocale("is",{months:"jan\xfaar_febr\xfaar_mars_apr\xedl_ma\xed_j\xfan\xed_j\xfal\xed_\xe1g\xfast_september_okt\xf3ber_n\xf3vember_desember".split("_"),monthsShort:"jan_feb_mar_apr_ma\xed_j\xfan_j\xfal_\xe1g\xfa_sep_okt_n\xf3v_des".split("_"),weekdays:"sunnudagur_m\xe1nudagur_\xferi\xf0judagur_mi\xf0vikudagur_fimmtudagur_f\xf6studagur_laugardagur".split("_"),weekdaysShort:"sun_m\xe1n_\xferi_mi\xf0_fim_f\xf6s_lau".split("_"),weekdaysMin:"Su_M\xe1_\xder_Mi_Fi_F\xf6_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[\xed dag kl.] LT",nextDay:"[\xe1 morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[\xed g\xe6r kl.] LT",lastWeek:"[s\xed\xf0asta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s s\xed\xf0an",s:O,ss:O,m:O,mm:O,h:"klukkustund",hh:O,d:O,dd:O,M:O,MM:O,y:O,yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},1124:function(v,x,S){!function(D){"use strict";D.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(O){return(/^[0-9].+$/.test(O)?"tra":"in")+" "+O},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},4864:function(v,x,S){!function(D){"use strict";D.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){return 0===this.day()?"[la scorsa] dddd [alle] LT":"[lo scorso] dddd [alle] LT"},sameElse:"L"},relativeTime:{future:function(O){return(/^[0-9].+$/.test(O)?"tra":"in")+" "+O},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},6141:function(v,x,S){!function(D){"use strict";D.defineLocale("ja",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u65e5\u66dc\u65e5_\u6708\u66dc\u65e5_\u706b\u66dc\u65e5_\u6c34\u66dc\u65e5_\u6728\u66dc\u65e5_\u91d1\u66dc\u65e5_\u571f\u66dc\u65e5".split("_"),weekdaysShort:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),weekdaysMin:"\u65e5_\u6708_\u706b_\u6c34_\u6728_\u91d1_\u571f".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5(ddd) HH:mm"},meridiemParse:/\u5348\u524d|\u5348\u5f8c/i,isPM:function(O){return"\u5348\u5f8c"===O},meridiem:function(O,R,U){return O<12?"\u5348\u524d":"\u5348\u5f8c"},calendar:{sameDay:"[\u4eca\u65e5] LT",nextDay:"[\u660e\u65e5] LT",nextWeek:function(O){return O.week()<this.week()?"[\u6765\u9031]dddd LT":"dddd LT"},lastDay:"[\u6628\u65e5] LT",lastWeek:function(O){return this.week()<O.week()?"[\u5148\u9031]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}\u65e5/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"\u65e5";default:return O}},relativeTime:{future:"%s\u5f8c",past:"%s\u524d",s:"\u6570\u79d2",ss:"%d\u79d2",m:"1\u5206",mm:"%d\u5206",h:"1\u6642\u9593",hh:"%d\u6642\u9593",d:"1\u65e5",dd:"%d\u65e5",M:"1\u30f6\u6708",MM:"%d\u30f6\u6708",y:"1\u5e74",yy:"%d\u5e74"}})}(S(6908))},9187:function(v,x,S){!function(D){"use strict";D.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(O,R){return 12===O&&(O=0),"enjing"===R?O:"siyang"===R?O>=11?O:O+12:"sonten"===R||"ndalu"===R?O+12:void 0},meridiem:function(O,R,U){return O<11?"enjing":O<15?"siyang":O<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(S(6908))},2136:function(v,x,S){!function(D){"use strict";D.defineLocale("ka",{months:{standalone:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10d8_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10d8_\u10db\u10d0\u10e0\u10e2\u10d8_\u10d0\u10de\u10e0\u10d8\u10da\u10d8_\u10db\u10d0\u10d8\u10e1\u10d8_\u10d8\u10d5\u10dc\u10d8\u10e1\u10d8_\u10d8\u10d5\u10da\u10d8\u10e1\u10d8_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10dd_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10d8_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10d8_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10d8".split("_"),format:"\u10d8\u10d0\u10dc\u10d5\u10d0\u10e0\u10e1_\u10d7\u10d4\u10d1\u10d4\u10e0\u10d5\u10d0\u10da\u10e1_\u10db\u10d0\u10e0\u10e2\u10e1_\u10d0\u10de\u10e0\u10d8\u10da\u10d8\u10e1_\u10db\u10d0\u10d8\u10e1\u10e1_\u10d8\u10d5\u10dc\u10d8\u10e1\u10e1_\u10d8\u10d5\u10da\u10d8\u10e1\u10e1_\u10d0\u10d2\u10d5\u10d8\u10e1\u10e2\u10e1_\u10e1\u10d4\u10e5\u10e2\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10dd\u10e5\u10e2\u10dd\u10db\u10d1\u10d4\u10e0\u10e1_\u10dc\u10dd\u10d4\u10db\u10d1\u10d4\u10e0\u10e1_\u10d3\u10d4\u10d9\u10d4\u10db\u10d1\u10d4\u10e0\u10e1".split("_")},monthsShort:"\u10d8\u10d0\u10dc_\u10d7\u10d4\u10d1_\u10db\u10d0\u10e0_\u10d0\u10de\u10e0_\u10db\u10d0\u10d8_\u10d8\u10d5\u10dc_\u10d8\u10d5\u10da_\u10d0\u10d2\u10d5_\u10e1\u10d4\u10e5_\u10dd\u10e5\u10e2_\u10dc\u10dd\u10d4_\u10d3\u10d4\u10d9".split("_"),weekdays:{standalone:"\u10d9\u10d5\u10d8\u10e0\u10d0_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10d8_\u10e8\u10d0\u10d1\u10d0\u10d7\u10d8".split("_"),format:"\u10d9\u10d5\u10d8\u10e0\u10d0\u10e1_\u10dd\u10e0\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10e1\u10d0\u10db\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10dd\u10d7\u10ee\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10ee\u10e3\u10d7\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1_\u10de\u10d0\u10e0\u10d0\u10e1\u10d9\u10d4\u10d5\u10e1_\u10e8\u10d0\u10d1\u10d0\u10d7\u10e1".split("_"),isFormat:/(\u10ec\u10d8\u10dc\u10d0|\u10e8\u10d4\u10db\u10d3\u10d4\u10d2)/},weekdaysShort:"\u10d9\u10d5\u10d8_\u10dd\u10e0\u10e8_\u10e1\u10d0\u10db_\u10dd\u10d7\u10ee_\u10ee\u10e3\u10d7_\u10de\u10d0\u10e0_\u10e8\u10d0\u10d1".split("_"),weekdaysMin:"\u10d9\u10d5_\u10dd\u10e0_\u10e1\u10d0_\u10dd\u10d7_\u10ee\u10e3_\u10de\u10d0_\u10e8\u10d0".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[\u10d3\u10e6\u10d4\u10e1] LT[-\u10d6\u10d4]",nextDay:"[\u10ee\u10d5\u10d0\u10da] LT[-\u10d6\u10d4]",lastDay:"[\u10d2\u10e3\u10e8\u10d8\u10dc] LT[-\u10d6\u10d4]",nextWeek:"[\u10e8\u10d4\u10db\u10d3\u10d4\u10d2] dddd LT[-\u10d6\u10d4]",lastWeek:"[\u10ec\u10d8\u10dc\u10d0] dddd LT-\u10d6\u10d4",sameElse:"L"},relativeTime:{future:function(O){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10ec\u10d4\u10da\u10d8)/.test(O)?O.replace(/\u10d8$/,"\u10e8\u10d8"):O+"\u10e8\u10d8"},past:function(O){return/(\u10ec\u10d0\u10db\u10d8|\u10ec\u10e3\u10d7\u10d8|\u10e1\u10d0\u10d0\u10d7\u10d8|\u10d3\u10e6\u10d4|\u10d7\u10d5\u10d4)/.test(O)?O.replace(/(\u10d8|\u10d4)$/,"\u10d8\u10e1 \u10ec\u10d8\u10dc"):/\u10ec\u10d4\u10da\u10d8/.test(O)?O.replace(/\u10ec\u10d4\u10da\u10d8$/,"\u10ec\u10da\u10d8\u10e1 \u10ec\u10d8\u10dc"):void 0},s:"\u10e0\u10d0\u10db\u10d3\u10d4\u10dc\u10d8\u10db\u10d4 \u10ec\u10d0\u10db\u10d8",ss:"%d \u10ec\u10d0\u10db\u10d8",m:"\u10ec\u10e3\u10d7\u10d8",mm:"%d \u10ec\u10e3\u10d7\u10d8",h:"\u10e1\u10d0\u10d0\u10d7\u10d8",hh:"%d \u10e1\u10d0\u10d0\u10d7\u10d8",d:"\u10d3\u10e6\u10d4",dd:"%d \u10d3\u10e6\u10d4",M:"\u10d7\u10d5\u10d4",MM:"%d \u10d7\u10d5\u10d4",y:"\u10ec\u10d4\u10da\u10d8",yy:"%d \u10ec\u10d4\u10da\u10d8"},dayOfMonthOrdinalParse:/0|1-\u10da\u10d8|\u10db\u10d4-\d{1,2}|\d{1,2}-\u10d4/,ordinal:function(O){return 0===O?O:1===O?O+"-\u10da\u10d8":O<20||O<=100&&O%20==0||O%100==0?"\u10db\u10d4-"+O:O+"-\u10d4"},week:{dow:1,doy:7}})}(S(6908))},4332:function(v,x,S){!function(D){"use strict";var n={0:"-\u0448\u0456",1:"-\u0448\u0456",2:"-\u0448\u0456",3:"-\u0448\u0456",4:"-\u0448\u0456",5:"-\u0448\u0456",6:"-\u0448\u044b",7:"-\u0448\u0456",8:"-\u0448\u0456",9:"-\u0448\u044b",10:"-\u0448\u044b",20:"-\u0448\u044b",30:"-\u0448\u044b",40:"-\u0448\u044b",50:"-\u0448\u0456",60:"-\u0448\u044b",70:"-\u0448\u0456",80:"-\u0448\u0456",90:"-\u0448\u044b",100:"-\u0448\u0456"};D.defineLocale("kk",{months:"\u049b\u0430\u04a3\u0442\u0430\u0440_\u0430\u049b\u043f\u0430\u043d_\u043d\u0430\u0443\u0440\u044b\u0437_\u0441\u04d9\u0443\u0456\u0440_\u043c\u0430\u043c\u044b\u0440_\u043c\u0430\u0443\u0441\u044b\u043c_\u0448\u0456\u043b\u0434\u0435_\u0442\u0430\u043c\u044b\u0437_\u049b\u044b\u0440\u043a\u04af\u0439\u0435\u043a_\u049b\u0430\u0437\u0430\u043d_\u049b\u0430\u0440\u0430\u0448\u0430_\u0436\u0435\u043b\u0442\u043e\u049b\u0441\u0430\u043d".split("_"),monthsShort:"\u049b\u0430\u04a3_\u0430\u049b\u043f_\u043d\u0430\u0443_\u0441\u04d9\u0443_\u043c\u0430\u043c_\u043c\u0430\u0443_\u0448\u0456\u043b_\u0442\u0430\u043c_\u049b\u044b\u0440_\u049b\u0430\u0437_\u049b\u0430\u0440_\u0436\u0435\u043b".split("_"),weekdays:"\u0436\u0435\u043a\u0441\u0435\u043d\u0431\u0456_\u0434\u04af\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0441\u04d9\u0440\u0441\u0435\u043d\u0431\u0456_\u0431\u0435\u0439\u0441\u0435\u043d\u0431\u0456_\u0436\u04b1\u043c\u0430_\u0441\u0435\u043d\u0431\u0456".split("_"),weekdaysShort:"\u0436\u0435\u043a_\u0434\u04af\u0439_\u0441\u0435\u0439_\u0441\u04d9\u0440_\u0431\u0435\u0439_\u0436\u04b1\u043c_\u0441\u0435\u043d".split("_"),weekdaysMin:"\u0436\u043a_\u0434\u0439_\u0441\u0439_\u0441\u0440_\u0431\u0439_\u0436\u043c_\u0441\u043d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u0456\u043d \u0441\u0430\u0493\u0430\u0442] LT",nextDay:"[\u0415\u0440\u0442\u0435\u04a3 \u0441\u0430\u0493\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0493\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0448\u0435 \u0441\u0430\u0493\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u0435\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u04a3] dddd [\u0441\u0430\u0493\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0456\u0448\u0456\u043d\u0434\u0435",past:"%s \u0431\u04b1\u0440\u044b\u043d",s:"\u0431\u0456\u0440\u043d\u0435\u0448\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0456\u0440 \u043c\u0438\u043d\u0443\u0442",mm:"%d \u043c\u0438\u043d\u0443\u0442",h:"\u0431\u0456\u0440 \u0441\u0430\u0493\u0430\u0442",hh:"%d \u0441\u0430\u0493\u0430\u0442",d:"\u0431\u0456\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0456\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0456\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0448\u0456|\u0448\u044b)/,ordinal:function(R){return R+(n[R]||n[R%10]||n[R>=100?100:null])},week:{dow:1,doy:7}})}(S(6908))},8607:function(v,x,S){!function(D){"use strict";var n={1:"\u17e1",2:"\u17e2",3:"\u17e3",4:"\u17e4",5:"\u17e5",6:"\u17e6",7:"\u17e7",8:"\u17e8",9:"\u17e9",0:"\u17e0"},O={"\u17e1":"1","\u17e2":"2","\u17e3":"3","\u17e4":"4","\u17e5":"5","\u17e6":"6","\u17e7":"7","\u17e8":"8","\u17e9":"9","\u17e0":"0"};D.defineLocale("km",{months:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),monthsShort:"\u1798\u1780\u179a\u17b6_\u1780\u17bb\u1798\u17d2\u1797\u17c8_\u1798\u17b8\u1793\u17b6_\u1798\u17c1\u179f\u17b6_\u17a7\u179f\u1797\u17b6_\u1798\u17b7\u1790\u17bb\u1793\u17b6_\u1780\u1780\u17d2\u1780\u178a\u17b6_\u179f\u17b8\u17a0\u17b6_\u1780\u1789\u17d2\u1789\u17b6_\u178f\u17bb\u179b\u17b6_\u179c\u17b7\u1785\u17d2\u1786\u17b7\u1780\u17b6_\u1792\u17d2\u1793\u17bc".split("_"),weekdays:"\u17a2\u17b6\u1791\u17b7\u178f\u17d2\u1799_\u1785\u17d0\u1793\u17d2\u1791_\u17a2\u1784\u17d2\u1782\u17b6\u179a_\u1796\u17bb\u1792_\u1796\u17d2\u179a\u17a0\u179f\u17d2\u1794\u178f\u17b7\u17cd_\u179f\u17bb\u1780\u17d2\u179a_\u179f\u17c5\u179a\u17cd".split("_"),weekdaysShort:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysMin:"\u17a2\u17b6_\u1785_\u17a2_\u1796_\u1796\u17d2\u179a_\u179f\u17bb_\u179f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u1796\u17d2\u179a\u17b9\u1780|\u179b\u17d2\u1784\u17b6\u1785/,isPM:function(U){return"\u179b\u17d2\u1784\u17b6\u1785"===U},meridiem:function(U,q,te){return U<12?"\u1796\u17d2\u179a\u17b9\u1780":"\u179b\u17d2\u1784\u17b6\u1785"},calendar:{sameDay:"[\u1790\u17d2\u1784\u17c3\u1793\u17c1\u17c7 \u1798\u17c9\u17c4\u1784] LT",nextDay:"[\u179f\u17d2\u17a2\u17c2\u1780 \u1798\u17c9\u17c4\u1784] LT",nextWeek:"dddd [\u1798\u17c9\u17c4\u1784] LT",lastDay:"[\u1798\u17d2\u179f\u17b7\u179b\u1798\u17b7\u1789 \u1798\u17c9\u17c4\u1784] LT",lastWeek:"dddd [\u179f\u1794\u17d2\u178f\u17b6\u17a0\u17cd\u1798\u17bb\u1793] [\u1798\u17c9\u17c4\u1784] LT",sameElse:"L"},relativeTime:{future:"%s\u1791\u17c0\u178f",past:"%s\u1798\u17bb\u1793",s:"\u1794\u17c9\u17bb\u1793\u17d2\u1798\u17b6\u1793\u179c\u17b7\u1793\u17b6\u1791\u17b8",ss:"%d \u179c\u17b7\u1793\u17b6\u1791\u17b8",m:"\u1798\u17bd\u1799\u1793\u17b6\u1791\u17b8",mm:"%d \u1793\u17b6\u1791\u17b8",h:"\u1798\u17bd\u1799\u1798\u17c9\u17c4\u1784",hh:"%d \u1798\u17c9\u17c4\u1784",d:"\u1798\u17bd\u1799\u1790\u17d2\u1784\u17c3",dd:"%d \u1790\u17d2\u1784\u17c3",M:"\u1798\u17bd\u1799\u1781\u17c2",MM:"%d \u1781\u17c2",y:"\u1798\u17bd\u1799\u1786\u17d2\u1793\u17b6\u17c6",yy:"%d \u1786\u17d2\u1793\u17b6\u17c6"},dayOfMonthOrdinalParse:/\u1791\u17b8\d{1,2}/,ordinal:"\u1791\u17b8%d",preparse:function(U){return U.replace(/[\u17e1\u17e2\u17e3\u17e4\u17e5\u17e6\u17e7\u17e8\u17e9\u17e0]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},week:{dow:1,doy:4}})}(S(6908))},4305:function(v,x,S){!function(D){"use strict";var n={1:"\u0ce7",2:"\u0ce8",3:"\u0ce9",4:"\u0cea",5:"\u0ceb",6:"\u0cec",7:"\u0ced",8:"\u0cee",9:"\u0cef",0:"\u0ce6"},O={"\u0ce7":"1","\u0ce8":"2","\u0ce9":"3","\u0cea":"4","\u0ceb":"5","\u0cec":"6","\u0ced":"7","\u0cee":"8","\u0cef":"9","\u0ce6":"0"};D.defineLocale("kn",{months:"\u0c9c\u0ca8\u0cb5\u0cb0\u0cbf_\u0cab\u0cc6\u0cac\u0ccd\u0cb0\u0cb5\u0cb0\u0cbf_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5\u0cac\u0cb0\u0ccd_\u0ca8\u0cb5\u0cc6\u0c82\u0cac\u0cb0\u0ccd_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82\u0cac\u0cb0\u0ccd".split("_"),monthsShort:"\u0c9c\u0ca8_\u0cab\u0cc6\u0cac\u0ccd\u0cb0_\u0cae\u0cbe\u0cb0\u0ccd\u0c9a\u0ccd_\u0c8f\u0caa\u0ccd\u0cb0\u0cbf\u0cb2\u0ccd_\u0cae\u0cc6\u0cd5_\u0c9c\u0cc2\u0ca8\u0ccd_\u0c9c\u0cc1\u0cb2\u0cc6\u0cd6_\u0c86\u0c97\u0cb8\u0ccd\u0c9f\u0ccd_\u0cb8\u0cc6\u0caa\u0ccd\u0c9f\u0cc6\u0c82_\u0c85\u0c95\u0ccd\u0c9f\u0cc6\u0cc2\u0cd5_\u0ca8\u0cb5\u0cc6\u0c82_\u0ca1\u0cbf\u0cb8\u0cc6\u0c82".split("_"),monthsParseExact:!0,weekdays:"\u0cad\u0cbe\u0ca8\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae\u0cb5\u0cbe\u0cb0_\u0cae\u0c82\u0c97\u0cb3\u0cb5\u0cbe\u0cb0_\u0cac\u0cc1\u0ca7\u0cb5\u0cbe\u0cb0_\u0c97\u0cc1\u0cb0\u0cc1\u0cb5\u0cbe\u0cb0_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0\u0cb5\u0cbe\u0cb0_\u0cb6\u0ca8\u0cbf\u0cb5\u0cbe\u0cb0".split("_"),weekdaysShort:"\u0cad\u0cbe\u0ca8\u0cc1_\u0cb8\u0cc6\u0cc2\u0cd5\u0cae_\u0cae\u0c82\u0c97\u0cb3_\u0cac\u0cc1\u0ca7_\u0c97\u0cc1\u0cb0\u0cc1_\u0cb6\u0cc1\u0c95\u0ccd\u0cb0_\u0cb6\u0ca8\u0cbf".split("_"),weekdaysMin:"\u0cad\u0cbe_\u0cb8\u0cc6\u0cc2\u0cd5_\u0cae\u0c82_\u0cac\u0cc1_\u0c97\u0cc1_\u0cb6\u0cc1_\u0cb6".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c87\u0c82\u0ca6\u0cc1] LT",nextDay:"[\u0ca8\u0cbe\u0cb3\u0cc6] LT",nextWeek:"dddd, LT",lastDay:"[\u0ca8\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6] LT",lastWeek:"[\u0c95\u0cc6\u0cc2\u0ca8\u0cc6\u0caf] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0ca8\u0c82\u0ca4\u0cb0",past:"%s \u0cb9\u0cbf\u0c82\u0ca6\u0cc6",s:"\u0c95\u0cc6\u0cb2\u0cb5\u0cc1 \u0c95\u0ccd\u0cb7\u0ca3\u0c97\u0cb3\u0cc1",ss:"%d \u0cb8\u0cc6\u0c95\u0cc6\u0c82\u0ca1\u0cc1\u0c97\u0cb3\u0cc1",m:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",mm:"%d \u0ca8\u0cbf\u0cae\u0cbf\u0cb7",h:"\u0c92\u0c82\u0ca6\u0cc1 \u0c97\u0c82\u0c9f\u0cc6",hh:"%d \u0c97\u0c82\u0c9f\u0cc6",d:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca6\u0cbf\u0ca8",dd:"%d \u0ca6\u0cbf\u0ca8",M:"\u0c92\u0c82\u0ca6\u0cc1 \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",MM:"%d \u0ca4\u0cbf\u0c82\u0c97\u0cb3\u0cc1",y:"\u0c92\u0c82\u0ca6\u0cc1 \u0cb5\u0cb0\u0ccd\u0cb7",yy:"%d \u0cb5\u0cb0\u0ccd\u0cb7"},preparse:function(U){return U.replace(/[\u0ce7\u0ce8\u0ce9\u0cea\u0ceb\u0cec\u0ced\u0cee\u0cef\u0ce6]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf|\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6|\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8|\u0cb8\u0c82\u0c9c\u0cc6/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"===q?U<4?U:U+12:"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6"===q?U:"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8"===q?U>=10?U:U+12:"\u0cb8\u0c82\u0c9c\u0cc6"===q?U+12:void 0},meridiem:function(U,q,te){return U<4?"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf":U<10?"\u0cac\u0cc6\u0cb3\u0cbf\u0c97\u0ccd\u0c97\u0cc6":U<17?"\u0cae\u0ca7\u0ccd\u0caf\u0cbe\u0cb9\u0ccd\u0ca8":U<20?"\u0cb8\u0c82\u0c9c\u0cc6":"\u0cb0\u0cbe\u0ca4\u0ccd\u0cb0\u0cbf"},dayOfMonthOrdinalParse:/\d{1,2}(\u0ca8\u0cc6\u0cd5)/,ordinal:function(U){return U+"\u0ca8\u0cc6\u0cd5"},week:{dow:0,doy:6}})}(S(6908))},234:function(v,x,S){!function(D){"use strict";D.defineLocale("ko",{months:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),monthsShort:"1\uc6d4_2\uc6d4_3\uc6d4_4\uc6d4_5\uc6d4_6\uc6d4_7\uc6d4_8\uc6d4_9\uc6d4_10\uc6d4_11\uc6d4_12\uc6d4".split("_"),weekdays:"\uc77c\uc694\uc77c_\uc6d4\uc694\uc77c_\ud654\uc694\uc77c_\uc218\uc694\uc77c_\ubaa9\uc694\uc77c_\uae08\uc694\uc77c_\ud1a0\uc694\uc77c".split("_"),weekdaysShort:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),weekdaysMin:"\uc77c_\uc6d4_\ud654_\uc218_\ubaa9_\uae08_\ud1a0".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY\ub144 MMMM D\uc77c",LLL:"YYYY\ub144 MMMM D\uc77c A h:mm",LLLL:"YYYY\ub144 MMMM D\uc77c dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY\ub144 MMMM D\uc77c",lll:"YYYY\ub144 MMMM D\uc77c A h:mm",llll:"YYYY\ub144 MMMM D\uc77c dddd A h:mm"},calendar:{sameDay:"\uc624\ub298 LT",nextDay:"\ub0b4\uc77c LT",nextWeek:"dddd LT",lastDay:"\uc5b4\uc81c LT",lastWeek:"\uc9c0\ub09c\uc8fc dddd LT",sameElse:"L"},relativeTime:{future:"%s \ud6c4",past:"%s \uc804",s:"\uba87 \ucd08",ss:"%d\ucd08",m:"1\ubd84",mm:"%d\ubd84",h:"\ud55c \uc2dc\uac04",hh:"%d\uc2dc\uac04",d:"\ud558\ub8e8",dd:"%d\uc77c",M:"\ud55c \ub2ec",MM:"%d\ub2ec",y:"\uc77c \ub144",yy:"%d\ub144"},dayOfMonthOrdinalParse:/\d{1,2}(\uc77c|\uc6d4|\uc8fc)/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"\uc77c";case"M":return O+"\uc6d4";case"w":case"W":return O+"\uc8fc";default:return O}},meridiemParse:/\uc624\uc804|\uc624\ud6c4/,isPM:function(O){return"\uc624\ud6c4"===O},meridiem:function(O,R,U){return O<12?"\uc624\uc804":"\uc624\ud6c4"}})}(S(6908))},6003:function(v,x,S){!function(D){"use strict";var n={1:"\u0661",2:"\u0662",3:"\u0663",4:"\u0664",5:"\u0665",6:"\u0666",7:"\u0667",8:"\u0668",9:"\u0669",0:"\u0660"},O={"\u0661":"1","\u0662":"2","\u0663":"3","\u0664":"4","\u0665":"5","\u0666":"6","\u0667":"7","\u0668":"8","\u0669":"9","\u0660":"0"},R=["\u06a9\u0627\u0646\u0648\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0634\u0648\u0628\u0627\u062a","\u0626\u0627\u0632\u0627\u0631","\u0646\u06cc\u0633\u0627\u0646","\u0626\u0627\u06cc\u0627\u0631","\u062d\u0648\u0632\u06d5\u06cc\u0631\u0627\u0646","\u062a\u06d5\u0645\u0645\u0648\u0632","\u0626\u0627\u0628","\u0626\u06d5\u06cc\u0644\u0648\u0648\u0644","\u062a\u0634\u0631\u06cc\u0646\u06cc \u06cc\u06d5\u0643\u06d5\u0645","\u062a\u0634\u0631\u06cc\u0646\u06cc \u062f\u0648\u0648\u06d5\u0645","\u0643\u0627\u0646\u0648\u0646\u06cc \u06cc\u06d5\u06a9\u06d5\u0645"];D.defineLocale("ku",{months:R,monthsShort:R,weekdays:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u062f\u0648\u0648\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0633\u06ce\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645\u0645\u0647\u200c_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysShort:"\u06cc\u0647\u200c\u0643\u0634\u0647\u200c\u0645_\u062f\u0648\u0648\u0634\u0647\u200c\u0645_\u0633\u06ce\u0634\u0647\u200c\u0645_\u0686\u0648\u0627\u0631\u0634\u0647\u200c\u0645_\u067e\u06ce\u0646\u062c\u0634\u0647\u200c\u0645_\u0647\u0647\u200c\u06cc\u0646\u06cc_\u0634\u0647\u200c\u0645\u0645\u0647\u200c".split("_"),weekdaysMin:"\u06cc_\u062f_\u0633_\u0686_\u067e_\u0647_\u0634".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c|\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc/,isPM:function(q){return/\u0626\u06ce\u0648\u0627\u0631\u0647\u200c/.test(q)},meridiem:function(q,te,ie){return q<12?"\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc":"\u0626\u06ce\u0648\u0627\u0631\u0647\u200c"},calendar:{sameDay:"[\u0626\u0647\u200c\u0645\u0631\u06c6 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextDay:"[\u0628\u0647\u200c\u06cc\u0627\u0646\u06cc \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",nextWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastDay:"[\u062f\u0648\u06ce\u0646\u06ce \u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",lastWeek:"dddd [\u0643\u0627\u062a\u0698\u0645\u06ce\u0631] LT",sameElse:"L"},relativeTime:{future:"\u0644\u0647\u200c %s",past:"%s",s:"\u0686\u0647\u200c\u0646\u062f \u0686\u0631\u0643\u0647\u200c\u06cc\u0647\u200c\u0643",ss:"\u0686\u0631\u0643\u0647\u200c %d",m:"\u06cc\u0647\u200c\u0643 \u062e\u0648\u0644\u0647\u200c\u0643",mm:"%d \u062e\u0648\u0644\u0647\u200c\u0643",h:"\u06cc\u0647\u200c\u0643 \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",hh:"%d \u0643\u0627\u062a\u0698\u0645\u06ce\u0631",d:"\u06cc\u0647\u200c\u0643 \u0695\u06c6\u0698",dd:"%d \u0695\u06c6\u0698",M:"\u06cc\u0647\u200c\u0643 \u0645\u0627\u0646\u06af",MM:"%d \u0645\u0627\u0646\u06af",y:"\u06cc\u0647\u200c\u0643 \u0633\u0627\u06b5",yy:"%d \u0633\u0627\u06b5"},preparse:function(q){return q.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(te){return O[te]}).replace(/\u060c/g,",")},postformat:function(q){return q.replace(/\d/g,function(te){return n[te]}).replace(/,/g,"\u060c")},week:{dow:6,doy:12}})}(S(6908))},5061:function(v,x,S){!function(D){"use strict";var n={0:"-\u0447\u04af",1:"-\u0447\u0438",2:"-\u0447\u0438",3:"-\u0447\u04af",4:"-\u0447\u04af",5:"-\u0447\u0438",6:"-\u0447\u044b",7:"-\u0447\u0438",8:"-\u0447\u0438",9:"-\u0447\u0443",10:"-\u0447\u0443",20:"-\u0447\u044b",30:"-\u0447\u0443",40:"-\u0447\u044b",50:"-\u0447\u04af",60:"-\u0447\u044b",70:"-\u0447\u0438",80:"-\u0447\u0438",90:"-\u0447\u0443",100:"-\u0447\u04af"};D.defineLocale("ky",{months:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u0416\u0435\u043a\u0448\u0435\u043c\u0431\u0438_\u0414\u04af\u0439\u0448\u04e9\u043c\u0431\u04af_\u0428\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0428\u0430\u0440\u0448\u0435\u043c\u0431\u0438_\u0411\u0435\u0439\u0448\u0435\u043c\u0431\u0438_\u0416\u0443\u043c\u0430_\u0418\u0448\u0435\u043c\u0431\u0438".split("_"),weekdaysShort:"\u0416\u0435\u043a_\u0414\u04af\u0439_\u0428\u0435\u0439_\u0428\u0430\u0440_\u0411\u0435\u0439_\u0416\u0443\u043c_\u0418\u0448\u0435".split("_"),weekdaysMin:"\u0416\u043a_\u0414\u0439_\u0428\u0439_\u0428\u0440_\u0411\u0439_\u0416\u043c_\u0418\u0448".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0411\u04af\u0433\u04af\u043d \u0441\u0430\u0430\u0442] LT",nextDay:"[\u042d\u0440\u0442\u0435\u04a3 \u0441\u0430\u0430\u0442] LT",nextWeek:"dddd [\u0441\u0430\u0430\u0442] LT",lastDay:"[\u041a\u0435\u0447\u044d\u044d \u0441\u0430\u0430\u0442] LT",lastWeek:"[\u04e8\u0442\u043a\u04e9\u043d \u0430\u043f\u0442\u0430\u043d\u044b\u043d] dddd [\u043a\u04af\u043d\u04af] [\u0441\u0430\u0430\u0442] LT",sameElse:"L"},relativeTime:{future:"%s \u0438\u0447\u0438\u043d\u0434\u0435",past:"%s \u043c\u0443\u0440\u0443\u043d",s:"\u0431\u0438\u0440\u043d\u0435\u0447\u0435 \u0441\u0435\u043a\u0443\u043d\u0434",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434",m:"\u0431\u0438\u0440 \u043c\u04af\u043d\u04e9\u0442",mm:"%d \u043c\u04af\u043d\u04e9\u0442",h:"\u0431\u0438\u0440 \u0441\u0430\u0430\u0442",hh:"%d \u0441\u0430\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u04af\u043d",dd:"%d \u043a\u04af\u043d",M:"\u0431\u0438\u0440 \u0430\u0439",MM:"%d \u0430\u0439",y:"\u0431\u0438\u0440 \u0436\u044b\u043b",yy:"%d \u0436\u044b\u043b"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0447\u0438|\u0447\u044b|\u0447\u04af|\u0447\u0443)/,ordinal:function(R){return R+(n[R]||n[R%10]||n[R>=100?100:null])},week:{dow:1,doy:7}})}(S(6908))},2786:function(v,x,S){!function(D){"use strict";function n(te,ie,pe,de){var Ce={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return ie?Ce[pe][0]:Ce[pe][1]}function U(te){if(te=parseInt(te,10),isNaN(te))return!1;if(te<0)return!0;if(te<10)return 4<=te&&te<=7;if(te<100){var ie=te%10;return U(0===ie?te/10:ie)}if(te<1e4){for(;te>=10;)te/=10;return U(te)}return U(te/=1e3)}D.defineLocale("lb",{months:"Januar_Februar_M\xe4erz_Abr\xebll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_M\xe9indeg_D\xebnschdeg_M\xebttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._M\xe9._D\xeb._M\xeb._Do._Fr._Sa.".split("_"),weekdaysMin:"So_M\xe9_D\xeb_M\xeb_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[G\xebschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function O(te){return U(te.substr(0,te.indexOf(" ")))?"a "+te:"an "+te},past:function R(te){return U(te.substr(0,te.indexOf(" ")))?"viru "+te:"virun "+te},s:"e puer Sekonnen",ss:"%d Sekonnen",m:n,mm:"%d Minutten",h:n,hh:"%d Stonnen",d:n,dd:"%d Deeg",M:n,MM:"%d M\xe9int",y:n,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},6183:function(v,x,S){!function(D){"use strict";D.defineLocale("lo",{months:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),monthsShort:"\u0ea1\u0eb1\u0e87\u0e81\u0ead\u0e99_\u0e81\u0eb8\u0ea1\u0e9e\u0eb2_\u0ea1\u0eb5\u0e99\u0eb2_\u0ec0\u0ea1\u0eaa\u0eb2_\u0e9e\u0eb6\u0e94\u0eaa\u0eb0\u0e9e\u0eb2_\u0ea1\u0eb4\u0e96\u0eb8\u0e99\u0eb2_\u0e81\u0ecd\u0ea5\u0eb0\u0e81\u0ebb\u0e94_\u0eaa\u0eb4\u0e87\u0eab\u0eb2_\u0e81\u0eb1\u0e99\u0e8d\u0eb2_\u0e95\u0eb8\u0ea5\u0eb2_\u0e9e\u0eb0\u0e88\u0eb4\u0e81_\u0e97\u0eb1\u0e99\u0ea7\u0eb2".split("_"),weekdays:"\u0ead\u0eb2\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysShort:"\u0e97\u0eb4\u0e94_\u0e88\u0eb1\u0e99_\u0ead\u0eb1\u0e87\u0e84\u0eb2\u0e99_\u0e9e\u0eb8\u0e94_\u0e9e\u0eb0\u0eab\u0eb1\u0e94_\u0eaa\u0eb8\u0e81_\u0ec0\u0eaa\u0ebb\u0eb2".split("_"),weekdaysMin:"\u0e97_\u0e88_\u0ead\u0e84_\u0e9e_\u0e9e\u0eab_\u0eaa\u0e81_\u0eaa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"\u0ea7\u0eb1\u0e99dddd D MMMM YYYY HH:mm"},meridiemParse:/\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2|\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87/,isPM:function(O){return"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"===O},meridiem:function(O,R,U){return O<12?"\u0e95\u0ead\u0e99\u0ec0\u0e8a\u0ebb\u0ec9\u0eb2":"\u0e95\u0ead\u0e99\u0ec1\u0ea5\u0e87"},calendar:{sameDay:"[\u0ea1\u0eb7\u0ec9\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextDay:"[\u0ea1\u0eb7\u0ec9\u0ead\u0eb7\u0ec8\u0e99\u0ec0\u0ea7\u0ea5\u0eb2] LT",nextWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0edc\u0ec9\u0eb2\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastDay:"[\u0ea1\u0eb7\u0ec9\u0ea7\u0eb2\u0e99\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",lastWeek:"[\u0ea7\u0eb1\u0e99]dddd[\u0ec1\u0ea5\u0ec9\u0ea7\u0e99\u0eb5\u0ec9\u0ec0\u0ea7\u0ea5\u0eb2] LT",sameElse:"L"},relativeTime:{future:"\u0ead\u0eb5\u0e81 %s",past:"%s\u0e9c\u0ec8\u0eb2\u0e99\u0ea1\u0eb2",s:"\u0e9a\u0ecd\u0ec8\u0ec0\u0e97\u0ebb\u0ec8\u0eb2\u0ec3\u0e94\u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",ss:"%d \u0ea7\u0eb4\u0e99\u0eb2\u0e97\u0eb5",m:"1 \u0e99\u0eb2\u0e97\u0eb5",mm:"%d \u0e99\u0eb2\u0e97\u0eb5",h:"1 \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",hh:"%d \u0e8a\u0ebb\u0ec8\u0ea7\u0ec2\u0ea1\u0e87",d:"1 \u0ea1\u0eb7\u0ec9",dd:"%d \u0ea1\u0eb7\u0ec9",M:"1 \u0ec0\u0e94\u0eb7\u0ead\u0e99",MM:"%d \u0ec0\u0e94\u0eb7\u0ead\u0e99",y:"1 \u0e9b\u0eb5",yy:"%d \u0e9b\u0eb5"},dayOfMonthOrdinalParse:/(\u0e97\u0eb5\u0ec8)\d{1,2}/,ordinal:function(O){return"\u0e97\u0eb5\u0ec8"+O}})}(S(6908))},29:function(v,x,S){!function(D){"use strict";var n={ss:"sekund\u0117_sekund\u017ei\u0173_sekundes",m:"minut\u0117_minut\u0117s_minut\u0119",mm:"minut\u0117s_minu\u010di\u0173_minutes",h:"valanda_valandos_valand\u0105",hh:"valandos_valand\u0173_valandas",d:"diena_dienos_dien\u0105",dd:"dienos_dien\u0173_dienas",M:"m\u0117nuo_m\u0117nesio_m\u0117nes\u012f",MM:"m\u0117nesiai_m\u0117nesi\u0173_m\u0117nesius",y:"metai_met\u0173_metus",yy:"metai_met\u0173_metus"};function R(pe,de,Ce,me){return de?q(Ce)[0]:me?q(Ce)[1]:q(Ce)[2]}function U(pe){return pe%10==0||pe>10&&pe<20}function q(pe){return n[pe].split("_")}function te(pe,de,Ce,me){var we=pe+" ";return 1===pe?we+R(0,de,Ce[0],me):de?we+(U(pe)?q(Ce)[1]:q(Ce)[0]):me?we+q(Ce)[1]:we+(U(pe)?q(Ce)[1]:q(Ce)[2])}D.defineLocale("lt",{months:{format:"sausio_vasario_kovo_baland\u017eio_gegu\u017e\u0117s_bir\u017eelio_liepos_rugpj\u016b\u010dio_rugs\u0117jo_spalio_lapkri\u010dio_gruod\u017eio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegu\u017e\u0117_bir\u017eelis_liepa_rugpj\u016btis_rugs\u0117jis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadien\u012f_pirmadien\u012f_antradien\u012f_tre\u010diadien\u012f_ketvirtadien\u012f_penktadien\u012f_\u0161e\u0161tadien\u012f".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_tre\u010diadienis_ketvirtadienis_penktadienis_\u0161e\u0161tadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_\u0160e\u0161".split("_"),weekdaysMin:"S_P_A_T_K_Pn_\u0160".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[\u0160iandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Pra\u0117jus\u012f] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prie\u0161 %s",s:function O(pe,de,Ce,me){return de?"kelios sekund\u0117s":me?"keli\u0173 sekund\u017ei\u0173":"kelias sekundes"},ss:te,m:R,mm:te,h:R,hh:te,d:R,dd:te,M:R,MM:te,y:R,yy:te},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(pe){return pe+"-oji"},week:{dow:1,doy:4}})}(S(6908))},4169:function(v,x,S){!function(D){"use strict";var n={ss:"sekundes_sekund\u0113m_sekunde_sekundes".split("_"),m:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),mm:"min\u016btes_min\u016bt\u0113m_min\u016bte_min\u016btes".split("_"),h:"stundas_stund\u0101m_stunda_stundas".split("_"),hh:"stundas_stund\u0101m_stunda_stundas".split("_"),d:"dienas_dien\u0101m_diena_dienas".split("_"),dd:"dienas_dien\u0101m_diena_dienas".split("_"),M:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),MM:"m\u0113ne\u0161a_m\u0113ne\u0161iem_m\u0113nesis_m\u0113ne\u0161i".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function O(ie,pe,de){return de?pe%10==1&&pe%100!=11?ie[2]:ie[3]:pe%10==1&&pe%100!=11?ie[0]:ie[1]}function R(ie,pe,de){return ie+" "+O(n[de],ie,pe)}function U(ie,pe,de){return O(n[de],ie,pe)}D.defineLocale("lv",{months:"janv\u0101ris_febru\u0101ris_marts_apr\u012blis_maijs_j\u016bnijs_j\u016blijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_j\u016bn_j\u016bl_aug_sep_okt_nov_dec".split("_"),weekdays:"sv\u0113tdiena_pirmdiena_otrdiena_tre\u0161diena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[\u0160odien pulksten] LT",nextDay:"[R\u012bt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pag\u0101ju\u0161\u0101] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"p\u0113c %s",past:"pirms %s",s:function q(ie,pe){return pe?"da\u017eas sekundes":"da\u017e\u0101m sekund\u0113m"},ss:R,m:U,mm:R,h:U,hh:R,d:U,dd:R,M:U,MM:R,y:U,yy:R},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},8577:function(v,x,S){!function(D){"use strict";var n={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(R,U){return 1===R?U[0]:R>=2&&R<=4?U[1]:U[2]},translate:function(R,U,q){var te=n.words[q];return 1===q.length?U?te[0]:te[1]:R+" "+n.correctGrammaticalCase(R,te)}};D.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedjelje] [u] LT","[pro\u0161log] [ponedjeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srijede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mjesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},8177:function(v,x,S){!function(D){"use strict";D.defineLocale("mi",{months:"Kohi-t\u0101te_Hui-tanguru_Pout\u016b-te-rangi_Paenga-wh\u0101wh\u0101_Haratua_Pipiri_H\u014dngoingoi_Here-turi-k\u014dk\u0101_Mahuru_Whiringa-\u0101-nuku_Whiringa-\u0101-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_H\u014dngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"R\u0101tapu_Mane_T\u016brei_Wenerei_T\u0101ite_Paraire_H\u0101tarei".split("_"),weekdaysShort:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),weekdaysMin:"Ta_Ma_T\u016b_We_T\u0101i_Pa_H\u0101".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te h\u0113kona ruarua",ss:"%d h\u0113kona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},337:function(v,x,S){!function(D){"use strict";D.defineLocale("mk",{months:"\u0458\u0430\u043d\u0443\u0430\u0440\u0438_\u0444\u0435\u0432\u0440\u0443\u0430\u0440\u0438_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d\u0438_\u0458\u0443\u043b\u0438_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0432\u0440\u0438_\u043e\u043a\u0442\u043e\u043c\u0432\u0440\u0438_\u043d\u043e\u0435\u043c\u0432\u0440\u0438_\u0434\u0435\u043a\u0435\u043c\u0432\u0440\u0438".split("_"),monthsShort:"\u0458\u0430\u043d_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433_\u0441\u0435\u043f_\u043e\u043a\u0442_\u043d\u043e\u0435_\u0434\u0435\u043a".split("_"),weekdays:"\u043d\u0435\u0434\u0435\u043b\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u043e\u043a_\u043f\u0435\u0442\u043e\u043a_\u0441\u0430\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434_\u043f\u043e\u043d_\u0432\u0442\u043e_\u0441\u0440\u0435_\u0447\u0435\u0442_\u043f\u0435\u0442_\u0441\u0430\u0431".split("_"),weekdaysMin:"\u043de_\u043fo_\u0432\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441a".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[\u0414\u0435\u043d\u0435\u0441 \u0432\u043e] LT",nextDay:"[\u0423\u0442\u0440\u0435 \u0432\u043e] LT",nextWeek:"[\u0412\u043e] dddd [\u0432\u043e] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430 \u0432\u043e] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0430\u0442\u0430] dddd [\u0432\u043e] LT";case 1:case 2:case 4:case 5:return"[\u0418\u0437\u043c\u0438\u043d\u0430\u0442\u0438\u043e\u0442] dddd [\u0432\u043e] LT"}},sameElse:"L"},relativeTime:{future:"\u043f\u043e\u0441\u043b\u0435 %s",past:"\u043f\u0440\u0435\u0434 %s",s:"\u043d\u0435\u043a\u043e\u043b\u043a\u0443 \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:"%d \u0441\u0435\u043a\u0443\u043d\u0434\u0438",m:"\u043c\u0438\u043d\u0443\u0442\u0430",mm:"%d \u043c\u0438\u043d\u0443\u0442\u0438",h:"\u0447\u0430\u0441",hh:"%d \u0447\u0430\u0441\u0430",d:"\u0434\u0435\u043d",dd:"%d \u0434\u0435\u043d\u0430",M:"\u043c\u0435\u0441\u0435\u0446",MM:"%d \u043c\u0435\u0441\u0435\u0446\u0438",y:"\u0433\u043e\u0434\u0438\u043d\u0430",yy:"%d \u0433\u043e\u0434\u0438\u043d\u0438"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0435\u0432|\u0435\u043d|\u0442\u0438|\u0432\u0438|\u0440\u0438|\u043c\u0438)/,ordinal:function(O){var R=O%10,U=O%100;return 0===O?O+"-\u0435\u0432":0===U?O+"-\u0435\u043d":U>10&&U<20?O+"-\u0442\u0438":1===R?O+"-\u0432\u0438":2===R?O+"-\u0440\u0438":7===R||8===R?O+"-\u043c\u0438":O+"-\u0442\u0438"},week:{dow:1,doy:7}})}(S(6908))},5260:function(v,x,S){!function(D){"use strict";D.defineLocale("ml",{months:"\u0d1c\u0d28\u0d41\u0d35\u0d30\u0d3f_\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41\u0d35\u0d30\u0d3f_\u0d2e\u0d3e\u0d7c\u0d1a\u0d4d\u0d1a\u0d4d_\u0d0f\u0d2a\u0d4d\u0d30\u0d3f\u0d7d_\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48_\u0d13\u0d17\u0d38\u0d4d\u0d31\u0d4d\u0d31\u0d4d_\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31\u0d02\u0d2c\u0d7c_\u0d12\u0d15\u0d4d\u0d1f\u0d4b\u0d2c\u0d7c_\u0d28\u0d35\u0d02\u0d2c\u0d7c_\u0d21\u0d3f\u0d38\u0d02\u0d2c\u0d7c".split("_"),monthsShort:"\u0d1c\u0d28\u0d41._\u0d2b\u0d46\u0d2c\u0d4d\u0d30\u0d41._\u0d2e\u0d3e\u0d7c._\u0d0f\u0d2a\u0d4d\u0d30\u0d3f._\u0d2e\u0d47\u0d2f\u0d4d_\u0d1c\u0d42\u0d7a_\u0d1c\u0d42\u0d32\u0d48._\u0d13\u0d17._\u0d38\u0d46\u0d2a\u0d4d\u0d31\u0d4d\u0d31._\u0d12\u0d15\u0d4d\u0d1f\u0d4b._\u0d28\u0d35\u0d02._\u0d21\u0d3f\u0d38\u0d02.".split("_"),monthsParseExact:!0,weekdays:"\u0d1e\u0d3e\u0d2f\u0d31\u0d3e\u0d34\u0d4d\u0d1a_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d33\u0d3e\u0d34\u0d4d\u0d1a_\u0d1a\u0d4a\u0d35\u0d4d\u0d35\u0d3e\u0d34\u0d4d\u0d1a_\u0d2c\u0d41\u0d27\u0d28\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d3e\u0d34\u0d4d\u0d1a_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a_\u0d36\u0d28\u0d3f\u0d2f\u0d3e\u0d34\u0d4d\u0d1a".split("_"),weekdaysShort:"\u0d1e\u0d3e\u0d2f\u0d7c_\u0d24\u0d3f\u0d19\u0d4d\u0d15\u0d7e_\u0d1a\u0d4a\u0d35\u0d4d\u0d35_\u0d2c\u0d41\u0d27\u0d7b_\u0d35\u0d4d\u0d2f\u0d3e\u0d34\u0d02_\u0d35\u0d46\u0d33\u0d4d\u0d33\u0d3f_\u0d36\u0d28\u0d3f".split("_"),weekdaysMin:"\u0d1e\u0d3e_\u0d24\u0d3f_\u0d1a\u0d4a_\u0d2c\u0d41_\u0d35\u0d4d\u0d2f\u0d3e_\u0d35\u0d46_\u0d36".split("_"),longDateFormat:{LT:"A h:mm -\u0d28\u0d41",LTS:"A h:mm:ss -\u0d28\u0d41",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -\u0d28\u0d41",LLLL:"dddd, D MMMM YYYY, A h:mm -\u0d28\u0d41"},calendar:{sameDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d4d] LT",nextDay:"[\u0d28\u0d3e\u0d33\u0d46] LT",nextWeek:"dddd, LT",lastDay:"[\u0d07\u0d28\u0d4d\u0d28\u0d32\u0d46] LT",lastWeek:"[\u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d",past:"%s \u0d2e\u0d41\u0d7b\u0d2a\u0d4d",s:"\u0d05\u0d7d\u0d2a \u0d28\u0d3f\u0d2e\u0d3f\u0d37\u0d19\u0d4d\u0d19\u0d7e",ss:"%d \u0d38\u0d46\u0d15\u0d4d\u0d15\u0d7b\u0d21\u0d4d",m:"\u0d12\u0d30\u0d41 \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",mm:"%d \u0d2e\u0d3f\u0d28\u0d3f\u0d31\u0d4d\u0d31\u0d4d",h:"\u0d12\u0d30\u0d41 \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",hh:"%d \u0d2e\u0d23\u0d3f\u0d15\u0d4d\u0d15\u0d42\u0d7c",d:"\u0d12\u0d30\u0d41 \u0d26\u0d3f\u0d35\u0d38\u0d02",dd:"%d \u0d26\u0d3f\u0d35\u0d38\u0d02",M:"\u0d12\u0d30\u0d41 \u0d2e\u0d3e\u0d38\u0d02",MM:"%d \u0d2e\u0d3e\u0d38\u0d02",y:"\u0d12\u0d30\u0d41 \u0d35\u0d7c\u0d37\u0d02",yy:"%d \u0d35\u0d7c\u0d37\u0d02"},meridiemParse:/\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f|\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46|\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d|\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02|\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f/i,meridiemHour:function(O,R){return 12===O&&(O=0),"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"===R&&O>=4||"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d"===R||"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02"===R?O+12:O},meridiem:function(O,R,U){return O<4?"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f":O<12?"\u0d30\u0d3e\u0d35\u0d3f\u0d32\u0d46":O<17?"\u0d09\u0d1a\u0d4d\u0d1a \u0d15\u0d34\u0d3f\u0d1e\u0d4d\u0d1e\u0d4d":O<20?"\u0d35\u0d48\u0d15\u0d41\u0d28\u0d4d\u0d28\u0d47\u0d30\u0d02":"\u0d30\u0d3e\u0d24\u0d4d\u0d30\u0d3f"}})}(S(6908))},2325:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){switch(q){case"s":return U?"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434":"\u0445\u044d\u0434\u0445\u044d\u043d \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d";case"ss":return R+(U?" \u0441\u0435\u043a\u0443\u043d\u0434":" \u0441\u0435\u043a\u0443\u043d\u0434\u044b\u043d");case"m":case"mm":return R+(U?" \u043c\u0438\u043d\u0443\u0442":" \u043c\u0438\u043d\u0443\u0442\u044b\u043d");case"h":case"hh":return R+(U?" \u0446\u0430\u0433":" \u0446\u0430\u0433\u0438\u0439\u043d");case"d":case"dd":return R+(U?" \u04e9\u0434\u04e9\u0440":" \u04e9\u0434\u0440\u0438\u0439\u043d");case"M":case"MM":return R+(U?" \u0441\u0430\u0440":" \u0441\u0430\u0440\u044b\u043d");case"y":case"yy":return R+(U?" \u0436\u0438\u043b":" \u0436\u0438\u043b\u0438\u0439\u043d");default:return R}}D.defineLocale("mn",{months:"\u041d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0425\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0413\u0443\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u04e9\u0440\u04e9\u0432\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0422\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0417\u0443\u0440\u0433\u0430\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0414\u043e\u043b\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u041d\u0430\u0439\u043c\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0415\u0441\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0430\u0432\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u043d\u044d\u0433\u0434\u04af\u0433\u044d\u044d\u0440 \u0441\u0430\u0440_\u0410\u0440\u0432\u0430\u043d \u0445\u043e\u0451\u0440\u0434\u0443\u0433\u0430\u0430\u0440 \u0441\u0430\u0440".split("_"),monthsShort:"1 \u0441\u0430\u0440_2 \u0441\u0430\u0440_3 \u0441\u0430\u0440_4 \u0441\u0430\u0440_5 \u0441\u0430\u0440_6 \u0441\u0430\u0440_7 \u0441\u0430\u0440_8 \u0441\u0430\u0440_9 \u0441\u0430\u0440_10 \u0441\u0430\u0440_11 \u0441\u0430\u0440_12 \u0441\u0430\u0440".split("_"),monthsParseExact:!0,weekdays:"\u041d\u044f\u043c_\u0414\u0430\u0432\u0430\u0430_\u041c\u044f\u0433\u043c\u0430\u0440_\u041b\u0445\u0430\u0433\u0432\u0430_\u041f\u04af\u0440\u044d\u0432_\u0411\u0430\u0430\u0441\u0430\u043d_\u0411\u044f\u043c\u0431\u0430".split("_"),weekdaysShort:"\u041d\u044f\u043c_\u0414\u0430\u0432_\u041c\u044f\u0433_\u041b\u0445\u0430_\u041f\u04af\u0440_\u0411\u0430\u0430_\u0411\u044f\u043c".split("_"),weekdaysMin:"\u041d\u044f_\u0414\u0430_\u041c\u044f_\u041b\u0445_\u041f\u04af_\u0411\u0430_\u0411\u044f".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D",LLL:"YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm",LLLL:"dddd, YYYY \u043e\u043d\u044b MMMM\u044b\u043d D HH:mm"},meridiemParse:/\u04ae\u04e8|\u04ae\u0425/i,isPM:function(R){return"\u04ae\u0425"===R},meridiem:function(R,U,q){return R<12?"\u04ae\u04e8":"\u04ae\u0425"},calendar:{sameDay:"[\u04e8\u043d\u04e9\u04e9\u0434\u04e9\u0440] LT",nextDay:"[\u041c\u0430\u0440\u0433\u0430\u0430\u0448] LT",nextWeek:"[\u0418\u0440\u044d\u0445] dddd LT",lastDay:"[\u04e8\u0447\u0438\u0433\u0434\u04e9\u0440] LT",lastWeek:"[\u04e8\u043d\u0433\u04e9\u0440\u0441\u04e9\u043d] dddd LT",sameElse:"L"},relativeTime:{future:"%s \u0434\u0430\u0440\u0430\u0430",past:"%s \u04e9\u043c\u043d\u04e9",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2} \u04e9\u0434\u04e9\u0440/,ordinal:function(R,U){switch(U){case"d":case"D":case"DDD":return R+" \u04e9\u0434\u04e9\u0440";default:return R}}})}(S(6908))},4695:function(v,x,S){!function(D){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},O={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};function R(q,te,ie,pe){var de="";if(te)switch(ie){case"s":de="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926";break;case"ss":de="%d \u0938\u0947\u0915\u0902\u0926";break;case"m":de="\u090f\u0915 \u092e\u093f\u0928\u093f\u091f";break;case"mm":de="%d \u092e\u093f\u0928\u093f\u091f\u0947";break;case"h":de="\u090f\u0915 \u0924\u093e\u0938";break;case"hh":de="%d \u0924\u093e\u0938";break;case"d":de="\u090f\u0915 \u0926\u093f\u0935\u0938";break;case"dd":de="%d \u0926\u093f\u0935\u0938";break;case"M":de="\u090f\u0915 \u092e\u0939\u093f\u0928\u093e";break;case"MM":de="%d \u092e\u0939\u093f\u0928\u0947";break;case"y":de="\u090f\u0915 \u0935\u0930\u094d\u0937";break;case"yy":de="%d \u0935\u0930\u094d\u0937\u0947"}else switch(ie){case"s":de="\u0915\u093e\u0939\u0940 \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"ss":de="%d \u0938\u0947\u0915\u0902\u0926\u093e\u0902";break;case"m":de="\u090f\u0915\u093e \u092e\u093f\u0928\u093f\u091f\u093e";break;case"mm":de="%d \u092e\u093f\u0928\u093f\u091f\u093e\u0902";break;case"h":de="\u090f\u0915\u093e \u0924\u093e\u0938\u093e";break;case"hh":de="%d \u0924\u093e\u0938\u093e\u0902";break;case"d":de="\u090f\u0915\u093e \u0926\u093f\u0935\u0938\u093e";break;case"dd":de="%d \u0926\u093f\u0935\u0938\u093e\u0902";break;case"M":de="\u090f\u0915\u093e \u092e\u0939\u093f\u0928\u094d\u092f\u093e";break;case"MM":de="%d \u092e\u0939\u093f\u0928\u094d\u092f\u093e\u0902";break;case"y":de="\u090f\u0915\u093e \u0935\u0930\u094d\u0937\u093e";break;case"yy":de="%d \u0935\u0930\u094d\u0937\u093e\u0902"}return de.replace(/%d/i,q)}D.defineLocale("mr",{months:"\u091c\u093e\u0928\u0947\u0935\u093e\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u093e\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u090f\u092a\u094d\u0930\u093f\u0932_\u092e\u0947_\u091c\u0942\u0928_\u091c\u0941\u0932\u0948_\u0911\u0917\u0938\u094d\u091f_\u0938\u092a\u094d\u091f\u0947\u0902\u092c\u0930_\u0911\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u0935\u094d\u0939\u0947\u0902\u092c\u0930_\u0921\u093f\u0938\u0947\u0902\u092c\u0930".split("_"),monthsShort:"\u091c\u093e\u0928\u0947._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a._\u090f\u092a\u094d\u0930\u093f._\u092e\u0947._\u091c\u0942\u0928._\u091c\u0941\u0932\u0948._\u0911\u0917._\u0938\u092a\u094d\u091f\u0947\u0902._\u0911\u0915\u094d\u091f\u094b._\u0928\u094b\u0935\u094d\u0939\u0947\u0902._\u0921\u093f\u0938\u0947\u0902.".split("_"),monthsParseExact:!0,weekdays:"\u0930\u0935\u093f\u0935\u093e\u0930_\u0938\u094b\u092e\u0935\u093e\u0930_\u092e\u0902\u0917\u0933\u0935\u093e\u0930_\u092c\u0941\u0927\u0935\u093e\u0930_\u0917\u0941\u0930\u0942\u0935\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u0935\u093e\u0930_\u0936\u0928\u093f\u0935\u093e\u0930".split("_"),weekdaysShort:"\u0930\u0935\u093f_\u0938\u094b\u092e_\u092e\u0902\u0917\u0933_\u092c\u0941\u0927_\u0917\u0941\u0930\u0942_\u0936\u0941\u0915\u094d\u0930_\u0936\u0928\u093f".split("_"),weekdaysMin:"\u0930_\u0938\u094b_\u092e\u0902_\u092c\u0941_\u0917\u0941_\u0936\u0941_\u0936".split("_"),longDateFormat:{LT:"A h:mm \u0935\u093e\u091c\u0924\u093e",LTS:"A h:mm:ss \u0935\u093e\u091c\u0924\u093e",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e",LLLL:"dddd, D MMMM YYYY, A h:mm \u0935\u093e\u091c\u0924\u093e"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u0909\u0926\u094d\u092f\u093e] LT",nextWeek:"dddd, LT",lastDay:"[\u0915\u093e\u0932] LT",lastWeek:"[\u092e\u093e\u0917\u0940\u0932] dddd, LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u0927\u094d\u092f\u0947",past:"%s\u092a\u0942\u0930\u094d\u0935\u0940",s:R,ss:R,m:R,mm:R,h:R,hh:R,d:R,dd:R,M:R,MM:R,y:R,yy:R},preparse:function(q){return q.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(te){return O[te]})},postformat:function(q){return q.replace(/\d/g,function(te){return n[te]})},meridiemParse:/\u0930\u093e\u0924\u094d\u0930\u0940|\u0938\u0915\u093e\u0933\u0940|\u0926\u0941\u092a\u093e\u0930\u0940|\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940/,meridiemHour:function(q,te){return 12===q&&(q=0),"\u0930\u093e\u0924\u094d\u0930\u0940"===te?q<4?q:q+12:"\u0938\u0915\u093e\u0933\u0940"===te?q:"\u0926\u0941\u092a\u093e\u0930\u0940"===te?q>=10?q:q+12:"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940"===te?q+12:void 0},meridiem:function(q,te,ie){return q<4?"\u0930\u093e\u0924\u094d\u0930\u0940":q<10?"\u0938\u0915\u093e\u0933\u0940":q<17?"\u0926\u0941\u092a\u093e\u0930\u0940":q<20?"\u0938\u093e\u092f\u0902\u0915\u093e\u0933\u0940":"\u0930\u093e\u0924\u094d\u0930\u0940"},week:{dow:0,doy:6}})}(S(6908))},7151:function(v,x,S){!function(D){"use strict";D.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(O,R){return 12===O&&(O=0),"pagi"===R?O:"tengahari"===R?O>=11?O:O+12:"petang"===R||"malam"===R?O+12:void 0},meridiem:function(O,R,U){return O<11?"pagi":O<15?"tengahari":O<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(S(6908))},5334:function(v,x,S){!function(D){"use strict";D.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(O,R){return 12===O&&(O=0),"pagi"===R?O:"tengahari"===R?O>=11?O:O+12:"petang"===R||"malam"===R?O+12:void 0},meridiem:function(O,R,U){return O<11?"pagi":O<15?"tengahari":O<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(S(6908))},3570:function(v,x,S){!function(D){"use strict";D.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_\u0120unju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Di\u010bembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_\u0120un_Lul_Aww_Set_Ott_Nov_Di\u010b".split("_"),weekdays:"Il-\u0126add_It-Tnejn_It-Tlieta_L-Erbg\u0127a_Il-\u0126amis_Il-\u0120img\u0127a_Is-Sibt".split("_"),weekdaysShort:"\u0126ad_Tne_Tli_Erb_\u0126am_\u0120im_Sib".split("_"),weekdaysMin:"\u0126a_Tn_Tl_Er_\u0126a_\u0120i_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[G\u0127ada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-biera\u0127 fil-]LT",lastWeek:"dddd [li g\u0127adda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f\u2019 %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"sieg\u0127a",hh:"%d sieg\u0127at",d:"\u0121urnata",dd:"%d \u0121ranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},7963:function(v,x,S){!function(D){"use strict";var n={1:"\u1041",2:"\u1042",3:"\u1043",4:"\u1044",5:"\u1045",6:"\u1046",7:"\u1047",8:"\u1048",9:"\u1049",0:"\u1040"},O={"\u1041":"1","\u1042":"2","\u1043":"3","\u1044":"4","\u1045":"5","\u1046":"6","\u1047":"7","\u1048":"8","\u1049":"9","\u1040":"0"};D.defineLocale("my",{months:"\u1007\u1014\u103a\u1014\u101d\u102b\u101b\u102e_\u1016\u1031\u1016\u1031\u102c\u103a\u101d\u102b\u101b\u102e_\u1019\u1010\u103a_\u1027\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u1007\u1030\u101c\u102d\u102f\u1004\u103a_\u101e\u103c\u1002\u102f\u1010\u103a_\u1005\u1000\u103a\u1010\u1004\u103a\u1018\u102c_\u1021\u1031\u102c\u1000\u103a\u1010\u102d\u102f\u1018\u102c_\u1014\u102d\u102f\u101d\u1004\u103a\u1018\u102c_\u1012\u102e\u1007\u1004\u103a\u1018\u102c".split("_"),monthsShort:"\u1007\u1014\u103a_\u1016\u1031_\u1019\u1010\u103a_\u1015\u103c\u102e_\u1019\u1031_\u1007\u103d\u1014\u103a_\u101c\u102d\u102f\u1004\u103a_\u101e\u103c_\u1005\u1000\u103a_\u1021\u1031\u102c\u1000\u103a_\u1014\u102d\u102f_\u1012\u102e".split("_"),weekdays:"\u1010\u1014\u1004\u103a\u1039\u1002\u1014\u103d\u1031_\u1010\u1014\u1004\u103a\u1039\u101c\u102c_\u1021\u1004\u103a\u1039\u1002\u102b_\u1017\u102f\u1012\u1039\u1013\u101f\u1030\u1038_\u1000\u103c\u102c\u101e\u1015\u1010\u1031\u1038_\u101e\u1031\u102c\u1000\u103c\u102c_\u1005\u1014\u1031".split("_"),weekdaysShort:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),weekdaysMin:"\u1014\u103d\u1031_\u101c\u102c_\u1002\u102b_\u101f\u1030\u1038_\u1000\u103c\u102c_\u101e\u1031\u102c_\u1014\u1031".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u101a\u1014\u1031.] LT [\u1019\u103e\u102c]",nextDay:"[\u1019\u1014\u1000\u103a\u1016\u103c\u1014\u103a] LT [\u1019\u103e\u102c]",nextWeek:"dddd LT [\u1019\u103e\u102c]",lastDay:"[\u1019\u1014\u1031.\u1000] LT [\u1019\u103e\u102c]",lastWeek:"[\u1015\u103c\u102e\u1038\u1001\u1032\u1037\u101e\u1031\u102c] dddd LT [\u1019\u103e\u102c]",sameElse:"L"},relativeTime:{future:"\u101c\u102c\u1019\u100a\u103a\u1037 %s \u1019\u103e\u102c",past:"\u101c\u103d\u1014\u103a\u1001\u1032\u1037\u101e\u1031\u102c %s \u1000",s:"\u1005\u1000\u1039\u1000\u1014\u103a.\u1021\u1014\u100a\u103a\u1038\u1004\u101a\u103a",ss:"%d \u1005\u1000\u1039\u1000\u1014\u1037\u103a",m:"\u1010\u1005\u103a\u1019\u102d\u1014\u1005\u103a",mm:"%d \u1019\u102d\u1014\u1005\u103a",h:"\u1010\u1005\u103a\u1014\u102c\u101b\u102e",hh:"%d \u1014\u102c\u101b\u102e",d:"\u1010\u1005\u103a\u101b\u1000\u103a",dd:"%d \u101b\u1000\u103a",M:"\u1010\u1005\u103a\u101c",MM:"%d \u101c",y:"\u1010\u1005\u103a\u1014\u103e\u1005\u103a",yy:"%d \u1014\u103e\u1005\u103a"},preparse:function(U){return U.replace(/[\u1041\u1042\u1043\u1044\u1045\u1046\u1047\u1048\u1049\u1040]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},week:{dow:1,doy:4}})}(S(6908))},8028:function(v,x,S){!function(D){"use strict";D.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag".split("_"),weekdaysShort:"s\xf8._ma._ti._on._to._fr._l\xf8.".split("_"),weekdaysMin:"s\xf8_ma_ti_on_to_fr_l\xf8".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i g\xe5r kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",M:"en m\xe5ned",MM:"%d m\xe5neder",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},6638:function(v,x,S){!function(D){"use strict";var n={1:"\u0967",2:"\u0968",3:"\u0969",4:"\u096a",5:"\u096b",6:"\u096c",7:"\u096d",8:"\u096e",9:"\u096f",0:"\u0966"},O={"\u0967":"1","\u0968":"2","\u0969":"3","\u096a":"4","\u096b":"5","\u096c":"6","\u096d":"7","\u096e":"8","\u096f":"9","\u0966":"0"};D.defineLocale("ne",{months:"\u091c\u0928\u0935\u0930\u0940_\u092b\u0947\u092c\u094d\u0930\u0941\u0935\u0930\u0940_\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f\u0932_\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908_\u0905\u0917\u0937\u094d\u091f_\u0938\u0947\u092a\u094d\u091f\u0947\u092e\u094d\u092c\u0930_\u0905\u0915\u094d\u091f\u094b\u092c\u0930_\u0928\u094b\u092d\u0947\u092e\u094d\u092c\u0930_\u0921\u093f\u0938\u0947\u092e\u094d\u092c\u0930".split("_"),monthsShort:"\u091c\u0928._\u092b\u0947\u092c\u094d\u0930\u0941._\u092e\u093e\u0930\u094d\u091a_\u0905\u092a\u094d\u0930\u093f._\u092e\u0908_\u091c\u0941\u0928_\u091c\u0941\u0932\u093e\u0908._\u0905\u0917._\u0938\u0947\u092a\u094d\u091f._\u0905\u0915\u094d\u091f\u094b._\u0928\u094b\u092d\u0947._\u0921\u093f\u0938\u0947.".split("_"),monthsParseExact:!0,weekdays:"\u0906\u0907\u0924\u092c\u093e\u0930_\u0938\u094b\u092e\u092c\u093e\u0930_\u092e\u0919\u094d\u0917\u0932\u092c\u093e\u0930_\u092c\u0941\u0927\u092c\u093e\u0930_\u092c\u093f\u0939\u093f\u092c\u093e\u0930_\u0936\u0941\u0915\u094d\u0930\u092c\u093e\u0930_\u0936\u0928\u093f\u092c\u093e\u0930".split("_"),weekdaysShort:"\u0906\u0907\u0924._\u0938\u094b\u092e._\u092e\u0919\u094d\u0917\u0932._\u092c\u0941\u0927._\u092c\u093f\u0939\u093f._\u0936\u0941\u0915\u094d\u0930._\u0936\u0928\u093f.".split("_"),weekdaysMin:"\u0906._\u0938\u094b._\u092e\u0902._\u092c\u0941._\u092c\u093f._\u0936\u0941._\u0936.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A\u0915\u094b h:mm \u092c\u091c\u0947",LTS:"A\u0915\u094b h:mm:ss \u092c\u091c\u0947",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947",LLLL:"dddd, D MMMM YYYY, A\u0915\u094b h:mm \u092c\u091c\u0947"},preparse:function(U){return U.replace(/[\u0967\u0968\u0969\u096a\u096b\u096c\u096d\u096e\u096f\u0966]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0930\u093e\u0924\u093f|\u092c\u093f\u0939\u093e\u0928|\u0926\u093f\u0909\u0901\u0938\u094b|\u0938\u093e\u0901\u091d/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0930\u093e\u0924\u093f"===q?U<4?U:U+12:"\u092c\u093f\u0939\u093e\u0928"===q?U:"\u0926\u093f\u0909\u0901\u0938\u094b"===q?U>=10?U:U+12:"\u0938\u093e\u0901\u091d"===q?U+12:void 0},meridiem:function(U,q,te){return U<3?"\u0930\u093e\u0924\u093f":U<12?"\u092c\u093f\u0939\u093e\u0928":U<16?"\u0926\u093f\u0909\u0901\u0938\u094b":U<20?"\u0938\u093e\u0901\u091d":"\u0930\u093e\u0924\u093f"},calendar:{sameDay:"[\u0906\u091c] LT",nextDay:"[\u092d\u094b\u0932\u093f] LT",nextWeek:"[\u0906\u0909\u0901\u0926\u094b] dddd[,] LT",lastDay:"[\u0939\u093f\u091c\u094b] LT",lastWeek:"[\u0917\u090f\u0915\u094b] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s\u092e\u093e",past:"%s \u0905\u0917\u093e\u0921\u093f",s:"\u0915\u0947\u0939\u0940 \u0915\u094d\u0937\u0923",ss:"%d \u0938\u0947\u0915\u0947\u0923\u094d\u0921",m:"\u090f\u0915 \u092e\u093f\u0928\u0947\u091f",mm:"%d \u092e\u093f\u0928\u0947\u091f",h:"\u090f\u0915 \u0918\u0923\u094d\u091f\u093e",hh:"%d \u0918\u0923\u094d\u091f\u093e",d:"\u090f\u0915 \u0926\u093f\u0928",dd:"%d \u0926\u093f\u0928",M:"\u090f\u0915 \u092e\u0939\u093f\u0928\u093e",MM:"%d \u092e\u0939\u093f\u0928\u093e",y:"\u090f\u0915 \u092c\u0930\u094d\u0937",yy:"%d \u092c\u0930\u094d\u0937"},week:{dow:0,doy:6}})}(S(6908))},6782:function(v,x,S){!function(D){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),O="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),R=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],U=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;D.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(te,ie){return te?/-MMM-/.test(ie)?O[te.month()]:n[te.month()]:n},monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(te){return te+(1===te||8===te||te>=20?"ste":"de")},week:{dow:1,doy:4}})}(S(6908))},302:function(v,x,S){!function(D){"use strict";var n="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),O="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),R=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],U=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;D.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(te,ie){return te?/-MMM-/.test(ie)?O[te.month()]:n[te.month()]:n},monthsRegex:U,monthsShortRegex:U,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:R,longMonthsParse:R,shortMonthsParse:R,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"\xe9\xe9n minuut",mm:"%d minuten",h:"\xe9\xe9n uur",hh:"%d uur",d:"\xe9\xe9n dag",dd:"%d dagen",M:"\xe9\xe9n maand",MM:"%d maanden",y:"\xe9\xe9n jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(te){return te+(1===te||8===te||te>=20?"ste":"de")},week:{dow:1,doy:4}})}(S(6908))},3501:function(v,x,S){!function(D){"use strict";D.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"sun_m\xe5n_tys_ons_tor_fre_lau".split("_"),weekdaysMin:"su_m\xe5_ty_on_to_fr_l\xf8".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I g\xe5r klokka] LT",lastWeek:"[F\xf8reg\xe5ande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",M:"ein m\xe5nad",MM:"%d m\xe5nader",y:"eit \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},869:function(v,x,S){!function(D){"use strict";var n={1:"\u0a67",2:"\u0a68",3:"\u0a69",4:"\u0a6a",5:"\u0a6b",6:"\u0a6c",7:"\u0a6d",8:"\u0a6e",9:"\u0a6f",0:"\u0a66"},O={"\u0a67":"1","\u0a68":"2","\u0a69":"3","\u0a6a":"4","\u0a6b":"5","\u0a6c":"6","\u0a6d":"7","\u0a6e":"8","\u0a6f":"9","\u0a66":"0"};D.defineLocale("pa-in",{months:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),monthsShort:"\u0a1c\u0a28\u0a35\u0a30\u0a40_\u0a2b\u0a3c\u0a30\u0a35\u0a30\u0a40_\u0a2e\u0a3e\u0a30\u0a1a_\u0a05\u0a2a\u0a4d\u0a30\u0a48\u0a32_\u0a2e\u0a08_\u0a1c\u0a42\u0a28_\u0a1c\u0a41\u0a32\u0a3e\u0a08_\u0a05\u0a17\u0a38\u0a24_\u0a38\u0a24\u0a70\u0a2c\u0a30_\u0a05\u0a15\u0a24\u0a42\u0a2c\u0a30_\u0a28\u0a35\u0a70\u0a2c\u0a30_\u0a26\u0a38\u0a70\u0a2c\u0a30".split("_"),weekdays:"\u0a10\u0a24\u0a35\u0a3e\u0a30_\u0a38\u0a4b\u0a2e\u0a35\u0a3e\u0a30_\u0a2e\u0a70\u0a17\u0a32\u0a35\u0a3e\u0a30_\u0a2c\u0a41\u0a27\u0a35\u0a3e\u0a30_\u0a35\u0a40\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a41\u0a71\u0a15\u0a30\u0a35\u0a3e\u0a30_\u0a38\u0a3c\u0a28\u0a40\u0a1a\u0a30\u0a35\u0a3e\u0a30".split("_"),weekdaysShort:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),weekdaysMin:"\u0a10\u0a24_\u0a38\u0a4b\u0a2e_\u0a2e\u0a70\u0a17\u0a32_\u0a2c\u0a41\u0a27_\u0a35\u0a40\u0a30_\u0a38\u0a3c\u0a41\u0a15\u0a30_\u0a38\u0a3c\u0a28\u0a40".split("_"),longDateFormat:{LT:"A h:mm \u0a35\u0a1c\u0a47",LTS:"A h:mm:ss \u0a35\u0a1c\u0a47",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47",LLLL:"dddd, D MMMM YYYY, A h:mm \u0a35\u0a1c\u0a47"},calendar:{sameDay:"[\u0a05\u0a1c] LT",nextDay:"[\u0a15\u0a32] LT",nextWeek:"[\u0a05\u0a17\u0a32\u0a3e] dddd, LT",lastDay:"[\u0a15\u0a32] LT",lastWeek:"[\u0a2a\u0a3f\u0a1b\u0a32\u0a47] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0a35\u0a3f\u0a71\u0a1a",past:"%s \u0a2a\u0a3f\u0a1b\u0a32\u0a47",s:"\u0a15\u0a41\u0a1d \u0a38\u0a15\u0a3f\u0a70\u0a1f",ss:"%d \u0a38\u0a15\u0a3f\u0a70\u0a1f",m:"\u0a07\u0a15 \u0a2e\u0a3f\u0a70\u0a1f",mm:"%d \u0a2e\u0a3f\u0a70\u0a1f",h:"\u0a07\u0a71\u0a15 \u0a18\u0a70\u0a1f\u0a3e",hh:"%d \u0a18\u0a70\u0a1f\u0a47",d:"\u0a07\u0a71\u0a15 \u0a26\u0a3f\u0a28",dd:"%d \u0a26\u0a3f\u0a28",M:"\u0a07\u0a71\u0a15 \u0a2e\u0a39\u0a40\u0a28\u0a3e",MM:"%d \u0a2e\u0a39\u0a40\u0a28\u0a47",y:"\u0a07\u0a71\u0a15 \u0a38\u0a3e\u0a32",yy:"%d \u0a38\u0a3e\u0a32"},preparse:function(U){return U.replace(/[\u0a67\u0a68\u0a69\u0a6a\u0a6b\u0a6c\u0a6d\u0a6e\u0a6f\u0a66]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0a30\u0a3e\u0a24|\u0a38\u0a35\u0a47\u0a30|\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30|\u0a38\u0a3c\u0a3e\u0a2e/,meridiemHour:function(U,q){return 12===U&&(U=0),"\u0a30\u0a3e\u0a24"===q?U<4?U:U+12:"\u0a38\u0a35\u0a47\u0a30"===q?U:"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30"===q?U>=10?U:U+12:"\u0a38\u0a3c\u0a3e\u0a2e"===q?U+12:void 0},meridiem:function(U,q,te){return U<4?"\u0a30\u0a3e\u0a24":U<10?"\u0a38\u0a35\u0a47\u0a30":U<17?"\u0a26\u0a41\u0a2a\u0a39\u0a3f\u0a30":U<20?"\u0a38\u0a3c\u0a3e\u0a2e":"\u0a30\u0a3e\u0a24"},week:{dow:0,doy:6}})}(S(6908))},5302:function(v,x,S){!function(D){"use strict";var n="stycze\u0144_luty_marzec_kwiecie\u0144_maj_czerwiec_lipiec_sierpie\u0144_wrzesie\u0144_pa\u017adziernik_listopad_grudzie\u0144".split("_"),O="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_wrze\u015bnia_pa\u017adziernika_listopada_grudnia".split("_");function R(te){return te%10<5&&te%10>1&&~~(te/10)%10!=1}function U(te,ie,pe){var de=te+" ";switch(pe){case"ss":return de+(R(te)?"sekundy":"sekund");case"m":return ie?"minuta":"minut\u0119";case"mm":return de+(R(te)?"minuty":"minut");case"h":return ie?"godzina":"godzin\u0119";case"hh":return de+(R(te)?"godziny":"godzin");case"MM":return de+(R(te)?"miesi\u0105ce":"miesi\u0119cy");case"yy":return de+(R(te)?"lata":"lat")}}D.defineLocale("pl",{months:function(te,ie){return te?""===ie?"("+O[te.month()]+"|"+n[te.month()]+")":/D MMMM/.test(ie)?O[te.month()]:n[te.month()]:n},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_pa\u017a_lis_gru".split("_"),weekdays:"niedziela_poniedzia\u0142ek_wtorek_\u015broda_czwartek_pi\u0105tek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_\u015br_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_\u015ar_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dzi\u015b o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedziel\u0119 o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W \u015brod\u0119 o] LT";case 6:return"[W sobot\u0119 o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zesz\u0142\u0105 niedziel\u0119 o] LT";case 3:return"[W zesz\u0142\u0105 \u015brod\u0119 o] LT";case 6:return"[W zesz\u0142\u0105 sobot\u0119 o] LT";default:return"[W zesz\u0142y] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:U,m:U,mm:U,h:U,hh:U,d:"1 dzie\u0144",dd:"%d dni",M:"miesi\u0105c",MM:U,y:"rok",yy:U},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},4884:function(v,x,S){!function(D){"use strict";D.defineLocale("pt-br",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [\xe0s] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba"})}(S(6908))},9687:function(v,x,S){!function(D){"use strict";D.defineLocale("pt",{months:"Janeiro_Fevereiro_Mar\xe7o_Abril_Maio_Junho_Julho_Agosto_Setembro_Outubro_Novembro_Dezembro".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b".split("_"),weekdaysMin:"Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje \xe0s] LT",nextDay:"[Amanh\xe3 \xe0s] LT",nextWeek:"dddd [\xe0s] LT",lastDay:"[Ontem \xe0s] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[\xdaltimo] dddd [\xe0s] LT":"[\xdaltima] dddd [\xe0s] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"h\xe1 %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um m\xeas",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:"%d\xba",week:{dow:1,doy:4}})}(S(6908))},9107:function(v,x,S){!function(D){"use strict";function n(R,U,q){var ie=" ";return(R%100>=20||R>=100&&R%100==0)&&(ie=" de "),R+ie+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",MM:"luni",yy:"ani"}[q]}D.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_S\xe2".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[m\xe2ine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s \xeen urm\u0103",s:"c\xe2teva secunde",ss:n,m:"un minut",mm:n,h:"o or\u0103",hh:n,d:"o zi",dd:n,M:"o lun\u0103",MM:n,y:"un an",yy:n},week:{dow:1,doy:7}})}(S(6908))},3627:function(v,x,S){!function(D){"use strict";function O(q,te,ie){return"m"===ie?te?"\u043c\u0438\u043d\u0443\u0442\u0430":"\u043c\u0438\u043d\u0443\u0442\u0443":q+" "+function n(q,te){var ie=q.split("_");return te%10==1&&te%100!=11?ie[0]:te%10>=2&&te%10<=4&&(te%100<10||te%100>=20)?ie[1]:ie[2]}({ss:te?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u044b_\u0441\u0435\u043a\u0443\u043d\u0434",mm:te?"\u043c\u0438\u043d\u0443\u0442\u0430_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442":"\u043c\u0438\u043d\u0443\u0442\u0443_\u043c\u0438\u043d\u0443\u0442\u044b_\u043c\u0438\u043d\u0443\u0442",hh:"\u0447\u0430\u0441_\u0447\u0430\u0441\u0430_\u0447\u0430\u0441\u043e\u0432",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u044f_\u0434\u043d\u0435\u0439",MM:"\u043c\u0435\u0441\u044f\u0446_\u043c\u0435\u0441\u044f\u0446\u0430_\u043c\u0435\u0441\u044f\u0446\u0435\u0432",yy:"\u0433\u043e\u0434_\u0433\u043e\u0434\u0430_\u043b\u0435\u0442"}[ie],+q)}var R=[/^\u044f\u043d\u0432/i,/^\u0444\u0435\u0432/i,/^\u043c\u0430\u0440/i,/^\u0430\u043f\u0440/i,/^\u043c\u0430[\u0439\u044f]/i,/^\u0438\u044e\u043d/i,/^\u0438\u044e\u043b/i,/^\u0430\u0432\u0433/i,/^\u0441\u0435\u043d/i,/^\u043e\u043a\u0442/i,/^\u043d\u043e\u044f/i,/^\u0434\u0435\u043a/i];D.defineLocale("ru",{months:{format:"\u044f\u043d\u0432\u0430\u0440\u044f_\u0444\u0435\u0432\u0440\u0430\u043b\u044f_\u043c\u0430\u0440\u0442\u0430_\u0430\u043f\u0440\u0435\u043b\u044f_\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433\u0443\u0441\u0442\u0430_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f_\u043e\u043a\u0442\u044f\u0431\u0440\u044f_\u043d\u043e\u044f\u0431\u0440\u044f_\u0434\u0435\u043a\u0430\u0431\u0440\u044f".split("_"),standalone:"\u044f\u043d\u0432\u0430\u0440\u044c_\u0444\u0435\u0432\u0440\u0430\u043b\u044c_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b\u044c_\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c_\u043e\u043a\u0442\u044f\u0431\u0440\u044c_\u043d\u043e\u044f\u0431\u0440\u044c_\u0434\u0435\u043a\u0430\u0431\u0440\u044c".split("_")},monthsShort:{format:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u044f_\u0438\u044e\u043d\u044f_\u0438\u044e\u043b\u044f_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_"),standalone:"\u044f\u043d\u0432._\u0444\u0435\u0432\u0440._\u043c\u0430\u0440\u0442_\u0430\u043f\u0440._\u043c\u0430\u0439_\u0438\u044e\u043d\u044c_\u0438\u044e\u043b\u044c_\u0430\u0432\u0433._\u0441\u0435\u043d\u0442._\u043e\u043a\u0442._\u043d\u043e\u044f\u0431._\u0434\u0435\u043a.".split("_")},weekdays:{standalone:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0430_\u0441\u0443\u0431\u0431\u043e\u0442\u0430".split("_"),format:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435_\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a_\u0432\u0442\u043e\u0440\u043d\u0438\u043a_\u0441\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440\u0433_\u043f\u044f\u0442\u043d\u0438\u0446\u0443_\u0441\u0443\u0431\u0431\u043e\u0442\u0443".split("_"),isFormat:/\[ ?[\u0412\u0432] ?(?:\u043f\u0440\u043e\u0448\u043b\u0443\u044e|\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e|\u044d\u0442\u0443)? ?\] ?dddd/},weekdaysShort:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u0432\u0441_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),monthsParse:R,longMonthsParse:R,shortMonthsParse:R,monthsRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsShortRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044c\u044f]|\u044f\u043d\u0432\.?|\u0444\u0435\u0432\u0440\u0430\u043b[\u044c\u044f]|\u0444\u0435\u0432\u0440?\.?|\u043c\u0430\u0440\u0442\u0430?|\u043c\u0430\u0440\.?|\u0430\u043f\u0440\u0435\u043b[\u044c\u044f]|\u0430\u043f\u0440\.?|\u043c\u0430[\u0439\u044f]|\u0438\u044e\u043d[\u044c\u044f]|\u0438\u044e\u043d\.?|\u0438\u044e\u043b[\u044c\u044f]|\u0438\u044e\u043b\.?|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0430\u0432\u0433\.?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044c\u044f]|\u0441\u0435\u043d\u0442?\.?|\u043e\u043a\u0442\u044f\u0431\u0440[\u044c\u044f]|\u043e\u043a\u0442\.?|\u043d\u043e\u044f\u0431\u0440[\u044c\u044f]|\u043d\u043e\u044f\u0431?\.?|\u0434\u0435\u043a\u0430\u0431\u0440[\u044c\u044f]|\u0434\u0435\u043a\.?)/i,monthsStrictRegex:/^(\u044f\u043d\u0432\u0430\u0440[\u044f\u044c]|\u0444\u0435\u0432\u0440\u0430\u043b[\u044f\u044c]|\u043c\u0430\u0440\u0442\u0430?|\u0430\u043f\u0440\u0435\u043b[\u044f\u044c]|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044f\u044c]|\u0438\u044e\u043b[\u044f\u044c]|\u0430\u0432\u0433\u0443\u0441\u0442\u0430?|\u0441\u0435\u043d\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043e\u043a\u0442\u044f\u0431\u0440[\u044f\u044c]|\u043d\u043e\u044f\u0431\u0440[\u044f\u044c]|\u0434\u0435\u043a\u0430\u0431\u0440[\u044f\u044c])/i,monthsShortStrictRegex:/^(\u044f\u043d\u0432\.|\u0444\u0435\u0432\u0440?\.|\u043c\u0430\u0440[\u0442.]|\u0430\u043f\u0440\.|\u043c\u0430[\u044f\u0439]|\u0438\u044e\u043d[\u044c\u044f.]|\u0438\u044e\u043b[\u044c\u044f.]|\u0430\u0432\u0433\.|\u0441\u0435\u043d\u0442?\.|\u043e\u043a\u0442\.|\u043d\u043e\u044f\u0431?\.|\u0434\u0435\u043a\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0433.",LLL:"D MMMM YYYY \u0433., H:mm",LLLL:"dddd, D MMMM YYYY \u0433., H:mm"},calendar:{sameDay:"[\u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u0432] LT",nextDay:"[\u0417\u0430\u0432\u0442\u0440\u0430, \u0432] LT",lastDay:"[\u0412\u0447\u0435\u0440\u0430, \u0432] LT",nextWeek:function(q){if(q.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e] dddd, [\u0432] LT"}},lastWeek:function(q){if(q.week()===this.week())return 2===this.day()?"[\u0412\u043e] dddd, [\u0432] LT":"[\u0412] dddd, [\u0432] LT";switch(this.day()){case 0:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u043e\u0435] dddd, [\u0432] LT";case 1:case 2:case 4:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u044b\u0439] dddd, [\u0432] LT";case 3:case 5:case 6:return"[\u0412 \u043f\u0440\u043e\u0448\u043b\u0443\u044e] dddd, [\u0432] LT"}},sameElse:"L"},relativeTime:{future:"\u0447\u0435\u0440\u0435\u0437 %s",past:"%s \u043d\u0430\u0437\u0430\u0434",s:"\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434",ss:O,m:O,mm:O,h:"\u0447\u0430\u0441",hh:O,d:"\u0434\u0435\u043d\u044c",dd:O,M:"\u043c\u0435\u0441\u044f\u0446",MM:O,y:"\u0433\u043e\u0434",yy:O},meridiemParse:/\u043d\u043e\u0447\u0438|\u0443\u0442\u0440\u0430|\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430/i,isPM:function(q){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u0435\u0440\u0430)$/.test(q)},meridiem:function(q,te,ie){return q<4?"\u043d\u043e\u0447\u0438":q<12?"\u0443\u0442\u0440\u0430":q<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u0435\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e|\u044f)/,ordinal:function(q,te){switch(te){case"M":case"d":case"DDD":return q+"-\u0439";case"D":return q+"-\u0433\u043e";case"w":case"W":return q+"-\u044f";default:return q}},week:{dow:1,doy:4}})}(S(6908))},355:function(v,x,S){!function(D){"use strict";var n=["\u062c\u0646\u0648\u0631\u064a","\u0641\u064a\u0628\u0631\u0648\u0631\u064a","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u064a\u0644","\u0645\u0626\u064a","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0621\u0650","\u0622\u06af\u0633\u067d","\u0633\u064a\u067e\u067d\u0645\u0628\u0631","\u0622\u06aa\u067d\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u068a\u0633\u0645\u0628\u0631"],O=["\u0622\u0686\u0631","\u0633\u0648\u0645\u0631","\u0627\u06b1\u0627\u0631\u0648","\u0627\u0631\u0628\u0639","\u062e\u0645\u064a\u0633","\u062c\u0645\u0639","\u0687\u0646\u0687\u0631"];D.defineLocale("sd",{months:n,monthsShort:n,weekdays:O,weekdaysShort:O,weekdaysMin:O,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(U){return"\u0634\u0627\u0645"===U},meridiem:function(U,q,te){return U<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0627\u0684] LT",nextDay:"[\u0633\u0680\u0627\u06bb\u064a] LT",nextWeek:"dddd [\u0627\u06b3\u064a\u0646 \u0647\u0641\u062a\u064a \u062a\u064a] LT",lastDay:"[\u06aa\u0627\u0644\u0647\u0647] LT",lastWeek:"[\u06af\u0632\u0631\u064a\u0644 \u0647\u0641\u062a\u064a] dddd [\u062a\u064a] LT",sameElse:"L"},relativeTime:{future:"%s \u067e\u0648\u0621",past:"%s \u0627\u06b3",s:"\u0686\u0646\u062f \u0633\u064a\u06aa\u0646\u068a",ss:"%d \u0633\u064a\u06aa\u0646\u068a",m:"\u0647\u06aa \u0645\u0646\u067d",mm:"%d \u0645\u0646\u067d",h:"\u0647\u06aa \u06aa\u0644\u0627\u06aa",hh:"%d \u06aa\u0644\u0627\u06aa",d:"\u0647\u06aa \u068f\u064a\u0646\u0647\u0646",dd:"%d \u068f\u064a\u0646\u0647\u0646",M:"\u0647\u06aa \u0645\u0647\u064a\u0646\u0648",MM:"%d \u0645\u0647\u064a\u0646\u0627",y:"\u0647\u06aa \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(S(6908))},3427:function(v,x,S){!function(D){"use strict";D.defineLocale("se",{months:"o\u0111\u0111ajagem\xe1nnu_guovvam\xe1nnu_njuk\u010dam\xe1nnu_cuo\u014bom\xe1nnu_miessem\xe1nnu_geassem\xe1nnu_suoidnem\xe1nnu_borgem\xe1nnu_\u010dak\u010dam\xe1nnu_golggotm\xe1nnu_sk\xe1bmam\xe1nnu_juovlam\xe1nnu".split("_"),monthsShort:"o\u0111\u0111j_guov_njuk_cuo_mies_geas_suoi_borg_\u010dak\u010d_golg_sk\xe1b_juov".split("_"),weekdays:"sotnabeaivi_vuoss\xe1rga_ma\u014b\u014beb\xe1rga_gaskavahkku_duorastat_bearjadat_l\xe1vvardat".split("_"),weekdaysShort:"sotn_vuos_ma\u014b_gask_duor_bear_l\xe1v".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s gea\u017ees",past:"ma\u014bit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta m\xe1nnu",MM:"%d m\xe1nut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},1848:function(v,x,S){!function(D){"use strict";D.defineLocale("si",{months:"\u0da2\u0db1\u0dc0\u0dcf\u0dbb\u0dd2_\u0db4\u0dd9\u0db6\u0dbb\u0dc0\u0dcf\u0dbb\u0dd2_\u0db8\u0dcf\u0dbb\u0dca\u0dad\u0dd4_\u0d85\u0db4\u0dca\u200d\u0dbb\u0dda\u0dbd\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd\u0dc3\u0dca\u0dad\u0dd4_\u0dc3\u0dd0\u0db4\u0dca\u0dad\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0d94\u0d9a\u0dca\u0dad\u0ddd\u0db6\u0dbb\u0dca_\u0db1\u0ddc\u0dc0\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca_\u0daf\u0dd9\u0dc3\u0dd0\u0db8\u0dca\u0db6\u0dbb\u0dca".split("_"),monthsShort:"\u0da2\u0db1_\u0db4\u0dd9\u0db6_\u0db8\u0dcf\u0dbb\u0dca_\u0d85\u0db4\u0dca_\u0db8\u0dd0\u0dba\u0dd2_\u0da2\u0dd6\u0db1\u0dd2_\u0da2\u0dd6\u0dbd\u0dd2_\u0d85\u0d9c\u0ddd_\u0dc3\u0dd0\u0db4\u0dca_\u0d94\u0d9a\u0dca_\u0db1\u0ddc\u0dc0\u0dd0_\u0daf\u0dd9\u0dc3\u0dd0".split("_"),weekdays:"\u0d89\u0dbb\u0dd2\u0daf\u0dcf_\u0dc3\u0db3\u0dd4\u0daf\u0dcf_\u0d85\u0d9f\u0dc4\u0dbb\u0dd4\u0dc0\u0dcf\u0daf\u0dcf_\u0db6\u0daf\u0dcf\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4\u0dc3\u0dca\u0db4\u0dad\u0dd2\u0db1\u0dca\u0daf\u0dcf_\u0dc3\u0dd2\u0d9a\u0dd4\u0dbb\u0dcf\u0daf\u0dcf_\u0dc3\u0dd9\u0db1\u0dc3\u0dd4\u0dbb\u0dcf\u0daf\u0dcf".split("_"),weekdaysShort:"\u0d89\u0dbb\u0dd2_\u0dc3\u0db3\u0dd4_\u0d85\u0d9f_\u0db6\u0daf\u0dcf_\u0db6\u0dca\u200d\u0dbb\u0dc4_\u0dc3\u0dd2\u0d9a\u0dd4_\u0dc3\u0dd9\u0db1".split("_"),weekdaysMin:"\u0d89_\u0dc3_\u0d85_\u0db6_\u0db6\u0dca\u200d\u0dbb_\u0dc3\u0dd2_\u0dc3\u0dd9".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [\u0dc0\u0dd0\u0db1\u0dd2] dddd, a h:mm:ss"},calendar:{sameDay:"[\u0d85\u0daf] LT[\u0da7]",nextDay:"[\u0dc4\u0dd9\u0da7] LT[\u0da7]",nextWeek:"dddd LT[\u0da7]",lastDay:"[\u0d8a\u0dba\u0dda] LT[\u0da7]",lastWeek:"[\u0db4\u0dc3\u0dd4\u0d9c\u0dd2\u0dba] dddd LT[\u0da7]",sameElse:"L"},relativeTime:{future:"%s\u0d9a\u0dd2\u0db1\u0dca",past:"%s\u0d9a\u0da7 \u0db4\u0dd9\u0dbb",s:"\u0dad\u0dad\u0dca\u0db4\u0dbb \u0d9a\u0dd2\u0dc4\u0dd2\u0db4\u0dba",ss:"\u0dad\u0dad\u0dca\u0db4\u0dbb %d",m:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4\u0dc0",mm:"\u0db8\u0dd2\u0db1\u0dd2\u0dad\u0dca\u0dad\u0dd4 %d",h:"\u0db4\u0dd0\u0dba",hh:"\u0db4\u0dd0\u0dba %d",d:"\u0daf\u0dd2\u0db1\u0dba",dd:"\u0daf\u0dd2\u0db1 %d",M:"\u0db8\u0dcf\u0dc3\u0dba",MM:"\u0db8\u0dcf\u0dc3 %d",y:"\u0dc0\u0dc3\u0dbb",yy:"\u0dc0\u0dc3\u0dbb %d"},dayOfMonthOrdinalParse:/\d{1,2} \u0dc0\u0dd0\u0db1\u0dd2/,ordinal:function(O){return O+" \u0dc0\u0dd0\u0db1\u0dd2"},meridiemParse:/\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4|\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4|\u0db4\u0dd9.\u0dc0|\u0db4.\u0dc0./,isPM:function(O){return"\u0db4.\u0dc0."===O||"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4"===O},meridiem:function(O,R,U){return O>11?U?"\u0db4.\u0dc0.":"\u0db4\u0dc3\u0dca \u0dc0\u0dbb\u0dd4":U?"\u0db4\u0dd9.\u0dc0.":"\u0db4\u0dd9\u0dbb \u0dc0\u0dbb\u0dd4"}})}(S(6908))},4590:function(v,x,S){!function(D){"use strict";var n="janu\xe1r_febru\xe1r_marec_apr\xedl_m\xe1j_j\xfan_j\xfal_august_september_okt\xf3ber_november_december".split("_"),O="jan_feb_mar_apr_m\xe1j_j\xfan_j\xfal_aug_sep_okt_nov_dec".split("_");function R(te){return te>1&&te<5}function U(te,ie,pe,de){var Ce=te+" ";switch(pe){case"s":return ie||de?"p\xe1r sek\xfand":"p\xe1r sekundami";case"ss":return ie||de?Ce+(R(te)?"sekundy":"sek\xfand"):Ce+"sekundami";case"m":return ie?"min\xfata":de?"min\xfatu":"min\xfatou";case"mm":return ie||de?Ce+(R(te)?"min\xfaty":"min\xfat"):Ce+"min\xfatami";case"h":return ie?"hodina":de?"hodinu":"hodinou";case"hh":return ie||de?Ce+(R(te)?"hodiny":"hod\xedn"):Ce+"hodinami";case"d":return ie||de?"de\u0148":"d\u0148om";case"dd":return ie||de?Ce+(R(te)?"dni":"dn\xed"):Ce+"d\u0148ami";case"M":return ie||de?"mesiac":"mesiacom";case"MM":return ie||de?Ce+(R(te)?"mesiace":"mesiacov"):Ce+"mesiacmi";case"y":return ie||de?"rok":"rokom";case"yy":return ie||de?Ce+(R(te)?"roky":"rokov"):Ce+"rokmi"}}D.defineLocale("sk",{months:n,monthsShort:O,weekdays:"nede\u013ea_pondelok_utorok_streda_\u0161tvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_\u0161t_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_\u0161t_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nede\u013eu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo \u0161tvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[v\u010dera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minul\xfa nede\u013eu o] LT";case 1:case 2:case 4:case 5:return"[minul\xfd] dddd [o] LT";case 3:return"[minul\xfa stredu o] LT";case 6:return"[minul\xfa sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:U,ss:U,m:U,mm:U,h:U,hh:U,d:U,dd:U,M:U,MM:U,y:U,yy:U},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},184:function(v,x,S){!function(D){"use strict";function n(R,U,q,te){var ie=R+" ";switch(q){case"s":return U||te?"nekaj sekund":"nekaj sekundami";case"ss":return ie+(1===R?U?"sekundo":"sekundi":2===R?U||te?"sekundi":"sekundah":R<5?U||te?"sekunde":"sekundah":"sekund");case"m":return U?"ena minuta":"eno minuto";case"mm":return ie+(1===R?U?"minuta":"minuto":2===R?U||te?"minuti":"minutama":R<5?U||te?"minute":"minutami":U||te?"minut":"minutami");case"h":return U?"ena ura":"eno uro";case"hh":return ie+(1===R?U?"ura":"uro":2===R?U||te?"uri":"urama":R<5?U||te?"ure":"urami":U||te?"ur":"urami");case"d":return U||te?"en dan":"enim dnem";case"dd":return ie+(1===R?U||te?"dan":"dnem":2===R?U||te?"dni":"dnevoma":U||te?"dni":"dnevi");case"M":return U||te?"en mesec":"enim mesecem";case"MM":return ie+(1===R?U||te?"mesec":"mesecem":2===R?U||te?"meseca":"mesecema":R<5?U||te?"mesece":"meseci":U||te?"mesecev":"meseci");case"y":return U||te?"eno leto":"enim letom";case"yy":return ie+(1===R?U||te?"leto":"letom":2===R?U||te?"leti":"letoma":R<5?U||te?"leta":"leti":U||te?"let":"leti")}}D.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._\u010det._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_\u010de_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[v\u010deraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prej\u0161njo] [nedeljo] [ob] LT";case 3:return"[prej\u0161njo] [sredo] [ob] LT";case 6:return"[prej\u0161njo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prej\u0161nji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"\u010dez %s",past:"pred %s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},6361:function(v,x,S){!function(D){"use strict";D.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_N\xebntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_N\xebn_Dhj".split("_"),weekdays:"E Diel_E H\xebn\xeb_E Mart\xeb_E M\xebrkur\xeb_E Enjte_E Premte_E Shtun\xeb".split("_"),weekdaysShort:"Die_H\xebn_Mar_M\xebr_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_M\xeb_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(O){return"M"===O.charAt(0)},meridiem:function(O,R,U){return O<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot n\xeb] LT",nextDay:"[Nes\xebr n\xeb] LT",nextWeek:"dddd [n\xeb] LT",lastDay:"[Dje n\xeb] LT",lastWeek:"dddd [e kaluar n\xeb] LT",sameElse:"L"},relativeTime:{future:"n\xeb %s",past:"%s m\xeb par\xeb",s:"disa sekonda",ss:"%d sekonda",m:"nj\xeb minut\xeb",mm:"%d minuta",h:"nj\xeb or\xeb",hh:"%d or\xeb",d:"nj\xeb dit\xeb",dd:"%d dit\xeb",M:"nj\xeb muaj",MM:"%d muaj",y:"nj\xeb vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},1287:function(v,x,S){!function(D){"use strict";var n={words:{ss:["\u0441\u0435\u043a\u0443\u043d\u0434\u0430","\u0441\u0435\u043a\u0443\u043d\u0434\u0435","\u0441\u0435\u043a\u0443\u043d\u0434\u0438"],m:["\u0458\u0435\u0434\u0430\u043d \u043c\u0438\u043d\u0443\u0442","\u0458\u0435\u0434\u043d\u0435 \u043c\u0438\u043d\u0443\u0442\u0435"],mm:["\u043c\u0438\u043d\u0443\u0442","\u043c\u0438\u043d\u0443\u0442\u0435","\u043c\u0438\u043d\u0443\u0442\u0430"],h:["\u0458\u0435\u0434\u0430\u043d \u0441\u0430\u0442","\u0458\u0435\u0434\u043d\u043e\u0433 \u0441\u0430\u0442\u0430"],hh:["\u0441\u0430\u0442","\u0441\u0430\u0442\u0430","\u0441\u0430\u0442\u0438"],dd:["\u0434\u0430\u043d","\u0434\u0430\u043d\u0430","\u0434\u0430\u043d\u0430"],MM:["\u043c\u0435\u0441\u0435\u0446","\u043c\u0435\u0441\u0435\u0446\u0430","\u043c\u0435\u0441\u0435\u0446\u0438"],yy:["\u0433\u043e\u0434\u0438\u043d\u0430","\u0433\u043e\u0434\u0438\u043d\u0435","\u0433\u043e\u0434\u0438\u043d\u0430"]},correctGrammaticalCase:function(R,U){return 1===R?U[0]:R>=2&&R<=4?U[1]:U[2]},translate:function(R,U,q){var te=n.words[q];return 1===q.length?U?te[0]:te[1]:R+" "+n.correctGrammaticalCase(R,te)}};D.defineLocale("sr-cyrl",{months:"\u0458\u0430\u043d\u0443\u0430\u0440_\u0444\u0435\u0431\u0440\u0443\u0430\u0440_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0438\u043b_\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043f\u0442\u0435\u043c\u0431\u0430\u0440_\u043e\u043a\u0442\u043e\u0431\u0430\u0440_\u043d\u043e\u0432\u0435\u043c\u0431\u0430\u0440_\u0434\u0435\u0446\u0435\u043c\u0431\u0430\u0440".split("_"),monthsShort:"\u0458\u0430\u043d._\u0444\u0435\u0431._\u043c\u0430\u0440._\u0430\u043f\u0440._\u043c\u0430\u0458_\u0458\u0443\u043d_\u0458\u0443\u043b_\u0430\u0432\u0433._\u0441\u0435\u043f._\u043e\u043a\u0442._\u043d\u043e\u0432._\u0434\u0435\u0446.".split("_"),monthsParseExact:!0,weekdays:"\u043d\u0435\u0434\u0435\u0459\u0430_\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u0430\u043a_\u0443\u0442\u043e\u0440\u0430\u043a_\u0441\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0440\u0442\u0430\u043a_\u043f\u0435\u0442\u0430\u043a_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),weekdaysShort:"\u043d\u0435\u0434._\u043f\u043e\u043d._\u0443\u0442\u043e._\u0441\u0440\u0435._\u0447\u0435\u0442._\u043f\u0435\u0442._\u0441\u0443\u0431.".split("_"),weekdaysMin:"\u043d\u0435_\u043f\u043e_\u0443\u0442_\u0441\u0440_\u0447\u0435_\u043f\u0435_\u0441\u0443".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[\u0434\u0430\u043d\u0430\u0441 \u0443] LT",nextDay:"[\u0441\u0443\u0442\u0440\u0430 \u0443] LT",nextWeek:function(){switch(this.day()){case 0:return"[\u0443] [\u043d\u0435\u0434\u0435\u0459\u0443] [\u0443] LT";case 3:return"[\u0443] [\u0441\u0440\u0435\u0434\u0443] [\u0443] LT";case 6:return"[\u0443] [\u0441\u0443\u0431\u043e\u0442\u0443] [\u0443] LT";case 1:case 2:case 4:case 5:return"[\u0443] dddd [\u0443] LT"}},lastDay:"[\u0458\u0443\u0447\u0435 \u0443] LT",lastWeek:function(){return["[\u043f\u0440\u043e\u0448\u043b\u0435] [\u043d\u0435\u0434\u0435\u0459\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u043e\u043d\u0435\u0434\u0435\u0459\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0443\u0442\u043e\u0440\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0440\u0435\u0434\u0435] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u0447\u0435\u0442\u0432\u0440\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u043e\u0433] [\u043f\u0435\u0442\u043a\u0430] [\u0443] LT","[\u043f\u0440\u043e\u0448\u043b\u0435] [\u0441\u0443\u0431\u043e\u0442\u0435] [\u0443] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"\u043f\u0440\u0435 %s",s:"\u043d\u0435\u043a\u043e\u043b\u0438\u043a\u043e \u0441\u0435\u043a\u0443\u043d\u0434\u0438",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"\u0434\u0430\u043d",dd:n.translate,M:"\u043c\u0435\u0441\u0435\u0446",MM:n.translate,y:"\u0433\u043e\u0434\u0438\u043d\u0443",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},8965:function(v,x,S){!function(D){"use strict";var n={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jedne minute"],mm:["minut","minute","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mesec","meseca","meseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(R,U){return 1===R?U[0]:R>=2&&R<=4?U[1]:U[2]},translate:function(R,U,q){var te=n.words[q];return 1===q.length?U?te[0]:te[1]:R+" "+n.correctGrammaticalCase(R,te)}};D.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_\u010detvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._\u010det._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_\u010de_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[ju\u010de u] LT",lastWeek:function(){return["[pro\u0161le] [nedelje] [u] LT","[pro\u0161log] [ponedeljka] [u] LT","[pro\u0161log] [utorka] [u] LT","[pro\u0161le] [srede] [u] LT","[pro\u0161log] [\u010detvrtka] [u] LT","[pro\u0161log] [petka] [u] LT","[pro\u0161le] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:n.translate,m:n.translate,mm:n.translate,h:n.translate,hh:n.translate,d:"dan",dd:n.translate,M:"mesec",MM:n.translate,y:"godinu",yy:n.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(S(6908))},5456:function(v,x,S){!function(D){"use strict";D.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(O,R,U){return O<11?"ekuseni":O<15?"emini":O<19?"entsambama":"ebusuku"},meridiemHour:function(O,R){return 12===O&&(O=0),"ekuseni"===R?O:"emini"===R?O>=11?O:O+12:"entsambama"===R||"ebusuku"===R?0===O?0:O+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(S(6908))},451:function(v,x,S){!function(D){"use strict";D.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag".split("_"),weekdaysShort:"s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r".split("_"),weekdaysMin:"s\xf6_m\xe5_ti_on_to_fr_l\xf6".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Ig\xe5r] LT",nextWeek:"[P\xe5] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"f\xf6r %s sedan",s:"n\xe5gra sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en m\xe5nad",MM:"%d m\xe5nader",y:"ett \xe5r",yy:"%d \xe5r"},dayOfMonthOrdinalParse:/\d{1,2}(e|a)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"e":1===R||2===R?"a":"e")},week:{dow:1,doy:4}})}(S(6908))},7558:function(v,x,S){!function(D){"use strict";D.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"masiku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(S(6908))},2702:function(v,x,S){!function(D){"use strict";var n={1:"\u0be7",2:"\u0be8",3:"\u0be9",4:"\u0bea",5:"\u0beb",6:"\u0bec",7:"\u0bed",8:"\u0bee",9:"\u0bef",0:"\u0be6"},O={"\u0be7":"1","\u0be8":"2","\u0be9":"3","\u0bea":"4","\u0beb":"5","\u0bec":"6","\u0bed":"7","\u0bee":"8","\u0bef":"9","\u0be6":"0"};D.defineLocale("ta",{months:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),monthsShort:"\u0b9c\u0ba9\u0bb5\u0bb0\u0bbf_\u0baa\u0bbf\u0baa\u0bcd\u0bb0\u0bb5\u0bb0\u0bbf_\u0bae\u0bbe\u0bb0\u0bcd\u0b9a\u0bcd_\u0b8f\u0baa\u0bcd\u0bb0\u0bb2\u0bcd_\u0bae\u0bc7_\u0b9c\u0bc2\u0ba9\u0bcd_\u0b9c\u0bc2\u0bb2\u0bc8_\u0b86\u0b95\u0bb8\u0bcd\u0b9f\u0bcd_\u0b9a\u0bc6\u0baa\u0bcd\u0b9f\u0bc6\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b85\u0b95\u0bcd\u0b9f\u0bc7\u0bbe\u0baa\u0bb0\u0bcd_\u0ba8\u0bb5\u0bae\u0bcd\u0baa\u0bb0\u0bcd_\u0b9f\u0bbf\u0b9a\u0bae\u0bcd\u0baa\u0bb0\u0bcd".split("_"),weekdays:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bcd\u0bb1\u0bc1\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0b9f\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8_\u0b9a\u0ba9\u0bbf\u0b95\u0bcd\u0b95\u0bbf\u0bb4\u0bae\u0bc8".split("_"),weekdaysShort:"\u0b9e\u0bbe\u0baf\u0bbf\u0bb1\u0bc1_\u0ba4\u0bbf\u0b99\u0bcd\u0b95\u0bb3\u0bcd_\u0b9a\u0bc6\u0bb5\u0bcd\u0bb5\u0bbe\u0baf\u0bcd_\u0baa\u0bc1\u0ba4\u0ba9\u0bcd_\u0bb5\u0bbf\u0baf\u0bbe\u0bb4\u0ba9\u0bcd_\u0bb5\u0bc6\u0bb3\u0bcd\u0bb3\u0bbf_\u0b9a\u0ba9\u0bbf".split("_"),weekdaysMin:"\u0b9e\u0bbe_\u0ba4\u0bbf_\u0b9a\u0bc6_\u0baa\u0bc1_\u0bb5\u0bbf_\u0bb5\u0bc6_\u0b9a".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[\u0b87\u0ba9\u0bcd\u0bb1\u0bc1] LT",nextDay:"[\u0ba8\u0bbe\u0bb3\u0bc8] LT",nextWeek:"dddd, LT",lastDay:"[\u0ba8\u0bc7\u0bb1\u0bcd\u0bb1\u0bc1] LT",lastWeek:"[\u0b95\u0b9f\u0ba8\u0bcd\u0ba4 \u0bb5\u0bbe\u0bb0\u0bae\u0bcd] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0b87\u0bb2\u0bcd",past:"%s \u0bae\u0bc1\u0ba9\u0bcd",s:"\u0b92\u0bb0\u0bc1 \u0b9a\u0bbf\u0bb2 \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",ss:"%d \u0bb5\u0bbf\u0ba8\u0bbe\u0b9f\u0bbf\u0b95\u0bb3\u0bcd",m:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0bae\u0bcd",mm:"%d \u0ba8\u0bbf\u0bae\u0bbf\u0b9f\u0b99\u0bcd\u0b95\u0bb3\u0bcd",h:"\u0b92\u0bb0\u0bc1 \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",hh:"%d \u0bae\u0ba3\u0bbf \u0ba8\u0bc7\u0bb0\u0bae\u0bcd",d:"\u0b92\u0bb0\u0bc1 \u0ba8\u0bbe\u0bb3\u0bcd",dd:"%d \u0ba8\u0bbe\u0b9f\u0bcd\u0b95\u0bb3\u0bcd",M:"\u0b92\u0bb0\u0bc1 \u0bae\u0bbe\u0ba4\u0bae\u0bcd",MM:"%d \u0bae\u0bbe\u0ba4\u0b99\u0bcd\u0b95\u0bb3\u0bcd",y:"\u0b92\u0bb0\u0bc1 \u0bb5\u0bb0\u0bc1\u0b9f\u0bae\u0bcd",yy:"%d \u0b86\u0ba3\u0bcd\u0b9f\u0bc1\u0b95\u0bb3\u0bcd"},dayOfMonthOrdinalParse:/\d{1,2}\u0bb5\u0ba4\u0bc1/,ordinal:function(U){return U+"\u0bb5\u0ba4\u0bc1"},preparse:function(U){return U.replace(/[\u0be7\u0be8\u0be9\u0bea\u0beb\u0bec\u0bed\u0bee\u0bef\u0be6]/g,function(q){return O[q]})},postformat:function(U){return U.replace(/\d/g,function(q){return n[q]})},meridiemParse:/\u0baf\u0bbe\u0bae\u0bae\u0bcd|\u0bb5\u0bc8\u0b95\u0bb1\u0bc8|\u0b95\u0bbe\u0bb2\u0bc8|\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd|\u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1|\u0bae\u0bbe\u0bb2\u0bc8/,meridiem:function(U,q,te){return U<2?" \u0baf\u0bbe\u0bae\u0bae\u0bcd":U<6?" \u0bb5\u0bc8\u0b95\u0bb1\u0bc8":U<10?" \u0b95\u0bbe\u0bb2\u0bc8":U<14?" \u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd":U<18?" \u0b8e\u0bb1\u0bcd\u0baa\u0bbe\u0b9f\u0bc1":U<22?" \u0bae\u0bbe\u0bb2\u0bc8":" \u0baf\u0bbe\u0bae\u0bae\u0bcd"},meridiemHour:function(U,q){return 12===U&&(U=0),"\u0baf\u0bbe\u0bae\u0bae\u0bcd"===q?U<2?U:U+12:"\u0bb5\u0bc8\u0b95\u0bb1\u0bc8"===q||"\u0b95\u0bbe\u0bb2\u0bc8"===q||"\u0ba8\u0ba3\u0bcd\u0baa\u0b95\u0bb2\u0bcd"===q&&U>=10?U:U+12},week:{dow:0,doy:6}})}(S(6908))},3693:function(v,x,S){!function(D){"use strict";D.defineLocale("te",{months:"\u0c1c\u0c28\u0c35\u0c30\u0c3f_\u0c2b\u0c3f\u0c2c\u0c4d\u0c30\u0c35\u0c30\u0c3f_\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f\u0c32\u0c4d_\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17\u0c38\u0c4d\u0c1f\u0c41_\u0c38\u0c46\u0c2a\u0c4d\u0c1f\u0c46\u0c02\u0c2c\u0c30\u0c4d_\u0c05\u0c15\u0c4d\u0c1f\u0c4b\u0c2c\u0c30\u0c4d_\u0c28\u0c35\u0c02\u0c2c\u0c30\u0c4d_\u0c21\u0c3f\u0c38\u0c46\u0c02\u0c2c\u0c30\u0c4d".split("_"),monthsShort:"\u0c1c\u0c28._\u0c2b\u0c3f\u0c2c\u0c4d\u0c30._\u0c2e\u0c3e\u0c30\u0c4d\u0c1a\u0c3f_\u0c0f\u0c2a\u0c4d\u0c30\u0c3f._\u0c2e\u0c47_\u0c1c\u0c42\u0c28\u0c4d_\u0c1c\u0c41\u0c32\u0c48_\u0c06\u0c17._\u0c38\u0c46\u0c2a\u0c4d._\u0c05\u0c15\u0c4d\u0c1f\u0c4b._\u0c28\u0c35._\u0c21\u0c3f\u0c38\u0c46.".split("_"),monthsParseExact:!0,weekdays:"\u0c06\u0c26\u0c3f\u0c35\u0c3e\u0c30\u0c02_\u0c38\u0c4b\u0c2e\u0c35\u0c3e\u0c30\u0c02_\u0c2e\u0c02\u0c17\u0c33\u0c35\u0c3e\u0c30\u0c02_\u0c2c\u0c41\u0c27\u0c35\u0c3e\u0c30\u0c02_\u0c17\u0c41\u0c30\u0c41\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c41\u0c15\u0c4d\u0c30\u0c35\u0c3e\u0c30\u0c02_\u0c36\u0c28\u0c3f\u0c35\u0c3e\u0c30\u0c02".split("_"),weekdaysShort:"\u0c06\u0c26\u0c3f_\u0c38\u0c4b\u0c2e_\u0c2e\u0c02\u0c17\u0c33_\u0c2c\u0c41\u0c27_\u0c17\u0c41\u0c30\u0c41_\u0c36\u0c41\u0c15\u0c4d\u0c30_\u0c36\u0c28\u0c3f".split("_"),weekdaysMin:"\u0c06_\u0c38\u0c4b_\u0c2e\u0c02_\u0c2c\u0c41_\u0c17\u0c41_\u0c36\u0c41_\u0c36".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[\u0c28\u0c47\u0c21\u0c41] LT",nextDay:"[\u0c30\u0c47\u0c2a\u0c41] LT",nextWeek:"dddd, LT",lastDay:"[\u0c28\u0c3f\u0c28\u0c4d\u0c28] LT",lastWeek:"[\u0c17\u0c24] dddd, LT",sameElse:"L"},relativeTime:{future:"%s \u0c32\u0c4b",past:"%s \u0c15\u0c4d\u0c30\u0c3f\u0c24\u0c02",s:"\u0c15\u0c4a\u0c28\u0c4d\u0c28\u0c3f \u0c15\u0c4d\u0c37\u0c23\u0c3e\u0c32\u0c41",ss:"%d \u0c38\u0c46\u0c15\u0c28\u0c4d\u0c32\u0c41",m:"\u0c12\u0c15 \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c02",mm:"%d \u0c28\u0c3f\u0c2e\u0c3f\u0c37\u0c3e\u0c32\u0c41",h:"\u0c12\u0c15 \u0c17\u0c02\u0c1f",hh:"%d \u0c17\u0c02\u0c1f\u0c32\u0c41",d:"\u0c12\u0c15 \u0c30\u0c4b\u0c1c\u0c41",dd:"%d \u0c30\u0c4b\u0c1c\u0c41\u0c32\u0c41",M:"\u0c12\u0c15 \u0c28\u0c46\u0c32",MM:"%d \u0c28\u0c46\u0c32\u0c32\u0c41",y:"\u0c12\u0c15 \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c02",yy:"%d \u0c38\u0c02\u0c35\u0c24\u0c4d\u0c38\u0c30\u0c3e\u0c32\u0c41"},dayOfMonthOrdinalParse:/\d{1,2}\u0c35/,ordinal:"%d\u0c35",meridiemParse:/\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f|\u0c09\u0c26\u0c2f\u0c02|\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02|\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02/,meridiemHour:function(O,R){return 12===O&&(O=0),"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"===R?O<4?O:O+12:"\u0c09\u0c26\u0c2f\u0c02"===R?O:"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02"===R?O>=10?O:O+12:"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02"===R?O+12:void 0},meridiem:function(O,R,U){return O<4?"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f":O<10?"\u0c09\u0c26\u0c2f\u0c02":O<17?"\u0c2e\u0c27\u0c4d\u0c2f\u0c3e\u0c39\u0c4d\u0c28\u0c02":O<20?"\u0c38\u0c3e\u0c2f\u0c02\u0c24\u0c4d\u0c30\u0c02":"\u0c30\u0c3e\u0c24\u0c4d\u0c30\u0c3f"},week:{dow:0,doy:6}})}(S(6908))},1243:function(v,x,S){!function(D){"use strict";D.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Ju\xf1u_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"minutu balun",ss:"minutu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},2500:function(v,x,S){!function(D){"use strict";var n={0:"-\u0443\u043c",1:"-\u0443\u043c",2:"-\u044e\u043c",3:"-\u044e\u043c",4:"-\u0443\u043c",5:"-\u0443\u043c",6:"-\u0443\u043c",7:"-\u0443\u043c",8:"-\u0443\u043c",9:"-\u0443\u043c",10:"-\u0443\u043c",12:"-\u0443\u043c",13:"-\u0443\u043c",20:"-\u0443\u043c",30:"-\u044e\u043c",40:"-\u0443\u043c",50:"-\u0443\u043c",60:"-\u0443\u043c",70:"-\u0443\u043c",80:"-\u0443\u043c",90:"-\u0443\u043c",100:"-\u0443\u043c"};D.defineLocale("tg",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u044f\u043a\u0448\u0430\u043d\u0431\u0435_\u0434\u0443\u0448\u0430\u043d\u0431\u0435_\u0441\u0435\u0448\u0430\u043d\u0431\u0435_\u0447\u043e\u0440\u0448\u0430\u043d\u0431\u0435_\u043f\u0430\u043d\u04b7\u0448\u0430\u043d\u0431\u0435_\u04b7\u0443\u043c\u044a\u0430_\u0448\u0430\u043d\u0431\u0435".split("_"),weekdaysShort:"\u044f\u0448\u0431_\u0434\u0448\u0431_\u0441\u0448\u0431_\u0447\u0448\u0431_\u043f\u0448\u0431_\u04b7\u0443\u043c_\u0448\u043d\u0431".split("_"),weekdaysMin:"\u044f\u0448_\u0434\u0448_\u0441\u0448_\u0447\u0448_\u043f\u0448_\u04b7\u043c_\u0448\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u0418\u043c\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextDay:"[\u041f\u0430\u0433\u043e\u04b3 \u0441\u043e\u0430\u0442\u0438] LT",lastDay:"[\u0414\u0438\u0440\u04ef\u0437 \u0441\u043e\u0430\u0442\u0438] LT",nextWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u043e\u044f\u043d\u0434\u0430 \u0441\u043e\u0430\u0442\u0438] LT",lastWeek:"dddd[\u0438] [\u04b3\u0430\u0444\u0442\u0430\u0438 \u0433\u0443\u0437\u0430\u0448\u0442\u0430 \u0441\u043e\u0430\u0442\u0438] LT",sameElse:"L"},relativeTime:{future:"\u0431\u0430\u044a\u0434\u0438 %s",past:"%s \u043f\u0435\u0448",s:"\u044f\u043a\u0447\u0430\u043d\u0434 \u0441\u043e\u043d\u0438\u044f",m:"\u044f\u043a \u0434\u0430\u049b\u0438\u049b\u0430",mm:"%d \u0434\u0430\u049b\u0438\u049b\u0430",h:"\u044f\u043a \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u044f\u043a \u0440\u04ef\u0437",dd:"%d \u0440\u04ef\u0437",M:"\u044f\u043a \u043c\u043e\u04b3",MM:"%d \u043c\u043e\u04b3",y:"\u044f\u043a \u0441\u043e\u043b",yy:"%d \u0441\u043e\u043b"},meridiemParse:/\u0448\u0430\u0431|\u0441\u0443\u0431\u04b3|\u0440\u04ef\u0437|\u0431\u0435\u0433\u043e\u04b3/,meridiemHour:function(R,U){return 12===R&&(R=0),"\u0448\u0430\u0431"===U?R<4?R:R+12:"\u0441\u0443\u0431\u04b3"===U?R:"\u0440\u04ef\u0437"===U?R>=11?R:R+12:"\u0431\u0435\u0433\u043e\u04b3"===U?R+12:void 0},meridiem:function(R,U,q){return R<4?"\u0448\u0430\u0431":R<11?"\u0441\u0443\u0431\u04b3":R<16?"\u0440\u04ef\u0437":R<19?"\u0431\u0435\u0433\u043e\u04b3":"\u0448\u0430\u0431"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0443\u043c|\u044e\u043c)/,ordinal:function(R){return R+(n[R]||n[R%10]||n[R>=100?100:null])},week:{dow:1,doy:7}})}(S(6908))},5768:function(v,x,S){!function(D){"use strict";D.defineLocale("th",{months:"\u0e21\u0e01\u0e23\u0e32\u0e04\u0e21_\u0e01\u0e38\u0e21\u0e20\u0e32\u0e1e\u0e31\u0e19\u0e18\u0e4c_\u0e21\u0e35\u0e19\u0e32\u0e04\u0e21_\u0e40\u0e21\u0e29\u0e32\u0e22\u0e19_\u0e1e\u0e24\u0e29\u0e20\u0e32\u0e04\u0e21_\u0e21\u0e34\u0e16\u0e38\u0e19\u0e32\u0e22\u0e19_\u0e01\u0e23\u0e01\u0e0e\u0e32\u0e04\u0e21_\u0e2a\u0e34\u0e07\u0e2b\u0e32\u0e04\u0e21_\u0e01\u0e31\u0e19\u0e22\u0e32\u0e22\u0e19_\u0e15\u0e38\u0e25\u0e32\u0e04\u0e21_\u0e1e\u0e24\u0e28\u0e08\u0e34\u0e01\u0e32\u0e22\u0e19_\u0e18\u0e31\u0e19\u0e27\u0e32\u0e04\u0e21".split("_"),monthsShort:"\u0e21.\u0e04._\u0e01.\u0e1e._\u0e21\u0e35.\u0e04._\u0e40\u0e21.\u0e22._\u0e1e.\u0e04._\u0e21\u0e34.\u0e22._\u0e01.\u0e04._\u0e2a.\u0e04._\u0e01.\u0e22._\u0e15.\u0e04._\u0e1e.\u0e22._\u0e18.\u0e04.".split("_"),monthsParseExact:!0,weekdays:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a\u0e1a\u0e14\u0e35_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysShort:"\u0e2d\u0e32\u0e17\u0e34\u0e15\u0e22\u0e4c_\u0e08\u0e31\u0e19\u0e17\u0e23\u0e4c_\u0e2d\u0e31\u0e07\u0e04\u0e32\u0e23_\u0e1e\u0e38\u0e18_\u0e1e\u0e24\u0e2b\u0e31\u0e2a_\u0e28\u0e38\u0e01\u0e23\u0e4c_\u0e40\u0e2a\u0e32\u0e23\u0e4c".split("_"),weekdaysMin:"\u0e2d\u0e32._\u0e08._\u0e2d._\u0e1e._\u0e1e\u0e24._\u0e28._\u0e2a.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm",LLLL:"\u0e27\u0e31\u0e19dddd\u0e17\u0e35\u0e48 D MMMM YYYY \u0e40\u0e27\u0e25\u0e32 H:mm"},meridiemParse:/\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07|\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07/,isPM:function(O){return"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"===O},meridiem:function(O,R,U){return O<12?"\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07":"\u0e2b\u0e25\u0e31\u0e07\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07"},calendar:{sameDay:"[\u0e27\u0e31\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextDay:"[\u0e1e\u0e23\u0e38\u0e48\u0e07\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",nextWeek:"dddd[\u0e2b\u0e19\u0e49\u0e32 \u0e40\u0e27\u0e25\u0e32] LT",lastDay:"[\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e27\u0e32\u0e19\u0e19\u0e35\u0e49 \u0e40\u0e27\u0e25\u0e32] LT",lastWeek:"[\u0e27\u0e31\u0e19]dddd[\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e27\u0e25\u0e32] LT",sameElse:"L"},relativeTime:{future:"\u0e2d\u0e35\u0e01 %s",past:"%s\u0e17\u0e35\u0e48\u0e41\u0e25\u0e49\u0e27",s:"\u0e44\u0e21\u0e48\u0e01\u0e35\u0e48\u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",ss:"%d \u0e27\u0e34\u0e19\u0e32\u0e17\u0e35",m:"1 \u0e19\u0e32\u0e17\u0e35",mm:"%d \u0e19\u0e32\u0e17\u0e35",h:"1 \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",hh:"%d \u0e0a\u0e31\u0e48\u0e27\u0e42\u0e21\u0e07",d:"1 \u0e27\u0e31\u0e19",dd:"%d \u0e27\u0e31\u0e19",M:"1 \u0e40\u0e14\u0e37\u0e2d\u0e19",MM:"%d \u0e40\u0e14\u0e37\u0e2d\u0e19",y:"1 \u0e1b\u0e35",yy:"%d \u0e1b\u0e35"}})}(S(6908))},5780:function(v,x,S){!function(D){"use strict";D.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(O){return O},week:{dow:1,doy:4}})}(S(6908))},9590:function(v,x,S){!function(D){"use strict";var n="pagh_wa\u2019_cha\u2019_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function U(ie,pe,de,Ce){var me=function q(ie){var pe=Math.floor(ie%1e3/100),de=Math.floor(ie%100/10),Ce=ie%10,me="";return pe>0&&(me+=n[pe]+"vatlh"),de>0&&(me+=(""!==me?" ":"")+n[de]+"maH"),Ce>0&&(me+=(""!==me?" ":"")+n[Ce]),""===me?"pagh":me}(ie);switch(de){case"ss":return me+" lup";case"mm":return me+" tup";case"hh":return me+" rep";case"dd":return me+" jaj";case"MM":return me+" jar";case"yy":return me+" DIS"}}D.defineLocale("tlh",{months:"tera\u2019 jar wa\u2019_tera\u2019 jar cha\u2019_tera\u2019 jar wej_tera\u2019 jar loS_tera\u2019 jar vagh_tera\u2019 jar jav_tera\u2019 jar Soch_tera\u2019 jar chorgh_tera\u2019 jar Hut_tera\u2019 jar wa\u2019maH_tera\u2019 jar wa\u2019maH wa\u2019_tera\u2019 jar wa\u2019maH cha\u2019".split("_"),monthsShort:"jar wa\u2019_jar cha\u2019_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa\u2019maH_jar wa\u2019maH wa\u2019_jar wa\u2019maH cha\u2019".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa\u2019leS] LT",nextWeek:"LLL",lastDay:"[wa\u2019Hu\u2019] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function O(ie){var pe=ie;return-1!==ie.indexOf("jaj")?pe.slice(0,-3)+"leS":-1!==ie.indexOf("jar")?pe.slice(0,-3)+"waQ":-1!==ie.indexOf("DIS")?pe.slice(0,-3)+"nem":pe+" pIq"},past:function R(ie){var pe=ie;return-1!==ie.indexOf("jaj")?pe.slice(0,-3)+"Hu\u2019":-1!==ie.indexOf("jar")?pe.slice(0,-3)+"wen":-1!==ie.indexOf("DIS")?pe.slice(0,-3)+"ben":pe+" ret"},s:"puS lup",ss:U,m:"wa\u2019 tup",mm:U,h:"wa\u2019 rep",hh:U,d:"wa\u2019 jaj",dd:U,M:"wa\u2019 jar",MM:U,y:"wa\u2019 DIS",yy:U},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},3807:function(v,x,S){!function(D){"use strict";var n={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'\xfcnc\xfc",4:"'\xfcnc\xfc",100:"'\xfcnc\xfc",6:"'nc\u0131",9:"'uncu",10:"'uncu",30:"'uncu",60:"'\u0131nc\u0131",90:"'\u0131nc\u0131"};D.defineLocale("tr",{months:"Ocak_\u015eubat_Mart_Nisan_May\u0131s_Haziran_Temmuz_A\u011fustos_Eyl\xfcl_Ekim_Kas\u0131m_Aral\u0131k".split("_"),monthsShort:"Oca_\u015eub_Mar_Nis_May_Haz_Tem_A\u011fu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Sal\u0131_\xc7ar\u015famba_Per\u015fembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pts_Sal_\xc7ar_Per_Cum_Cts".split("_"),weekdaysMin:"Pz_Pt_Sa_\xc7a_Pe_Cu_Ct".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bug\xfcn saat] LT",nextDay:"[yar\u0131n saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[d\xfcn] LT",lastWeek:"[ge\xe7en] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s \xf6nce",s:"birka\xe7 saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir g\xfcn",dd:"%d g\xfcn",M:"bir ay",MM:"%d ay",y:"bir y\u0131l",yy:"%d y\u0131l"},ordinal:function(R,U){switch(U){case"d":case"D":case"Do":case"DD":return R;default:if(0===R)return R+"'\u0131nc\u0131";var q=R%10;return R+(n[q]||n[R%100-q]||n[R>=100?100:null])}},week:{dow:1,doy:7}})}(S(6908))},3857:function(v,x,S){!function(D){"use strict";function O(R,U,q,te){var ie={s:["viensas secunds","'iensas secunds"],ss:[R+" secunds",R+" secunds"],m:["'n m\xedut","'iens m\xedut"],mm:[R+" m\xeduts",R+" m\xeduts"],h:["'n \xfeora","'iensa \xfeora"],hh:[R+" \xfeoras",R+" \xfeoras"],d:["'n ziua","'iensa ziua"],dd:[R+" ziuas",R+" ziuas"],M:["'n mes","'iens mes"],MM:[R+" mesen",R+" mesen"],y:["'n ar","'iens ar"],yy:[R+" ars",R+" ars"]};return te||U?ie[q][0]:ie[q][1]}D.defineLocale("tzl",{months:"Januar_Fevraglh_Mar\xe7_Avr\xefu_Mai_G\xfcn_Julia_Guscht_Setemvar_Listop\xe4ts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_G\xfcn_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"S\xfaladi_L\xfane\xe7i_Maitzi_M\xe1rcuri_Xh\xfaadi_Vi\xe9ner\xe7i_S\xe1turi".split("_"),weekdaysShort:"S\xfal_L\xfan_Mai_M\xe1r_Xh\xfa_Vi\xe9_S\xe1t".split("_"),weekdaysMin:"S\xfa_L\xfa_Ma_M\xe1_Xh_Vi_S\xe1".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(R){return"d'o"===R.toLowerCase()},meridiem:function(R,U,q){return R>11?q?"d'o":"D'O":q?"d'a":"D'A"},calendar:{sameDay:"[oxhi \xe0] LT",nextDay:"[dem\xe0 \xe0] LT",nextWeek:"dddd [\xe0] LT",lastDay:"[ieiri \xe0] LT",lastWeek:"[s\xfcr el] dddd [lasteu \xe0] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:O,ss:O,m:O,mm:O,h:O,hh:O,d:O,dd:O,M:O,MM:O,y:O,yy:O},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(S(6908))},8806:function(v,x,S){!function(D){"use strict";D.defineLocale("tzm-latn",{months:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_br\u02e4ayr\u02e4_mar\u02e4s\u02e4_ibrir_mayyw_ywnyw_ywlywz_\u0263w\u0161t_\u0161wtanbir_kt\u02e4wbr\u02e4_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asi\u1e0dyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minu\u1e0d",mm:"%d minu\u1e0d",h:"sa\u025ba",hh:"%d tassa\u025bin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(S(6908))},654:function(v,x,S){!function(D){"use strict";D.defineLocale("tzm",{months:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),monthsShort:"\u2d49\u2d4f\u2d4f\u2d30\u2d62\u2d54_\u2d31\u2d55\u2d30\u2d62\u2d55_\u2d4e\u2d30\u2d55\u2d5a_\u2d49\u2d31\u2d54\u2d49\u2d54_\u2d4e\u2d30\u2d62\u2d62\u2d53_\u2d62\u2d53\u2d4f\u2d62\u2d53_\u2d62\u2d53\u2d4d\u2d62\u2d53\u2d63_\u2d56\u2d53\u2d5b\u2d5c_\u2d5b\u2d53\u2d5c\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d3d\u2d5f\u2d53\u2d31\u2d55_\u2d4f\u2d53\u2d61\u2d30\u2d4f\u2d31\u2d49\u2d54_\u2d37\u2d53\u2d4a\u2d4f\u2d31\u2d49\u2d54".split("_"),weekdays:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysShort:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),weekdaysMin:"\u2d30\u2d59\u2d30\u2d4e\u2d30\u2d59_\u2d30\u2d62\u2d4f\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4f\u2d30\u2d59_\u2d30\u2d3d\u2d54\u2d30\u2d59_\u2d30\u2d3d\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d4e\u2d61\u2d30\u2d59_\u2d30\u2d59\u2d49\u2d39\u2d62\u2d30\u2d59".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[\u2d30\u2d59\u2d37\u2d45 \u2d34] LT",nextDay:"[\u2d30\u2d59\u2d3d\u2d30 \u2d34] LT",nextWeek:"dddd [\u2d34] LT",lastDay:"[\u2d30\u2d5a\u2d30\u2d4f\u2d5c \u2d34] LT",lastWeek:"dddd [\u2d34] LT",sameElse:"L"},relativeTime:{future:"\u2d37\u2d30\u2d37\u2d45 \u2d59 \u2d62\u2d30\u2d4f %s",past:"\u2d62\u2d30\u2d4f %s",s:"\u2d49\u2d4e\u2d49\u2d3d",ss:"%d \u2d49\u2d4e\u2d49\u2d3d",m:"\u2d4e\u2d49\u2d4f\u2d53\u2d3a",mm:"%d \u2d4e\u2d49\u2d4f\u2d53\u2d3a",h:"\u2d59\u2d30\u2d44\u2d30",hh:"%d \u2d5c\u2d30\u2d59\u2d59\u2d30\u2d44\u2d49\u2d4f",d:"\u2d30\u2d59\u2d59",dd:"%d o\u2d59\u2d59\u2d30\u2d4f",M:"\u2d30\u2d62o\u2d53\u2d54",MM:"%d \u2d49\u2d62\u2d62\u2d49\u2d54\u2d4f",y:"\u2d30\u2d59\u2d33\u2d30\u2d59",yy:"%d \u2d49\u2d59\u2d33\u2d30\u2d59\u2d4f"},week:{dow:6,doy:12}})}(S(6908))},845:function(v,x,S){!function(D){"use strict";D.defineLocale("ug-cn",{months:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),monthsShort:"\u064a\u0627\u0646\u06cb\u0627\u0631_\u0641\u06d0\u06cb\u0631\u0627\u0644_\u0645\u0627\u0631\u062a_\u0626\u0627\u067e\u0631\u06d0\u0644_\u0645\u0627\u064a_\u0626\u0649\u064a\u06c7\u0646_\u0626\u0649\u064a\u06c7\u0644_\u0626\u0627\u06cb\u063a\u06c7\u0633\u062a_\u0633\u06d0\u0646\u062a\u06d5\u0628\u0649\u0631_\u0626\u06c6\u0643\u062a\u06d5\u0628\u0649\u0631_\u0646\u0648\u064a\u0627\u0628\u0649\u0631_\u062f\u06d0\u0643\u0627\u0628\u0649\u0631".split("_"),weekdays:"\u064a\u06d5\u0643\u0634\u06d5\u0646\u0628\u06d5_\u062f\u06c8\u0634\u06d5\u0646\u0628\u06d5_\u0633\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u0686\u0627\u0631\u0634\u06d5\u0646\u0628\u06d5_\u067e\u06d5\u064a\u0634\u06d5\u0646\u0628\u06d5_\u062c\u06c8\u0645\u06d5_\u0634\u06d5\u0646\u0628\u06d5".split("_"),weekdaysShort:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),weekdaysMin:"\u064a\u06d5_\u062f\u06c8_\u0633\u06d5_\u0686\u0627_\u067e\u06d5_\u062c\u06c8_\u0634\u06d5".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649",LLL:"YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm",LLLL:"dddd\u060c YYYY-\u064a\u0649\u0644\u0649M-\u0626\u0627\u064a\u0646\u0649\u06adD-\u0643\u06c8\u0646\u0649\u060c HH:mm"},meridiemParse:/\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5|\u0633\u06d5\u06be\u06d5\u0631|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646|\u0686\u06c8\u0634|\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646|\u0643\u06d5\u0686/,meridiemHour:function(O,R){return 12===O&&(O=0),"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5"===R||"\u0633\u06d5\u06be\u06d5\u0631"===R||"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646"===R?O:"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646"===R||"\u0643\u06d5\u0686"===R?O+12:O>=11?O:O+12},meridiem:function(O,R,U){var q=100*O+R;return q<600?"\u064a\u06d0\u0631\u0649\u0645 \u0643\u06d0\u0686\u06d5":q<900?"\u0633\u06d5\u06be\u06d5\u0631":q<1130?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0628\u06c7\u0631\u06c7\u0646":q<1230?"\u0686\u06c8\u0634":q<1800?"\u0686\u06c8\u0634\u062a\u0649\u0646 \u0643\u06d0\u064a\u0649\u0646":"\u0643\u06d5\u0686"},calendar:{sameDay:"[\u0628\u06c8\u06af\u06c8\u0646 \u0633\u0627\u0626\u06d5\u062a] LT",nextDay:"[\u0626\u06d5\u062a\u06d5 \u0633\u0627\u0626\u06d5\u062a] LT",nextWeek:"[\u0643\u06d0\u0644\u06d5\u0631\u0643\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",lastDay:"[\u062a\u06c6\u0646\u06c8\u06af\u06c8\u0646] LT",lastWeek:"[\u0626\u0627\u0644\u062f\u0649\u0646\u0642\u0649] dddd [\u0633\u0627\u0626\u06d5\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0643\u06d0\u064a\u0649\u0646",past:"%s \u0628\u06c7\u0631\u06c7\u0646",s:"\u0646\u06d5\u0686\u0686\u06d5 \u0633\u06d0\u0643\u0648\u0646\u062a",ss:"%d \u0633\u06d0\u0643\u0648\u0646\u062a",m:"\u0628\u0649\u0631 \u0645\u0649\u0646\u06c7\u062a",mm:"%d \u0645\u0649\u0646\u06c7\u062a",h:"\u0628\u0649\u0631 \u0633\u0627\u0626\u06d5\u062a",hh:"%d \u0633\u0627\u0626\u06d5\u062a",d:"\u0628\u0649\u0631 \u0643\u06c8\u0646",dd:"%d \u0643\u06c8\u0646",M:"\u0628\u0649\u0631 \u0626\u0627\u064a",MM:"%d \u0626\u0627\u064a",y:"\u0628\u0649\u0631 \u064a\u0649\u0644",yy:"%d \u064a\u0649\u0644"},dayOfMonthOrdinalParse:/\d{1,2}(-\u0643\u06c8\u0646\u0649|-\u0626\u0627\u064a|-\u06be\u06d5\u067e\u062a\u06d5)/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"-\u0643\u06c8\u0646\u0649";case"w":case"W":return O+"-\u06be\u06d5\u067e\u062a\u06d5";default:return O}},preparse:function(O){return O.replace(/\u060c/g,",")},postformat:function(O){return O.replace(/,/g,"\u060c")},week:{dow:1,doy:7}})}(S(6908))},9232:function(v,x,S){!function(D){"use strict";function O(te,ie,pe){return"m"===pe?ie?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443":"h"===pe?ie?"\u0433\u043e\u0434\u0438\u043d\u0430":"\u0433\u043e\u0434\u0438\u043d\u0443":te+" "+function n(te,ie){var pe=te.split("_");return ie%10==1&&ie%100!=11?pe[0]:ie%10>=2&&ie%10<=4&&(ie%100<10||ie%100>=20)?pe[1]:pe[2]}({ss:ie?"\u0441\u0435\u043a\u0443\u043d\u0434\u0430_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434":"\u0441\u0435\u043a\u0443\u043d\u0434\u0443_\u0441\u0435\u043a\u0443\u043d\u0434\u0438_\u0441\u0435\u043a\u0443\u043d\u0434",mm:ie?"\u0445\u0432\u0438\u043b\u0438\u043d\u0430_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d":"\u0445\u0432\u0438\u043b\u0438\u043d\u0443_\u0445\u0432\u0438\u043b\u0438\u043d\u0438_\u0445\u0432\u0438\u043b\u0438\u043d",hh:ie?"\u0433\u043e\u0434\u0438\u043d\u0430_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d":"\u0433\u043e\u0434\u0438\u043d\u0443_\u0433\u043e\u0434\u0438\u043d\u0438_\u0433\u043e\u0434\u0438\u043d",dd:"\u0434\u0435\u043d\u044c_\u0434\u043d\u0456_\u0434\u043d\u0456\u0432",MM:"\u043c\u0456\u0441\u044f\u0446\u044c_\u043c\u0456\u0441\u044f\u0446\u0456_\u043c\u0456\u0441\u044f\u0446\u0456\u0432",yy:"\u0440\u0456\u043a_\u0440\u043e\u043a\u0438_\u0440\u043e\u043a\u0456\u0432"}[pe],+te)}function U(te){return function(){return te+"\u043e"+(11===this.hours()?"\u0431":"")+"] LT"}}D.defineLocale("uk",{months:{format:"\u0441\u0456\u0447\u043d\u044f_\u043b\u044e\u0442\u043e\u0433\u043e_\u0431\u0435\u0440\u0435\u0437\u043d\u044f_\u043a\u0432\u0456\u0442\u043d\u044f_\u0442\u0440\u0430\u0432\u043d\u044f_\u0447\u0435\u0440\u0432\u043d\u044f_\u043b\u0438\u043f\u043d\u044f_\u0441\u0435\u0440\u043f\u043d\u044f_\u0432\u0435\u0440\u0435\u0441\u043d\u044f_\u0436\u043e\u0432\u0442\u043d\u044f_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434\u0430_\u0433\u0440\u0443\u0434\u043d\u044f".split("_"),standalone:"\u0441\u0456\u0447\u0435\u043d\u044c_\u043b\u044e\u0442\u0438\u0439_\u0431\u0435\u0440\u0435\u0437\u0435\u043d\u044c_\u043a\u0432\u0456\u0442\u0435\u043d\u044c_\u0442\u0440\u0430\u0432\u0435\u043d\u044c_\u0447\u0435\u0440\u0432\u0435\u043d\u044c_\u043b\u0438\u043f\u0435\u043d\u044c_\u0441\u0435\u0440\u043f\u0435\u043d\u044c_\u0432\u0435\u0440\u0435\u0441\u0435\u043d\u044c_\u0436\u043e\u0432\u0442\u0435\u043d\u044c_\u043b\u0438\u0441\u0442\u043e\u043f\u0430\u0434_\u0433\u0440\u0443\u0434\u0435\u043d\u044c".split("_")},monthsShort:"\u0441\u0456\u0447_\u043b\u044e\u0442_\u0431\u0435\u0440_\u043a\u0432\u0456\u0442_\u0442\u0440\u0430\u0432_\u0447\u0435\u0440\u0432_\u043b\u0438\u043f_\u0441\u0435\u0440\u043f_\u0432\u0435\u0440_\u0436\u043e\u0432\u0442_\u043b\u0438\u0441\u0442_\u0433\u0440\u0443\u0434".split("_"),weekdays:function R(te,ie){var pe={nominative:"\u043d\u0435\u0434\u0456\u043b\u044f_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0430_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044f_\u0441\u0443\u0431\u043e\u0442\u0430".split("_"),accusative:"\u043d\u0435\u0434\u0456\u043b\u044e_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043e\u043a_\u0432\u0456\u0432\u0442\u043e\u0440\u043e\u043a_\u0441\u0435\u0440\u0435\u0434\u0443_\u0447\u0435\u0442\u0432\u0435\u0440_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u044e_\u0441\u0443\u0431\u043e\u0442\u0443".split("_"),genitive:"\u043d\u0435\u0434\u0456\u043b\u0456_\u043f\u043e\u043d\u0435\u0434\u0456\u043b\u043a\u0430_\u0432\u0456\u0432\u0442\u043e\u0440\u043a\u0430_\u0441\u0435\u0440\u0435\u0434\u0438_\u0447\u0435\u0442\u0432\u0435\u0440\u0433\u0430_\u043f\u2019\u044f\u0442\u043d\u0438\u0446\u0456_\u0441\u0443\u0431\u043e\u0442\u0438".split("_")};return!0===te?pe.nominative.slice(1,7).concat(pe.nominative.slice(0,1)):te?pe[/(\[[\u0412\u0432\u0423\u0443]\]) ?dddd/.test(ie)?"accusative":/\[?(?:\u043c\u0438\u043d\u0443\u043b\u043e\u0457|\u043d\u0430\u0441\u0442\u0443\u043f\u043d\u043e\u0457)? ?\] ?dddd/.test(ie)?"genitive":"nominative"][te.day()]:pe.nominative},weekdaysShort:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),weekdaysMin:"\u043d\u0434_\u043f\u043d_\u0432\u0442_\u0441\u0440_\u0447\u0442_\u043f\u0442_\u0441\u0431".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY \u0440.",LLL:"D MMMM YYYY \u0440., HH:mm",LLLL:"dddd, D MMMM YYYY \u0440., HH:mm"},calendar:{sameDay:U("[\u0421\u044c\u043e\u0433\u043e\u0434\u043d\u0456 "),nextDay:U("[\u0417\u0430\u0432\u0442\u0440\u0430 "),lastDay:U("[\u0412\u0447\u043e\u0440\u0430 "),nextWeek:U("[\u0423] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return U("[\u041c\u0438\u043d\u0443\u043b\u043e\u0457] dddd [").call(this);case 1:case 2:case 4:return U("[\u041c\u0438\u043d\u0443\u043b\u043e\u0433\u043e] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"\u0437\u0430 %s",past:"%s \u0442\u043e\u043c\u0443",s:"\u0434\u0435\u043a\u0456\u043b\u044c\u043a\u0430 \u0441\u0435\u043a\u0443\u043d\u0434",ss:O,m:O,mm:O,h:"\u0433\u043e\u0434\u0438\u043d\u0443",hh:O,d:"\u0434\u0435\u043d\u044c",dd:O,M:"\u043c\u0456\u0441\u044f\u0446\u044c",MM:O,y:"\u0440\u0456\u043a",yy:O},meridiemParse:/\u043d\u043e\u0447\u0456|\u0440\u0430\u043d\u043a\u0443|\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430/,isPM:function(te){return/^(\u0434\u043d\u044f|\u0432\u0435\u0447\u043e\u0440\u0430)$/.test(te)},meridiem:function(te,ie,pe){return te<4?"\u043d\u043e\u0447\u0456":te<12?"\u0440\u0430\u043d\u043a\u0443":te<17?"\u0434\u043d\u044f":"\u0432\u0435\u0447\u043e\u0440\u0430"},dayOfMonthOrdinalParse:/\d{1,2}-(\u0439|\u0433\u043e)/,ordinal:function(te,ie){switch(ie){case"M":case"d":case"DDD":case"w":case"W":return te+"-\u0439";case"D":return te+"-\u0433\u043e";default:return te}},week:{dow:1,doy:7}})}(S(6908))},7052:function(v,x,S){!function(D){"use strict";var n=["\u062c\u0646\u0648\u0631\u06cc","\u0641\u0631\u0648\u0631\u06cc","\u0645\u0627\u0631\u0686","\u0627\u067e\u0631\u06cc\u0644","\u0645\u0626\u06cc","\u062c\u0648\u0646","\u062c\u0648\u0644\u0627\u0626\u06cc","\u0627\u06af\u0633\u062a","\u0633\u062a\u0645\u0628\u0631","\u0627\u06a9\u062a\u0648\u0628\u0631","\u0646\u0648\u0645\u0628\u0631","\u062f\u0633\u0645\u0628\u0631"],O=["\u0627\u062a\u0648\u0627\u0631","\u067e\u06cc\u0631","\u0645\u0646\u06af\u0644","\u0628\u062f\u06be","\u062c\u0645\u0639\u0631\u0627\u062a","\u062c\u0645\u0639\u06c1","\u06c1\u0641\u062a\u06c1"];D.defineLocale("ur",{months:n,monthsShort:n,weekdays:O,weekdaysShort:O,weekdaysMin:O,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd\u060c D MMMM YYYY HH:mm"},meridiemParse:/\u0635\u0628\u062d|\u0634\u0627\u0645/,isPM:function(U){return"\u0634\u0627\u0645"===U},meridiem:function(U,q,te){return U<12?"\u0635\u0628\u062d":"\u0634\u0627\u0645"},calendar:{sameDay:"[\u0622\u062c \u0628\u0648\u0642\u062a] LT",nextDay:"[\u06a9\u0644 \u0628\u0648\u0642\u062a] LT",nextWeek:"dddd [\u0628\u0648\u0642\u062a] LT",lastDay:"[\u06af\u0630\u0634\u062a\u06c1 \u0631\u0648\u0632 \u0628\u0648\u0642\u062a] LT",lastWeek:"[\u06af\u0630\u0634\u062a\u06c1] dddd [\u0628\u0648\u0642\u062a] LT",sameElse:"L"},relativeTime:{future:"%s \u0628\u0639\u062f",past:"%s \u0642\u0628\u0644",s:"\u0686\u0646\u062f \u0633\u06cc\u06a9\u0646\u0688",ss:"%d \u0633\u06cc\u06a9\u0646\u0688",m:"\u0627\u06cc\u06a9 \u0645\u0646\u0679",mm:"%d \u0645\u0646\u0679",h:"\u0627\u06cc\u06a9 \u06af\u06be\u0646\u0679\u06c1",hh:"%d \u06af\u06be\u0646\u0679\u06d2",d:"\u0627\u06cc\u06a9 \u062f\u0646",dd:"%d \u062f\u0646",M:"\u0627\u06cc\u06a9 \u0645\u0627\u06c1",MM:"%d \u0645\u0627\u06c1",y:"\u0627\u06cc\u06a9 \u0633\u0627\u0644",yy:"%d \u0633\u0627\u0644"},preparse:function(U){return U.replace(/\u060c/g,",")},postformat:function(U){return U.replace(/,/g,"\u060c")},week:{dow:1,doy:4}})}(S(6908))},2233:function(v,x,S){!function(D){"use strict";D.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(S(6908))},7967:function(v,x,S){!function(D){"use strict";D.defineLocale("uz",{months:"\u044f\u043d\u0432\u0430\u0440_\u0444\u0435\u0432\u0440\u0430\u043b_\u043c\u0430\u0440\u0442_\u0430\u043f\u0440\u0435\u043b_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433\u0443\u0441\u0442_\u0441\u0435\u043d\u0442\u044f\u0431\u0440_\u043e\u043a\u0442\u044f\u0431\u0440_\u043d\u043e\u044f\u0431\u0440_\u0434\u0435\u043a\u0430\u0431\u0440".split("_"),monthsShort:"\u044f\u043d\u0432_\u0444\u0435\u0432_\u043c\u0430\u0440_\u0430\u043f\u0440_\u043c\u0430\u0439_\u0438\u044e\u043d_\u0438\u044e\u043b_\u0430\u0432\u0433_\u0441\u0435\u043d_\u043e\u043a\u0442_\u043d\u043e\u044f_\u0434\u0435\u043a".split("_"),weekdays:"\u042f\u043a\u0448\u0430\u043d\u0431\u0430_\u0414\u0443\u0448\u0430\u043d\u0431\u0430_\u0421\u0435\u0448\u0430\u043d\u0431\u0430_\u0427\u043e\u0440\u0448\u0430\u043d\u0431\u0430_\u041f\u0430\u0439\u0448\u0430\u043d\u0431\u0430_\u0416\u0443\u043c\u0430_\u0428\u0430\u043d\u0431\u0430".split("_"),weekdaysShort:"\u042f\u043a\u0448_\u0414\u0443\u0448_\u0421\u0435\u0448_\u0427\u043e\u0440_\u041f\u0430\u0439_\u0416\u0443\u043c_\u0428\u0430\u043d".split("_"),weekdaysMin:"\u042f\u043a_\u0414\u0443_\u0421\u0435_\u0427\u043e_\u041f\u0430_\u0416\u0443_\u0428\u0430".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[\u0411\u0443\u0433\u0443\u043d \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",nextDay:"[\u042d\u0440\u0442\u0430\u0433\u0430] LT [\u0434\u0430]",nextWeek:"dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastDay:"[\u041a\u0435\u0447\u0430 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",lastWeek:"[\u0423\u0442\u0433\u0430\u043d] dddd [\u043a\u0443\u043d\u0438 \u0441\u043e\u0430\u0442] LT [\u0434\u0430]",sameElse:"L"},relativeTime:{future:"\u042f\u043a\u0438\u043d %s \u0438\u0447\u0438\u0434\u0430",past:"\u0411\u0438\u0440 \u043d\u0435\u0447\u0430 %s \u043e\u043b\u0434\u0438\u043d",s:"\u0444\u0443\u0440\u0441\u0430\u0442",ss:"%d \u0444\u0443\u0440\u0441\u0430\u0442",m:"\u0431\u0438\u0440 \u0434\u0430\u043a\u0438\u043a\u0430",mm:"%d \u0434\u0430\u043a\u0438\u043a\u0430",h:"\u0431\u0438\u0440 \u0441\u043e\u0430\u0442",hh:"%d \u0441\u043e\u0430\u0442",d:"\u0431\u0438\u0440 \u043a\u0443\u043d",dd:"%d \u043a\u0443\u043d",M:"\u0431\u0438\u0440 \u043e\u0439",MM:"%d \u043e\u0439",y:"\u0431\u0438\u0440 \u0439\u0438\u043b",yy:"%d \u0439\u0438\u043b"},week:{dow:1,doy:7}})}(S(6908))},8615:function(v,x,S){!function(D){"use strict";D.defineLocale("vi",{months:"th\xe1ng 1_th\xe1ng 2_th\xe1ng 3_th\xe1ng 4_th\xe1ng 5_th\xe1ng 6_th\xe1ng 7_th\xe1ng 8_th\xe1ng 9_th\xe1ng 10_th\xe1ng 11_th\xe1ng 12".split("_"),monthsShort:"Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12".split("_"),monthsParseExact:!0,weekdays:"ch\u1ee7 nh\u1eadt_th\u1ee9 hai_th\u1ee9 ba_th\u1ee9 t\u01b0_th\u1ee9 n\u0103m_th\u1ee9 s\xe1u_th\u1ee9 b\u1ea3y".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(O){return/^ch$/i.test(O)},meridiem:function(O,R,U){return O<12?U?"sa":"SA":U?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [n\u0103m] YYYY",LLL:"D MMMM [n\u0103m] YYYY HH:mm",LLLL:"dddd, D MMMM [n\u0103m] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[H\xf4m nay l\xfac] LT",nextDay:"[Ng\xe0y mai l\xfac] LT",nextWeek:"dddd [tu\u1ea7n t\u1edbi l\xfac] LT",lastDay:"[H\xf4m qua l\xfac] LT",lastWeek:"dddd [tu\u1ea7n r\u1ed3i l\xfac] LT",sameElse:"L"},relativeTime:{future:"%s t\u1edbi",past:"%s tr\u01b0\u1edbc",s:"v\xe0i gi\xe2y",ss:"%d gi\xe2y",m:"m\u1ed9t ph\xfat",mm:"%d ph\xfat",h:"m\u1ed9t gi\u1edd",hh:"%d gi\u1edd",d:"m\u1ed9t ng\xe0y",dd:"%d ng\xe0y",M:"m\u1ed9t th\xe1ng",MM:"%d th\xe1ng",y:"m\u1ed9t n\u0103m",yy:"%d n\u0103m"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(O){return O},week:{dow:1,doy:4}})}(S(6908))},2320:function(v,x,S){!function(D){"use strict";D.defineLocale("x-pseudo",{months:"J~\xe1\xf1\xfa\xe1~r\xfd_F~\xe9br\xfa~\xe1r\xfd_~M\xe1rc~h_\xc1p~r\xedl_~M\xe1\xfd_~J\xfa\xf1\xe9~_J\xfal~\xfd_\xc1\xfa~g\xfast~_S\xe9p~t\xe9mb~\xe9r_\xd3~ct\xf3b~\xe9r_\xd1~\xf3v\xe9m~b\xe9r_~D\xe9c\xe9~mb\xe9r".split("_"),monthsShort:"J~\xe1\xf1_~F\xe9b_~M\xe1r_~\xc1pr_~M\xe1\xfd_~J\xfa\xf1_~J\xfal_~\xc1\xfag_~S\xe9p_~\xd3ct_~\xd1\xf3v_~D\xe9c".split("_"),monthsParseExact:!0,weekdays:"S~\xfa\xf1d\xe1~\xfd_M\xf3~\xf1d\xe1\xfd~_T\xfa\xe9~sd\xe1\xfd~_W\xe9d~\xf1\xe9sd~\xe1\xfd_T~h\xfars~d\xe1\xfd_~Fr\xedd~\xe1\xfd_S~\xe1t\xfar~d\xe1\xfd".split("_"),weekdaysShort:"S~\xfa\xf1_~M\xf3\xf1_~T\xfa\xe9_~W\xe9d_~Th\xfa_~Fr\xed_~S\xe1t".split("_"),weekdaysMin:"S~\xfa_M\xf3~_T\xfa_~W\xe9_T~h_Fr~_S\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~\xf3d\xe1~\xfd \xe1t] LT",nextDay:"[T~\xf3m\xf3~rr\xf3~w \xe1t] LT",nextWeek:"dddd [\xe1t] LT",lastDay:"[\xdd~\xe9st~\xe9rd\xe1~\xfd \xe1t] LT",lastWeek:"[L~\xe1st] dddd [\xe1t] LT",sameElse:"L"},relativeTime:{future:"\xed~\xf1 %s",past:"%s \xe1~g\xf3",s:"\xe1 ~f\xe9w ~s\xe9c\xf3~\xf1ds",ss:"%d s~\xe9c\xf3\xf1~ds",m:"\xe1 ~m\xed\xf1~\xfat\xe9",mm:"%d m~\xed\xf1\xfa~t\xe9s",h:"\xe1~\xf1 h\xf3~\xfar",hh:"%d h~\xf3\xfars",d:"\xe1 ~d\xe1\xfd",dd:"%d d~\xe1\xfds",M:"\xe1 ~m\xf3\xf1~th",MM:"%d m~\xf3\xf1t~hs",y:"\xe1 ~\xfd\xe9\xe1r",yy:"%d \xfd~\xe9\xe1rs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(O){var R=O%10;return O+(1==~~(O%100/10)?"th":1===R?"st":2===R?"nd":3===R?"rd":"th")},week:{dow:1,doy:4}})}(S(6908))},1313:function(v,x,S){!function(D){"use strict";D.defineLocale("yo",{months:"S\u1eb9\u0301r\u1eb9\u0301_E\u0300re\u0300le\u0300_\u1eb8r\u1eb9\u0300na\u0300_I\u0300gbe\u0301_E\u0300bibi_O\u0300ku\u0300du_Ag\u1eb9mo_O\u0300gu\u0301n_Owewe_\u1ecc\u0300wa\u0300ra\u0300_Be\u0301lu\u0301_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),monthsShort:"S\u1eb9\u0301r_E\u0300rl_\u1eb8rn_I\u0300gb_E\u0300bi_O\u0300ku\u0300_Ag\u1eb9_O\u0300gu\u0301_Owe_\u1ecc\u0300wa\u0300_Be\u0301l_\u1ecc\u0300p\u1eb9\u0300\u0300".split("_"),weekdays:"A\u0300i\u0300ku\u0301_Aje\u0301_I\u0300s\u1eb9\u0301gun_\u1eccj\u1ecd\u0301ru\u0301_\u1eccj\u1ecd\u0301b\u1ecd_\u1eb8ti\u0300_A\u0300ba\u0301m\u1eb9\u0301ta".split("_"),weekdaysShort:"A\u0300i\u0300k_Aje\u0301_I\u0300s\u1eb9\u0301_\u1eccjr_\u1eccjb_\u1eb8ti\u0300_A\u0300ba\u0301".split("_"),weekdaysMin:"A\u0300i\u0300_Aj_I\u0300s_\u1eccr_\u1eccb_\u1eb8t_A\u0300b".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[O\u0300ni\u0300 ni] LT",nextDay:"[\u1ecc\u0300la ni] LT",nextWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301n'b\u1ecd] [ni] LT",lastDay:"[A\u0300na ni] LT",lastWeek:"dddd [\u1eccs\u1eb9\u0300 to\u0301l\u1ecd\u0301] [ni] LT",sameElse:"L"},relativeTime:{future:"ni\u0301 %s",past:"%s k\u1ecdja\u0301",s:"i\u0300s\u1eb9ju\u0301 aaya\u0301 die",ss:"aaya\u0301 %d",m:"i\u0300s\u1eb9ju\u0301 kan",mm:"i\u0300s\u1eb9ju\u0301 %d",h:"wa\u0301kati kan",hh:"wa\u0301kati %d",d:"\u1ecdj\u1ecd\u0301 kan",dd:"\u1ecdj\u1ecd\u0301 %d",M:"osu\u0300 kan",MM:"osu\u0300 %d",y:"\u1ecddu\u0301n kan",yy:"\u1ecddu\u0301n %d"},dayOfMonthOrdinalParse:/\u1ecdj\u1ecd\u0301\s\d{1,2}/,ordinal:"\u1ecdj\u1ecd\u0301 %d",week:{dow:1,doy:4}})}(S(6908))},4490:function(v,x,S){!function(D){"use strict";D.defineLocale("zh-cn",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u5468\u65e5_\u5468\u4e00_\u5468\u4e8c_\u5468\u4e09_\u5468\u56db_\u5468\u4e94_\u5468\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5Ah\u70b9mm\u5206",LLLL:"YYYY\u5e74M\u6708D\u65e5ddddAh\u70b9mm\u5206",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(O,R){return 12===O&&(O=0),"\u51cc\u6668"===R||"\u65e9\u4e0a"===R||"\u4e0a\u5348"===R?O:"\u4e0b\u5348"===R||"\u665a\u4e0a"===R?O+12:O>=11?O:O+12},meridiem:function(O,R,U){var q=100*O+R;return q<600?"\u51cc\u6668":q<900?"\u65e9\u4e0a":q<1130?"\u4e0a\u5348":q<1230?"\u4e2d\u5348":q<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u5468)/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"\u65e5";case"M":return O+"\u6708";case"w":case"W":return O+"\u5468";default:return O}},relativeTime:{future:"%s\u5185",past:"%s\u524d",s:"\u51e0\u79d2",ss:"%d \u79d2",m:"1 \u5206\u949f",mm:"%d \u5206\u949f",h:"1 \u5c0f\u65f6",hh:"%d \u5c0f\u65f6",d:"1 \u5929",dd:"%d \u5929",M:"1 \u4e2a\u6708",MM:"%d \u4e2a\u6708",y:"1 \u5e74",yy:"%d \u5e74"},week:{dow:1,doy:4}})}(S(6908))},5910:function(v,x,S){!function(D){"use strict";D.defineLocale("zh-hk",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(O,R){return 12===O&&(O=0),"\u51cc\u6668"===R||"\u65e9\u4e0a"===R||"\u4e0a\u5348"===R?O:"\u4e2d\u5348"===R?O>=11?O:O+12:"\u4e0b\u5348"===R||"\u665a\u4e0a"===R?O+12:void 0},meridiem:function(O,R,U){var q=100*O+R;return q<600?"\u51cc\u6668":q<900?"\u65e9\u4e0a":q<1130?"\u4e0a\u5348":q<1230?"\u4e2d\u5348":q<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929]LT",nextDay:"[\u660e\u5929]LT",nextWeek:"[\u4e0b]ddddLT",lastDay:"[\u6628\u5929]LT",lastWeek:"[\u4e0a]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"\u65e5";case"M":return O+"\u6708";case"w":case"W":return O+"\u9031";default:return O}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(S(6908))},4223:function(v,x,S){!function(D){"use strict";D.defineLocale("zh-tw",{months:"\u4e00\u6708_\u4e8c\u6708_\u4e09\u6708_\u56db\u6708_\u4e94\u6708_\u516d\u6708_\u4e03\u6708_\u516b\u6708_\u4e5d\u6708_\u5341\u6708_\u5341\u4e00\u6708_\u5341\u4e8c\u6708".split("_"),monthsShort:"1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),weekdays:"\u661f\u671f\u65e5_\u661f\u671f\u4e00_\u661f\u671f\u4e8c_\u661f\u671f\u4e09_\u661f\u671f\u56db_\u661f\u671f\u4e94_\u661f\u671f\u516d".split("_"),weekdaysShort:"\u9031\u65e5_\u9031\u4e00_\u9031\u4e8c_\u9031\u4e09_\u9031\u56db_\u9031\u4e94_\u9031\u516d".split("_"),weekdaysMin:"\u65e5_\u4e00_\u4e8c_\u4e09_\u56db_\u4e94_\u516d".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY\u5e74M\u6708D\u65e5",LLL:"YYYY\u5e74M\u6708D\u65e5 HH:mm",LLLL:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm",l:"YYYY/M/D",ll:"YYYY\u5e74M\u6708D\u65e5",lll:"YYYY\u5e74M\u6708D\u65e5 HH:mm",llll:"YYYY\u5e74M\u6708D\u65e5dddd HH:mm"},meridiemParse:/\u51cc\u6668|\u65e9\u4e0a|\u4e0a\u5348|\u4e2d\u5348|\u4e0b\u5348|\u665a\u4e0a/,meridiemHour:function(O,R){return 12===O&&(O=0),"\u51cc\u6668"===R||"\u65e9\u4e0a"===R||"\u4e0a\u5348"===R?O:"\u4e2d\u5348"===R?O>=11?O:O+12:"\u4e0b\u5348"===R||"\u665a\u4e0a"===R?O+12:void 0},meridiem:function(O,R,U){var q=100*O+R;return q<600?"\u51cc\u6668":q<900?"\u65e9\u4e0a":q<1130?"\u4e0a\u5348":q<1230?"\u4e2d\u5348":q<1800?"\u4e0b\u5348":"\u665a\u4e0a"},calendar:{sameDay:"[\u4eca\u5929] LT",nextDay:"[\u660e\u5929] LT",nextWeek:"[\u4e0b]dddd LT",lastDay:"[\u6628\u5929] LT",lastWeek:"[\u4e0a]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(\u65e5|\u6708|\u9031)/,ordinal:function(O,R){switch(R){case"d":case"D":case"DDD":return O+"\u65e5";case"M":return O+"\u6708";case"w":case"W":return O+"\u9031";default:return O}},relativeTime:{future:"%s\u5167",past:"%s\u524d",s:"\u5e7e\u79d2",ss:"%d \u79d2",m:"1 \u5206\u9418",mm:"%d \u5206\u9418",h:"1 \u5c0f\u6642",hh:"%d \u5c0f\u6642",d:"1 \u5929",dd:"%d \u5929",M:"1 \u500b\u6708",MM:"%d \u500b\u6708",y:"1 \u5e74",yy:"%d \u5e74"}})}(S(6908))},6908:function(v,x,S){(v=S.nmd(v)).exports=function(){"use strict";var D,rt;function n(){return D.apply(null,arguments)}function R(E){return E instanceof Array||"[object Array]"===Object.prototype.toString.call(E)}function U(E){return null!=E&&"[object Object]"===Object.prototype.toString.call(E)}function te(E){return void 0===E}function ie(E){return"number"==typeof E||"[object Number]"===Object.prototype.toString.call(E)}function pe(E){return E instanceof Date||"[object Date]"===Object.prototype.toString.call(E)}function de(E,B){var ae,W=[];for(ae=0;ae<E.length;++ae)W.push(B(E[ae],ae));return W}function Ce(E,B){return Object.prototype.hasOwnProperty.call(E,B)}function me(E,B){for(var W in B)Ce(B,W)&&(E[W]=B[W]);return Ce(B,"toString")&&(E.toString=B.toString),Ce(B,"valueOf")&&(E.valueOf=B.valueOf),E}function we(E,B,W,ae){return fl(E,B,W,ae,!0).utc()}function Pe(E){return null==E._pf&&(E._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),E._pf}function Je(E){if(null==E._isValid){var B=Pe(E),W=rt.call(B.parsedDateParts,function(be){return null!=be}),ae=!isNaN(E._d.getTime())&&B.overflow<0&&!B.empty&&!B.invalidMonth&&!B.invalidWeekday&&!B.weekdayMismatch&&!B.nullInput&&!B.invalidFormat&&!B.userInvalidated&&(!B.meridiem||B.meridiem&&W);if(E._strict&&(ae=ae&&0===B.charsLeftOver&&0===B.unusedTokens.length&&void 0===B.bigHour),null!=Object.isFrozen&&Object.isFrozen(E))return ae;E._isValid=ae}return E._isValid}function xt(E){var B=we(NaN);return null!=E?me(Pe(B),E):Pe(B).userInvalidated=!0,B}rt=Array.prototype.some?Array.prototype.some:function(E){for(var B=Object(this),W=B.length>>>0,ae=0;ae<W;ae++)if(ae in B&&E.call(this,B[ae],ae,B))return!0;return!1};var ln=n.momentProperties=[];function Mi(E,B){var W,ae,be;if(te(B._isAMomentObject)||(E._isAMomentObject=B._isAMomentObject),te(B._i)||(E._i=B._i),te(B._f)||(E._f=B._f),te(B._l)||(E._l=B._l),te(B._strict)||(E._strict=B._strict),te(B._tzm)||(E._tzm=B._tzm),te(B._isUTC)||(E._isUTC=B._isUTC),te(B._offset)||(E._offset=B._offset),te(B._pf)||(E._pf=Pe(B)),te(B._locale)||(E._locale=B._locale),ln.length>0)for(W=0;W<ln.length;W++)te(be=B[ae=ln[W]])||(E[ae]=be);return E}var xo=!1;function _n(E){Mi(this,E),this._d=new Date(null!=E._d?E._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===xo&&(xo=!0,n.updateOffset(this),xo=!1)}function $t(E){return E instanceof _n||null!=E&&null!=E._isAMomentObject}function cn(E){return E<0?Math.ceil(E)||0:Math.floor(E)}function vt(E){var B=+E,W=0;return 0!==B&&isFinite(B)&&(W=cn(B)),W}function Aa(E,B,W){var at,ae=Math.min(E.length,B.length),be=Math.abs(E.length-B.length),Ne=0;for(at=0;at<ae;at++)(W&&E[at]!==B[at]||!W&&vt(E[at])!==vt(B[at]))&&Ne++;return Ne+be}function li(E){!1===n.suppressDeprecationWarnings&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+E)}function zn(E,B){var W=!0;return me(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,E),W){for(var be,ae=[],Ne=0;Ne<arguments.length;Ne++){if(be="","object"==typeof arguments[Ne]){for(var at in be+="\n["+Ne+"] ",arguments[0])be+=at+": "+arguments[0][at]+", ";be=be.slice(0,-2)}else be=arguments[Ne];ae.push(be)}li(E+"\nArguments: "+Array.prototype.slice.call(ae).join("")+"\n"+(new Error).stack),W=!1}return B.apply(this,arguments)},B)}var xa,Bi={};function $n(E,B){null!=n.deprecationHandler&&n.deprecationHandler(E,B),Bi[E]||(li(B),Bi[E]=!0)}function xi(E){return E instanceof Function||"[object Function]"===Object.prototype.toString.call(E)}function Vc(E,B){var ae,W=me({},E);for(ae in B)Ce(B,ae)&&(U(E[ae])&&U(B[ae])?(W[ae]={},me(W[ae],E[ae]),me(W[ae],B[ae])):null!=B[ae]?W[ae]=B[ae]:delete W[ae]);for(ae in E)Ce(E,ae)&&!Ce(B,ae)&&U(E[ae])&&(W[ae]=me({},W[ae]));return W}function Ba(E){null!=E&&this.set(E)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,xa=Object.keys?Object.keys:function(E){var B,W=[];for(B in E)Ce(E,B)&&W.push(B);return W};var Xi={};function Gn(E,B){var W=E.toLowerCase();Xi[W]=Xi[W+"s"]=Xi[B]=E}function Po(E){return"string"==typeof E?Xi[E]||Xi[E.toLowerCase()]:void 0}function Ho(E){var W,ae,B={};for(ae in E)Ce(E,ae)&&(W=Po(ae))&&(B[W]=E[ae]);return B}var Ln={};function So(E,B){Ln[E]=B}function eo(E,B,W){var ae=""+Math.abs(E);return(E>=0?W?"+":"":"-")+Math.pow(10,Math.max(0,B-ae.length)).toString().substr(1)+ae}var Fr=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,lo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,co={},qn={};function Gt(E,B,W,ae){var be=ae;"string"==typeof ae&&(be=function(){return this[ae]()}),E&&(qn[E]=be),B&&(qn[B[0]]=function(){return eo(be.apply(this,arguments),B[1],B[2])}),W&&(qn[W]=function(){return this.localeData().ordinal(be.apply(this,arguments),E)})}function mr(E){return E.match(/\[[\s\S]/)?E.replace(/^\[|\]$/g,""):E.replace(/\\/g,"")}function Li(E,B){return E.isValid()?(B=qt(B,E.localeData()),co[B]=co[B]||function pc(E){var W,ae,B=E.match(Fr);for(W=0,ae=B.length;W<ae;W++)B[W]=qn[B[W]]?qn[B[W]]:mr(B[W]);return function(be){var at,Ne="";for(at=0;at<ae;at++)Ne+=xi(B[at])?B[at].call(be,E):B[at];return Ne}}(B),co[B](E)):E.localeData().invalidDate()}function qt(E,B){var W=5;function ae(be){return B.longDateFormat(be)||be}for(lo.lastIndex=0;W>=0&&lo.test(E);)E=E.replace(lo,ae),lo.lastIndex=0,W-=1;return E}var Zt=/\d/,Go=/\d\d/,Ps=/\d{3}/,or=/\d{4}/,An=/[+-]?\d{6}/,In=/\d\d?/,cl=/\d\d\d\d?/,ge=/\d\d\d\d\d\d?/,dt=/\d{1,3}/,et=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,tn=/\d+/,on=/[+-]?\d+/,rn=/Z|[+-]\d\d:?\d\d/gi,Un=/Z|[+-]\d\d(?::?\d\d)?/gi,J=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Qe={};function We(E,B,W){Qe[E]=xi(B)?B:function(ae,be){return ae&&W?W:B}}function he(E,B){return Ce(Qe,E)?Qe[E](B._strict,B._locale):new RegExp(function _t(E){return Rt(E.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(B,W,ae,be,Ne){return W||ae||be||Ne}))}(E))}function Rt(E){return E.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Ft={};function wt(E,B){var W,ae=B;for("string"==typeof E&&(E=[E]),ie(B)&&(ae=function(be,Ne){Ne[B]=vt(be)}),W=0;W<E.length;W++)Ft[E[W]]=ae}function rr(E,B){wt(E,function(W,ae,be,Ne){be._w=be._w||{},B(W,be._w,be,Ne)})}function Bn(E,B,W){null!=B&&Ce(Ft,E)&&Ft[E](B,W._a,W,E)}function Os(E){return cs(E)?366:365}function cs(E){return E%4==0&&E%100!=0||E%400==0}Gt("Y",0,0,function(){var E=this.year();return E<=9999?""+E:"+"+E}),Gt(0,["YY",2],0,function(){return this.year()%100}),Gt(0,["YYYY",4],0,"year"),Gt(0,["YYYYY",5],0,"year"),Gt(0,["YYYYYY",6,!0],0,"year"),Gn("year","y"),So("year",1),We("Y",on),We("YY",In,Go),We("YYYY",et,or),We("YYYYY",Ot,An),We("YYYYYY",Ot,An),wt(["YYYYY","YYYYYY"],0),wt("YYYY",function(E,B){B[0]=2===E.length?n.parseTwoDigitYear(E):vt(E)}),wt("YY",function(E,B){B[0]=n.parseTwoDigitYear(E)}),wt("Y",function(E,B){B[0]=parseInt(E,10)}),n.parseTwoDigitYear=function(E){return vt(E)+(vt(E)>68?1900:2e3)};var ki,Yn=Ja("FullYear",!0);function Ja(E,B){return function(W){return null!=W?(dl(this,E,W),n.updateOffset(this,B),this):Gc(this,E)}}function Gc(E,B){return E.isValid()?E._d["get"+(E._isUTC?"UTC":"")+B]():NaN}function dl(E,B,W){E.isValid()&&!isNaN(W)&&("FullYear"===B&&cs(E.year())&&1===E.month()&&29===E.date()?E._d["set"+(E._isUTC?"UTC":"")+B](W,E.month(),Vs(W,E.month())):E._d["set"+(E._isUTC?"UTC":"")+B](W))}function Vs(E,B){if(isNaN(E)||isNaN(B))return NaN;var W=function Hl(E,B){return(E%B+B)%B}(B,12);return E+=(B-W)/12,1===W?cs(E)?29:28:31-W%7%2}ki=Array.prototype.indexOf?Array.prototype.indexOf:function(E){var B;for(B=0;B<this.length;++B)if(this[B]===E)return B;return-1},Gt("M",["MM",2],"Mo",function(){return this.month()+1}),Gt("MMM",0,0,function(E){return this.localeData().monthsShort(this,E)}),Gt("MMMM",0,0,function(E){return this.localeData().months(this,E)}),Gn("month","M"),So("month",8),We("M",In),We("MM",In,Go),We("MMM",function(E,B){return B.monthsShortRegex(E)}),We("MMMM",function(E,B){return B.monthsRegex(E)}),wt(["M","MM"],function(E,B){B[1]=vt(E)-1}),wt(["MMM","MMMM"],function(E,B,W,ae){var be=W._locale.monthsParse(E,ae,W._strict);null!=be?B[1]=be:Pe(W).invalidMonth=E});var Xu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,zi="January_February_March_April_May_June_July_August_September_October_November_December".split("_");var Jg="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function ep(E,B,W){var ae,be,Ne,at=E.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ae=0;ae<12;++ae)Ne=we([2e3,ae]),this._shortMonthsParse[ae]=this.monthsShort(Ne,"").toLocaleLowerCase(),this._longMonthsParse[ae]=this.months(Ne,"").toLocaleLowerCase();return W?"MMM"===B?-1!==(be=ki.call(this._shortMonthsParse,at))?be:null:-1!==(be=ki.call(this._longMonthsParse,at))?be:null:"MMM"===B?-1!==(be=ki.call(this._shortMonthsParse,at))||-1!==(be=ki.call(this._longMonthsParse,at))?be:null:-1!==(be=ki.call(this._longMonthsParse,at))||-1!==(be=ki.call(this._shortMonthsParse,at))?be:null}function Bt(E,B){var W;if(!E.isValid())return E;if("string"==typeof B)if(/^\d+$/.test(B))B=vt(B);else if(!ie(B=E.localeData().monthsParse(B)))return E;return W=Math.min(E.date(),Vs(E.year(),B)),E._d["set"+(E._isUTC?"UTC":"")+"Month"](B,W),E}function pl(E){return null!=E?(Bt(this,E),n.updateOffset(this,!0),this):Gc(this,"Month")}var Ge=J;var ds=J;function zs(){function E(at,Wn){return Wn.length-at.length}var be,Ne,B=[],W=[],ae=[];for(be=0;be<12;be++)Ne=we([2e3,be]),B.push(this.monthsShort(Ne,"")),W.push(this.months(Ne,"")),ae.push(this.months(Ne,"")),ae.push(this.monthsShort(Ne,""));for(B.sort(E),W.sort(E),ae.sort(E),be=0;be<12;be++)B[be]=Rt(B[be]),W[be]=Rt(W[be]);for(be=0;be<24;be++)ae[be]=Rt(ae[be]);this._monthsRegex=new RegExp("^("+ae.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+W.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+B.join("|")+")","i")}function gc(E,B,W,ae,be,Ne,at){var Wn;return E<100&&E>=0?(Wn=new Date(E+400,B,W,ae,be,Ne,at),isFinite(Wn.getFullYear())&&Wn.setFullYear(E)):Wn=new Date(E,B,W,ae,be,Ne,at),Wn}function da(E){var B;if(E<100&&E>=0){var W=Array.prototype.slice.call(arguments);W[0]=E+400,B=new Date(Date.UTC.apply(null,W)),isFinite(B.getUTCFullYear())&&B.setUTCFullYear(E)}else B=new Date(Date.UTC.apply(null,arguments));return B}function fc(E,B,W){var ae=7+B-W;return-(7+da(E,0,ae).getUTCDay()-B)%7+ae-1}function Jc(E,B,W,ae,be){var Ci,$r,Wn=1+7*(B-1)+(7+W-ae)%7+fc(E,ae,be);return Wn<=0?$r=Os(Ci=E-1)+Wn:Wn>Os(E)?(Ci=E+1,$r=Wn-Os(E)):(Ci=E,$r=Wn),{year:Ci,dayOfYear:$r}}function zd(E,B,W){var Ne,at,ae=fc(E.year(),B,W),be=Math.floor((E.dayOfYear()-ae-1)/7)+1;return be<1?Ne=be+uo(at=E.year()-1,B,W):be>uo(E.year(),B,W)?(Ne=be-uo(E.year(),B,W),at=E.year()+1):(at=E.year(),Ne=be),{week:Ne,year:at}}function uo(E,B,W){var ae=fc(E,B,W),be=fc(E+1,B,W);return(Os(E)-ae+be)/7}Gt("w",["ww",2],"wo","week"),Gt("W",["WW",2],"Wo","isoWeek"),Gn("week","w"),Gn("isoWeek","W"),So("week",5),So("isoWeek",5),We("w",In),We("ww",In,Go),We("W",In),We("WW",In,Go),rr(["w","ww","W","WW"],function(E,B,W,ae){B[ae.substr(0,1)]=vt(E)});function Wg(E,B){return E.slice(B,7).concat(E.slice(0,B))}Gt("d",0,"do","day"),Gt("dd",0,0,function(E){return this.localeData().weekdaysMin(this,E)}),Gt("ddd",0,0,function(E){return this.localeData().weekdaysShort(this,E)}),Gt("dddd",0,0,function(E){return this.localeData().weekdays(this,E)}),Gt("e",0,0,"weekday"),Gt("E",0,0,"isoWeekday"),Gn("day","d"),Gn("weekday","e"),Gn("isoWeekday","E"),So("day",11),So("weekday",11),So("isoWeekday",11),We("d",In),We("e",In),We("E",In),We("dd",function(E,B){return B.weekdaysMinRegex(E)}),We("ddd",function(E,B){return B.weekdaysShortRegex(E)}),We("dddd",function(E,B){return B.weekdaysRegex(E)}),rr(["dd","ddd","dddd"],function(E,B,W,ae){var be=W._locale.weekdaysParse(E,ae,W._strict);null!=be?B.d=be:Pe(W).invalidWeekday=E}),rr(["d","e","E"],function(E,B,W,ae){B[ae]=vt(E)});var ob="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var Km="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var _h="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function tp(E,B,W){var ae,be,Ne,at=E.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ae=0;ae<7;++ae)Ne=we([2e3,1]).day(ae),this._minWeekdaysParse[ae]=this.weekdaysMin(Ne,"").toLocaleLowerCase(),this._shortWeekdaysParse[ae]=this.weekdaysShort(Ne,"").toLocaleLowerCase(),this._weekdaysParse[ae]=this.weekdays(Ne,"").toLocaleLowerCase();return W?"dddd"===B?-1!==(be=ki.call(this._weekdaysParse,at))?be:null:"ddd"===B?-1!==(be=ki.call(this._shortWeekdaysParse,at))?be:null:-1!==(be=ki.call(this._minWeekdaysParse,at))?be:null:"dddd"===B?-1!==(be=ki.call(this._weekdaysParse,at))||-1!==(be=ki.call(this._shortWeekdaysParse,at))||-1!==(be=ki.call(this._minWeekdaysParse,at))?be:null:"ddd"===B?-1!==(be=ki.call(this._shortWeekdaysParse,at))||-1!==(be=ki.call(this._weekdaysParse,at))||-1!==(be=ki.call(this._minWeekdaysParse,at))?be:null:-1!==(be=ki.call(this._minWeekdaysParse,at))||-1!==(be=ki.call(this._weekdaysParse,at))||-1!==(be=ki.call(this._shortWeekdaysParse,at))?be:null}var Xg=J;var ef=J;var qd=J;function Qc(){function E(Wr,ft){return ft.length-Wr.length}var Ne,at,Wn,Ci,$r,B=[],W=[],ae=[],be=[];for(Ne=0;Ne<7;Ne++)at=we([2e3,1]).day(Ne),Wn=this.weekdaysMin(at,""),Ci=this.weekdaysShort(at,""),$r=this.weekdays(at,""),B.push(Wn),W.push(Ci),ae.push($r),be.push(Wn),be.push(Ci),be.push($r);for(B.sort(E),W.sort(E),ae.sort(E),be.sort(E),Ne=0;Ne<7;Ne++)W[Ne]=Rt(W[Ne]),ae[Ne]=Rt(ae[Ne]),be[Ne]=Rt(be[Ne]);this._weekdaysRegex=new RegExp("^("+be.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+ae.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+W.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+B.join("|")+")","i")}function vh(){return this.hours()%12||12}function yh(E,B){Gt(E,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),B)})}function Qa(E,B){return B._meridiemParse}Gt("H",["HH",2],0,"hour"),Gt("h",["hh",2],0,vh),Gt("k",["kk",2],0,function Lt(){return this.hours()||24}),Gt("hmm",0,0,function(){return""+vh.apply(this)+eo(this.minutes(),2)}),Gt("hmmss",0,0,function(){return""+vh.apply(this)+eo(this.minutes(),2)+eo(this.seconds(),2)}),Gt("Hmm",0,0,function(){return""+this.hours()+eo(this.minutes(),2)}),Gt("Hmmss",0,0,function(){return""+this.hours()+eo(this.minutes(),2)+eo(this.seconds(),2)}),yh("a",!0),yh("A",!1),Gn("hour","h"),So("hour",13),We("a",Qa),We("A",Qa),We("H",In),We("h",In),We("k",In),We("HH",In,Go),We("hh",In,Go),We("kk",In,Go),We("hmm",cl),We("hmmss",ge),We("Hmm",cl),We("Hmmss",ge),wt(["H","HH"],3),wt(["k","kk"],function(E,B,W){var ae=vt(E);B[3]=24===ae?0:ae}),wt(["a","A"],function(E,B,W){W._isPm=W._locale.isPM(E),W._meridiem=E}),wt(["h","hh"],function(E,B,W){B[3]=vt(E),Pe(W).bigHour=!0}),wt("hmm",function(E,B,W){var ae=E.length-2;B[3]=vt(E.substr(0,ae)),B[4]=vt(E.substr(ae)),Pe(W).bigHour=!0}),wt("hmmss",function(E,B,W){var ae=E.length-4,be=E.length-2;B[3]=vt(E.substr(0,ae)),B[4]=vt(E.substr(ae,2)),B[5]=vt(E.substr(be)),Pe(W).bigHour=!0}),wt("Hmm",function(E,B,W){var ae=E.length-2;B[3]=vt(E.substr(0,ae)),B[4]=vt(E.substr(ae))}),wt("Hmmss",function(E,B,W){var ae=E.length-4,be=E.length-2;B[3]=vt(E.substr(0,ae)),B[4]=vt(E.substr(ae,2)),B[5]=vt(E.substr(be))});var Wc,Jd=Ja("Hours",!0),sb={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:zi,monthsShort:Jg,week:{dow:0,doy:6},weekdays:ob,weekdaysMin:_h,weekdaysShort:Km,meridiemParse:/[ap]\.?m?\.?/i},hi={},Qd={};function qs(E){return E&&E.toLowerCase().replace("_","-")}function mc(E){var B=null;if(!hi[E]&&v&&v.exports)try{B=Wc._abbr,S(6700)("./"+E),hl(B)}catch{}return hi[E]}function hl(E,B){var W;return E&&((W=te(B)?Js(E):gl(E,B))?Wc=W:typeof console<"u"&&console.warn&&console.warn("Locale "+E+" not found. Did you forget to load it?")),Wc._abbr}function gl(E,B){if(null!==B){var W,ae=sb;if(B.abbr=E,null!=hi[E])$n("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),ae=hi[E]._config;else if(null!=B.parentLocale)if(null!=hi[B.parentLocale])ae=hi[B.parentLocale]._config;else{if(null==(W=mc(B.parentLocale)))return Qd[B.parentLocale]||(Qd[B.parentLocale]=[]),Qd[B.parentLocale].push({name:E,config:B}),null;ae=W._config}return hi[E]=new Ba(Vc(ae,B)),Qd[E]&&Qd[E].forEach(function(be){gl(be.name,be.config)}),hl(E),hi[E]}return delete hi[E],null}function Js(E){var B;if(E&&E._locale&&E._locale._abbr&&(E=E._locale._abbr),!E)return Wc;if(!R(E)){if(B=mc(E))return B;E=[E]}return function ua(E){for(var W,ae,be,Ne,B=0;B<E.length;){for(W=(Ne=qs(E[B]).split("-")).length,ae=(ae=qs(E[B+1]))?ae.split("-"):null;W>0;){if(be=mc(Ne.slice(0,W).join("-")))return be;if(ae&&ae.length>=W&&Aa(Ne,ae,!0)>=W-1)break;W--}B++}return Wc}(E)}function ip(E){var B,W=E._a;return W&&-2===Pe(E).overflow&&(B=W[1]<0||W[1]>11?1:W[2]<1||W[2]>Vs(W[0],W[1])?2:W[3]<0||W[3]>24||24===W[3]&&(0!==W[4]||0!==W[5]||0!==W[6])?3:W[4]<0||W[4]>59?4:W[5]<0||W[5]>59?5:W[6]<0||W[6]>999?6:-1,Pe(E)._overflowDayOfYear&&(B<0||B>2)&&(B=2),Pe(E)._overflowWeeks&&-1===B&&(B=7),Pe(E)._overflowWeekday&&-1===B&&(B=8),Pe(E).overflow=B),E}function $o(E,B,W){return E??B??W}function Qs(E){var B,W,be,Ne,at,ae=[];if(!E._d){for(be=function Ah(E){var B=new Date(n.now());return E._useUTC?[B.getUTCFullYear(),B.getUTCMonth(),B.getUTCDate()]:[B.getFullYear(),B.getMonth(),B.getDate()]}(E),E._w&&null==E._a[2]&&null==E._a[1]&&function Rn(E){var B,W,ae,be,Ne,at,Wn,Ci;if(null!=(B=E._w).GG||null!=B.W||null!=B.E)Ne=1,at=4,W=$o(B.GG,E._a[0],zd(vo(),1,4).year),ae=$o(B.W,1),((be=$o(B.E,1))<1||be>7)&&(Ci=!0);else{Ne=E._locale._week.dow,at=E._locale._week.doy;var $r=zd(vo(),Ne,at);W=$o(B.gg,E._a[0],$r.year),ae=$o(B.w,$r.week),null!=B.d?((be=B.d)<0||be>6)&&(Ci=!0):null!=B.e?(be=B.e+Ne,(B.e<0||B.e>6)&&(Ci=!0)):be=Ne}ae<1||ae>uo(W,Ne,at)?Pe(E)._overflowWeeks=!0:null!=Ci?Pe(E)._overflowWeekday=!0:(Wn=Jc(W,ae,be,Ne,at),E._a[0]=Wn.year,E._dayOfYear=Wn.dayOfYear)}(E),null!=E._dayOfYear&&(at=$o(E._a[0],be[0]),(E._dayOfYear>Os(at)||0===E._dayOfYear)&&(Pe(E)._overflowDayOfYear=!0),W=da(at,0,E._dayOfYear),E._a[1]=W.getUTCMonth(),E._a[2]=W.getUTCDate()),B=0;B<3&&null==E._a[B];++B)E._a[B]=ae[B]=be[B];for(;B<7;B++)E._a[B]=ae[B]=E._a[B]??(2===B?1:0);24===E._a[3]&&0===E._a[4]&&0===E._a[5]&&0===E._a[6]&&(E._nextDay=!0,E._a[3]=0),E._d=(E._useUTC?da:gc).apply(null,ae),Ne=E._useUTC?E._d.getUTCDay():E._d.getDay(),null!=E._tzm&&E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),E._nextDay&&(E._a[3]=24),E._w&&typeof E._w.d<"u"&&E._w.d!==Ne&&(Pe(E).weekdayMismatch=!0)}}var Ul=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xh=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Th=/Z|[+-]\d\d(?::?\d\d)?/,op=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Sh=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Kc=/^\/?Date\((\-?\d+)/i;function tf(E){var B,W,Ne,at,Wn,Ci,ae=E._i,be=Ul.exec(ae)||xh.exec(ae);if(be){for(Pe(E).iso=!0,B=0,W=op.length;B<W;B++)if(op[B][1].exec(be[1])){at=op[B][0],Ne=!1!==op[B][2];break}if(null==at)return void(E._isValid=!1);if(be[3]){for(B=0,W=Sh.length;B<W;B++)if(Sh[B][1].exec(be[3])){Wn=(be[2]||" ")+Sh[B][0];break}if(null==Wn)return void(E._isValid=!1)}if(!Ne&&null!=Wn)return void(E._isValid=!1);if(be[4]){if(!Th.exec(be[4]))return void(E._isValid=!1);Ci="Z"}E._f=at+(Wn||"")+(Ci||""),Kd(E)}else E._isValid=!1}var nf=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function fi(E){var B=parseInt(E,10);return B<=49?2e3+B:B<=999?1900+B:B}var _r={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Xc(E){var B=nf.exec(function wh(E){return E.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}(E._i));if(B){var W=function st(E,B,W,ae,be,Ne){var at=[fi(E),Jg.indexOf(B),parseInt(W,10),parseInt(ae,10),parseInt(be,10)];return Ne&&at.push(parseInt(Ne,10)),at}(B[4],B[3],B[2],B[5],B[6],B[7]);if(!function Oo(E,B,W){return!E||Km.indexOf(E)===new Date(B[0],B[1],B[2]).getDay()||(Pe(W).weekdayMismatch=!0,W._isValid=!1,!1)}(B[1],W,E))return;E._a=W,E._tzm=function rf(E,B,W){if(E)return _r[E];if(B)return 0;var ae=parseInt(W,10),be=ae%100;return(ae-be)/100*60+be}(B[8],B[9],B[10]),E._d=da.apply(null,E._a),E._d.setUTCMinutes(E._d.getUTCMinutes()-E._tzm),Pe(E).rfc2822=!0}else E._isValid=!1}function Kd(E){if(E._f!==n.ISO_8601)if(E._f!==n.RFC_2822){E._a=[],Pe(E).empty=!0;var W,ae,be,Ne,at,B=""+E._i,Wn=B.length,Ci=0;for(be=qt(E._f,E._locale).match(Fr)||[],W=0;W<be.length;W++)(ae=(B.match(he(Ne=be[W],E))||[])[0])&&((at=B.substr(0,B.indexOf(ae))).length>0&&Pe(E).unusedInput.push(at),B=B.slice(B.indexOf(ae)+ae.length),Ci+=ae.length),qn[Ne]?(ae?Pe(E).empty=!1:Pe(E).unusedTokens.push(Ne),Bn(Ne,ae,E)):E._strict&&!ae&&Pe(E).unusedTokens.push(Ne);Pe(E).charsLeftOver=Wn-Ci,B.length>0&&Pe(E).unusedInput.push(B),E._a[3]<=12&&!0===Pe(E).bigHour&&E._a[3]>0&&(Pe(E).bigHour=void 0),Pe(E).parsedDateParts=E._a.slice(0),Pe(E).meridiem=E._meridiem,E._a[3]=function Mh(E,B,W){var ae;return null==W?B:null!=E.meridiemHour?E.meridiemHour(B,W):(null!=E.isPM&&((ae=E.isPM(W))&&B<12&&(B+=12),!ae&&12===B&&(B=0)),B)}(E._locale,E._a[3],E._meridiem),Qs(E),ip(E)}else Xc(E);else tf(E)}function af(E){var B=E._i,W=E._f;return E._locale=E._locale||Js(E._l),null===B||void 0===W&&""===B?xt({nullInput:!0}):("string"==typeof B&&(E._i=B=E._locale.preparse(B)),$t(B)?new _n(ip(B)):(pe(B)?E._d=B:R(W)?function ZC(E){var B,W,ae,be,Ne;if(0===E._f.length)return Pe(E).invalidFormat=!0,void(E._d=new Date(NaN));for(be=0;be<E._f.length;be++)Ne=0,B=Mi({},E),null!=E._useUTC&&(B._useUTC=E._useUTC),B._f=E._f[be],Kd(B),Je(B)&&(Ne+=Pe(B).charsLeftOver,Ne+=10*Pe(B).unusedTokens.length,Pe(B).score=Ne,(null==ae||Ne<ae)&&(ae=Ne,W=B));me(E,W||B)}(E):W?Kd(E):function $a(E){var B=E._i;te(B)?E._d=new Date(n.now()):pe(B)?E._d=new Date(B.valueOf()):"string"==typeof B?function Ws(E){var B=Kc.exec(E._i);null===B?(tf(E),!1===E._isValid&&(delete E._isValid,Xc(E),!1===E._isValid&&(delete E._isValid,n.createFromInputFallback(E)))):E._d=new Date(+B[1])}(E):R(B)?(E._a=de(B.slice(0),function(W){return parseInt(W,10)}),Qs(E)):U(B)?function n_(E){if(!E._d){var B=Ho(E._i);E._a=de([B.year,B.month,B.day||B.date,B.hour,B.minute,B.second,B.millisecond],function(W){return W&&parseInt(W,10)}),Qs(E)}}(E):ie(B)?E._d=new Date(B):n.createFromInputFallback(E)}(E),Je(E)||(E._d=null),E))}function fl(E,B,W,ae,be){var Ne={};return(!0===W||!1===W)&&(ae=W,W=void 0),(U(E)&&function q(E){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(E).length;var B;for(B in E)if(E.hasOwnProperty(B))return!1;return!0}(E)||R(E)&&0===E.length)&&(E=void 0),Ne._isAMomentObject=!0,Ne._useUTC=Ne._isUTC=be,Ne._l=W,Ne._i=E,Ne._f=B,Ne._strict=ae,function ar(E){var B=new _n(ip(af(E)));return B._nextDay&&(B.add(1,"d"),B._nextDay=void 0),B}(Ne)}function vo(E,B,W,ae){return fl(E,B,W,ae,!1)}n.createFromInputFallback=zn("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(E){E._d=new Date(E._i+(E._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Xd=zn("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=vo.apply(null,arguments);return this.isValid()&&E.isValid()?E<this?this:E:xt()}),Mr=zn("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var E=vo.apply(null,arguments);return this.isValid()&&E.isValid()?E>this?this:E:xt()});function Dr(E,B){var W,ae;if(1===B.length&&R(B[0])&&(B=B[0]),!B.length)return vo();for(W=B[0],ae=1;ae<B.length;++ae)(!B[ae].isValid()||B[ae][E](W))&&(W=B[ae]);return W}var Yl=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Gi(E){var B=Ho(E),W=B.year||0,ae=B.quarter||0,be=B.month||0,Ne=B.week||B.isoWeek||0,at=B.day||0,Wn=B.hour||0,Ci=B.minute||0,$r=B.second||0,Wr=B.millisecond||0;this._isValid=function td(E){for(var B in E)if(-1===ki.call(Yl,B)||null!=E[B]&&isNaN(E[B]))return!1;for(var W=!1,ae=0;ae<Yl.length;++ae)if(E[Yl[ae]]){if(W)return!1;parseFloat(E[Yl[ae]])!==vt(E[Yl[ae]])&&(W=!0)}return!0}(B),this._milliseconds=+Wr+1e3*$r+6e4*Ci+1e3*Wn*60*60,this._days=+at+7*Ne,this._months=+be+3*ae+12*W,this._data={},this._locale=Js(),this._bubble()}function kh(E){return E instanceof Gi}function rp(E){return E<0?-1*Math.round(-1*E):Math.round(E)}function ap(E,B){Gt(E,0,0,function(){var W=this.utcOffset(),ae="+";return W<0&&(W=-W,ae="-"),ae+eo(~~(W/60),2)+B+eo(~~W%60,2)})}ap("Z",":"),ap("ZZ",""),We("Z",Un),We("ZZ",Un),wt(["Z","ZZ"],function(E,B,W){W._useUTC=!0,W._tzm=Eh(Un,E)});var Ih=/([\+\-]|\d\d)/gi;function Eh(E,B){var W=(B||"").match(E);if(null===W)return null;var be=((W[W.length-1]||[])+"").match(Ih)||["-",0,0],Ne=60*be[1]+vt(be[2]);return 0===Ne?0:"+"===be[0]?Ne:-Ne}function Ph(E,B){var W,ae;return B._isUTC?(W=B.clone(),ae=($t(E)||pe(E)?E.valueOf():vo(E).valueOf())-W.valueOf(),W._d.setTime(W._d.valueOf()+ae),n.updateOffset(W,!1),W):vo(E).local()}function eu(E){return 15*-Math.round(E._d.getTimezoneOffset()/15)}function cf(){return!!this.isValid()&&this._isUTC&&0===this._offset}n.updateOffset=function(){};var tu=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,wa=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ua(E,B){var be,Ne,at,W=E,ae=null;return kh(E)?W={ms:E._milliseconds,d:E._days,M:E._months}:ie(E)?(W={},B?W[B]=E:W.milliseconds=E):(ae=tu.exec(E))?(be="-"===ae[1]?-1:1,W={y:0,d:vt(ae[2])*be,h:vt(ae[3])*be,m:vt(ae[4])*be,s:vt(ae[5])*be,ms:vt(rp(1e3*ae[6]))*be}):(ae=wa.exec(E))?W={y:ml(ae[2],be="-"===ae[1]?-1:1),M:ml(ae[3],be),w:ml(ae[4],be),d:ml(ae[5],be),h:ml(ae[6],be),m:ml(ae[7],be),s:ml(ae[8],be)}:null==W?W={}:"object"==typeof W&&("from"in W||"to"in W)&&(at=function db(E,B){var W;return E.isValid()&&B.isValid()?(B=Ph(B,E),E.isBefore(B)?W=df(E,B):((W=df(B,E)).milliseconds=-W.milliseconds,W.months=-W.months),W):{milliseconds:0,months:0}}(vo(W.from),vo(W.to)),(W={}).ms=at.milliseconds,W.M=at.months),Ne=new Gi(W),kh(E)&&Ce(E,"_locale")&&(Ne._locale=E._locale),Ne}function ml(E,B){var W=E&&parseFloat(E.replace(",","."));return(isNaN(W)?0:W)*B}function df(E,B){var W={};return W.months=B.month()-E.month()+12*(B.year()-E.year()),E.clone().add(W.months,"M").isAfter(B)&&--W.months,W.milliseconds=+B-+E.clone().add(W.months,"M"),W}function Zl(E,B){return function(W,ae){var Ne;return null!==ae&&!isNaN(+ae)&&($n(B,"moment()."+B+"(period, number) is deprecated. Please use moment()."+B+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),Ne=W,W=ae,ae=Ne),nu(this,Ua(W="string"==typeof W?+W:W,ae),E),this}}function nu(E,B,W,ae){var be=B._milliseconds,Ne=rp(B._days),at=rp(B._months);!E.isValid()||(ae=ae??!0,at&&Bt(E,Gc(E,"Month")+at*W),Ne&&dl(E,"Date",Gc(E,"Date")+Ne*W),be&&E._d.setTime(E._d.valueOf()+be*W),ae&&n.updateOffset(E,Ne||at))}Ua.fn=Gi.prototype,Ua.invalid=function nd(){return Ua(NaN)};var VC=Zl(1,"add"),ub=Zl(-1,"subtract");function iu(E,B){var W=12*(B.year()-E.year())+(B.month()-E.month()),ae=E.clone().add(W,"months");return-(W+(B-ae<0?(B-ae)/(ae-E.clone().add(W-1,"months")):(B-ae)/(E.clone().add(W+1,"months")-ae)))||0}function G(E){var B;return void 0===E?this._locale._abbr:(null!=(B=Js(E))&&(this._locale=B),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ne=zn("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(E){return void 0===E?this.localeData():this.locale(E)});function fe(){return this._locale}var $e=6e4,bt=60*$e,Tt=3506328*bt;function ut(E,B){return(E%B+B)%B}function zt(E,B,W){return E<100&&E>=0?new Date(E+400,B,W)-Tt:new Date(E,B,W).valueOf()}function Tn(E,B,W){return E<100&&E>=0?Date.UTC(E+400,B,W)-Tt:Date.UTC(E,B,W)}function Oh(E,B){Gt(0,[E,E.length],0,B)}function cp(E,B,W,ae,be){var Ne;return null==E?zd(this,ae,be).year:(B>(Ne=uo(E,ae,be))&&(B=Ne),lu.call(this,E,B,W,ae,be))}function lu(E,B,W,ae,be){var Ne=Jc(E,B,W,ae,be),at=da(Ne.year,0,Ne.dayOfYear);return this.year(at.getUTCFullYear()),this.month(at.getUTCMonth()),this.date(at.getUTCDate()),this}Gt(0,["gg",2],0,function(){return this.weekYear()%100}),Gt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Oh("gggg","weekYear"),Oh("ggggg","weekYear"),Oh("GGGG","isoWeekYear"),Oh("GGGGG","isoWeekYear"),Gn("weekYear","gg"),Gn("isoWeekYear","GG"),So("weekYear",1),So("isoWeekYear",1),We("G",on),We("g",on),We("GG",In,Go),We("gg",In,Go),We("GGGG",et,or),We("gggg",et,or),We("GGGGG",Ot,An),We("ggggg",Ot,An),rr(["gggg","ggggg","GGGG","GGGGG"],function(E,B,W,ae){B[ae.substr(0,2)]=vt(E)}),rr(["gg","GG"],function(E,B,W,ae){B[ae]=n.parseTwoDigitYear(E)}),Gt("Q",0,"Qo","quarter"),Gn("quarter","Q"),So("quarter",7),We("Q",Zt),wt("Q",function(E,B){B[1]=3*(vt(E)-1)}),Gt("D",["DD",2],"Do","date"),Gn("date","D"),So("date",9),We("D",In),We("DD",In,Go),We("Do",function(E,B){return E?B._dayOfMonthOrdinalParse||B._ordinalParse:B._dayOfMonthOrdinalParseLenient}),wt(["D","DD"],2),wt("Do",function(E,B){B[2]=vt(E.match(In)[0])});var s_=Ja("Date",!0);Gt("DDD",["DDDD",3],"DDDo","dayOfYear"),Gn("dayOfYear","DDD"),So("dayOfYear",4),We("DDD",dt),We("DDDD",Ps),wt(["DDD","DDDD"],function(E,B,W){W._dayOfYear=vt(E)}),Gt("m",["mm",2],0,"minute"),Gn("minute","m"),So("minute",14),We("m",In),We("mm",In,Go),wt(["m","mm"],4);var dp=Ja("Minutes",!1);Gt("s",["ss",2],0,"second"),Gn("second","s"),So("second",15),We("s",In),We("ss",In,Go),wt(["s","ss"],5);var od,Cc=Ja("Seconds",!1);for(Gt("S",0,0,function(){return~~(this.millisecond()/100)}),Gt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Gt(0,["SSS",3],0,"millisecond"),Gt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Gt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Gt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Gt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Gt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Gt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Gn("millisecond","ms"),So("millisecond",16),We("S",dt,Zt),We("SS",dt,Go),We("SSS",dt,Ps),od="SSSS";od.length<=9;od+="S")We(od,tn);function yo(E,B){B[6]=vt(1e3*("0."+E))}for(od="S";od.length<=9;od+="S")wt(od,yo);var GC=Ja("Milliseconds",!1);Gt("z",0,0,"zoneAbbr"),Gt("zz",0,0,"zoneName");var It=_n.prototype;function yb(E){return E}It.add=VC,It.calendar=function uf(E,B){var W=E||vo(),ae=Ph(W,this).startOf("day"),be=n.calendarFormat(this,ae)||"sameElse",Ne=B&&(xi(B[be])?B[be].call(this,W):B[be]);return this.format(Ne||this.localeData().calendar(be,this,vo(W)))},It.clone=function pb(){return new _n(this)},It.diff=function qr(E,B,W){var ae,be,Ne;if(!this.isValid())return NaN;if(!(ae=Ph(E,this)).isValid())return NaN;switch(be=6e4*(ae.utcOffset()-this.utcOffset()),B=Po(B)){case"year":Ne=iu(this,ae)/12;break;case"month":Ne=iu(this,ae);break;case"quarter":Ne=iu(this,ae)/3;break;case"second":Ne=(this-ae)/1e3;break;case"minute":Ne=(this-ae)/6e4;break;case"hour":Ne=(this-ae)/36e5;break;case"day":Ne=(this-ae-be)/864e5;break;case"week":Ne=(this-ae-be)/6048e5;break;default:Ne=this-ae}return W?Ne:cn(Ne)},It.endOf=function En(E){var B;if(void 0===(E=Po(E))||"millisecond"===E||!this.isValid())return this;var W=this._isUTC?Tn:zt;switch(E){case"year":B=W(this.year()+1,0,1)-1;break;case"quarter":B=W(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":B=W(this.year(),this.month()+1,1)-1;break;case"week":B=W(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":B=W(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":B=W(this.year(),this.month(),this.date()+1)-1;break;case"hour":B=this._d.valueOf(),B+=bt-ut(B+(this._isUTC?0:this.utcOffset()*$e),bt)-1;break;case"minute":B=this._d.valueOf(),B+=$e-ut(B,$e)-1;break;case"second":B=this._d.valueOf(),B+=1e3-ut(B,1e3)-1}return this._d.setTime(B),n.updateOffset(this,!0),this},It.format=function ru(E){E||(E=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var B=Li(this,E);return this.localeData().postformat(B)},It.from=function au(E,B){return this.isValid()&&($t(E)&&E.isValid()||vo(E).isValid())?Ua({to:this,from:E}).locale(this.locale()).humanize(!B):this.localeData().invalidDate()},It.fromNow=function vc(E){return this.from(vo(),E)},It.to=function Y(E,B){return this.isValid()&&($t(E)&&E.isValid()||vo(E).isValid())?Ua({from:this,to:E}).locale(this.locale()).humanize(!B):this.localeData().invalidDate()},It.toNow=function z(E){return this.to(vo(),E)},It.get=function la(E){return xi(this[E=Po(E)])?this[E]():this},It.invalidAt=function lp(){return Pe(this).overflow},It.isAfter=function hb(E,B){var W=$t(E)?E:vo(E);return!(!this.isValid()||!W.isValid())&&("millisecond"===(B=Po(B)||"millisecond")?this.valueOf()>W.valueOf():W.valueOf()<this.clone().startOf(B).valueOf())},It.isBefore=function gb(E,B){var W=$t(E)?E:vo(E);return!(!this.isValid()||!W.isValid())&&("millisecond"===(B=Po(B)||"millisecond")?this.valueOf()<W.valueOf():this.clone().endOf(B).valueOf()<W.valueOf())},It.isBetween=function pf(E,B,W,ae){var be=$t(E)?E:vo(E),Ne=$t(B)?B:vo(B);return!!(this.isValid()&&be.isValid()&&Ne.isValid())&&("("===(ae=ae||"()")[0]?this.isAfter(be,W):!this.isBefore(be,W))&&(")"===ae[1]?this.isBefore(Ne,W):!this.isAfter(Ne,W))},It.isSame=function bc(E,B){var ae,W=$t(E)?E:vo(E);return!(!this.isValid()||!W.isValid())&&("millisecond"===(B=Po(B)||"millisecond")?this.valueOf()===W.valueOf():(ae=W.valueOf(),this.clone().startOf(B).valueOf()<=ae&&ae<=this.clone().endOf(B).valueOf()))},It.isSameOrAfter=function hf(E,B){return this.isSame(E,B)||this.isAfter(E,B)},It.isSameOrBefore=function id(E,B){return this.isSame(E,B)||this.isBefore(E,B)},It.isValid=function mb(){return Je(this)},It.lang=ne,It.locale=G,It.localeData=fe,It.max=Mr,It.min=Xd,It.parsingFlags=function _b(){return me({},Pe(this))},It.set=function hc(E,B){if("object"==typeof E)for(var W=function en(E){var B=[];for(var W in E)B.push({unit:W,priority:Ln[W]});return B.sort(function(ae,be){return ae.priority-be.priority}),B}(E=Ho(E)),ae=0;ae<W.length;ae++)this[W[ae].unit](E[W[ae].unit]);else if(xi(this[E=Po(E)]))return this[E](B);return this},It.startOf=function Jn(E){var B;if(void 0===(E=Po(E))||"millisecond"===E||!this.isValid())return this;var W=this._isUTC?Tn:zt;switch(E){case"year":B=W(this.year(),0,1);break;case"quarter":B=W(this.year(),this.month()-this.month()%3,1);break;case"month":B=W(this.year(),this.month(),1);break;case"week":B=W(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":B=W(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":B=W(this.year(),this.month(),this.date());break;case"hour":B=this._d.valueOf(),B-=ut(B+(this._isUTC?0:this.utcOffset()*$e),bt);break;case"minute":B=this._d.valueOf(),B-=ut(B,$e);break;case"second":B=this._d.valueOf(),B-=ut(B,1e3)}return this._d.setTime(B),n.updateOffset(this,!0),this},It.subtract=ub,It.toArray=function yc(){var E=this;return[E.year(),E.month(),E.date(),E.hour(),E.minute(),E.second(),E.millisecond()]},It.toObject=function br(){var E=this;return{years:E.year(),months:E.month(),date:E.date(),hours:E.hours(),minutes:E.minutes(),seconds:E.seconds(),milliseconds:E.milliseconds()}},It.toDate=function Ka(){return new Date(this.valueOf())},It.toISOString=function ou(E){if(!this.isValid())return null;var B=!0!==E,W=B?this.clone().utc():this;return W.year()<0||W.year()>9999?Li(W,B?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):xi(Date.prototype.toISOString)?B?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Li(W,"Z")):Li(W,B?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},It.inspect=function fb(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var E="moment",B="";this.isLocal()||(E=0===this.utcOffset()?"moment.utc":"moment.parseZone",B="Z");var W="["+E+'("]',ae=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY";return this.format(W+ae+"-MM-DD[T]HH:mm:ss.SSS"+B+'[")]')},It.toJSON=function su(){return this.isValid()?this.toISOString():null},It.toString=function gf(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},It.unix=function Br(){return Math.floor(this.valueOf()/1e3)},It.valueOf=function Uo(){return this._d.valueOf()-6e4*(this._offset||0)},It.creationData=function bb(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},It.year=Yn,It.isLeapYear=function zc(){return cs(this.year())},It.weekYear=function a_(E){return cp.call(this,E,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},It.isoWeekYear=function zC(E){return cp.call(this,E,this.isoWeek(),this.isoWeekday(),1,4)},It.quarter=It.quarters=function Nh(E){return null==E?Math.ceil((this.month()+1)/3):this.month(3*(E-1)+this.month()%3)},It.month=pl,It.daysInMonth=function ca(){return Vs(this.year(),this.month())},It.week=It.weeks=function nb(E){var B=this.localeData().week(this);return null==E?B:this.add(7*(E-B),"d")},It.isoWeek=It.isoWeeks=function ib(E){var B=zd(this,1,4).week;return null==E?B:this.add(7*(E-B),"d")},It.weeksInYear=function vb(){var E=this.localeData()._week;return uo(this.year(),E.dow,E.doy)},It.isoWeeksInYear=function ff(){return uo(this.year(),1,4)},It.date=s_,It.day=It.days=function Xm(E){if(!this.isValid())return null!=E?this:NaN;var B=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=E?(E=function Wm(E,B){return"string"!=typeof E?E:isNaN(E)?"number"==typeof(E=B.weekdaysParse(E))?E:null:parseInt(E,10)}(E,this.localeData()),this.add(E-B,"d")):B},It.weekday=function e_(E){if(!this.isValid())return null!=E?this:NaN;var B=(this.day()+7-this.localeData()._week.dow)%7;return null==E?B:this.add(E-B,"d")},It.isoWeekday=function $l(E){if(!this.isValid())return null!=E?this:NaN;if(null!=E){var B=function Qg(E,B){return"string"==typeof E?B.weekdaysParse(E)%7||7:isNaN(E)?null:E}(E,this.localeData());return this.day(this.day()%7?B:B-7)}return this.day()||7},It.dayOfYear=function l_(E){var B=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==E?B:this.add(E-B,"d")},It.hour=It.hours=Jd,It.minute=It.minutes=dp,It.second=It.seconds=Cc,It.millisecond=It.milliseconds=GC,It.utcOffset=function lf(E,B,W){var be,ae=this._offset||0;if(!this.isValid())return null!=E?this:NaN;if(null!=E){if("string"==typeof E){if(null===(E=Eh(Un,E)))return this}else Math.abs(E)<16&&!W&&(E*=60);return!this._isUTC&&B&&(be=eu(this)),this._offset=E,this._isUTC=!0,null!=be&&this.add(be,"m"),ae!==E&&(!B||this._changeInProgress?nu(this,Ua(E-ae,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?ae:eu(this)},It.utc=function pa(E){return this.utcOffset(0,E)},It.local=function _c(E){return this._isUTC&&(this.utcOffset(0,E),this._isUTC=!1,E&&this.subtract(eu(this),"m")),this},It.parseZone=function Qo(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var E=Eh(rn,this._i);null!=E?this.utcOffset(E):this.utcOffset(0,!0)}return this},It.hasAlignedHourOffset=function o_(E){return!!this.isValid()&&(E=E?vo(E).utcOffset():0,(this.utcOffset()-E)%60==0)},It.isDST=function r_(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},It.isLocal=function cb(){return!!this.isValid()&&!this._isUTC},It.isUtcOffset=function jl(){return!!this.isValid()&&this._isUTC},It.isUtc=cf,It.isUTC=cf,It.zoneAbbr=function c_(){return this._isUTC?"UTC":""},It.zoneName=function Lh(){return this._isUTC?"Coordinated Universal Time":""},It.dates=zn("dates accessor is deprecated. Use date instead.",s_),It.months=zn("months accessor is deprecated. Use month instead",pl),It.years=zn("years accessor is deprecated. Use year instead",Yn),It.zone=zn("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function i_(E,B){return null!=E?("string"!=typeof E&&(E=-E),this.utcOffset(E,B),this):-this.utcOffset()}),It.isDSTShifted=zn("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function lb(){if(!te(this._isDSTShifted))return this._isDSTShifted;var E={};if(Mi(E,this),(E=af(E))._a){var B=E._isUTC?we(E._a):vo(E._a);this._isDSTShifted=this.isValid()&&Aa(E._a,B.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted});var qi=Ba.prototype;function d_(E,B,W,ae){var be=Js(),Ne=we().set(ae,B);return be[W](Ne,E)}function JC(E,B,W){if(ie(E)&&(B=E,E=void 0),E=E||"",null!=B)return d_(E,B,W,"month");var ae,be=[];for(ae=0;ae<12;ae++)be[ae]=d_(E,ae,W,"month");return be}function Hr(E,B,W,ae){"boolean"==typeof E?(ie(B)&&(W=B,B=void 0),B=B||""):(W=B=E,E=!1,ie(B)&&(W=B,B=void 0),B=B||"");var be=Js(),Ne=E?be._week.dow:0;if(null!=W)return d_(B,(W+Ne)%7,ae,"day");var at,Wn=[];for(at=0;at<7;at++)Wn[at]=d_(B,(at+Ne)%7,ae,"day");return Wn}qi.calendar=function pi(E,B,W){var ae=this._calendar[E]||this._calendar.sameElse;return xi(ae)?ae.call(B,W):ae},qi.longDateFormat=function Rr(E){var B=this._longDateFormat[E],W=this._longDateFormat[E.toUpperCase()];return B||!W?B:(this._longDateFormat[E]=W.replace(/MMMM|MM|DD|dddd/g,function(ae){return ae.slice(1)}),this._longDateFormat[E])},qi.invalidDate=function mo(){return this._invalidDate},qi.ordinal=function Zi(E){return this._ordinal.replace("%d",E)},qi.preparse=yb,qi.postformat=yb,qi.relativeTime=function Gr(E,B,W,ae){var be=this._relativeTime[W];return xi(be)?be(E,B,W,ae):be.replace(/%d/i,E)},qi.pastFuture=function To(E,B){var W=this._relativeTime[E>0?"future":"past"];return xi(W)?W(B):W.replace(/%s/i,B)},qi.set=function pn(E){var B,W;for(W in E)xi(B=E[W])?this[W]=B:this["_"+W]=B;this._config=E,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},qi.months=function gt(E,B){return E?R(this._months)?this._months[E.month()]:this._months[(this._months.isFormat||Xu).test(B)?"format":"standalone"][E.month()]:R(this._months)?this._months:this._months.standalone},qi.monthsShort=function ul(E,B){return E?R(this._monthsShort)?this._monthsShort[E.month()]:this._monthsShort[Xu.test(B)?"format":"standalone"][E.month()]:R(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},qi.monthsParse=function Vd(E,B,W){var ae,be,Ne;if(this._monthsParseExact)return ep.call(this,E,B,W);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),ae=0;ae<12;ae++){if(be=we([2e3,ae]),W&&!this._longMonthsParse[ae]&&(this._longMonthsParse[ae]=new RegExp("^"+this.months(be,"").replace(".","")+"$","i"),this._shortMonthsParse[ae]=new RegExp("^"+this.monthsShort(be,"").replace(".","")+"$","i")),!W&&!this._monthsParse[ae]&&(Ne="^"+this.months(be,"")+"|^"+this.monthsShort(be,""),this._monthsParse[ae]=new RegExp(Ne.replace(".",""),"i")),W&&"MMMM"===B&&this._longMonthsParse[ae].test(E))return ae;if(W&&"MMM"===B&&this._shortMonthsParse[ae].test(E))return ae;if(!W&&this._monthsParse[ae].test(E))return ae}},qi.monthsRegex=function qc(E){return this._monthsParseExact?(Ce(this,"_monthsRegex")||zs.call(this),E?this._monthsStrictRegex:this._monthsRegex):(Ce(this,"_monthsRegex")||(this._monthsRegex=ds),this._monthsStrictRegex&&E?this._monthsStrictRegex:this._monthsRegex)},qi.monthsShortRegex=function Ha(E){return this._monthsParseExact?(Ce(this,"_monthsRegex")||zs.call(this),E?this._monthsShortStrictRegex:this._monthsShortRegex):(Ce(this,"_monthsShortRegex")||(this._monthsShortRegex=Ge),this._monthsShortStrictRegex&&E?this._monthsShortStrictRegex:this._monthsShortRegex)},qi.week=function Pi(E){return zd(E,this._week.dow,this._week.doy).week},qi.firstDayOfYear=function tb(){return this._week.doy},qi.firstDayOfWeek=function Gs(){return this._week.dow},qi.weekdays=function rb(E,B){var W=R(this._weekdays)?this._weekdays:this._weekdays[E&&!0!==E&&this._weekdays.isFormat.test(B)?"format":"standalone"];return!0===E?Wg(W,this._week.dow):E?W[E.day()]:W},qi.weekdaysMin=function bh(E){return!0===E?Wg(this._weekdaysMin,this._week.dow):E?this._weekdaysMin[E.day()]:this._weekdaysMin},qi.weekdaysShort=function ab(E){return!0===E?Wg(this._weekdaysShort,this._week.dow):E?this._weekdaysShort[E.day()]:this._weekdaysShort},qi.weekdaysParse=function Kg(E,B,W){var ae,be,Ne;if(this._weekdaysParseExact)return tp.call(this,E,B,W);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),ae=0;ae<7;ae++){if(be=we([2e3,1]).day(ae),W&&!this._fullWeekdaysParse[ae]&&(this._fullWeekdaysParse[ae]=new RegExp("^"+this.weekdays(be,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[ae]=new RegExp("^"+this.weekdaysShort(be,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[ae]=new RegExp("^"+this.weekdaysMin(be,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[ae]||(Ne="^"+this.weekdays(be,"")+"|^"+this.weekdaysShort(be,"")+"|^"+this.weekdaysMin(be,""),this._weekdaysParse[ae]=new RegExp(Ne.replace(".",""),"i")),W&&"dddd"===B&&this._fullWeekdaysParse[ae].test(E))return ae;if(W&&"ddd"===B&&this._shortWeekdaysParse[ae].test(E))return ae;if(W&&"dd"===B&&this._minWeekdaysParse[ae].test(E))return ae;if(!W&&this._weekdaysParse[ae].test(E))return ae}},qi.weekdaysRegex=function Gd(E){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||Qc.call(this),E?this._weekdaysStrictRegex:this._weekdaysRegex):(Ce(this,"_weekdaysRegex")||(this._weekdaysRegex=Xg),this._weekdaysStrictRegex&&E?this._weekdaysStrictRegex:this._weekdaysRegex)},qi.weekdaysShortRegex=function Jo(E){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||Qc.call(this),E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ce(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ef),this._weekdaysShortStrictRegex&&E?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},qi.weekdaysMinRegex=function np(E){return this._weekdaysParseExact?(Ce(this,"_weekdaysRegex")||Qc.call(this),E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ce(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=qd),this._weekdaysMinStrictRegex&&E?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},qi.isPM=function Ch(E){return"p"===(E+"").toLowerCase().charAt(0)},qi.meridiem=function Wa(E,B,W){return E>11?W?"pm":"PM":W?"am":"AM"},hl("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(E){var B=E%10;return E+(1===vt(E%100/10)?"th":1===B?"st":2===B?"nd":3===B?"rd":"th")}}),n.lang=zn("moment.lang is deprecated. Use moment.locale instead.",hl),n.langData=zn("moment.langData is deprecated. Use moment.localeData instead.",Js);var Jr=Math.abs;function mf(E,B,W,ae){var be=Ua(B,W);return E._milliseconds+=ae*be._milliseconds,E._days+=ae*be._days,E._months+=ae*be._months,E._bubble()}function Ab(E){return E<0?Math.floor(E):Math.ceil(E)}function iw(E){return 4800*E/146097}function KC(E){return 146097*E/4800}function _l(E){return function(){return this.as(E)}}var Rh=_l("ms"),oO=_l("s"),eA=_l("m"),ow=_l("h"),rw=_l("d"),aw=_l("w"),rd=_l("M"),tA=_l("Q"),xb=_l("y");function Vl(E){return function(){return this.isValid()?this._data[E]:NaN}}var ad=Vl("milliseconds"),p_=Vl("seconds"),Et=Vl("minutes"),Ht=Vl("hours"),Sb=Vl("days"),Qn=Vl("months"),nA=Vl("years");var Qr=Math.round,Ji={ss:44,s:45,m:45,h:22,d:26,M:11};function vr(E,B,W,ae,be){return be.relativeTime(B||1,!!W,E,ae)}var bf=Math.abs;function bl(E){return(E>0)-(E<0)||+E}function vf(){if(!this.isValid())return this.localeData().invalidDate();var ae,be,E=bf(this._milliseconds)/1e3,B=bf(this._days),W=bf(this._months);ae=cn(E/60),be=cn(ae/60),E%=60,ae%=60;var at=cn(W/12),Wn=W%=12,Ci=B,$r=be,Wr=ae,ft=E?E.toFixed(3).replace(/\.?0+$/,""):"",Kr=this.asSeconds();if(!Kr)return"P0D";var kr=Kr<0?"-":"",h_=bl(this._months)!==bl(Kr)?"-":"",iA=bl(this._days)!==bl(Kr)?"-":"",oA=bl(this._milliseconds)!==bl(Kr)?"-":"";return kr+"P"+(at?h_+at+"Y":"")+(Wn?h_+Wn+"M":"")+(Ci?iA+Ci+"D":"")+($r||Wr||ft?"T":"")+($r?oA+$r+"H":"")+(Wr?oA+Wr+"M":"")+(ft?oA+ft+"S":"")}var Ti=Gi.prototype;return Ti.isValid=function Dh(){return this._isValid},Ti.abs=function u_(){var E=this._data;return this._milliseconds=Jr(this._milliseconds),this._days=Jr(this._days),this._months=Jr(this._months),E.milliseconds=Jr(E.milliseconds),E.seconds=Jr(E.seconds),E.minutes=Jr(E.minutes),E.hours=Jr(E.hours),E.months=Jr(E.months),E.years=Jr(E.years),this},Ti.add=function _f(E,B){return mf(this,E,B,1)},Ti.subtract=function WC(E,B){return mf(this,E,B,-1)},Ti.as=function XC(E){if(!this.isValid())return NaN;var B,W,ae=this._milliseconds;if("month"===(E=Po(E))||"quarter"===E||"year"===E)switch(B=this._days+ae/864e5,W=this._months+iw(B),E){case"month":return W;case"quarter":return W/3;case"year":return W/12}else switch(B=this._days+Math.round(KC(this._months)),E){case"week":return B/7+ae/6048e5;case"day":return B+ae/864e5;case"hour":return 24*B+ae/36e5;case"minute":return 1440*B+ae/6e4;case"second":return 86400*B+ae/1e3;case"millisecond":return Math.floor(864e5*B)+ae;default:throw new Error("Unknown unit "+E)}},Ti.asMilliseconds=Rh,Ti.asSeconds=oO,Ti.asMinutes=eA,Ti.asHours=ow,Ti.asDays=rw,Ti.asWeeks=aw,Ti.asMonths=rd,Ti.asQuarters=tA,Ti.asYears=xb,Ti.valueOf=function Xs(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*vt(this._months/12):NaN},Ti._bubble=function nw(){var be,Ne,at,Wn,Ci,E=this._milliseconds,B=this._days,W=this._months,ae=this._data;return E>=0&&B>=0&&W>=0||E<=0&&B<=0&&W<=0||(E+=864e5*Ab(KC(W)+B),B=0,W=0),ae.milliseconds=E%1e3,be=cn(E/1e3),ae.seconds=be%60,Ne=cn(be/60),ae.minutes=Ne%60,at=cn(Ne/60),ae.hours=at%24,B+=cn(at/24),W+=Ci=cn(iw(B)),B-=Ab(KC(Ci)),Wn=cn(W/12),W%=12,ae.days=B,ae.months=W,ae.years=Wn,this},Ti.clone=function Tb(){return Ua(this)},Ti.get=function Yo(E){return E=Po(E),this.isValid()?this[E+"s"]():NaN},Ti.milliseconds=ad,Ti.seconds=p_,Ti.minutes=Et,Ti.hours=Ht,Ti.days=Sb,Ti.weeks=function sd(){return cn(this.days()/7)},Ti.months=Qn,Ti.years=nA,Ti.humanize=function du(E){if(!this.isValid())return this.localeData().invalidDate();var B=this.localeData(),W=function wb(E,B,W){var ae=Ua(E).abs(),be=Qr(ae.as("s")),Ne=Qr(ae.as("m")),at=Qr(ae.as("h")),Wn=Qr(ae.as("d")),Ci=Qr(ae.as("M")),$r=Qr(ae.as("y")),Wr=be<=Ji.ss&&["s",be]||be<Ji.s&&["ss",be]||Ne<=1&&["m"]||Ne<Ji.m&&["mm",Ne]||at<=1&&["h"]||at<Ji.h&&["hh",at]||Wn<=1&&["d"]||Wn<Ji.d&&["dd",Wn]||Ci<=1&&["M"]||Ci<Ji.M&&["MM",Ci]||$r<=1&&["y"]||["yy",$r];return Wr[2]=B,Wr[3]=+E>0,Wr[4]=W,vr.apply(null,Wr)}(this,!E,B);return E&&(W=B.pastFuture(+this,W)),B.postformat(W)},Ti.toISOString=vf,Ti.toString=vf,Ti.toJSON=vf,Ti.locale=G,Ti.localeData=fe,Ti.toIsoString=zn("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",vf),Ti.lang=ne,Gt("X",0,0,"unix"),Gt("x",0,0,"valueOf"),We("x",on),We("X",/[+-]?\d+(\.\d{1,3})?/),wt("X",function(E,B,W){W._d=new Date(1e3*parseFloat(E,10))}),wt("x",function(E,B,W){W._d=new Date(vt(E))}),n.version="2.24.0",function O(E){D=E}(vo),n.fn=It,n.min=function Ks(){return Dr("isBefore",[].slice.call(arguments,0))},n.max=function ed(){return Dr("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=we,n.unix=function qC(E){return vo(1e3*E)},n.months=function Cb(E,B){return JC(E,B,"months")},n.isDate=pe,n.locale=hl,n.invalid=xt,n.duration=Ua,n.isMoment=$t,n.weekdays=function cu(E,B,W){return Hr(E,B,W,"weekdays")},n.parseZone=function tw(){return vo.apply(null,arguments).parseZone()},n.localeData=Js,n.isDuration=kh,n.monthsShort=function up(E,B){return JC(E,B,"monthsShort")},n.weekdaysMin=function Ns(E,B,W){return Hr(E,B,W,"weekdaysMin")},n.defineLocale=gl,n.updateLocale=function us(E,B){if(null!=B){var W,ae,be=sb;null!=(ae=mc(E))&&(be=ae._config),(W=new Ba(B=Vc(be,B))).parentLocale=hi[E],hi[E]=W,hl(E)}else null!=hi[E]&&(null!=hi[E].parentLocale?hi[E]=hi[E].parentLocale:null!=hi[E]&&delete hi[E]);return hi[E]},n.locales=function Wd(){return xa(hi)},n.weekdaysShort=function QC(E,B,W){return Hr(E,B,W,"weekdaysShort")},n.normalizeUnits=Po,n.relativeTimeRounding=function Mb(E){return void 0===E?Qr:"function"==typeof E&&(Qr=E,!0)},n.relativeTimeThreshold=function No(E,B){return void 0!==Ji[E]&&(void 0===B?Ji[E]:(Ji[E]=B,"s"===E&&(Ji.ss=B-1),!0))},n.calendarFormat=function sp(E,B){var W=E.diff(B,"days",!0);return W<-6?"sameElse":W<-1?"lastWeek":W<0?"lastDay":W<1?"sameDay":W<2?"nextDay":W<7?"nextWeek":"sameElse"},n.prototype=It,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}()},3953:v=>{v.exports=function n(O,R,U){function q(pe,de){if(!R[pe]){if(!O[pe]){if(te)return te(pe,!0);var me=new Error("Cannot find module '"+pe+"'");throw me.code="MODULE_NOT_FOUND",me}var we=R[pe]={exports:{}};O[pe][0].call(we.exports,function(Ve){return q(O[pe][1][Ve]||Ve)},we,we.exports,n,O,R,U)}return R[pe].exports}for(var te=void 0,ie=0;ie<U.length;ie++)q(U[ie]);return q}({1:[function(n,O,R){"use strict";var U=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function q(pe,de){return Object.prototype.hasOwnProperty.call(pe,de)}R.assign=function(pe){for(var de=Array.prototype.slice.call(arguments,1);de.length;){var Ce=de.shift();if(Ce){if("object"!=typeof Ce)throw new TypeError(Ce+"must be non-object");for(var me in Ce)q(Ce,me)&&(pe[me]=Ce[me])}}return pe},R.shrinkBuf=function(pe,de){return pe.length===de?pe:pe.subarray?pe.subarray(0,de):(pe.length=de,pe)};var te={arraySet:function(pe,de,Ce,me,we){if(de.subarray&&pe.subarray)pe.set(de.subarray(Ce,Ce+me),we);else for(var Ve=0;Ve<me;Ve++)pe[we+Ve]=de[Ce+Ve]},flattenChunks:function(pe){var de,Ce,me,we,Ve,Pe;for(me=0,de=0,Ce=pe.length;de<Ce;de++)me+=pe[de].length;for(Pe=new Uint8Array(me),we=0,de=0,Ce=pe.length;de<Ce;de++)Pe.set(Ve=pe[de],we),we+=Ve.length;return Pe}},ie={arraySet:function(pe,de,Ce,me,we){for(var Ve=0;Ve<me;Ve++)pe[we+Ve]=de[Ce+Ve]},flattenChunks:function(pe){return[].concat.apply([],pe)}};R.setTyped=function(pe){pe?(R.Buf8=Uint8Array,R.Buf16=Uint16Array,R.Buf32=Int32Array,R.assign(R,te)):(R.Buf8=Array,R.Buf16=Array,R.Buf32=Array,R.assign(R,ie))},R.setTyped(U)},{}],2:[function(n,O,R){"use strict";var U=n("./common"),q=!0,te=!0;try{String.fromCharCode.apply(null,[0])}catch{q=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{te=!1}for(var ie=new U.Buf8(256),pe=0;pe<256;pe++)ie[pe]=pe>=252?6:pe>=248?5:pe>=240?4:pe>=224?3:pe>=192?2:1;function de(Ce,me){if(me<65534&&(Ce.subarray&&te||!Ce.subarray&&q))return String.fromCharCode.apply(null,U.shrinkBuf(Ce,me));for(var we="",Ve=0;Ve<me;Ve++)we+=String.fromCharCode(Ce[Ve]);return we}ie[254]=ie[254]=1,R.string2buf=function(Ce){var me,we,Ve,Pe,rt,Je=Ce.length,xt=0;for(Pe=0;Pe<Je;Pe++)55296==(64512&(we=Ce.charCodeAt(Pe)))&&Pe+1<Je&&56320==(64512&(Ve=Ce.charCodeAt(Pe+1)))&&(we=65536+(we-55296<<10)+(Ve-56320),Pe++),xt+=we<128?1:we<2048?2:we<65536?3:4;for(me=new U.Buf8(xt),rt=0,Pe=0;rt<xt;Pe++)55296==(64512&(we=Ce.charCodeAt(Pe)))&&Pe+1<Je&&56320==(64512&(Ve=Ce.charCodeAt(Pe+1)))&&(we=65536+(we-55296<<10)+(Ve-56320),Pe++),we<128?me[rt++]=we:we<2048?(me[rt++]=192|we>>>6,me[rt++]=128|63&we):we<65536?(me[rt++]=224|we>>>12,me[rt++]=128|we>>>6&63,me[rt++]=128|63&we):(me[rt++]=240|we>>>18,me[rt++]=128|we>>>12&63,me[rt++]=128|we>>>6&63,me[rt++]=128|63&we);return me},R.buf2binstring=function(Ce){return de(Ce,Ce.length)},R.binstring2buf=function(Ce){for(var me=new U.Buf8(Ce.length),we=0,Ve=me.length;we<Ve;we++)me[we]=Ce.charCodeAt(we);return me},R.buf2string=function(Ce,me){var we,Ve,Pe,rt,Je=me||Ce.length,xt=new Array(2*Je);for(Ve=0,we=0;we<Je;)if((Pe=Ce[we++])<128)xt[Ve++]=Pe;else if((rt=ie[Pe])>4)xt[Ve++]=65533,we+=rt-1;else{for(Pe&=2===rt?31:3===rt?15:7;rt>1&&we<Je;)Pe=Pe<<6|63&Ce[we++],rt--;rt>1?xt[Ve++]=65533:Pe<65536?xt[Ve++]=Pe:(xt[Ve++]=55296|(Pe-=65536)>>10&1023,xt[Ve++]=56320|1023&Pe)}return de(xt,Ve)},R.utf8border=function(Ce,me){var we;for((me=me||Ce.length)>Ce.length&&(me=Ce.length),we=me-1;we>=0&&128==(192&Ce[we]);)we--;return we<0||0===we?me:we+ie[Ce[we]]>me?we:me}},{"./common":1}],3:[function(n,O,R){"use strict";O.exports=function U(q,te,ie,pe){for(var de=65535&q|0,Ce=q>>>16&65535|0,me=0;0!==ie;){ie-=me=ie>2e3?2e3:ie;do{Ce=Ce+(de=de+te[pe++]|0)|0}while(--me);de%=65521,Ce%=65521}return de|Ce<<16|0}},{}],4:[function(n,O,R){"use strict";var q=function U(){for(var ie,pe=[],de=0;de<256;de++){ie=de;for(var Ce=0;Ce<8;Ce++)ie=1&ie?3988292384^ie>>>1:ie>>>1;pe[de]=ie}return pe}();O.exports=function te(ie,pe,de,Ce){var me=q,we=Ce+de;ie^=-1;for(var Ve=Ce;Ve<we;Ve++)ie=ie>>>8^me[255&(ie^pe[Ve])];return-1^ie}},{}],5:[function(n,O,R){"use strict";var In,U=n("../utils/common"),q=n("./trees"),te=n("./adler32"),ie=n("./crc32"),pe=n("./messages"),Rr=258,ir=262;function en(J,Qe){return J.msg=pe[Qe],Qe}function eo(J){return(J<<1)-(J>4?9:0)}function Fr(J){for(var Qe=J.length;--Qe>=0;)J[Qe]=0}function lo(J){var Qe=J.state,We=Qe.pending;We>J.avail_out&&(We=J.avail_out),0!==We&&(U.arraySet(J.output,Qe.pending_buf,Qe.pending_out,We,J.next_out),J.next_out+=We,Qe.pending_out+=We,J.total_out+=We,J.avail_out-=We,Qe.pending-=We,0===Qe.pending&&(Qe.pending_out=0))}function co(J,Qe){q._tr_flush_block(J,J.block_start>=0?J.block_start:-1,J.strstart-J.block_start,Qe),J.block_start=J.strstart,lo(J.strm)}function qn(J,Qe){J.pending_buf[J.pending++]=Qe}function Gt(J,Qe){J.pending_buf[J.pending++]=Qe>>>8&255,J.pending_buf[J.pending++]=255&Qe}function mr(J,Qe,We,he){var _t=J.avail_in;return _t>he&&(_t=he),0===_t?0:(J.avail_in-=_t,U.arraySet(Qe,J.input,J.next_in,_t,We),1===J.state.wrap?J.adler=te(J.adler,Qe,_t,We):2===J.state.wrap&&(J.adler=ie(J.adler,Qe,_t,We)),J.next_in+=_t,J.total_in+=_t,_t)}function pc(J,Qe){var _t,Rt,We=J.max_chain_length,he=J.strstart,Ft=J.prev_length,wt=J.nice_match,rr=J.strstart>J.w_size-ir?J.strstart-(J.w_size-ir):0,Bn=J.window,Hi=J.w_mask,Mt=J.prev,an=J.strstart+Rr,xn=Bn[he+Ft-1],_o=Bn[he+Ft];J.prev_length>=J.good_match&&(We>>=2),wt>J.lookahead&&(wt=J.lookahead);do{if(Bn[(_t=Qe)+Ft]===_o&&Bn[_t+Ft-1]===xn&&Bn[_t]===Bn[he]&&Bn[++_t]===Bn[he+1]){he+=2,_t++;do{}while(Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&Bn[++he]===Bn[++_t]&&he<an);if(Rt=Rr-(an-he),he=an-Rr,Rt>Ft){if(J.match_start=Qe,Ft=Rt,Rt>=wt)break;xn=Bn[he+Ft-1],_o=Bn[he+Ft]}}}while((Qe=Mt[Qe&Hi])>rr&&0!=--We);return Ft<=J.lookahead?Ft:J.lookahead}function Li(J){var We,he,_t,Rt,Ft,Qe=J.w_size;do{if(Rt=J.window_size-J.lookahead-J.strstart,J.strstart>=Qe+(Qe-ir)){U.arraySet(J.window,J.window,Qe,Qe,0),J.match_start-=Qe,J.strstart-=Qe,J.block_start-=Qe,We=he=J.hash_size;do{_t=J.head[--We],J.head[We]=_t>=Qe?_t-Qe:0}while(--he);We=he=Qe;do{_t=J.prev[--We],J.prev[We]=_t>=Qe?_t-Qe:0}while(--he);Rt+=Qe}if(0===J.strm.avail_in)break;if(he=mr(J.strm,J.window,J.strstart+J.lookahead,Rt),J.lookahead+=he,J.lookahead+J.insert>=3)for(J.ins_h=J.window[Ft=J.strstart-J.insert],J.ins_h=(J.ins_h<<J.hash_shift^J.window[Ft+1])&J.hash_mask;J.insert&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[Ft+3-1])&J.hash_mask,J.prev[Ft&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=Ft,Ft++,J.insert--,!(J.lookahead+J.insert<3)););}while(J.lookahead<ir&&0!==J.strm.avail_in)}function Zt(J,Qe){for(var We,he;;){if(J.lookahead<ir){if(Li(J),J.lookahead<ir&&0===Qe)return 1;if(0===J.lookahead)break}if(We=0,J.lookahead>=3&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,We=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart),0!==We&&J.strstart-We<=J.w_size-ir&&(J.match_length=pc(J,We)),J.match_length>=3)if(he=q._tr_tally(J,J.strstart-J.match_start,J.match_length-3),J.lookahead-=J.match_length,J.match_length<=J.max_lazy_match&&J.lookahead>=3){J.match_length--;do{J.strstart++,J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,We=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart}while(0!=--J.match_length);J.strstart++}else J.strstart+=J.match_length,J.match_length=0,J.ins_h=J.window[J.strstart],J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+1])&J.hash_mask;else he=q._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++;if(he&&(co(J,!1),0===J.strm.avail_out))return 1}return J.insert=J.strstart<2?J.strstart:2,4===Qe?(co(J,!0),0===J.strm.avail_out?3:4):J.last_lit&&(co(J,!1),0===J.strm.avail_out)?1:2}function Go(J,Qe){for(var We,he,_t;;){if(J.lookahead<ir){if(Li(J),J.lookahead<ir&&0===Qe)return 1;if(0===J.lookahead)break}if(We=0,J.lookahead>=3&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,We=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart),J.prev_length=J.match_length,J.prev_match=J.match_start,J.match_length=2,0!==We&&J.prev_length<J.max_lazy_match&&J.strstart-We<=J.w_size-ir&&(J.match_length=pc(J,We),J.match_length<=5&&(1===J.strategy||3===J.match_length&&J.strstart-J.match_start>4096)&&(J.match_length=2)),J.prev_length>=3&&J.match_length<=J.prev_length){_t=J.strstart+J.lookahead-3,he=q._tr_tally(J,J.strstart-1-J.prev_match,J.prev_length-3),J.lookahead-=J.prev_length-1,J.prev_length-=2;do{++J.strstart<=_t&&(J.ins_h=(J.ins_h<<J.hash_shift^J.window[J.strstart+3-1])&J.hash_mask,We=J.prev[J.strstart&J.w_mask]=J.head[J.ins_h],J.head[J.ins_h]=J.strstart)}while(0!=--J.prev_length);if(J.match_available=0,J.match_length=2,J.strstart++,he&&(co(J,!1),0===J.strm.avail_out))return 1}else if(J.match_available){if((he=q._tr_tally(J,0,J.window[J.strstart-1]))&&co(J,!1),J.strstart++,J.lookahead--,0===J.strm.avail_out)return 1}else J.match_available=1,J.strstart++,J.lookahead--}return J.match_available&&(he=q._tr_tally(J,0,J.window[J.strstart-1]),J.match_available=0),J.insert=J.strstart<2?J.strstart:2,4===Qe?(co(J,!0),0===J.strm.avail_out?3:4):J.last_lit&&(co(J,!1),0===J.strm.avail_out)?1:2}function An(J,Qe,We,he,_t){this.good_length=J,this.max_lazy=Qe,this.nice_length=We,this.max_chain=he,this.func=_t}function ge(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new U.Buf16(1146),this.dyn_dtree=new U.Buf16(122),this.bl_tree=new U.Buf16(78),Fr(this.dyn_ltree),Fr(this.dyn_dtree),Fr(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new U.Buf16(16),this.heap=new U.Buf16(573),Fr(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new U.Buf16(573),Fr(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function dt(J){var Qe;return J&&J.state?(J.total_in=J.total_out=0,J.data_type=2,(Qe=J.state).pending=0,Qe.pending_out=0,Qe.wrap<0&&(Qe.wrap=-Qe.wrap),Qe.status=Qe.wrap?42:113,J.adler=2===Qe.wrap?0:1,Qe.last_flush=0,q._tr_init(Qe),0):en(J,-2)}function et(J){var Qe=dt(J);return 0===Qe&&function cl(J){J.window_size=2*J.w_size,Fr(J.head),J.max_lazy_match=In[J.level].max_lazy,J.good_match=In[J.level].good_length,J.nice_match=In[J.level].nice_length,J.max_chain_length=In[J.level].max_chain,J.strstart=0,J.block_start=0,J.lookahead=0,J.insert=0,J.match_length=J.prev_length=2,J.match_available=0,J.ins_h=0}(J.state),Qe}function tn(J,Qe,We,he,_t,Rt){if(!J)return-2;var Ft=1;if(-1===Qe&&(Qe=6),he<0?(Ft=0,he=-he):he>15&&(Ft=2,he-=16),_t<1||_t>9||8!==We||he<8||he>15||Qe<0||Qe>9||Rt<0||Rt>4)return en(J,-2);8===he&&(he=9);var wt=new ge;return J.state=wt,wt.strm=J,wt.wrap=Ft,wt.gzhead=null,wt.w_bits=he,wt.w_size=1<<wt.w_bits,wt.w_mask=wt.w_size-1,wt.hash_bits=_t+7,wt.hash_size=1<<wt.hash_bits,wt.hash_mask=wt.hash_size-1,wt.hash_shift=~~((wt.hash_bits+3-1)/3),wt.window=new U.Buf8(2*wt.w_size),wt.head=new U.Buf16(wt.hash_size),wt.prev=new U.Buf16(wt.w_size),wt.lit_bufsize=1<<_t+6,wt.pending_buf_size=4*wt.lit_bufsize,wt.pending_buf=new U.Buf8(wt.pending_buf_size),wt.d_buf=1*wt.lit_bufsize,wt.l_buf=3*wt.lit_bufsize,wt.level=Qe,wt.strategy=Rt,wt.method=We,et(J)}In=[new An(0,0,0,0,function qt(J,Qe){var We=65535;for(We>J.pending_buf_size-5&&(We=J.pending_buf_size-5);;){if(J.lookahead<=1){if(Li(J),0===J.lookahead&&0===Qe)return 1;if(0===J.lookahead)break}J.strstart+=J.lookahead,J.lookahead=0;var he=J.block_start+We;if((0===J.strstart||J.strstart>=he)&&(J.lookahead=J.strstart-he,J.strstart=he,co(J,!1),0===J.strm.avail_out)||J.strstart-J.block_start>=J.w_size-ir&&(co(J,!1),0===J.strm.avail_out))return 1}return J.insert=0,4===Qe?(co(J,!0),0===J.strm.avail_out?3:4):(J.strstart>J.block_start&&co(J,!1),1)}),new An(4,4,8,4,Zt),new An(4,5,16,8,Zt),new An(4,6,32,32,Zt),new An(4,4,16,16,Go),new An(8,16,32,32,Go),new An(8,16,128,128,Go),new An(8,32,128,256,Go),new An(32,128,258,1024,Go),new An(32,258,258,4096,Go)],R.deflateInit=function on(J,Qe){return tn(J,Qe,8,15,8,0)},R.deflateInit2=tn,R.deflateReset=et,R.deflateResetKeep=dt,R.deflateSetHeader=function Ot(J,Qe){return J&&J.state&&2===J.state.wrap?(J.state.gzhead=Qe,0):-2},R.deflate=function rn(J,Qe){var We,he,_t,Rt;if(!J||!J.state||Qe>5||Qe<0)return J?en(J,-2):-2;if(he=J.state,!J.output||!J.input&&0!==J.avail_in||666===he.status&&4!==Qe)return en(J,0===J.avail_out?-5:-2);if(he.strm=J,We=he.last_flush,he.last_flush=Qe,42===he.status)if(2===he.wrap)J.adler=0,qn(he,31),qn(he,139),qn(he,8),he.gzhead?(qn(he,(he.gzhead.text?1:0)+(he.gzhead.hcrc?2:0)+(he.gzhead.extra?4:0)+(he.gzhead.name?8:0)+(he.gzhead.comment?16:0)),qn(he,255&he.gzhead.time),qn(he,he.gzhead.time>>8&255),qn(he,he.gzhead.time>>16&255),qn(he,he.gzhead.time>>24&255),qn(he,9===he.level?2:he.strategy>=2||he.level<2?4:0),qn(he,255&he.gzhead.os),he.gzhead.extra&&he.gzhead.extra.length&&(qn(he,255&he.gzhead.extra.length),qn(he,he.gzhead.extra.length>>8&255)),he.gzhead.hcrc&&(J.adler=ie(J.adler,he.pending_buf,he.pending,0)),he.gzindex=0,he.status=69):(qn(he,0),qn(he,0),qn(he,0),qn(he,0),qn(he,0),qn(he,9===he.level?2:he.strategy>=2||he.level<2?4:0),qn(he,3),he.status=113);else{var Ft=8+(he.w_bits-8<<4)<<8;Ft|=(he.strategy>=2||he.level<2?0:he.level<6?1:6===he.level?2:3)<<6,0!==he.strstart&&(Ft|=32),Ft+=31-Ft%31,he.status=113,Gt(he,Ft),0!==he.strstart&&(Gt(he,J.adler>>>16),Gt(he,65535&J.adler)),J.adler=1}if(69===he.status)if(he.gzhead.extra){for(_t=he.pending;he.gzindex<(65535&he.gzhead.extra.length)&&(he.pending!==he.pending_buf_size||(he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),lo(J),_t=he.pending,he.pending!==he.pending_buf_size));)qn(he,255&he.gzhead.extra[he.gzindex]),he.gzindex++;he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),he.gzindex===he.gzhead.extra.length&&(he.gzindex=0,he.status=73)}else he.status=73;if(73===he.status)if(he.gzhead.name){_t=he.pending;do{if(he.pending===he.pending_buf_size&&(he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),lo(J),_t=he.pending,he.pending===he.pending_buf_size)){Rt=1;break}Rt=he.gzindex<he.gzhead.name.length?255&he.gzhead.name.charCodeAt(he.gzindex++):0,qn(he,Rt)}while(0!==Rt);he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),0===Rt&&(he.gzindex=0,he.status=91)}else he.status=91;if(91===he.status)if(he.gzhead.comment){_t=he.pending;do{if(he.pending===he.pending_buf_size&&(he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),lo(J),_t=he.pending,he.pending===he.pending_buf_size)){Rt=1;break}Rt=he.gzindex<he.gzhead.comment.length?255&he.gzhead.comment.charCodeAt(he.gzindex++):0,qn(he,Rt)}while(0!==Rt);he.gzhead.hcrc&&he.pending>_t&&(J.adler=ie(J.adler,he.pending_buf,he.pending-_t,_t)),0===Rt&&(he.status=103)}else he.status=103;if(103===he.status&&(he.gzhead.hcrc?(he.pending+2>he.pending_buf_size&&lo(J),he.pending+2<=he.pending_buf_size&&(qn(he,255&J.adler),qn(he,J.adler>>8&255),J.adler=0,he.status=113)):he.status=113),0!==he.pending){if(lo(J),0===J.avail_out)return he.last_flush=-1,0}else if(0===J.avail_in&&eo(Qe)<=eo(We)&&4!==Qe)return en(J,-5);if(666===he.status&&0!==J.avail_in)return en(J,-5);if(0!==J.avail_in||0!==he.lookahead||0!==Qe&&666!==he.status){var rr=2===he.strategy?function or(J,Qe){for(var We;;){if(0===J.lookahead&&(Li(J),0===J.lookahead)){if(0===Qe)return 1;break}if(J.match_length=0,We=q._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++,We&&(co(J,!1),0===J.strm.avail_out))return 1}return J.insert=0,4===Qe?(co(J,!0),0===J.strm.avail_out?3:4):J.last_lit&&(co(J,!1),0===J.strm.avail_out)?1:2}(he,Qe):3===he.strategy?function Ps(J,Qe){for(var We,he,_t,Rt,Ft=J.window;;){if(J.lookahead<=Rr){if(Li(J),J.lookahead<=Rr&&0===Qe)return 1;if(0===J.lookahead)break}if(J.match_length=0,J.lookahead>=3&&J.strstart>0&&(he=Ft[_t=J.strstart-1])===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]){Rt=J.strstart+Rr;do{}while(he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&he===Ft[++_t]&&_t<Rt);J.match_length=Rr-(Rt-_t),J.match_length>J.lookahead&&(J.match_length=J.lookahead)}if(J.match_length>=3?(We=q._tr_tally(J,1,J.match_length-3),J.lookahead-=J.match_length,J.strstart+=J.match_length,J.match_length=0):(We=q._tr_tally(J,0,J.window[J.strstart]),J.lookahead--,J.strstart++),We&&(co(J,!1),0===J.strm.avail_out))return 1}return J.insert=0,4===Qe?(co(J,!0),0===J.strm.avail_out?3:4):J.last_lit&&(co(J,!1),0===J.strm.avail_out)?1:2}(he,Qe):In[he.level].func(he,Qe);if((3===rr||4===rr)&&(he.status=666),1===rr||3===rr)return 0===J.avail_out&&(he.last_flush=-1),0;if(2===rr&&(1===Qe?q._tr_align(he):5!==Qe&&(q._tr_stored_block(he,0,0,!1),3===Qe&&(Fr(he.head),0===he.lookahead&&(he.strstart=0,he.block_start=0,he.insert=0))),lo(J),0===J.avail_out))return he.last_flush=-1,0}return 4!==Qe?0:he.wrap<=0?1:(2===he.wrap?(qn(he,255&J.adler),qn(he,J.adler>>8&255),qn(he,J.adler>>16&255),qn(he,J.adler>>24&255),qn(he,255&J.total_in),qn(he,J.total_in>>8&255),qn(he,J.total_in>>16&255),qn(he,J.total_in>>24&255)):(Gt(he,J.adler>>>16),Gt(he,65535&J.adler)),lo(J),he.wrap>0&&(he.wrap=-he.wrap),0!==he.pending?0:1)},R.deflateEnd=function Un(J){var Qe;return J&&J.state?42!==(Qe=J.state.status)&&69!==Qe&&73!==Qe&&91!==Qe&&103!==Qe&&113!==Qe&&666!==Qe?en(J,-2):(J.state=null,113===Qe?en(J,-3):0):-2},R.deflateSetDictionary=function Vi(J,Qe){var he,_t,Rt,Ft,wt,rr,Bn,Hi,We=Qe.length;if(!J||!J.state||2===(Ft=(he=J.state).wrap)||1===Ft&&42!==he.status||he.lookahead)return-2;for(1===Ft&&(J.adler=te(J.adler,Qe,We,0)),he.wrap=0,We>=he.w_size&&(0===Ft&&(Fr(he.head),he.strstart=0,he.block_start=0,he.insert=0),Hi=new U.Buf8(he.w_size),U.arraySet(Hi,Qe,We-he.w_size,he.w_size,0),Qe=Hi,We=he.w_size),wt=J.avail_in,rr=J.next_in,Bn=J.input,J.avail_in=We,J.next_in=0,J.input=Qe,Li(he);he.lookahead>=3;){_t=he.strstart,Rt=he.lookahead-2;do{he.ins_h=(he.ins_h<<he.hash_shift^he.window[_t+3-1])&he.hash_mask,he.prev[_t&he.w_mask]=he.head[he.ins_h],he.head[he.ins_h]=_t,_t++}while(--Rt);he.strstart=_t,he.lookahead=2,Li(he)}return he.strstart+=he.lookahead,he.block_start=he.strstart,he.insert=he.lookahead,he.lookahead=0,he.match_length=he.prev_length=2,he.match_available=0,J.next_in=rr,J.input=Bn,J.avail_in=wt,he.wrap=Ft,0},R.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(n,O,R){"use strict";O.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(n,O,R){"use strict";var U=n("../utils/common");function de(ge){for(var dt=ge.length;--dt>=0;)ge[dt]=0}var Bi=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],$n=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],xi=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],pn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ba=new Array(576);de(Ba);var xa=new Array(60);de(xa);var nr=new Array(512);de(nr);var pi=new Array(256);de(pi);var jt=new Array(29);de(jt);var mo,Ta,zr,Rr=new Array(30);function ir(ge,dt,et,Ot,tn){this.static_tree=ge,this.extra_bits=dt,this.extra_base=et,this.elems=Ot,this.max_length=tn,this.has_stree=ge&&ge.length}function Zi(ge,dt){this.dyn_tree=ge,this.max_code=0,this.stat_desc=dt}function ls(ge){return ge<256?nr[ge]:nr[256+(ge>>>7)]}function Gr(ge,dt){ge.pending_buf[ge.pending++]=255&dt,ge.pending_buf[ge.pending++]=dt>>>8&255}function To(ge,dt,et){ge.bi_valid>16-et?(ge.bi_buf|=dt<<ge.bi_valid&65535,Gr(ge,ge.bi_buf),ge.bi_buf=dt>>16-ge.bi_valid,ge.bi_valid+=et-16):(ge.bi_buf|=dt<<ge.bi_valid&65535,ge.bi_valid+=et)}function Xi(ge,dt,et){To(ge,et[2*dt],et[2*dt+1])}function Gn(ge,dt){var et=0;do{et|=1&ge,ge>>>=1,et<<=1}while(--dt>0);return et>>>1}function Ln(ge,dt,et){var on,rn,Ot=new Array(16),tn=0;for(on=1;on<=15;on++)Ot[on]=tn=tn+et[on-1]<<1;for(rn=0;rn<=dt;rn++){var Un=ge[2*rn+1];0!==Un&&(ge[2*rn]=Gn(Ot[Un]++,Un))}}function en(ge){var dt;for(dt=0;dt<286;dt++)ge.dyn_ltree[2*dt]=0;for(dt=0;dt<30;dt++)ge.dyn_dtree[2*dt]=0;for(dt=0;dt<19;dt++)ge.bl_tree[2*dt]=0;ge.dyn_ltree[512]=1,ge.opt_len=ge.static_len=0,ge.last_lit=ge.matches=0}function eo(ge){ge.bi_valid>8?Gr(ge,ge.bi_buf):ge.bi_valid>0&&(ge.pending_buf[ge.pending++]=ge.bi_buf),ge.bi_buf=0,ge.bi_valid=0}function lo(ge,dt,et,Ot){var tn=2*dt,on=2*et;return ge[tn]<ge[on]||ge[tn]===ge[on]&&Ot[dt]<=Ot[et]}function co(ge,dt,et){for(var Ot=ge.heap[et],tn=et<<1;tn<=ge.heap_len&&(tn<ge.heap_len&&lo(dt,ge.heap[tn+1],ge.heap[tn],ge.depth)&&tn++,!lo(dt,Ot,ge.heap[tn],ge.depth));)ge.heap[et]=ge.heap[tn],et=tn,tn<<=1;ge.heap[et]=Ot}function qn(ge,dt,et){var Ot,tn,rn,Un,on=0;if(0!==ge.last_lit)do{Ot=ge.pending_buf[ge.d_buf+2*on]<<8|ge.pending_buf[ge.d_buf+2*on+1],tn=ge.pending_buf[ge.l_buf+on],on++,0===Ot?Xi(ge,tn,dt):(Xi(ge,(rn=pi[tn])+256+1,dt),0!==(Un=Bi[rn])&&To(ge,tn-=jt[rn],Un),Xi(ge,rn=ls(--Ot),et),0!==(Un=$n[rn])&&To(ge,Ot-=Rr[rn],Un))}while(on<ge.last_lit);Xi(ge,256,dt)}function Gt(ge,dt){var rn,Un,J,et=dt.dyn_tree,Ot=dt.stat_desc.static_tree,tn=dt.stat_desc.has_stree,on=dt.stat_desc.elems,Vi=-1;for(ge.heap_len=0,ge.heap_max=573,rn=0;rn<on;rn++)0!==et[2*rn]?(ge.heap[++ge.heap_len]=Vi=rn,ge.depth[rn]=0):et[2*rn+1]=0;for(;ge.heap_len<2;)et[2*(J=ge.heap[++ge.heap_len]=Vi<2?++Vi:0)]=1,ge.depth[J]=0,ge.opt_len--,tn&&(ge.static_len-=Ot[2*J+1]);for(dt.max_code=Vi,rn=ge.heap_len>>1;rn>=1;rn--)co(ge,et,rn);J=on;do{rn=ge.heap[1],ge.heap[1]=ge.heap[ge.heap_len--],co(ge,et,1),Un=ge.heap[1],ge.heap[--ge.heap_max]=rn,ge.heap[--ge.heap_max]=Un,et[2*J]=et[2*rn]+et[2*Un],ge.depth[J]=(ge.depth[rn]>=ge.depth[Un]?ge.depth[rn]:ge.depth[Un])+1,et[2*rn+1]=et[2*Un+1]=J,ge.heap[1]=J++,co(ge,et,1)}while(ge.heap_len>=2);ge.heap[--ge.heap_max]=ge.heap[1],function Ho(ge,dt){var J,Qe,We,he,_t,Rt,et=dt.dyn_tree,Ot=dt.max_code,tn=dt.stat_desc.static_tree,on=dt.stat_desc.has_stree,rn=dt.stat_desc.extra_bits,Un=dt.stat_desc.extra_base,Vi=dt.stat_desc.max_length,Ft=0;for(he=0;he<=15;he++)ge.bl_count[he]=0;for(et[2*ge.heap[ge.heap_max]+1]=0,J=ge.heap_max+1;J<573;J++)(he=et[2*et[2*(Qe=ge.heap[J])+1]+1]+1)>Vi&&(he=Vi,Ft++),et[2*Qe+1]=he,!(Qe>Ot)&&(ge.bl_count[he]++,_t=0,Qe>=Un&&(_t=rn[Qe-Un]),ge.opt_len+=(Rt=et[2*Qe])*(he+_t),on&&(ge.static_len+=Rt*(tn[2*Qe+1]+_t)));if(0!==Ft){do{for(he=Vi-1;0===ge.bl_count[he];)he--;ge.bl_count[he]--,ge.bl_count[he+1]+=2,ge.bl_count[Vi]--,Ft-=2}while(Ft>0);for(he=Vi;0!==he;he--)for(Qe=ge.bl_count[he];0!==Qe;)!((We=ge.heap[--J])>Ot)&&(et[2*We+1]!==he&&(ge.opt_len+=(he-et[2*We+1])*et[2*We],et[2*We+1]=he),Qe--)}}(ge,dt),Ln(et,Vi,ge.bl_count)}function mr(ge,dt,et){var Ot,on,tn=-1,rn=dt[1],Un=0,Vi=7,J=4;for(0===rn&&(Vi=138,J=3),dt[2*(et+1)+1]=65535,Ot=0;Ot<=et;Ot++)on=rn,rn=dt[2*(Ot+1)+1],!(++Un<Vi&&on===rn)&&(Un<J?ge.bl_tree[2*on]+=Un:0!==on?(on!==tn&&ge.bl_tree[2*on]++,ge.bl_tree[32]++):Un<=10?ge.bl_tree[34]++:ge.bl_tree[36]++,Un=0,tn=on,0===rn?(Vi=138,J=3):on===rn?(Vi=6,J=3):(Vi=7,J=4))}function pc(ge,dt,et){var Ot,on,tn=-1,rn=dt[1],Un=0,Vi=7,J=4;for(0===rn&&(Vi=138,J=3),Ot=0;Ot<=et;Ot++)if(on=rn,rn=dt[2*(Ot+1)+1],!(++Un<Vi&&on===rn)){if(Un<J)do{Xi(ge,on,ge.bl_tree)}while(0!=--Un);else 0!==on?(on!==tn&&(Xi(ge,on,ge.bl_tree),Un--),Xi(ge,16,ge.bl_tree),To(ge,Un-3,2)):Un<=10?(Xi(ge,17,ge.bl_tree),To(ge,Un-3,3)):(Xi(ge,18,ge.bl_tree),To(ge,Un-11,7));Un=0,tn=on,0===rn?(Vi=138,J=3):on===rn?(Vi=6,J=3):(Vi=7,J=4)}}de(Rr);var Go=!1;function or(ge,dt,et,Ot){To(ge,0+(Ot?1:0),3),function Fr(ge,dt,et,Ot){eo(ge),Ot&&(Gr(ge,et),Gr(ge,~et)),U.arraySet(ge.pending_buf,ge.window,dt,et,ge.pending),ge.pending+=et}(ge,dt,et,!0)}R._tr_init=function Ps(ge){Go||(function So(){var ge,dt,et,Ot,tn,on=new Array(16);for(et=0,Ot=0;Ot<28;Ot++)for(jt[Ot]=et,ge=0;ge<1<<Bi[Ot];ge++)pi[et++]=Ot;for(pi[et-1]=Ot,tn=0,Ot=0;Ot<16;Ot++)for(Rr[Ot]=tn,ge=0;ge<1<<$n[Ot];ge++)nr[tn++]=Ot;for(tn>>=7;Ot<30;Ot++)for(Rr[Ot]=tn<<7,ge=0;ge<1<<$n[Ot]-7;ge++)nr[256+tn++]=Ot;for(dt=0;dt<=15;dt++)on[dt]=0;for(ge=0;ge<=143;)Ba[2*ge+1]=8,ge++,on[8]++;for(;ge<=255;)Ba[2*ge+1]=9,ge++,on[9]++;for(;ge<=279;)Ba[2*ge+1]=7,ge++,on[7]++;for(;ge<=287;)Ba[2*ge+1]=8,ge++,on[8]++;for(Ln(Ba,287,on),ge=0;ge<30;ge++)xa[2*ge+1]=5,xa[2*ge]=Gn(ge,5);mo=new ir(Ba,Bi,257,286,15),Ta=new ir(xa,$n,0,30,15),zr=new ir(new Array(0),xi,0,19,7)}(),Go=!0),ge.l_desc=new Zi(ge.dyn_ltree,mo),ge.d_desc=new Zi(ge.dyn_dtree,Ta),ge.bl_desc=new Zi(ge.bl_tree,zr),ge.bi_buf=0,ge.bi_valid=0,en(ge)},R._tr_stored_block=or,R._tr_flush_block=function In(ge,dt,et,Ot){var tn,on,rn=0;ge.level>0?(2===ge.strm.data_type&&(ge.strm.data_type=function Zt(ge){var et,dt=4093624447;for(et=0;et<=31;et++,dt>>>=1)if(1&dt&&0!==ge.dyn_ltree[2*et])return 0;if(0!==ge.dyn_ltree[18]||0!==ge.dyn_ltree[20]||0!==ge.dyn_ltree[26])return 1;for(et=32;et<256;et++)if(0!==ge.dyn_ltree[2*et])return 1;return 0}(ge)),Gt(ge,ge.l_desc),Gt(ge,ge.d_desc),rn=function Li(ge){var dt;for(mr(ge,ge.dyn_ltree,ge.l_desc.max_code),mr(ge,ge.dyn_dtree,ge.d_desc.max_code),Gt(ge,ge.bl_desc),dt=18;dt>=3&&0===ge.bl_tree[2*pn[dt]+1];dt--);return ge.opt_len+=3*(dt+1)+5+5+4,dt}(ge),(on=ge.static_len+3+7>>>3)<=(tn=ge.opt_len+3+7>>>3)&&(tn=on)):tn=on=et+5,et+4<=tn&&-1!==dt?or(ge,dt,et,Ot):4===ge.strategy||on===tn?(To(ge,2+(Ot?1:0),3),qn(ge,Ba,xa)):(To(ge,4+(Ot?1:0),3),function qt(ge,dt,et,Ot){var tn;for(To(ge,dt-257,5),To(ge,et-1,5),To(ge,Ot-4,4),tn=0;tn<Ot;tn++)To(ge,ge.bl_tree[2*pn[tn]+1],3);pc(ge,ge.dyn_ltree,dt-1),pc(ge,ge.dyn_dtree,et-1)}(ge,ge.l_desc.max_code+1,ge.d_desc.max_code+1,rn+1),qn(ge,ge.dyn_ltree,ge.dyn_dtree)),en(ge),Ot&&eo(ge)},R._tr_tally=function cl(ge,dt,et){return ge.pending_buf[ge.d_buf+2*ge.last_lit]=dt>>>8&255,ge.pending_buf[ge.d_buf+2*ge.last_lit+1]=255&dt,ge.pending_buf[ge.l_buf+ge.last_lit]=255&et,ge.last_lit++,0===dt?ge.dyn_ltree[2*et]++:(ge.matches++,dt--,ge.dyn_ltree[2*(pi[et]+256+1)]++,ge.dyn_dtree[2*ls(dt)]++),ge.last_lit===ge.lit_bufsize-1},R._tr_align=function An(ge){To(ge,2,3),Xi(ge,256,Ba),function Po(ge){16===ge.bi_valid?(Gr(ge,ge.bi_buf),ge.bi_buf=0,ge.bi_valid=0):ge.bi_valid>=8&&(ge.pending_buf[ge.pending++]=255&ge.bi_buf,ge.bi_buf>>=8,ge.bi_valid-=8)}(ge)}},{"../utils/common":1}],8:[function(n,O,R){"use strict";O.exports=function U(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(n,O,R){"use strict";var U=n("./zlib/deflate"),q=n("./utils/common"),te=n("./utils/strings"),ie=n("./zlib/messages"),pe=n("./zlib/zstream"),de=Object.prototype.toString;function ln($t){if(!(this instanceof ln))return new ln($t);this.options=q.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},$t||{});var cn=this.options;cn.raw&&cn.windowBits>0?cn.windowBits=-cn.windowBits:cn.gzip&&cn.windowBits>0&&cn.windowBits<16&&(cn.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pe,this.strm.avail_out=0;var vt=U.deflateInit2(this.strm,cn.level,cn.method,cn.windowBits,cn.memLevel,cn.strategy);if(0!==vt)throw new Error(ie[vt]);if(cn.header&&U.deflateSetHeader(this.strm,cn.header),cn.dictionary){var Aa;if(Aa="string"==typeof cn.dictionary?te.string2buf(cn.dictionary):"[object ArrayBuffer]"===de.call(cn.dictionary)?new Uint8Array(cn.dictionary):cn.dictionary,0!==(vt=U.deflateSetDictionary(this.strm,Aa)))throw new Error(ie[vt]);this._dict_set=!0}}function Mi($t,cn){var vt=new ln(cn);if(vt.push($t,!0),vt.err)throw vt.msg||ie[vt.err];return vt.result}ln.prototype.push=function($t,cn){var li,zn,vt=this.strm,Aa=this.options.chunkSize;if(this.ended)return!1;zn=cn===~~cn?cn:!0===cn?4:0,vt.input="string"==typeof $t?te.string2buf($t):"[object ArrayBuffer]"===de.call($t)?new Uint8Array($t):$t,vt.next_in=0,vt.avail_in=vt.input.length;do{if(0===vt.avail_out&&(vt.output=new q.Buf8(Aa),vt.next_out=0,vt.avail_out=Aa),1!==(li=U.deflate(vt,zn))&&0!==li)return this.onEnd(li),this.ended=!0,!1;(0===vt.avail_out||0===vt.avail_in&&(4===zn||2===zn))&&this.onData("string"===this.options.to?te.buf2binstring(q.shrinkBuf(vt.output,vt.next_out)):q.shrinkBuf(vt.output,vt.next_out))}while((vt.avail_in>0||0===vt.avail_out)&&1!==li);return 4===zn?(li=U.deflateEnd(this.strm),this.onEnd(li),this.ended=!0,0===li):(2===zn&&(this.onEnd(0),vt.avail_out=0),!0)},ln.prototype.onData=function($t){this.chunks.push($t)},ln.prototype.onEnd=function($t){0===$t&&(this.result="string"===this.options.to?this.chunks.join(""):q.flattenChunks(this.chunks)),this.chunks=[],this.err=$t,this.msg=this.strm.msg},R.Deflate=ln,R.deflate=Mi,R.deflateRaw=function xo($t,cn){return(cn=cn||{}).raw=!0,Mi($t,cn)},R.gzip=function _n($t,cn){return(cn=cn||{}).gzip=!0,Mi($t,cn)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")},7473:(v,x,S)=>{"use strict";S.d(x,{y:()=>pe});var D=S(14),O=S(1482),R=S(9957),q=S(6831),te=S(6800),ie=S(146);let pe=(()=>{class Ce{constructor(we){this._isScalar=!1,we&&(this._subscribe=we)}lift(we){const Ve=new Ce;return Ve.source=this,Ve.operator=we,Ve}subscribe(we,Ve,Pe){const{operator:rt}=this,Je=function U(Ce,me,we){if(Ce){if(Ce instanceof D.L)return Ce;if(Ce[O.b])return Ce[O.b]()}return Ce||me||we?new D.L(Ce,me,we):new D.L(R.c)}(we,Ve,Pe);if(Je.add(rt?rt.call(Je,this.source):this.source||ie.v.useDeprecatedSynchronousErrorHandling&&!Je.syncErrorThrowable?this._subscribe(Je):this._trySubscribe(Je)),ie.v.useDeprecatedSynchronousErrorHandling&&Je.syncErrorThrowable&&(Je.syncErrorThrowable=!1,Je.syncErrorThrown))throw Je.syncErrorValue;return Je}_trySubscribe(we){try{return this._subscribe(we)}catch(Ve){ie.v.useDeprecatedSynchronousErrorHandling&&(we.syncErrorThrown=!0,we.syncErrorValue=Ve),function n(Ce){for(;Ce;){const{closed:me,destination:we,isStopped:Ve}=Ce;if(me||Ve)return!1;Ce=we&&we instanceof D.L?we:null}return!0}(we)?we.error(Ve):console.warn(Ve)}}forEach(we,Ve){return new(Ve=de(Ve))((Pe,rt)=>{let Je;Je=this.subscribe(xt=>{try{we(xt)}catch(ln){rt(ln),Je&&Je.unsubscribe()}},rt,Pe)})}_subscribe(we){const{source:Ve}=this;return Ve&&Ve.subscribe(we)}[q.L](){return this}pipe(...we){return 0===we.length?this:(0,te.U)(we)(this)}toPromise(we){return new(we=de(we))((Ve,Pe)=>{let rt;this.subscribe(Je=>rt=Je,Je=>Pe(Je),()=>Ve(rt))})}}return Ce.create=me=>new Ce(me),Ce})();function de(Ce){if(Ce||(Ce=ie.v.Promise||Promise),!Ce)throw new Error("no Promise impl found");return Ce}},9957:(v,x,S)=>{"use strict";S.d(x,{c:()=>O});var D=S(146),n=S(8897);const O={closed:!0,next(R){},error(R){if(D.v.useDeprecatedSynchronousErrorHandling)throw R;(0,n.z)(R)},complete(){}}},2218:(v,x,S)=>{"use strict";S.d(x,{Yc:()=>te,xQ:()=>ie});var D=S(7473),n=S(14),O=S(6957),R=S(9086),U=S(1722),q=S(1482);class te extends n.L{constructor(Ce){super(Ce),this.destination=Ce}}let ie=(()=>{class de extends D.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[q.b](){return new te(this)}lift(me){const we=new pe(this,this);return we.operator=me,we}next(me){if(this.closed)throw new R.N;if(!this.isStopped){const{observers:we}=this,Ve=we.length,Pe=we.slice();for(let rt=0;rt<Ve;rt++)Pe[rt].next(me)}}error(me){if(this.closed)throw new R.N;this.hasError=!0,this.thrownError=me,this.isStopped=!0;const{observers:we}=this,Ve=we.length,Pe=we.slice();for(let rt=0;rt<Ve;rt++)Pe[rt].error(me);this.observers.length=0}complete(){if(this.closed)throw new R.N;this.isStopped=!0;const{observers:me}=this,we=me.length,Ve=me.slice();for(let Pe=0;Pe<we;Pe++)Ve[Pe].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(me){if(this.closed)throw new R.N;return super._trySubscribe(me)}_subscribe(me){if(this.closed)throw new R.N;return this.hasError?(me.error(this.thrownError),O.w.EMPTY):this.isStopped?(me.complete(),O.w.EMPTY):(this.observers.push(me),new U.W(this,me))}asObservable(){const me=new D.y;return me.source=this,me}}return de.create=(Ce,me)=>new pe(Ce,me),de})();class pe extends ie{constructor(Ce,me){super(),this.destination=Ce,this.source=me}next(Ce){const{destination:me}=this;me&&me.next&&me.next(Ce)}error(Ce){const{destination:me}=this;me&&me.error&&this.destination.error(Ce)}complete(){const{destination:Ce}=this;Ce&&Ce.complete&&this.destination.complete()}_subscribe(Ce){const{source:me}=this;return me?this.source.subscribe(Ce):O.w.EMPTY}}},1722:(v,x,S)=>{"use strict";S.d(x,{W:()=>n});var D=S(6957);class n extends D.w{constructor(R,U){super(),this.subject=R,this.subscriber=U,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const R=this.subject,U=R.observers;if(this.subject=null,!U||0===U.length||R.isStopped||R.closed)return;const q=U.indexOf(this.subscriber);-1!==q&&U.splice(q,1)}}},14:(v,x,S)=>{"use strict";S.d(x,{L:()=>te});var D=S(1900),n=S(9957),O=S(6957),R=S(1482),U=S(146),q=S(8897);class te extends O.w{constructor(de,Ce,me){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=n.c;break;case 1:if(!de){this.destination=n.c;break}if("object"==typeof de){de instanceof te?(this.syncErrorThrowable=de.syncErrorThrowable,this.destination=de,de.add(this)):(this.syncErrorThrowable=!0,this.destination=new ie(this,de));break}default:this.syncErrorThrowable=!0,this.destination=new ie(this,de,Ce,me)}}[R.b](){return this}static create(de,Ce,me){const we=new te(de,Ce,me);return we.syncErrorThrowable=!1,we}next(de){this.isStopped||this._next(de)}error(de){this.isStopped||(this.isStopped=!0,this._error(de))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(de){this.destination.next(de)}_error(de){this.destination.error(de),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:de}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=de,this}}class ie extends te{constructor(de,Ce,me,we){super(),this._parentSubscriber=de;let Ve,Pe=this;(0,D.m)(Ce)?Ve=Ce:Ce&&(Ve=Ce.next,me=Ce.error,we=Ce.complete,Ce!==n.c&&(Pe=Object.create(Ce),(0,D.m)(Pe.unsubscribe)&&this.add(Pe.unsubscribe.bind(Pe)),Pe.unsubscribe=this.unsubscribe.bind(this))),this._context=Pe,this._next=Ve,this._error=me,this._complete=we}next(de){if(!this.isStopped&&this._next){const{_parentSubscriber:Ce}=this;U.v.useDeprecatedSynchronousErrorHandling&&Ce.syncErrorThrowable?this.__tryOrSetError(Ce,this._next,de)&&this.unsubscribe():this.__tryOrUnsub(this._next,de)}}error(de){if(!this.isStopped){const{_parentSubscriber:Ce}=this,{useDeprecatedSynchronousErrorHandling:me}=U.v;if(this._error)me&&Ce.syncErrorThrowable?(this.__tryOrSetError(Ce,this._error,de),this.unsubscribe()):(this.__tryOrUnsub(this._error,de),this.unsubscribe());else if(Ce.syncErrorThrowable)me?(Ce.syncErrorValue=de,Ce.syncErrorThrown=!0):(0,q.z)(de),this.unsubscribe();else{if(this.unsubscribe(),me)throw de;(0,q.z)(de)}}}complete(){if(!this.isStopped){const{_parentSubscriber:de}=this;if(this._complete){const Ce=()=>this._complete.call(this._context);U.v.useDeprecatedSynchronousErrorHandling&&de.syncErrorThrowable?(this.__tryOrSetError(de,Ce),this.unsubscribe()):(this.__tryOrUnsub(Ce),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(de,Ce){try{de.call(this._context,Ce)}catch(me){if(this.unsubscribe(),U.v.useDeprecatedSynchronousErrorHandling)throw me;(0,q.z)(me)}}__tryOrSetError(de,Ce,me){if(!U.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{Ce.call(this._context,me)}catch(we){return U.v.useDeprecatedSynchronousErrorHandling?(de.syncErrorValue=we,de.syncErrorThrown=!0,!0):((0,q.z)(we),!0)}return!1}_unsubscribe(){const{_parentSubscriber:de}=this;this._context=null,this._parentSubscriber=null,de.unsubscribe()}}},6957:(v,x,S)=>{"use strict";S.d(x,{w:()=>q});var D=S(4327),n=S(6549),O=S(1900);const U=(()=>{function ie(pe){return Error.call(this),this.message=pe?`${pe.length} errors occurred during unsubscription:\n${pe.map((de,Ce)=>`${Ce+1}) ${de.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=pe,this}return ie.prototype=Object.create(Error.prototype),ie})();class q{constructor(pe){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,pe&&(this._ctorUnsubscribe=!0,this._unsubscribe=pe)}unsubscribe(){let pe;if(this.closed)return;let{_parentOrParents:de,_ctorUnsubscribe:Ce,_unsubscribe:me,_subscriptions:we}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,de instanceof q)de.remove(this);else if(null!==de)for(let Ve=0;Ve<de.length;++Ve)de[Ve].remove(this);if((0,O.m)(me)){Ce&&(this._unsubscribe=void 0);try{me.call(this)}catch(Ve){pe=Ve instanceof U?te(Ve.errors):[Ve]}}if((0,D.k)(we)){let Ve=-1,Pe=we.length;for(;++Ve<Pe;){const rt=we[Ve];if((0,n.K)(rt))try{rt.unsubscribe()}catch(Je){pe=pe||[],Je instanceof U?pe=pe.concat(te(Je.errors)):pe.push(Je)}}}if(pe)throw new U(pe)}add(pe){let de=pe;if(!pe)return q.EMPTY;switch(typeof pe){case"function":de=new q(pe);case"object":if(de===this||de.closed||"function"!=typeof de.unsubscribe)return de;if(this.closed)return de.unsubscribe(),de;if(!(de instanceof q)){const we=de;de=new q,de._subscriptions=[we]}break;default:throw new Error("unrecognized teardown "+pe+" added to Subscription.")}let{_parentOrParents:Ce}=de;if(null===Ce)de._parentOrParents=this;else if(Ce instanceof q){if(Ce===this)return de;de._parentOrParents=[Ce,this]}else{if(-1!==Ce.indexOf(this))return de;Ce.push(this)}const me=this._subscriptions;return null===me?this._subscriptions=[de]:me.push(de),de}remove(pe){const de=this._subscriptions;if(de){const Ce=de.indexOf(pe);-1!==Ce&&de.splice(Ce,1)}}}var ie;function te(ie){return ie.reduce((pe,de)=>pe.concat(de instanceof U?de.errors:de),[])}q.EMPTY=((ie=new q).closed=!0,ie)},146:(v,x,S)=>{"use strict";S.d(x,{v:()=>n});let D=!1;const n={Promise:void 0,set useDeprecatedSynchronousErrorHandling(O){if(O){const R=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+R.stack)}else D&&console.log("RxJS: Back to a better error behavior. Thank you. <3");D=O},get useDeprecatedSynchronousErrorHandling(){return D}}},2831:(v,x,S)=>{"use strict";S.d(x,{Ds:()=>q,IY:()=>R,ft:()=>ie});var D=S(14),n=S(7473),O=S(3956);class R extends D.L{constructor(de){super(),this.parent=de}_next(de){this.parent.notifyNext(de)}_error(de){this.parent.notifyError(de),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class q extends D.L{notifyNext(de){this.destination.next(de)}notifyError(de){this.destination.error(de)}notifyComplete(){this.destination.complete()}}function ie(pe,de){if(de.closed)return;if(pe instanceof n.y)return pe.subscribe(de);let Ce;try{Ce=(0,O.s)(pe)(de)}catch(me){de.error(me)}return Ce}},4483:(v,x,S)=>{"use strict";S.d(x,{N:()=>q,c:()=>U});var D=S(2218),n=S(7473),O=S(6957),R=S(8331);class U extends n.y{constructor(Ce,me){super(),this.source=Ce,this.subjectFactory=me,this._refCount=0,this._isComplete=!1}_subscribe(Ce){return this.getSubject().subscribe(Ce)}getSubject(){const Ce=this._subject;return(!Ce||Ce.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let Ce=this._connection;return Ce||(this._isComplete=!1,Ce=this._connection=new O.w,Ce.add(this.source.subscribe(new te(this.getSubject(),this))),Ce.closed&&(this._connection=null,Ce=O.w.EMPTY)),Ce}refCount(){return(0,R.x)()(this)}}const q=(()=>{const de=U.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:de._subscribe},_isComplete:{value:de._isComplete,writable:!0},getSubject:{value:de.getSubject},connect:{value:de.connect},refCount:{value:de.refCount}}})();class te extends D.Yc{constructor(Ce,me){super(Ce),this.connectable=me}_error(Ce){this._unsubscribe(),super._error(Ce)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const Ce=this.connectable;if(Ce){this.connectable=null;const me=Ce._connection;Ce._refCount=0,Ce._subject=null,Ce._connection=null,me&&me.unsubscribe()}}}},4858:(v,x,S)=>{"use strict";S.d(x,{D:()=>Pe});var D=S(7473),n=S(3956),O=S(6957),R=S(6831),te=S(8403),ie=S(2803),Ce=S(5192),me=S(5122);function Pe(rt,Je){return Je?function Ve(rt,Je){if(null!=rt){if(function de(rt){return rt&&"function"==typeof rt[R.L]}(rt))return function U(rt,Je){return new D.y(xt=>{const ln=new O.w;return ln.add(Je.schedule(()=>{const Mi=rt[R.L]();ln.add(Mi.subscribe({next(xo){ln.add(Je.schedule(()=>xt.next(xo)))},error(xo){ln.add(Je.schedule(()=>xt.error(xo)))},complete(){ln.add(Je.schedule(()=>xt.complete()))}}))})),ln})}(rt,Je);if((0,Ce.t)(rt))return function q(rt,Je){return new D.y(xt=>{const ln=new O.w;return ln.add(Je.schedule(()=>rt.then(Mi=>{ln.add(Je.schedule(()=>{xt.next(Mi),ln.add(Je.schedule(()=>xt.complete()))}))},Mi=>{ln.add(Je.schedule(()=>xt.error(Mi)))}))),ln})}(rt,Je);if((0,me.z)(rt))return(0,te.r)(rt,Je);if(function we(rt){return rt&&"function"==typeof rt[ie.hZ]}(rt)||"string"==typeof rt)return function pe(rt,Je){if(!rt)throw new Error("Iterable cannot be null");return new D.y(xt=>{const ln=new O.w;let Mi;return ln.add(()=>{Mi&&"function"==typeof Mi.return&&Mi.return()}),ln.add(Je.schedule(()=>{Mi=rt[ie.hZ](),ln.add(Je.schedule(function(){if(xt.closed)return;let xo,_n;try{const $t=Mi.next();xo=$t.value,_n=$t.done}catch($t){return void xt.error($t)}_n?xt.complete():(xt.next(xo),this.schedule())}))})),ln})}(rt,Je)}throw new TypeError((null!==rt&&typeof rt||rt)+" is not observable")}(rt,Je):rt instanceof D.y?rt:new D.y((0,n.s)(rt))}},8005:(v,x,S)=>{"use strict";S.d(x,{n:()=>R});var D=S(7473),n=S(5414),O=S(8403);function R(U,q){return q?(0,O.r)(U,q):new D.y((0,n.V)(U))}},8623:(v,x,S)=>{"use strict";S.d(x,{T:()=>U});var D=S(7473),n=S(7507),O=S(6675),R=S(8005);function U(...q){let te=Number.POSITIVE_INFINITY,ie=null,pe=q[q.length-1];return(0,n.K)(pe)?(ie=q.pop(),q.length>1&&"number"==typeof q[q.length-1]&&(te=q.pop())):"number"==typeof pe&&(te=q.pop()),null===ie&&1===q.length&&q[0]instanceof D.y?q[0]:(0,O.J)(te)((0,R.n)(q,ie))}},6942:(v,x,S)=>{"use strict";S.d(x,{U:()=>n});var D=S(14);function n(U,q){return function(ie){if("function"!=typeof U)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return ie.lift(new O(U,q))}}class O{constructor(q,te){this.project=q,this.thisArg=te}call(q,te){return te.subscribe(new R(q,this.project,this.thisArg))}}class R extends D.L{constructor(q,te,ie){super(q),this.project=te,this.count=0,this.thisArg=ie||this}_next(q){let te;try{te=this.project.call(this.thisArg,q,this.count++)}catch(ie){return void this.destination.error(ie)}this.destination.next(te)}}},6675:(v,x,S)=>{"use strict";S.d(x,{J:()=>O});var D=S(522),n=S(1356);function O(R=Number.POSITIVE_INFINITY){return(0,D.zg)(n.y,R)}},522:(v,x,S)=>{"use strict";S.d(x,{zg:()=>R});var D=S(6942),n=S(4858),O=S(2831);function R(ie,pe,de=Number.POSITIVE_INFINITY){return"function"==typeof pe?Ce=>Ce.pipe(R((me,we)=>(0,n.D)(ie(me,we)).pipe((0,D.U)((Ve,Pe)=>pe(me,Ve,we,Pe))),de)):("number"==typeof pe&&(de=pe),Ce=>Ce.lift(new U(ie,de)))}class U{constructor(pe,de=Number.POSITIVE_INFINITY){this.project=pe,this.concurrent=de}call(pe,de){return de.subscribe(new q(pe,this.project,this.concurrent))}}class q extends O.Ds{constructor(pe,de,Ce=Number.POSITIVE_INFINITY){super(pe),this.project=de,this.concurrent=Ce,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(pe){this.active<this.concurrent?this._tryNext(pe):this.buffer.push(pe)}_tryNext(pe){let de;const Ce=this.index++;try{de=this.project(pe,Ce)}catch(me){return void this.destination.error(me)}this.active++,this._innerSub(de)}_innerSub(pe){const de=new O.IY(this),Ce=this.destination;Ce.add(de);const me=(0,O.ft)(pe,de);me!==de&&Ce.add(me)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(pe){this.destination.next(pe)}notifyComplete(){const pe=this.buffer;this.active--,pe.length>0?this._next(pe.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},2787:(v,x,S)=>{"use strict";S.d(x,{O:()=>n});var D=S(4483);function n(R,U){return function(te){let ie;if(ie="function"==typeof R?R:function(){return R},"function"==typeof U)return te.lift(new O(ie,U));const pe=Object.create(te,D.N);return pe.source=te,pe.subjectFactory=ie,pe}}class O{constructor(U,q){this.subjectFactory=U,this.selector=q}call(U,q){const{selector:te}=this,ie=this.subjectFactory(),pe=te(ie).subscribe(U);return pe.add(q.subscribe(ie)),pe}}},8331:(v,x,S)=>{"use strict";S.d(x,{x:()=>n});var D=S(14);function n(){return function(q){return q.lift(new O(q))}}class O{constructor(q){this.connectable=q}call(q,te){const{connectable:ie}=this;ie._refCount++;const pe=new R(q,ie),de=te.subscribe(pe);return pe.closed||(pe.connection=ie.connect()),de}}class R extends D.L{constructor(q,te){super(q),this.connectable=te}_unsubscribe(){const{connectable:q}=this;if(!q)return void(this.connection=null);this.connectable=null;const te=q._refCount;if(te<=0)return void(this.connection=null);if(q._refCount=te-1,te>1)return void(this.connection=null);const{connection:ie}=this,pe=q._connection;this.connection=null,pe&&(!ie||pe===ie)&&pe.unsubscribe()}}},4514:(v,x,S)=>{"use strict";S.d(x,{B:()=>U});var D=S(2787),n=S(8331),O=S(2218);function R(){return new O.xQ}function U(){return q=>(0,n.x)()((0,D.O)(R)(q))}},8403:(v,x,S)=>{"use strict";S.d(x,{r:()=>O});var D=S(7473),n=S(6957);function O(R,U){return new D.y(q=>{const te=new n.w;let ie=0;return te.add(U.schedule(function(){ie!==R.length?(q.next(R[ie++]),q.closed||te.add(this.schedule())):q.complete()})),te})}},2803:(v,x,S)=>{"use strict";S.d(x,{hZ:()=>n});const n=function D(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},6831:(v,x,S)=>{"use strict";S.d(x,{L:()=>D});const D="function"==typeof Symbol&&Symbol.observable||"@@observable"},1482:(v,x,S)=>{"use strict";S.d(x,{b:()=>D});const D="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},9086:(v,x,S)=>{"use strict";S.d(x,{N:()=>n});const n=(()=>{function O(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return O.prototype=Object.create(Error.prototype),O})()},8897:(v,x,S)=>{"use strict";function D(n){setTimeout(()=>{throw n},0)}S.d(x,{z:()=>D})},1356:(v,x,S)=>{"use strict";function D(n){return n}S.d(x,{y:()=>D})},4327:(v,x,S)=>{"use strict";S.d(x,{k:()=>D});const D=Array.isArray||(n=>n&&"number"==typeof n.length)},5122:(v,x,S)=>{"use strict";S.d(x,{z:()=>D});const D=n=>n&&"number"==typeof n.length&&"function"!=typeof n},1900:(v,x,S)=>{"use strict";function D(n){return"function"==typeof n}S.d(x,{m:()=>D})},6549:(v,x,S)=>{"use strict";function D(n){return null!==n&&"object"==typeof n}S.d(x,{K:()=>D})},5192:(v,x,S)=>{"use strict";function D(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}S.d(x,{t:()=>D})},7507:(v,x,S)=>{"use strict";function D(n){return n&&"function"==typeof n.schedule}S.d(x,{K:()=>D})},6800:(v,x,S)=>{"use strict";S.d(x,{U:()=>O,z:()=>n});var D=S(1356);function n(...R){return O(R)}function O(R){return 0===R.length?D.y:1===R.length?R[0]:function(q){return R.reduce((te,ie)=>ie(te),q)}}},3956:(v,x,S)=>{"use strict";S.d(x,{s:()=>Ce});var D=S(5414),n=S(8897),R=S(2803),q=S(6831),ie=S(5122),pe=S(5192),de=S(6549);const Ce=me=>{if(me&&"function"==typeof me[q.L])return(me=>we=>{const Ve=me[q.L]();if("function"!=typeof Ve.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return Ve.subscribe(we)})(me);if((0,ie.z)(me))return(0,D.V)(me);if((0,pe.t)(me))return(me=>we=>(me.then(Ve=>{we.closed||(we.next(Ve),we.complete())},Ve=>we.error(Ve)).then(null,n.z),we))(me);if(me&&"function"==typeof me[R.hZ])return(me=>we=>{const Ve=me[R.hZ]();for(;;){let Pe;try{Pe=Ve.next()}catch(rt){return we.error(rt),we}if(Pe.done){we.complete();break}if(we.next(Pe.value),we.closed)break}return"function"==typeof Ve.return&&we.add(()=>{Ve.return&&Ve.return()}),we})(me);{const Ve=`You provided ${(0,de.K)(me)?"an invalid object":`'${me}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(Ve)}}},5414:(v,x,S)=>{"use strict";S.d(x,{V:()=>D});const D=n=>O=>{for(let R=0,U=n.length;R<U&&!O.closed;R++)O.next(n[R]);O.complete()}},6700:(v,x,S)=>{var D={"./af":8685,"./af.js":8685,"./ar":254,"./ar-dz":4312,"./ar-dz.js":4312,"./ar-kw":2614,"./ar-kw.js":2614,"./ar-ly":8630,"./ar-ly.js":8630,"./ar-ma":8674,"./ar-ma.js":8674,"./ar-sa":9032,"./ar-sa.js":9032,"./ar-tn":4730,"./ar-tn.js":4730,"./ar.js":254,"./az":3052,"./az.js":3052,"./be":150,"./be.js":150,"./bg":3069,"./bg.js":3069,"./bm":3466,"./bm.js":3466,"./bn":8516,"./bn.js":8516,"./bo":6273,"./bo.js":6273,"./br":9588,"./br.js":9588,"./bs":9815,"./bs.js":9815,"./ca":3331,"./ca.js":3331,"./cs":1320,"./cs.js":1320,"./cv":2219,"./cv.js":2219,"./cy":8266,"./cy.js":8266,"./da":6427,"./da.js":6427,"./de":7435,"./de-at":2871,"./de-at.js":2871,"./de-ch":2994,"./de-ch.js":2994,"./de.js":7435,"./dv":2357,"./dv.js":2357,"./el":5649,"./el.js":5649,"./en-SG":8661,"./en-SG.js":8661,"./en-au":9961,"./en-au.js":9961,"./en-ca":9878,"./en-ca.js":9878,"./en-gb":3924,"./en-gb.js":3924,"./en-ie":864,"./en-ie.js":864,"./en-il":1579,"./en-il.js":1579,"./en-nz":6181,"./en-nz.js":6181,"./eo":5291,"./eo.js":5291,"./es":4529,"./es-do":3764,"./es-do.js":3764,"./es-us":3425,"./es-us.js":3425,"./es.js":4529,"./et":5203,"./et.js":5203,"./eu":678,"./eu.js":678,"./fa":3483,"./fa.js":3483,"./fi":6262,"./fi.js":6262,"./fo":4555,"./fo.js":4555,"./fr":3131,"./fr-ca":8239,"./fr-ca.js":8239,"./fr-ch":1702,"./fr-ch.js":1702,"./fr.js":3131,"./fy":267,"./fy.js":267,"./ga":3821,"./ga.js":3821,"./gd":1753,"./gd.js":1753,"./gl":4074,"./gl.js":4074,"./gom-latn":5969,"./gom-latn.js":5969,"./gu":2809,"./gu.js":2809,"./he":5402,"./he.js":5402,"./hi":315,"./hi.js":315,"./hr":410,"./hr.js":410,"./hu":8288,"./hu.js":8288,"./hy-am":7928,"./hy-am.js":7928,"./id":1334,"./id.js":1334,"./is":6959,"./is.js":6959,"./it":4864,"./it-ch":1124,"./it-ch.js":1124,"./it.js":4864,"./ja":6141,"./ja.js":6141,"./jv":9187,"./jv.js":9187,"./ka":2136,"./ka.js":2136,"./kk":4332,"./kk.js":4332,"./km":8607,"./km.js":8607,"./kn":4305,"./kn.js":4305,"./ko":234,"./ko.js":234,"./ku":6003,"./ku.js":6003,"./ky":5061,"./ky.js":5061,"./lb":2786,"./lb.js":2786,"./lo":6183,"./lo.js":6183,"./lt":29,"./lt.js":29,"./lv":4169,"./lv.js":4169,"./me":8577,"./me.js":8577,"./mi":8177,"./mi.js":8177,"./mk":337,"./mk.js":337,"./ml":5260,"./ml.js":5260,"./mn":2325,"./mn.js":2325,"./mr":4695,"./mr.js":4695,"./ms":5334,"./ms-my":7151,"./ms-my.js":7151,"./ms.js":5334,"./mt":3570,"./mt.js":3570,"./my":7963,"./my.js":7963,"./nb":8028,"./nb.js":8028,"./ne":6638,"./ne.js":6638,"./nl":302,"./nl-be":6782,"./nl-be.js":6782,"./nl.js":302,"./nn":3501,"./nn.js":3501,"./pa-in":869,"./pa-in.js":869,"./pl":5302,"./pl.js":5302,"./pt":9687,"./pt-br":4884,"./pt-br.js":4884,"./pt.js":9687,"./ro":9107,"./ro.js":9107,"./ru":3627,"./ru.js":3627,"./sd":355,"./sd.js":355,"./se":3427,"./se.js":3427,"./si":1848,"./si.js":1848,"./sk":4590,"./sk.js":4590,"./sl":184,"./sl.js":184,"./sq":6361,"./sq.js":6361,"./sr":8965,"./sr-cyrl":1287,"./sr-cyrl.js":1287,"./sr.js":8965,"./ss":5456,"./ss.js":5456,"./sv":451,"./sv.js":451,"./sw":7558,"./sw.js":7558,"./ta":2702,"./ta.js":2702,"./te":3693,"./te.js":3693,"./tet":1243,"./tet.js":1243,"./tg":2500,"./tg.js":2500,"./th":5768,"./th.js":5768,"./tl-ph":5780,"./tl-ph.js":5780,"./tlh":9590,"./tlh.js":9590,"./tr":3807,"./tr.js":3807,"./tzl":3857,"./tzl.js":3857,"./tzm":654,"./tzm-latn":8806,"./tzm-latn.js":8806,"./tzm.js":654,"./ug-cn":845,"./ug-cn.js":845,"./uk":9232,"./uk.js":9232,"./ur":7052,"./ur.js":7052,"./uz":7967,"./uz-latn":2233,"./uz-latn.js":2233,"./uz.js":7967,"./vi":8615,"./vi.js":8615,"./x-pseudo":2320,"./x-pseudo.js":2320,"./yo":1313,"./yo.js":1313,"./zh-cn":4490,"./zh-cn.js":4490,"./zh-hk":5910,"./zh-hk.js":5910,"./zh-tw":4223,"./zh-tw.js":4223};function n(R){var U=O(R);return S(U)}function O(R){if(!S.o(D,R)){var U=new Error("Cannot find module '"+R+"'");throw U.code="MODULE_NOT_FOUND",U}return D[R]}n.keys=function(){return Object.keys(D)},n.resolve=O,v.exports=n,n.id=6700},2560:(v,x,S)=>{"use strict";S.d(x,{$8M:()=>vb,$Z:()=>xM,AA_:()=>ae,AFp:()=>OD,ALo:()=>V2,AaK:()=>ie,AcB:()=>It,AsE:()=>m3,B6R:()=>rn,BQk:()=>vv,CHM:()=>wh,CRH:()=>r1,CZH:()=>qf,CqO:()=>G5,D6c:()=>pk,DdM:()=>W3,Dn7:()=>q2,DtL:()=>i8,EJc:()=>BD,EiD:()=>IA,EpF:()=>r3,F$t:()=>K5,F4k:()=>a3,FYo:()=>Kw,FiY:()=>E,G48:()=>Fs,Gf:()=>Wi,GfV:()=>I_,GkF:()=>w2,Gpc:()=>Ce,Gre:()=>MN,HTZ:()=>nD,Hh0:()=>iD,Hsn:()=>X5,IIB:()=>ix,Ikx:()=>P2,JOm:()=>zl,JVY:()=>EO,Jf7:()=>eM,KtG:()=>Oo,L6J:()=>Yj,L6k:()=>PO,LAX:()=>NO,LFG:()=>vr,LMc:()=>Ax,LSH:()=>EA,Lbi:()=>Q8,Lck:()=>j3,MAs:()=>t3,MGl:()=>D2,MMx:()=>j2,NdJ:()=>s3,O4$:()=>o_,OlP:()=>yo,Oqu:()=>f3,PXZ:()=>s9,Q6J:()=>T2,QGY:()=>M2,QP$:()=>rr,QbO:()=>W8,Qsj:()=>qO,QtT:()=>o8,R0b:()=>ec,RDi:()=>xA,Rgc:()=>t1,SBq:()=>If,SDv:()=>B3,Sil:()=>Fv,Suo:()=>E8,TTD:()=>Gd,TgZ:()=>S2,Tol:()=>hN,Udp:()=>p3,VKq:()=>K3,W1O:()=>N8,WLB:()=>X3,X6Q:()=>Rs,XFs:()=>en,Xpm:()=>on,Xts:()=>NA,Y36:()=>qh,YKP:()=>K_,YNc:()=>x2,Yjl:()=>_t,Yz7:()=>mo,Z0I:()=>ls,ZZ4:()=>f1,_Bn:()=>Mc,_UZ:()=>o3,_Vd:()=>kf,_c5:()=>dk,_uU:()=>yN,aQ5:()=>qC,aQg:()=>Zv,c2e:()=>K8,cJS:()=>zr,cQ8:()=>d3,cg1:()=>N2,d8E:()=>O2,dDg:()=>GD,dqk:()=>Zt,dwT:()=>tg,eBb:()=>OO,eFA:()=>Jf,ekj:()=>h3,eoX:()=>sx,evT:()=>tM,f3M:()=>Mb,g9A:()=>LD,h0i:()=>W_,hGG:()=>uk,hYB:()=>k2,hij:()=>E2,i9L:()=>yb,iGM:()=>Tp,ifc:()=>qt,ip1:()=>PD,jDz:()=>d8,kEZ:()=>X_,kL8:()=>Si,kYT:()=>Qe,l5B:()=>eD,lG2:()=>he,lcZ:()=>z2,lnq:()=>_3,lqb:()=>Vh,lri:()=>VD,mCW:()=>fu,n5z:()=>Oh,n_E:()=>e1,oAB:()=>J,oJD:()=>M_,oxw:()=>W5,pB0:()=>Lw,pQV:()=>H3,pfw:()=>J8,q3G:()=>sr,q4F:()=>jA,qLn:()=>mu,qOj:()=>ms,qZA:()=>Y_,qbA:()=>tD,qzn:()=>Sf,rFY:()=>m8,rWj:()=>zD,r_U:()=>ED,s9C:()=>c3,sBO:()=>g9,sIi:()=>gi,s_b:()=>J2,soG:()=>c1,tBr:()=>Ti,tb:()=>RD,tp0:()=>W,uIk:()=>A2,uOi:()=>PA,vHH:()=>Pe,vR:()=>tw,vpe:()=>Cd,wAp:()=>hn,xi3:()=>G2,xp6:()=>cM,ynx:()=>bv,z2F:()=>h1,z3N:()=>hu,zSh:()=>FA,zs3:()=>zh});var D=S(2218),n=S(6957),O=S(7473),R=S(8623),U=S(4514);function q(h){for(let m in h)if(h[m]===q)return m;throw Error("Could not find renamed property on target object.")}function te(h,m){for(const C in m)m.hasOwnProperty(C)&&!h.hasOwnProperty(C)&&(h[C]=m[C])}function ie(h){if("string"==typeof h)return h;if(Array.isArray(h))return"["+h.map(ie).join(", ")+"]";if(null==h)return""+h;if(h.overriddenName)return`${h.overriddenName}`;if(h.name)return`${h.name}`;const m=h.toString();if(null==m)return""+m;const C=m.indexOf("\n");return-1===C?m:m.substring(0,C)}function pe(h,m){return null==h||""===h?null===m?"":m:null==m||""===m?h:h+" "+m}const de=q({__forward_ref__:q});function Ce(h){return h.__forward_ref__=Ce,h.toString=function(){return ie(this())},h}function me(h){return we(h)?h():h}function we(h){return"function"==typeof h&&h.hasOwnProperty(de)&&h.__forward_ref__===Ce}class Pe extends Error{constructor(m,C){super(function rt(h,m){return`NG0${Math.abs(h)}${m?": "+m.trim():""}`}(m,C)),this.code=m}}function Je(h){return"string"==typeof h?h:null==h?"":String(h)}function _n(h,m){throw new Pe(-201,!1)}function pi(h,m,C,T){throw new Error(`ASSERTION ERROR: ${h}`+(null==T?"":` [Expected=> ${C} ${T} ${m} <=Actual]`))}function mo(h){return{token:h.token,providedIn:h.providedIn||null,factory:h.factory,value:void 0}}function zr(h){return{providers:h.providers||[],imports:h.imports||[]}}function Zi(h){return Gr(h,Po)||Gr(h,Ln)}function ls(h){return null!==Zi(h)}function Gr(h,m){return h.hasOwnProperty(m)?h[m]:null}function Gn(h){return h&&(h.hasOwnProperty(Ho)||h.hasOwnProperty(So))?h[Ho]:null}const Po=q({\u0275prov:q}),Ho=q({\u0275inj:q}),Ln=q({ngInjectableDef:q}),So=q({ngInjectorDef:q});var en=(()=>((en=en||{})[en.Default=0]="Default",en[en.Host=1]="Host",en[en.Self=2]="Self",en[en.SkipSelf=4]="SkipSelf",en[en.Optional=8]="Optional",en))();let eo;function lo(h){const m=eo;return eo=h,m}function co(h,m,C){const T=Zi(h);return T&&"root"==T.providedIn?void 0===T.value?T.value=T.factory():T.value:C&en.Optional?null:void 0!==m?m:void _n(ie(h))}function Gt(h){return{toString:h}.toString()}var mr=(()=>((mr=mr||{})[mr.OnPush=0]="OnPush",mr[mr.Default=1]="Default",mr))(),qt=(()=>{return(h=qt||(qt={}))[h.Emulated=0]="Emulated",h[h.None=2]="None",h[h.ShadowDom=3]="ShadowDom",qt;var h})();const Zt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),or={},An=[],In=q({\u0275cmp:q}),cl=q({\u0275dir:q}),ge=q({\u0275pipe:q}),dt=q({\u0275mod:q}),et=q({\u0275fac:q}),Ot=q({__NG_ELEMENT_ID__:q});let tn=0;function on(h){return Gt(()=>{const C=!0===h.standalone,T={},M={type:h.type,providersResolver:null,decls:h.decls,vars:h.vars,factory:null,template:h.template||null,consts:h.consts||null,ngContentSelectors:h.ngContentSelectors,hostBindings:h.hostBindings||null,hostVars:h.hostVars||0,hostAttrs:h.hostAttrs||null,contentQueries:h.contentQueries||null,declaredInputs:T,inputs:null,outputs:null,exportAs:h.exportAs||null,onPush:h.changeDetection===mr.OnPush,directiveDefs:null,pipeDefs:null,standalone:C,dependencies:C&&h.dependencies||null,getStandaloneInjector:null,selectors:h.selectors||An,viewQuery:h.viewQuery||null,features:h.features||null,data:h.data||{},encapsulation:h.encapsulation||qt.Emulated,id:"c"+tn++,styles:h.styles||An,_:null,setInput:null,schemas:h.schemas||null,tView:null},k=h.dependencies,N=h.features;return M.inputs=We(h.inputs,T),M.outputs=We(h.outputs),N&&N.forEach(H=>H(M)),M.directiveDefs=k?()=>("function"==typeof k?k():k).map(Un).filter(Vi):null,M.pipeDefs=k?()=>("function"==typeof k?k():k).map(wt).filter(Vi):null,M})}function rn(h,m,C){const T=h.\u0275cmp;T.directiveDefs=()=>("function"==typeof m?m():m).map(Un),T.pipeDefs=()=>("function"==typeof C?C():C).map(wt)}function Un(h){return Rt(h)||Ft(h)}function Vi(h){return null!==h}function J(h){return Gt(()=>({type:h.type,bootstrap:h.bootstrap||An,declarations:h.declarations||An,imports:h.imports||An,exports:h.exports||An,transitiveCompileScopes:null,schemas:h.schemas||null,id:h.id||null}))}function Qe(h,m){return Gt(()=>{const C=Bn(h,!0);C.declarations=m.declarations||An,C.imports=m.imports||An,C.exports=m.exports||An})}function We(h,m){if(null==h)return or;const C={};for(const T in h)if(h.hasOwnProperty(T)){let M=h[T],k=M;Array.isArray(M)&&(k=M[1],M=M[0]),C[M]=T,m&&(m[M]=k)}return C}const he=on;function _t(h){return{type:h.type,name:h.name,factory:null,pure:!1!==h.pure,standalone:!0===h.standalone,onDestroy:h.type.prototype.ngOnDestroy||null}}function Rt(h){return h[In]||null}function Ft(h){return h[cl]||null}function wt(h){return h[ge]||null}function rr(h){const m=Rt(h)||Ft(h)||wt(h);return null!==m&&m.standalone}function Bn(h,m){const C=h[dt]||null;if(!C&&!0===m)throw new Error(`Type ${ie(h)} does not have '\u0275mod' property.`);return C}function Ha(h){return Array.isArray(h)&&"object"==typeof h[1]}function ds(h){return Array.isArray(h)&&!0===h[1]}function qc(h){return 0!=(8&h.flags)}function zs(h){return 2==(2&h.flags)}function gc(h){return 1==(1&h.flags)}function da(h){return null!==h.template}function fc(h){return 0!=(256&h[2])}function $l(h,m){return h.hasOwnProperty(et)?h[et]:null}class Xg{constructor(m,C,T){this.previousValue=m,this.currentValue=C,this.firstChange=T}isFirstChange(){return this.firstChange}}function Gd(){return ef}function ef(h){return h.type.prototype.ngOnChanges&&(h.setInput=qd),Jo}function Jo(){const h=Qc(this),m=h?.current;if(m){const C=h.previous;if(C===or)h.previous=m;else for(let T in m)C[T]=m[T];h.current=null,this.ngOnChanges(m)}}function qd(h,m,C,T){const M=Qc(h)||function vh(h,m){return h[np]=m}(h,{previous:or,current:null}),k=M.current||(M.current={}),N=M.previous,H=this.declaredInputs[C],j=N[H];k[H]=new Xg(j&&j.currentValue,m,N===or),h[T]=m}Gd.ngInherit=!0;const np="__ngSimpleChanges__";function Qc(h){return h[np]||null}function hi(h){for(;Array.isArray(h);)h=h[0];return h}function qs(h,m){return hi(m[h])}function ua(h,m){return hi(m[h.index])}function hl(h,m){return h.data[m]}function gl(h,m){return h[m]}function us(h,m){const C=m[h];return Ha(C)?C:C[0]}function Wd(h){return 64==(64&h[2])}function $o(h,m){return null==m?null:h[m]}function Ah(h){h[18]=0}function Qs(h,m){h[5]+=m;let C=h,T=h[3];for(;null!==T&&(1===m&&1===C[5]||-1===m&&0===C[5]);)T[5]+=m,C=T,T=T[3]}const Rn={lFrame:Ih(null),bindingsEnabled:!0};function Kc(){return Rn.bindingsEnabled}function st(){return Rn.lFrame.lView}function fi(){return Rn.lFrame.tView}function wh(h){return Rn.lFrame.contextLView=h,h[8]}function Oo(h){return Rn.lFrame.contextLView=null,h}function _r(){let h=rf();for(;null!==h&&64===h.type;)h=h.parent;return h}function rf(){return Rn.lFrame.currentTNode}function Xc(){const h=Rn.lFrame,m=h.currentTNode;return h.isParent?m:m.parent}function Ws(h,m){const C=Rn.lFrame;C.currentTNode=h,C.isParent=m}function Kd(){return Rn.lFrame.isParent}function Mh(){Rn.lFrame.isParent=!1}function $a(){const h=Rn.lFrame;let m=h.bindingRootIndex;return-1===m&&(m=h.bindingRootIndex=h.tView.bindingStartIndex),m}function fl(){return Rn.lFrame.bindingIndex}function Xd(){return Rn.lFrame.bindingIndex++}function Mr(h){const m=Rn.lFrame,C=m.bindingIndex;return m.bindingIndex=m.bindingIndex+h,C}function Ks(h){Rn.lFrame.inI18n=h}function ed(h,m){const C=Rn.lFrame;C.bindingIndex=C.bindingRootIndex=h,Yl(m)}function Yl(h){Rn.lFrame.currentDirectiveIndex=h}function td(h){const m=Rn.lFrame.currentDirectiveIndex;return-1===m?null:h[m]}function Dh(){return Rn.lFrame.currentQueryIndex}function nd(h){Rn.lFrame.currentQueryIndex=h}function Gi(h){const m=h[1];return 2===m.type?m.declTNode:1===m.type?h[6]:null}function kh(h,m,C){if(C&en.SkipSelf){let M=m,k=h;for(;!(M=M.parent,null!==M||C&en.Host||(M=Gi(k),null===M||(k=k[15],10&M.type))););if(null===M)return!1;m=M,h=k}const T=Rn.lFrame=ap();return T.currentTNode=m,T.lView=h,!0}function rp(h){const m=ap(),C=h[1];Rn.lFrame=m,m.currentTNode=C.firstChild,m.lView=h,m.tView=C,m.contextLView=h,m.bindingIndex=C.bindingStartIndex,m.inI18n=!1}function ap(){const h=Rn.lFrame,m=null===h?null:h.child;return null===m?Ih(h):m}function Ih(h){const m={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:h,child:null,inI18n:!1};return null!==h&&(h.child=m),m}function Eh(){const h=Rn.lFrame;return Rn.lFrame=h.parent,h.currentTNode=null,h.lView=null,h}const Ph=Eh;function eu(){const h=Eh();h.isParent=!0,h.tView=null,h.selectedIndex=-1,h.contextLView=null,h.elementDepthCount=0,h.currentDirectiveIndex=-1,h.currentNamespace=null,h.bindingRootIndex=-1,h.bindingIndex=-1,h.currentQueryIndex=0}function pa(){return Rn.lFrame.selectedIndex}function _c(h){Rn.lFrame.selectedIndex=h}function Qo(){const h=Rn.lFrame;return hl(h.tView,h.selectedIndex)}function o_(){Rn.lFrame.currentNamespace="svg"}function tu(h,m){for(let C=m.directiveStart,T=m.directiveEnd;C<T;C++){const k=h.data[C].type.prototype,{ngAfterContentInit:N,ngAfterContentChecked:H,ngAfterViewInit:j,ngAfterViewChecked:X,ngOnDestroy:le}=k;N&&(h.contentHooks||(h.contentHooks=[])).push(-C,N),H&&((h.contentHooks||(h.contentHooks=[])).push(C,H),(h.contentCheckHooks||(h.contentCheckHooks=[])).push(C,H)),j&&(h.viewHooks||(h.viewHooks=[])).push(-C,j),X&&((h.viewHooks||(h.viewHooks=[])).push(C,X),(h.viewCheckHooks||(h.viewCheckHooks=[])).push(C,X)),null!=le&&(h.destroyHooks||(h.destroyHooks=[])).push(C,le)}}function wa(h,m,C){df(h,m,3,C)}function Ua(h,m,C,T){(3&h[2])===C&&df(h,m,C,T)}function ml(h,m){let C=h[2];(3&C)===m&&(C&=2047,C+=1,h[2]=C)}function df(h,m,C,T){const k=T??-1,N=m.length-1;let H=0;for(let j=void 0!==T?65535&h[18]:0;j<N;j++)if("number"==typeof m[j+1]){if(H=m[j],null!=T&&H>=T)break}else m[j]<0&&(h[18]+=65536),(H<k||-1==k)&&(db(h,C,m,j),h[18]=(4294901760&h[18])+j+2),j++}function db(h,m,C,T){const M=C[T]<0,k=C[T+1],H=h[M?-C[T]:C[T]];if(M){if(h[2]>>11<h[18]>>16&&(3&h[2])===m){h[2]+=2048;try{k.call(H)}finally{}}}else try{k.call(H)}finally{}}class nu{constructor(m,C,T){this.factory=m,this.resolving=!1,this.canSeeViewProviders=C,this.injectImpl=T}}function bc(h,m,C){let T=0;for(;T<C.length;){const M=C[T];if("number"==typeof M){if(0!==M)break;T++;const k=C[T++],N=C[T++],H=C[T++];h.setAttribute(m,N,H,k)}else{const k=M,N=C[++T];id(k)?h.setProperty(m,k,N):h.setAttribute(m,k,N),T++}}return T}function hf(h){return 3===h||4===h||6===h}function id(h){return 64===h.charCodeAt(0)}function qr(h,m){if(null!==m&&0!==m.length)if(null===h||0===h.length)h=m.slice();else{let C=-1;for(let T=0;T<m.length;T++){const M=m[T];"number"==typeof M?C=M:0===C||iu(h,C,M,null,-1===C||2===C?m[++T]:null)}}return h}function iu(h,m,C,T,M){let k=0,N=h.length;if(-1===m)N=-1;else for(;k<h.length;){const H=h[k++];if("number"==typeof H){if(H===m){N=-1;break}if(H>m){N=k-1;break}}}for(;k<h.length;){const H=h[k];if("number"==typeof H)break;if(H===C){if(null===T)return void(null!==M&&(h[k+1]=M));if(T===h[k+1])return void(h[k+2]=M)}k++,null!==T&&k++,null!==M&&k++}-1!==N&&(h.splice(N,0,m),k=N+1),h.splice(k++,0,C),null!==T&&h.splice(k++,0,T),null!==M&&h.splice(k++,0,M)}function gf(h){return-1!==h}function ou(h){return 32767&h}function ru(h,m){let C=function fb(h){return h>>16}(h),T=m;for(;C>0;)T=T[15],C--;return T}let au=!0;function vc(h){const m=au;return au=h,m}let ne=0;const fe={};function $e(h,m){const C=Tt(h,m);if(-1!==C)return C;const T=m[1];T.firstCreatePass&&(h.injectorIndex=m.length,bt(T.data,h),bt(m,null),bt(T.blueprint,null));const M=ut(h,m),k=h.injectorIndex;if(gf(M)){const N=ou(M),H=ru(M,m),j=H[1].data;for(let X=0;X<8;X++)m[k+X]=H[N+X]|j[N+X]}return m[k+8]=M,k}function bt(h,m){h.push(0,0,0,0,0,0,0,0,m)}function Tt(h,m){return-1===h.injectorIndex||h.parent&&h.parent.injectorIndex===h.injectorIndex||null===m[h.injectorIndex+8]?-1:h.injectorIndex}function ut(h,m){if(h.parent&&-1!==h.parent.injectorIndex)return h.parent.injectorIndex;let C=0,T=null,M=m;for(;null!==M;){if(T=ff(M),null===T)return-1;if(C++,M=M[15],-1!==T.injectorIndex)return T.injectorIndex|C<<16}return-1}function zt(h,m,C){!function xe(h,m,C){let T;"string"==typeof C?T=C.charCodeAt(0)||0:C.hasOwnProperty(Ot)&&(T=C[Ot]),null==T&&(T=C[Ot]=ne++);const M=255&T;m.data[h+(M>>5)]|=1<<M}(h,m,C)}function Jn(h,m,C){if(C&en.Optional||void 0!==h)return h;_n()}function En(h,m,C,T){if(C&en.Optional&&void 0===T&&(T=null),0==(C&(en.Self|en.Host))){const M=h[9],k=lo(void 0);try{return M?M.get(m,T,C&en.Optional):co(m,T,C&en.Optional)}finally{lo(k)}}return Jn(T,0,C)}function Uo(h,m,C,T=en.Default,M){if(null!==h){if(1024&m[2]){const N=function zC(h,m,C,T,M){let k=h,N=m;for(;null!==k&&null!==N&&1024&N[2]&&!(256&N[2]);){const H=Br(k,N,C,T|en.Self,fe);if(H!==fe)return H;let j=k.parent;if(!j){const X=N[21];if(X){const le=X.get(C,fe,T);if(le!==fe)return le}j=ff(N),N=N[15]}k=j}return M}(h,m,C,T,fe);if(N!==fe)return N}const k=Br(h,m,C,T,fe);if(k!==fe)return k}return En(m,C,T,M)}function Br(h,m,C,T,M){const k=function su(h){if("string"==typeof h)return h.charCodeAt(0)||0;const m=h.hasOwnProperty(Ot)?h[Ot]:void 0;return"number"==typeof m?m>=0?255&m:bb:m}(C);if("function"==typeof k){if(!kh(m,h,T))return T&en.Host?Jn(M,0,T):En(m,C,T,M);try{const N=k(T);if(null!=N||T&en.Optional)return N;_n()}finally{Ph()}}else if("number"==typeof k){let N=null,H=Tt(h,m),j=-1,X=T&en.Host?m[16][6]:null;for((-1===H||T&en.SkipSelf)&&(j=-1===H?ut(h,m):m[H+8],-1!==j&&_b(T,!1)?(N=m[1],H=ou(j),m=ru(j,m)):H=-1);-1!==H;){const le=m[1];if(mb(k,H,le.data)){const ve=Ka(H,m,C,N,T,X);if(ve!==fe)return ve}j=m[H+8],-1!==j&&_b(T,m[1].data[H+8]===X)&&mb(k,H,m)?(N=le,H=ou(j),m=ru(j,m)):H=-1}}return M}function Ka(h,m,C,T,M,k){const N=m[1],H=N.data[h+8],le=yc(H,N,C,null==T?zs(H)&&au:T!=N&&0!=(3&H.type),M&en.Host&&k===H);return null!==le?br(m,N,le,H):fe}function yc(h,m,C,T,M){const k=h.providerIndexes,N=m.data,H=1048575&k,j=h.directiveStart,le=k>>20,De=M?H+le:h.directiveEnd;for(let Fe=T?H:H+le;Fe<De;Fe++){const nt=N[Fe];if(Fe<j&&C===nt||Fe>=j&&nt.type===C)return Fe}if(M){const Fe=N[j];if(Fe&&da(Fe)&&Fe.type===C)return j}return null}function br(h,m,C,T){let M=h[C];const k=m.data;if(function VC(h){return h instanceof nu}(M)){const N=M;N.resolving&&function ln(h,m){const C=m?`. Dependency path: ${m.join(" > ")} > ${h}`:"";throw new Pe(-200,`Circular dependency in DI detected for ${h}${C}`)}(function xt(h){return"function"==typeof h?h.name||h.toString():"object"==typeof h&&null!=h&&"function"==typeof h.type?h.type.name||h.type.toString():Je(h)}(k[C]));const H=vc(N.canSeeViewProviders);N.resolving=!0;const j=N.injectImpl?lo(N.injectImpl):null;kh(h,T,en.Default);try{M=h[C]=N.factory(void 0,k,h,T),m.firstCreatePass&&C>=T.directiveStart&&function cf(h,m,C){const{ngOnChanges:T,ngOnInit:M,ngDoCheck:k}=m.type.prototype;if(T){const N=ef(m);(C.preOrderHooks||(C.preOrderHooks=[])).push(h,N),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(h,N)}M&&(C.preOrderHooks||(C.preOrderHooks=[])).push(0-h,M),k&&((C.preOrderHooks||(C.preOrderHooks=[])).push(h,k),(C.preOrderCheckHooks||(C.preOrderCheckHooks=[])).push(h,k))}(C,k[C],m)}finally{null!==j&&lo(j),vc(H),N.resolving=!1,Ph()}}return M}function mb(h,m,C){return!!(C[m+(h>>5)]&1<<h)}function _b(h,m){return!(h&en.Self||h&en.Host&&m)}class lp{constructor(m,C){this._tNode=m,this._lView=C}get(m,C,T){return Uo(this._tNode,this._lView,m,T,C)}}function bb(){return new lp(_r(),st())}function Oh(h){return Gt(()=>{const m=h.prototype.constructor,C=m[et]||a_(m),T=Object.prototype;let M=Object.getPrototypeOf(h.prototype).constructor;for(;M&&M!==T;){const k=M[et]||a_(M);if(k&&k!==C)return k;M=Object.getPrototypeOf(M)}return k=>new k})}function a_(h){return we(h)?()=>{const m=a_(me(h));return m&&m()}:$l(h)}function ff(h){const m=h[1],C=m.type;return 2===C?m.declTNode:1===C?h[6]:null}function vb(h){return function Tn(h,m){if("class"===m)return h.classes;if("style"===m)return h.styles;const C=h.attrs;if(C){const T=C.length;let M=0;for(;M<T;){const k=C[M];if(hf(k))break;if(0===k)M+=2;else if("number"==typeof k)for(M++;M<T&&"string"==typeof C[M];)M++;else{if(k===m)return C[M+1];M+=2}}}return null}(_r(),h)}const lu="__parameters__",Nh="__prop__metadata__";function l_(h){return function(...C){if(h){const T=h(...C);for(const M in T)this[M]=T[M]}}}function dp(h,m,C){return Gt(()=>{const T=l_(m);function M(...k){if(this instanceof M)return T.apply(this,k),this;const N=new M(...k);return H.annotation=N,H;function H(j,X,le){const ve=j.hasOwnProperty(lu)?j[lu]:Object.defineProperty(j,lu,{value:[]})[lu];for(;ve.length<=le;)ve.push(null);return(ve[le]=ve[le]||[]).push(N),j}}return C&&(M.prototype=Object.create(C.prototype)),M.prototype.ngMetadataName=h,M.annotationCls=M,M})}function Cc(h,m,C,T){return Gt(()=>{const M=l_(m);function k(...N){if(this instanceof k)return M.apply(this,N),this;const H=new k(...N);return function j(X,le){const ve=X.constructor,De=ve.hasOwnProperty(Nh)?ve[Nh]:Object.defineProperty(ve,Nh,{value:{}})[Nh];De[le]=De.hasOwnProperty(le)&&De[le]||[],De[le].unshift(H),T&&T(X,le,...N)}}return C&&(k.prototype=Object.create(C.prototype)),k.prototype.ngMetadataName=h,k.annotationCls=k,k})}class yo{constructor(m,C){this._desc=m,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof C?this.__NG_ELEMENT_ID__=C:void 0!==C&&(this.\u0275prov=mo({token:this,providedIn:C.providedIn||"root",factory:C.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}class Lh{}const It=Cc("ContentChildren",(h,m={})=>({selector:h,first:!1,isViewQuery:!1,descendants:!1,emitDistinctChangesOnly:!0,...m}),Lh),qC=Cc("ContentChild",(h,m={})=>({selector:h,first:!0,isViewQuery:!1,descendants:!0,...m}),Lh),tw=Cc("ViewChildren",(h,m={})=>({selector:h,first:!1,isViewQuery:!0,descendants:!0,emitDistinctChangesOnly:!0,...m}),Lh),yb=Cc("ViewChild",(h,m)=>({selector:h,first:!0,isViewQuery:!0,descendants:!0,...m}),Lh);function Ns(h,m){void 0===m&&(m=h);for(let C=0;C<h.length;C++){let T=h[C];Array.isArray(T)?(m===h&&(m=h.slice(0,C)),Ns(T,m)):m!==h&&m.push(T)}return m}function Jr(h,m){h.forEach(C=>Array.isArray(C)?Jr(C,m):m(C))}function u_(h,m,C){m>=h.length?h.push(C):h.splice(m,0,C)}function mf(h,m){return m>=h.length-1?h.pop():h.splice(m,1)[0]}function _f(h,m){const C=[];for(let T=0;T<h;T++)C.push(m);return C}function Xs(h,m,C){let T=Rh(h,m);return T>=0?h[1|T]=C:(T=~T,function nw(h,m,C,T){let M=h.length;if(M==m)h.push(C,T);else if(1===M)h.push(T,h[0]),h[0]=C;else{for(M--,h.push(h[M-1],h[M]);M>m;)h[M]=h[M-2],M--;h[m]=C,h[m+1]=T}}(h,T,m,C)),T}function _l(h,m){const C=Rh(h,m);if(C>=0)return h[1|C]}function Rh(h,m){return function eA(h,m,C){let T=0,M=h.length>>C;for(;M!==T;){const k=T+(M-T>>1),N=h[k<<C];if(m===N)return k<<C;N>m?M=k:T=k+1}return~(M<<C)}(h,m,1)}const ad={},p_="__NG_DI_FLAG__",Et="ngTempTokenPath",Sb=/\n/gm,nA="__source";let sd;function Qr(h){const m=sd;return sd=h,m}function Ji(h,m=en.Default){if(void 0===sd)throw new Pe(-203,!1);return null===sd?co(h,void 0,m):sd.get(h,m&en.Optional?null:void 0,m)}function vr(h,m=en.Default){return(function Fr(){return eo}()||Ji)(me(h),m)}function Mb(h,m=en.Default){return"number"!=typeof m&&(m=0|(m.optional&&8)|(m.host&&1)|(m.self&&2)|(m.skipSelf&&4)),vr(h,m)}function No(h){const m=[];for(let C=0;C<h.length;C++){const T=me(h[C]);if(Array.isArray(T)){if(0===T.length)throw new Pe(900,!1);let M,k=en.Default;for(let N=0;N<T.length;N++){const H=T[N],j=bf(H);"number"==typeof j?-1===j?M=H.token:k|=j:M=H}m.push(vr(M,k))}else m.push(vr(T))}return m}function du(h,m){return h[p_]=m,h.prototype[p_]=m,h}function bf(h){return h[p_]}const Ti=du(dp("Inject",h=>({token:h})),-1),E=du(dp("Optional"),8),W=du(dp("SkipSelf"),4),ae=du(dp("Host"),1);var zl=(()=>((zl=zl||{})[zl.Important=1]="Important",zl[zl.DashCase=2]="DashCase",zl))();const dO=/^>|^->|<!--|-->|--!>|<!-$/g,uO=/(<|>)/;const cA=new Map;let hw=0;const dA="__ngContext__";function gs(h,m){Ha(m)?(h[dA]=m[20],function pO(h){cA.set(h[20],h)}(m)):h[dA]=m}let vw;function Ma(h,m){return vw(h,m)}function f_(h){const m=h[3];return ds(m)?m[3]:m}function pA(h){return Aw(h[13])}function Eb(h){return Aw(h[4])}function Aw(h){for(;null!==h&&!ds(h);)h=h[4];return h}function Hh(h,m,C,T,M){if(null!=T){let k,N=!1;ds(T)?k=T:Ha(T)&&(N=!0,T=T[0]);const H=hi(T);0===h&&null!==C?null==M?Tw(m,C,H):fp(m,C,H,M||null,!0):1===h&&null!==C?fp(m,C,H,M||null,!0):2===h?bA(m,H,N):3===h&&m.destroyNode(H),null!=k&&function Tf(h,m,C,T,M){const k=C[7];k!==hi(C)&&Hh(m,h,T,k,M);for(let H=10;H<C.length;H++){const j=C[H];y_(j[1],j,h,m,T,k)}}(m,h,k,C,M)}}function Cf(h,m){return h.createText(m)}function gp(h,m,C){h.setValue(m,C)}function Di(h,m){return h.createComment(function pw(h){return h.replace(dO,m=>m.replace(uO,"\u200b$1\u200b"))}(m))}function $h(h,m,C){return h.createElement(m,C)}function m_(h,m){const C=h[9],T=C.indexOf(m),M=m[3];512&m[2]&&(m[2]&=-513,Qs(M,-1)),C.splice(T,1)}function Yh(h,m){if(h.length<=10)return;const C=10+m,T=h[C];if(T){const M=T[17];null!==M&&M!==h&&m_(M,T),m>0&&(h[C-1][4]=T[4]);const k=mf(h,10+m);!function vO(h,m){y_(h,m,m[11],2,null,null),m[0]=null,m[6]=null}(T[1],T);const N=k[19];null!==N&&N.detachView(k[1]),T[3]=null,T[4]=null,T[2]&=-65}return T}function gA(h,m){if(!(128&m[2])){const C=m[11];C.destroyNode&&y_(h,m,C,3,null,null),function xw(h){let m=h[13];if(!m)return Af(h[1],h);for(;m;){let C=null;if(Ha(m))C=m[13];else{const T=m[10];T&&(C=T)}if(!C){for(;m&&!m[4]&&m!==h;)Ha(m)&&Af(m[1],m),m=m[3];null===m&&(m=h),Ha(m)&&Af(m[1],m),C=m&&m[4]}m=C}}(m)}}function Af(h,m){if(!(128&m[2])){m[2]&=-65,m[2]|=128,function fA(h,m){let C;if(null!=h&&null!=(C=h.destroyHooks))for(let T=0;T<C.length;T+=2){const M=m[C[T]];if(!(M instanceof nu)){const k=C[T+1];if(Array.isArray(k))for(let N=0;N<k.length;N+=2){const H=M[k[N]],j=k[N+1];try{j.call(H)}finally{}}else try{k.call(M)}finally{}}}}(h,m),function AO(h,m){const C=h.cleanup,T=m[7];let M=-1;if(null!==C)for(let k=0;k<C.length-1;k+=2)if("string"==typeof C[k]){const N=C[k+1],H="function"==typeof N?N(m):hi(m[N]),j=T[M=C[k+2]],X=C[k+3];"boolean"==typeof X?H.removeEventListener(C[k],j,X):X>=0?T[M=X]():T[M=-X].unsubscribe(),k+=2}else{const N=T[M=C[k+1]];C[k].call(N)}if(null!==T){for(let k=M+1;k<T.length;k++)(0,T[k])();m[7]=null}}(h,m),1===m[1].type&&m[11].destroy();const C=m[17];if(null!==C&&ds(m[3])){C!==m[3]&&m_(C,m);const T=m[19];null!==T&&T.detachView(h)}!function hO(h){cA.delete(h[20])}(m)}}function __(h,m,C){return mA(h,m.parent,C)}function mA(h,m,C){let T=m;for(;null!==T&&40&T.type;)T=(m=T).parent;if(null===T)return C[0];if(2&T.flags){const M=h.data[T.directiveStart].encapsulation;if(M===qt.None||M===qt.Emulated)return null}return ua(T,C)}function fp(h,m,C,T,M){h.insertBefore(m,C,T,M)}function Tw(h,m,C){h.appendChild(m,C)}function Sw(h,m,C,T,M){null!==T?fp(h,m,C,T,M):Tw(h,m,C)}function Pb(h,m){return h.parentNode(m)}function ww(h,m,C){return Dw(h,m,C)}function Mw(h,m,C){return 40&h.type?ua(h,C):null}let b_,pu,AA,x_,Dw=Mw;function v_(h,m){Dw=h,b_=m}function Ob(h,m,C,T){const M=__(h,T,m),k=m[11],H=ww(T.parent||m[6],T,m);if(null!=M)if(Array.isArray(C))for(let j=0;j<C.length;j++)Sw(k,M,C[j],H,!1);else Sw(k,M,C,H,!1);void 0!==b_&&b_(k,T,m,C,M)}function dd(h,m){if(null!==m){const C=m.type;if(3&C)return ua(m,h);if(4&C)return kw(-1,h[m.index]);if(8&C){const T=m.child;if(null!==T)return dd(h,T);{const M=h[m.index];return ds(M)?kw(-1,M):hi(M)}}if(32&C)return Ma(m,h)()||hi(h[m.index]);{const T=Nb(h,m);return null!==T?Array.isArray(T)?T[0]:dd(f_(h[16]),T):dd(h,m.next)}}return null}function Nb(h,m){return null!==m?h[16][6].projection[m.projection]:null}function kw(h,m){const C=10+h+1;if(C<m.length){const T=m[C],M=T[1].firstChild;if(null!==M)return dd(T,M)}return m[7]}function bA(h,m,C){const T=Pb(h,m);T&&function xO(h,m,C,T){h.removeChild(m,C,T)}(h,T,m,C)}function vA(h,m,C,T,M,k,N){for(;null!=C;){const H=T[C.index],j=C.type;if(N&&0===m&&(H&&gs(hi(H),T),C.flags|=4),64!=(64&C.flags))if(8&j)vA(h,m,C.child,T,M,k,!1),Hh(m,h,M,H,k);else if(32&j){const X=Ma(C,T);let le;for(;le=X();)Hh(m,h,M,le,k);Hh(m,h,M,H,k)}else 16&j?xf(h,m,T,C,M,k):Hh(m,h,M,H,k);C=N?C.projectionNext:C.next}}function y_(h,m,C,T,M,k){vA(C,T,h.firstChild,m,M,k,!1)}function xf(h,m,C,T,M,k){const N=C[16],j=N[6].projection[T.projection];if(Array.isArray(j))for(let X=0;X<j.length;X++)Hh(m,h,M,j[X],k);else vA(h,m,j,N[3],M,k,!0)}function yA(h,m,C){h.setAttribute(m,"style",C)}function Lb(h,m,C){""===C?h.removeAttribute(m,"class"):h.setAttribute(m,"class",C)}function jh(h){return function CA(){if(void 0===pu&&(pu=null,Zt.trustedTypes))try{pu=Zt.trustedTypes.createPolicy("angular",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return pu}()?.createHTML(h)||h}function xA(h){AA=h}function Ow(){return void 0!==AA?AA:typeof document<"u"?document:void 0}function Rb(){if(void 0===x_&&(x_=null,Zt.trustedTypes))try{x_=Zt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:h=>h,createScript:h=>h,createScriptURL:h=>h})}catch{}return x_}function ud(h){return Rb()?.createHTML(h)||h}function Ac(h){return Rb()?.createScriptURL(h)||h}class pd{constructor(m){this.changingThisBreaksApplicationSecurity=m}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Nw extends pd{getTypeName(){return"HTML"}}class wO extends pd{getTypeName(){return"Style"}}class MO extends pd{getTypeName(){return"Script"}}class DO extends pd{getTypeName(){return"URL"}}class kO extends pd{getTypeName(){return"ResourceURL"}}function hu(h){return h instanceof pd?h.changingThisBreaksApplicationSecurity:h}function Sf(h,m){const C=function IO(h){return h instanceof pd&&h.getTypeName()||null}(h);if(null!=C&&C!==m){if("ResourceURL"===C&&"URL"===m)return!0;throw new Error(`Required a safe ${m}, got a ${C} (see https://g.co/ng/security#xss)`)}return C===m}function EO(h){return new Nw(h)}function PO(h){return new wO(h)}function OO(h){return new MO(h)}function NO(h){return new DO(h)}function Lw(h){return new kO(h)}function Rw(h){const m=new TA(h);return function SA(){try{return!!(new window.DOMParser).parseFromString(jh(""),"text/html")}catch{return!1}}()?new Fw(m):m}class Fw{constructor(m){this.inertDocumentHelper=m}getInertBodyElement(m){m="<body><remove></remove>"+m;try{const C=(new window.DOMParser).parseFromString(jh(m),"text/html").body;return null===C?this.inertDocumentHelper.getInertBodyElement(m):(C.removeChild(C.firstChild),C)}catch{return null}}}class TA{constructor(m){if(this.defaultDoc=m,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const C=this.inertDocument.createElement("html");this.inertDocument.appendChild(C);const T=this.inertDocument.createElement("body");C.appendChild(T)}}getInertBodyElement(m){const C=this.inertDocument.createElement("template");if("content"in C)return C.innerHTML=jh(m),C;const T=this.inertDocument.createElement("body");return T.innerHTML=jh(m),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(T),T}stripCustomNsAttrs(m){const C=m.attributes;for(let M=C.length-1;0<M;M--){const N=C.item(M).name;("xmlns:ns1"===N||0===N.indexOf("ns1:"))&&m.removeAttribute(N)}let T=m.firstChild;for(;T;)T.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(T),T=T.nextSibling}}const gu=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function fu(h){return(h=String(h)).match(gu)?h:"unsafe:"+h}function hd(h){const m={};for(const C of h.split(","))m[C]=!0;return m}function wf(...h){const m={};for(const C of h)for(const T in C)C.hasOwnProperty(T)&&(m[T]=!0);return m}const Bw=hd("area,br,col,hr,img,wbr"),ci=hd("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wA=hd("rp,rt"),T_=wf(Bw,wf(ci,hd("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),wf(wA,hd("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),wf(wA,ci)),Bb=hd("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Uw=wf(Bb,hd("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hd("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),S_=hd("script,style,template");class RO{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(m){let C=m.firstChild,T=!0;for(;C;)if(C.nodeType===Node.ELEMENT_NODE?T=this.startElement(C):C.nodeType===Node.TEXT_NODE?this.chars(C.nodeValue):this.sanitizedSomething=!0,T&&C.firstChild)C=C.firstChild;else for(;C;){C.nodeType===Node.ELEMENT_NODE&&this.endElement(C);let M=this.checkClobberedElement(C,C.nextSibling);if(M){C=M;break}C=this.checkClobberedElement(C,C.parentNode)}return this.buf.join("")}startElement(m){const C=m.nodeName.toLowerCase();if(!T_.hasOwnProperty(C))return this.sanitizedSomething=!0,!S_.hasOwnProperty(C);this.buf.push("<"),this.buf.push(C);const T=m.attributes;for(let M=0;M<T.length;M++){const k=T.item(M),N=k.name,H=N.toLowerCase();if(!Uw.hasOwnProperty(H)){this.sanitizedSomething=!0;continue}let j=k.value;Bb[H]&&(j=fu(j)),this.buf.push(" ",N,'="',kA(j),'"')}return this.buf.push(">"),!0}endElement(m){const C=m.nodeName.toLowerCase();T_.hasOwnProperty(C)&&!Bw.hasOwnProperty(C)&&(this.buf.push("</"),this.buf.push(C),this.buf.push(">"))}chars(m){this.buf.push(kA(m))}checkClobberedElement(m,C){if(C&&(m.compareDocumentPosition(C)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${m.outerHTML}`);return C}}const FO=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,DA=/([^\#-~ |!])/g;function kA(h){return h.replace(/&/g,"&amp;").replace(FO,function(m){return"&#"+(1024*(m.charCodeAt(0)-55296)+(m.charCodeAt(1)-56320)+65536)+";"}).replace(DA,function(m){return"&#"+m.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let w_;function IA(h,m){let C=null;try{w_=w_||Rw(h);let T=m?String(m):"";C=w_.getInertBodyElement(T);let M=5,k=T;do{if(0===M)throw new Error("Failed to sanitize html because the input is unstable");M--,T=k,k=C.innerHTML,C=w_.getInertBodyElement(T)}while(T!==k);return jh((new RO).sanitizeChildren(Hb(C)||C))}finally{if(C){const T=Hb(C)||C;for(;T.firstChild;)T.removeChild(T.firstChild)}}}function Hb(h){return"content"in h&&function BO(h){return h.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===h.nodeName}(h)?h.content:null}var sr=(()=>((sr=sr||{})[sr.NONE=0]="NONE",sr[sr.HTML=1]="HTML",sr[sr.STYLE=2]="STYLE",sr[sr.SCRIPT=3]="SCRIPT",sr[sr.URL=4]="URL",sr[sr.RESOURCE_URL=5]="RESOURCE_URL",sr))();function M_(h){const m=D_();return m?ud(m.sanitize(sr.HTML,h)||""):Sf(h,"HTML")?ud(hu(h)):IA(Ow(),Je(h))}function EA(h){const m=D_();return m?m.sanitize(sr.URL,h)||"":Sf(h,"URL")?hu(h):fu(Je(h))}function PA(h){const m=D_();if(m)return Ac(m.sanitize(sr.RESOURCE_URL,h)||"");if(Sf(h,"ResourceURL"))return Ac(hu(h));throw new Pe(904,!1)}function D_(){const h=st();return h&&h[12]}const NA=new yo("ENVIRONMENT_INITIALIZER"),Zw=new yo("INJECTOR",-1),Ub=new yo("INJECTOR_DEF_TYPES");class yl{get(m,C=ad){if(C===ad){const T=new Error(`NullInjectorError: No provider for ${ie(m)}!`);throw T.name="NullInjectorError",T}return C}}function Vw(...h){return{\u0275providers:Mf(0,h)}}function Mf(h,...m){const C=[],T=new Set;let M;return Jr(m,k=>{const N=k;LA(N,C,[],T)&&(M||(M=[]),M.push(N))}),void 0!==M&&zw(M,C),C}function zw(h,m){for(let C=0;C<h.length;C++){const{providers:M}=h[C];Jr(M,k=>{m.push(k)})}}function LA(h,m,C,T){if(!(h=me(h)))return!1;let M=null,k=Gn(h);const N=!k&&Rt(h);if(k||N){if(N&&!N.standalone)return!1;M=h}else{const j=h.ngModule;if(k=Gn(j),!k)return!1;M=j}const H=T.has(M);if(N){if(H)return!1;if(T.add(M),N.dependencies){const j="function"==typeof N.dependencies?N.dependencies():N.dependencies;for(const X of j)LA(X,m,C,T)}}else{if(!k)return!1;{if(null!=k.imports&&!H){let X;T.add(M);try{Jr(k.imports,le=>{LA(le,m,C,T)&&(X||(X=[]),X.push(le))})}finally{}void 0!==X&&zw(X,m)}if(!H){const X=$l(M)||(()=>new M);m.push({provide:M,useFactory:X,deps:An},{provide:Ub,useValue:M,multi:!0},{provide:NA,useValue:()=>vr(M),multi:!0})}const j=k.providers;null==j||H||Jr(j,le=>{m.push(le)})}}return M!==h&&void 0!==h.providers}const Yb=q({provide:String,useValue:q});function RA(h){return null!==h&&"object"==typeof h&&Yb in h}function xc(h){return"function"==typeof h}const FA=new yo("Set Injector scope."),mp={},k_={};let BA;function jb(){return void 0===BA&&(BA=new yl),BA}class Vh{}class qw extends Vh{constructor(m,C,T,M){super(),this.parent=C,this.source=T,this.scopes=M,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,$A(m,N=>this.processProvider(N)),this.records.set(Zw,_p(void 0,this)),M.has("environment")&&this.records.set(Vh,_p(void 0,this));const k=this.records.get(FA);null!=k&&"string"==typeof k.value&&this.scopes.add(k.value),this.injectorDefTypes=new Set(this.get(Ub.multi,An,en.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const m of this._ngOnDestroyHooks)m.ngOnDestroy();for(const m of this._onDestroyHooks)m()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(m){this._onDestroyHooks.push(m)}runInContext(m){this.assertNotDestroyed();const C=Qr(this),T=lo(void 0);try{return m()}finally{Qr(C),lo(T)}}get(m,C=ad,T=en.Default){this.assertNotDestroyed();const M=Qr(this),k=lo(void 0);try{if(!(T&en.SkipSelf)){let H=this.records.get(m);if(void 0===H){const j=function YO(h){return"function"==typeof h||"object"==typeof h&&h instanceof yo}(m)&&Zi(m);H=j&&this.injectableDefInScope(j)?_p(HA(m),mp):null,this.records.set(m,H)}if(null!=H)return this.hydrate(m,H)}return(T&en.Self?jb():this.parent).get(m,C=T&en.Optional&&C===ad?null:C)}catch(N){if("NullInjectorError"===N.name){if((N[Et]=N[Et]||[]).unshift(ie(m)),M)throw N;return function bl(h,m,C,T){const M=h[Et];throw m[nA]&&M.unshift(m[nA]),h.message=function vf(h,m,C,T=null){h=h&&"\n"===h.charAt(0)&&"\u0275"==h.charAt(1)?h.slice(2):h;let M=ie(m);if(Array.isArray(m))M=m.map(ie).join(" -> ");else if("object"==typeof m){let k=[];for(let N in m)if(m.hasOwnProperty(N)){let H=m[N];k.push(N+":"+("string"==typeof H?JSON.stringify(H):ie(H)))}M=`{${k.join(", ")}}`}return`${C}${T?"("+T+")":""}[${M}]: ${h.replace(Sb,"\n  ")}`}("\n"+h.message,M,C,T),h.ngTokenPath=M,h[Et]=null,h}(N,m,"R3InjectorError",this.source)}throw N}finally{lo(k),Qr(M)}}resolveInjectorInitializers(){const m=Qr(this),C=lo(void 0);try{const T=this.get(NA.multi,An,en.Self);for(const M of T)M()}finally{Qr(m),lo(C)}}toString(){const m=[],C=this.records;for(const T of C.keys())m.push(ie(T));return`R3Injector[${m.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Pe(205,!1)}processProvider(m){let C=xc(m=me(m))?m:me(m&&m.provide);const T=function VU(h){return RA(h)?_p(void 0,h.useValue):_p(Jw(h),mp)}(m);if(xc(m)||!0!==m.multi)this.records.get(C);else{let M=this.records.get(C);M||(M=_p(void 0,mp,!0),M.factory=()=>No(M.multi),this.records.set(C,M)),C=m,M.multi.push(m)}this.records.set(C,T)}hydrate(m,C){return C.value===mp&&(C.value=k_,C.value=C.factory()),"object"==typeof C.value&&C.value&&function Df(h){return null!==h&&"object"==typeof h&&"function"==typeof h.ngOnDestroy}(C.value)&&this._ngOnDestroyHooks.add(C.value),C.value}injectableDefInScope(m){if(!m.providedIn)return!1;const C=me(m.providedIn);return"string"==typeof C?"any"===C||this.scopes.has(C):this.injectorDefTypes.has(C)}}function HA(h){const m=Zi(h),C=null!==m?m.factory:$l(h);if(null!==C)return C;if(h instanceof yo)throw new Pe(204,!1);if(h instanceof Function)return function UO(h){const m=h.length;if(m>0)throw _f(m,"?"),new Pe(204,!1);const C=function To(h){const m=h&&(h[Po]||h[Ln]);if(m){const C=function Xi(h){if(h.hasOwnProperty("name"))return h.name;const m=(""+h).match(/^function\s*([^\s(]+)/);return null===m?"":m[1]}(h);return console.warn(`DEPRECATED: DI is instantiating a token "${C}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${C}" class.`),m}return null}(h);return null!==C?()=>C.factory(h):()=>new h}(h);throw new Pe(204,!1)}function Jw(h,m,C){let T;if(xc(h)){const M=me(h);return $l(M)||HA(M)}if(RA(h))T=()=>me(h.useValue);else if(function Zh(h){return!(!h||!h.useFactory)}(h))T=()=>h.useFactory(...No(h.deps||[]));else if(function Gw(h){return!(!h||!h.useExisting)}(h))T=()=>vr(me(h.useExisting));else{const M=me(h&&(h.useClass||h.provide));if(!function Zb(h){return!!h.deps}(h))return $l(M)||HA(M);T=()=>new M(...No(h.deps))}return T}function _p(h,m,C=!1){return{factory:h,value:m,multi:C?[]:void 0}}function jO(h){return!!h.\u0275providers}function $A(h,m){for(const C of h)Array.isArray(C)?$A(C,m):jO(C)?$A(C.\u0275providers,m):m(C)}class Qw{}class zO{resolveComponentFactory(m){throw function VO(h){const m=Error(`No component factory found for ${ie(h)}. Did you add it to @NgModule.entryComponents?`);return m.ngComponent=h,m}(m)}}let kf=(()=>{class h{}return h.NULL=new zO,h})();function GO(){return bp(_r(),st())}function bp(h,m){return new If(ua(h,m))}let If=(()=>{class h{constructor(C){this.nativeElement=C}}return h.__NG_ELEMENT_ID__=GO,h})();function UA(h){return h instanceof If?h.nativeElement:h}class Kw{}let qO=(()=>{class h{}return h.__NG_ELEMENT_ID__=()=>function JO(){const h=st(),C=us(_r().index,h);return(Ha(C)?C:h)[11]}(),h})(),QO=(()=>{class h{}return h.\u0275prov=mo({token:h,providedIn:"root",factory:()=>null}),h})();class I_{constructor(m){this.full=m,this.major=m.split(".")[0],this.minor=m.split(".")[1],this.patch=m.split(".").slice(2).join(".")}}const jA=new I_("14.3.0"),Vb={};function Gb(h){return h.ngOriginalError}class mu{constructor(){this._console=console}handleError(m){const C=this._findOriginalError(m);this._console.error("ERROR",m),C&&this._console.error("ORIGINAL ERROR",C)}_findOriginalError(m){let C=m&&Gb(m);for(;C&&Gb(C);)C=Gb(C);return C||null}}function eM(h){return h.ownerDocument.defaultView}function tM(h){return h.ownerDocument}function _u(h){return h instanceof Function?h():h}function iM(h,m,C){let T=h.length;for(;;){const M=h.indexOf(m,C);if(-1===M)return M;if(0===M||h.charCodeAt(M-1)<=32){const k=m.length;if(M+k===T||h.charCodeAt(M+k)<=32)return M}C=M+1}}const ZA="ng-template";function oM(h,m,C){let T=0;for(;T<h.length;){let M=h[T++];if(C&&"class"===M){if(M=h[T],-1!==iM(M.toLowerCase(),m,0))return!0}else if(1===M){for(;T<h.length&&"string"==typeof(M=h[T++]);)if(M.toLowerCase()===m)return!0;return!1}}return!1}function VA(h){return 4===h.type&&h.value!==ZA}function rM(h,m,C){return m===(4!==h.type||C?h.value:ZA)}function o5(h,m,C){let T=4;const M=h.attrs||[],k=function s5(h){for(let m=0;m<h.length;m++)if(hf(h[m]))return m;return h.length}(M);let N=!1;for(let H=0;H<m.length;H++){const j=m[H];if("number"!=typeof j){if(!N)if(4&T){if(T=2|1&T,""!==j&&!rM(h,j,C)||""===j&&1===m.length){if(Tc(T))return!1;N=!0}}else{const X=8&T?j:m[++H];if(8&T&&null!==h.attrs){if(!oM(h.attrs,X,C)){if(Tc(T))return!1;N=!0}continue}const ve=r5(8&T?"class":j,M,VA(h),C);if(-1===ve){if(Tc(T))return!1;N=!0;continue}if(""!==X){let De;De=ve>k?"":M[ve+1].toLowerCase();const Fe=8&T?De:null;if(Fe&&-1!==iM(Fe,X,0)||2&T&&X!==De){if(Tc(T))return!1;N=!0}}}}else{if(!N&&!Tc(T)&&!Tc(j))return!1;if(N&&Tc(j))continue;N=!1,T=j|1&T}}return Tc(T)||N}function Tc(h){return 0==(1&h)}function r5(h,m,C,T){if(null===m)return-1;let M=0;if(T||!C){let k=!1;for(;M<m.length;){const N=m[M];if(N===h)return M;if(3===N||6===N)k=!0;else{if(1===N||2===N){let H=m[++M];for(;"string"==typeof H;)H=m[++M];continue}if(4===N)break;if(0===N){M+=4;continue}}M+=k?1:2}return-1}return function sM(h,m){let C=h.indexOf(4);if(C>-1)for(C++;C<h.length;){const T=h[C];if("number"==typeof T)return-1;if(T===m)return C;C++}return-1}(m,h)}function aM(h,m,C=!1){for(let T=0;T<m.length;T++)if(o5(h,m[T],C))return!0;return!1}function zA(h,m){e:for(let C=0;C<m.length;C++){const T=m[C];if(h.length===T.length){for(let M=0;M<h.length;M++)if(h[M]!==T[M])continue e;return!0}}return!1}function GA(h,m){return h?":not("+m.trim()+")":m}function lM(h){let m=h[0],C=1,T=2,M="",k=!1;for(;C<h.length;){let N=h[C];if("string"==typeof N)if(2&T){const H=h[++C];M+="["+N+(H.length>0?'="'+H+'"':"")+"]"}else 8&T?M+="."+N:4&T&&(M+=" "+N);else""!==M&&!Tc(N)&&(m+=GA(k,M),M=""),T=N,k=k||!Tc(T);C++}return""!==M&&(m+=GA(k,M)),m}const ri={};function cM(h){dM(fi(),st(),pa()+h,!1)}function dM(h,m,C,T){if(!T)if(3==(3&m[2])){const k=h.preOrderCheckHooks;null!==k&&wa(m,k,C)}else{const k=h.preOrderHooks;null!==k&&Ua(m,k,0,C)}_c(C)}function hM(h,m=null,C=null,T){const M=gM(h,m,C,T);return M.resolveInjectorInitializers(),M}function gM(h,m=null,C=null,T,M=new Set){const k=[C||An,Vw(h)];return T=T||("object"==typeof h?void 0:ie(h)),new qw(k,m||jb(),T||null,M)}let zh=(()=>{class h{static create(C,T){if(Array.isArray(C))return hM({name:""},T,C,"");{const M=C.name??"";return hM({name:M},C.parent,C.providers,M)}}}return h.THROW_IF_NOT_FOUND=ad,h.NULL=new yl,h.\u0275prov=mo({token:h,providedIn:"any",factory:()=>vr(Zw)}),h.__NG_ELEMENT_ID__=-1,h})();function qh(h,m=en.Default){const C=st();return null===C?vr(h,m):Uo(_r(),C,me(h),m)}function xM(){throw new Error("invalid")}function O_(h,m){return h<<17|m<<2}function Sc(h){return h>>17&32767}function t2(h){return 2|h}function bu(h){return(131068&h)>>2}function ev(h,m){return-131069&h|m<<2}function MM(h){return 1|h}function RM(h,m){const C=h.contentQueries;if(null!==C)for(let T=0;T<C.length;T+=2){const M=C[T],k=C[T+1];if(-1!==k){const N=h.data[k];nd(M),N.contentQueries(2,m[k],k)}}}function Lf(h,m,C,T,M,k,N,H,j,X,le){const ve=m.blueprint.slice();return ve[0]=M,ve[2]=76|T,(null!==le||h&&1024&h[2])&&(ve[2]|=1024),Ah(ve),ve[3]=ve[15]=h,ve[8]=C,ve[10]=N||h&&h[10],ve[11]=H||h&&h[11],ve[12]=j||h&&h[12]||null,ve[9]=X||h&&h[9]||null,ve[6]=k,ve[20]=function gw(){return hw++}(),ve[21]=le,ve[16]=2==m.type?h[16]:ve,ve}function Wh(h,m,C,T,M){let k=h.data[m];if(null===k)k=d2(h,m,C,T,M),function Dr(){return Rn.lFrame.inI18n}()&&(k.flags|=64);else if(64&k.type){k.type=C,k.value=T,k.attrs=M;const N=Xc();k.injectorIndex=null===N?-1:N.injectorIndex}return Ws(k,!0),k}function d2(h,m,C,T,M){const k=rf(),N=Kd(),j=h.data[m]=function R_(h,m,C,T,M,k){return{type:C,index:T,insertBeforeIndex:null,injectorIndex:m?m.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:M,attrs:k,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:m,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,N?k:k&&k.parent,C,m,T,M);return null===h.firstChild&&(h.firstChild=j),null!==k&&(N?null==k.child&&null!==j.parent&&(k.child=j):null===k.next&&(k.next=j)),j}function vp(h,m,C,T){if(0===C)return-1;const M=m.length;for(let k=0;k<C;k++)m.push(T),h.blueprint.push(T),h.data.push(null);return M}function u2(h,m,C){rp(m);try{const T=h.viewQuery;null!==T&&ZM(1,T,C);const M=h.template;null!==M&&BM(h,m,M,1,C),h.firstCreatePass&&(h.firstCreatePass=!1),h.staticContentQueries&&RM(h,m),h.staticViewQueries&&ZM(2,h.viewQuery,C);const k=h.components;null!==k&&function c2(h,m){for(let C=0;C<m.length;C++)F_(h,m[C])}(m,k)}catch(T){throw h.firstCreatePass&&(h.incompleteFirstPass=!0,h.firstCreatePass=!1),T}finally{m[2]&=-5,eu()}}function p2(h,m,C,T){const M=m[2];if(128!=(128&M)){rp(m);try{Ah(m),function vo(h){return Rn.lFrame.bindingIndex=h}(h.bindingStartIndex),null!==C&&BM(h,m,C,2,T);const N=3==(3&M);if(N){const X=h.preOrderCheckHooks;null!==X&&wa(m,X,null)}else{const X=h.preOrderHooks;null!==X&&Ua(m,X,0,null),ml(m,0)}if(function dv(h){for(let m=pA(h);null!==m;m=Eb(m)){if(!m[2])continue;const C=m[9];for(let T=0;T<C.length;T++){const M=C[T],k=M[3];0==(512&M[2])&&Qs(k,1),M[2]|=512}}}(m),function cv(h){for(let m=pA(h);null!==m;m=Eb(m))for(let C=10;C<m.length;C++){const T=m[C],M=T[1];Wd(T)&&p2(M,T,M.template,T[8])}}(m),null!==h.contentQueries&&RM(h,m),N){const X=h.contentCheckHooks;null!==X&&wa(m,X)}else{const X=h.contentHooks;null!==X&&Ua(m,X,1),ml(m,1)}!function A5(h,m){const C=h.hostBindingOpCodes;if(null!==C)try{for(let T=0;T<C.length;T++){const M=C[T];if(M<0)_c(~M);else{const k=M,N=C[++T],H=C[++T];ed(N,k),H(2,m[k])}}}finally{_c(-1)}}(h,m);const H=h.components;null!==H&&function FM(h,m){for(let C=0;C<m.length;C++)Kh(h,m[C])}(m,H);const j=h.viewQuery;if(null!==j&&ZM(2,j,T),N){const X=h.viewCheckHooks;null!==X&&wa(m,X)}else{const X=h.viewHooks;null!==X&&Ua(m,X,2),ml(m,2)}!0===h.firstUpdatePass&&(h.firstUpdatePass=!1),m[2]&=-41,512&m[2]&&(m[2]&=-513,Qs(m[3],-1))}finally{eu()}}}function BM(h,m,C,T,M){const k=pa(),N=2&T;try{_c(-1),N&&m.length>22&&dM(h,m,22,!1),C(T,M)}finally{_c(k)}}function HM(h,m,C){if(qc(m)){const M=m.directiveEnd;for(let k=m.directiveStart;k<M;k++){const N=h.data[k];N.contentQueries&&N.contentQueries(1,C[k],k)}}}function h2(h,m,C){!Kc()||(function cY(h,m,C,T){const M=C.directiveStart,k=C.directiveEnd;h.firstCreatePass||$e(C,m),gs(T,m);const N=C.initialInputs;for(let H=M;H<k;H++){const j=h.data[H],X=da(j);X&&Da(m,C,j);const le=br(m,h,H,C);gs(le,m),null!==N&&YM(0,H-M,le,j,0,N),X&&(us(C.index,m)[8]=le)}}(h,m,C,ua(C,m)),128==(128&C.flags)&&function dY(h,m,C){const T=C.directiveStart,M=C.directiveEnd,k=C.index,N=function sf(){return Rn.lFrame.currentDirectiveIndex}();try{_c(k);for(let H=T;H<M;H++){const j=h.data[H],X=m[H];Yl(H),(null!==j.hostBindings||0!==j.hostVars||null!==j.hostAttrs)&&I5(j,X)}}finally{_c(-1),Yl(N)}}(h,m,C))}function g2(h,m,C=ua){const T=m.localNames;if(null!==T){let M=m.index+1;for(let k=0;k<T.length;k+=2){const N=T[k+1],H=-1===N?C(m,h):h[N];h[M++]=H}}}function x5(h){const m=h.tView;return null===m||m.incompleteFirstPass?h.tView=Qi(1,null,h.template,h.decls,h.vars,h.directiveDefs,h.pipeDefs,h.viewQuery,h.schemas,h.consts):m}function Qi(h,m,C,T,M,k,N,H,j,X){const le=22+T,ve=le+M,De=function f2(h,m){const C=[];for(let T=0;T<m;T++)C.push(T<h?null:ri);return C}(le,ve),Fe="function"==typeof X?X():X;return De[1]={type:h,blueprint:De,template:C,queries:null,viewQuery:H,declTNode:m,data:De.slice().fill(null,le),bindingStartIndex:le,expandoStartIndex:ve,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof k?k():k,pipeRegistry:"function"==typeof N?N():N,firstChild:null,schemas:j,consts:Fe,incompleteFirstPass:!1}}function T5(h,m,C,T){const M=VM(m);null===C?M.push(T):(M.push(C),h.firstCreatePass&&zM(h).push(T,M.length-1))}function rv(h,m,C){for(let T in h)if(h.hasOwnProperty(T)){const M=h[T];(C=null===C?{}:C).hasOwnProperty(T)?C[T].push(m,M):C[T]=[m,M]}return C}function S5(h,m){const T=m.directiveEnd,M=h.data,k=m.attrs,N=[];let H=null,j=null;for(let X=m.directiveStart;X<T;X++){const le=M[X],ve=le.inputs,De=null===k||VA(m)?null:gY(ve,k);N.push(De),H=rv(ve,X,H),j=rv(le.outputs,X,j)}null!==H&&(H.hasOwnProperty("class")&&(m.flags|=16),H.hasOwnProperty("style")&&(m.flags|=32)),m.initialInputs=N,m.inputs=H,m.outputs=j}function ql(h,m,C,T,M,k,N,H){const j=ua(m,C);let le,X=m.inputs;!H&&null!=X&&(le=X[T])?(y2(h,C,le,T,M),zs(m)&&w5(C,m.index)):3&m.type&&(T=function sY(h){return"class"===h?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h}(T),M=null!=N?N(M,m.value||"",T):M,k.setProperty(j,T,M))}function w5(h,m){const C=us(m,h);16&C[2]||(C[2]|=32)}function UM(h,m,C,T){let M=!1;if(Kc()){const k=function uY(h,m,C){const T=h.directiveRegistry;let M=null;if(T)for(let k=0;k<T.length;k++){const N=T[k];aM(C,N.selectors,!1)&&(M||(M=[]),zt($e(C,m),h,N.type),da(N)?(E5(h,C),M.unshift(N)):M.push(N))}return M}(h,m,C),N=null===T?null:{"":-1};if(null!==k){M=!0,P5(C,h.data.length,k.length);for(let le=0;le<k.length;le++){const ve=k[le];ve.providersResolver&&ve.providersResolver(ve)}let H=!1,j=!1,X=vp(h,m,k.length,null);for(let le=0;le<k.length;le++){const ve=k[le];C.mergedAttrs=qr(C.mergedAttrs,ve.hostAttrs),sv(h,C,m,X,ve),hY(X,ve,N),null!==ve.contentQueries&&(C.flags|=8),(null!==ve.hostBindings||null!==ve.hostAttrs||0!==ve.hostVars)&&(C.flags|=128);const De=ve.type.prototype;!H&&(De.ngOnChanges||De.ngOnInit||De.ngDoCheck)&&((h.preOrderHooks||(h.preOrderHooks=[])).push(C.index),H=!0),!j&&(De.ngOnChanges||De.ngDoCheck)&&((h.preOrderCheckHooks||(h.preOrderCheckHooks=[])).push(C.index),j=!0),X++}S5(h,C)}N&&function pY(h,m,C){if(m){const T=h.localNames=[];for(let M=0;M<m.length;M+=2){const k=C[m[M+1]];if(null==k)throw new Pe(-301,!1);T.push(m[M],k)}}}(C,T,N)}return C.mergedAttrs=qr(C.mergedAttrs,C.attrs),M}function k5(h,m,C,T,M,k){const N=k.hostBindings;if(N){let H=h.hostBindingOpCodes;null===H&&(H=h.hostBindingOpCodes=[]);const j=~m.index;(function av(h){let m=h.length;for(;m>0;){const C=h[--m];if("number"==typeof C&&C<0)return C}return 0})(H)!=j&&H.push(j),H.push(T,M,N)}}function I5(h,m){null!==h.hostBindings&&h.hostBindings(1,m)}function E5(h,m){m.flags|=2,(h.components||(h.components=[])).push(m.index)}function hY(h,m,C){if(C){if(m.exportAs)for(let T=0;T<m.exportAs.length;T++)C[m.exportAs[T]]=h;da(m)&&(C[""]=h)}}function P5(h,m,C){h.flags|=1,h.directiveStart=m,h.directiveEnd=m+C,h.providerIndexes=m}function sv(h,m,C,T,M){h.data[T]=M;const k=M.factory||(M.factory=$l(M.type)),N=new nu(k,da(M),qh);h.blueprint[T]=N,C[T]=N,k5(h,m,0,T,vp(h,C,M.hostVars,ri),M)}function Da(h,m,C){const T=ua(m,h),M=x5(C),k=h[10],N=uv(h,Lf(h,M,null,C.onPush?32:16,T,m,k,k.createRenderer(T,C),null,null,null));h[m.index]=N}function yp(h,m,C,T,M,k,N){if(null==k)h.removeAttribute(m,M,C);else{const H=null==N?Je(k):N(k,T||"",M);h.setAttribute(m,M,H,C)}}function YM(h,m,C,T,M,k){const N=k[m];if(null!==N){const H=T.setInput;for(let j=0;j<N.length;){const X=N[j++],le=N[j++],ve=N[j++];null!==H?T.setInput(C,ve,X,le):C[le]=ve}}}function gY(h,m){let C=null,T=0;for(;T<m.length;){const M=m[T];if(0!==M)if(5!==M){if("number"==typeof M)break;h.hasOwnProperty(M)&&(null===C&&(C=[]),C.push(M,h[M],m[T+1])),T+=2}else T+=2;else T+=4}return C}function jM(h,m,C,T){return new Array(h,!0,!1,m,null,0,T,C,null,null)}function Kh(h,m){const C=us(m,h);if(Wd(C)){const T=C[1];48&C[2]?p2(T,C,T.template,C[8]):C[5]>0&&m2(C)}}function m2(h){for(let T=pA(h);null!==T;T=Eb(T))for(let M=10;M<T.length;M++){const k=T[M];if(Wd(k))if(512&k[2]){const N=k[1];p2(N,k,N.template,k[8])}else k[5]>0&&m2(k)}const C=h[1].components;if(null!==C)for(let T=0;T<C.length;T++){const M=us(C[T],h);Wd(M)&&M[5]>0&&m2(M)}}function F_(h,m){const C=us(m,h),T=C[1];(function _2(h,m){for(let C=m.length;C<h.blueprint.length;C++)m.push(h.blueprint[C])})(T,C),u2(T,C,C[8])}function uv(h,m){return h[13]?h[14][4]=m:h[13]=m,h[14]=m,m}function b2(h){for(;h;){h[2]|=32;const m=f_(h);if(fc(h)&&!m)return h;h=m}return null}function v2(h,m,C,T=!0){const M=m[10];M.begin&&M.begin();try{p2(h,m,h.template,C)}catch(N){throw T&&qM(m,N),N}finally{M.end&&M.end()}}function ZM(h,m,C){nd(0),m(h,C)}function VM(h){return h[7]||(h[7]=[])}function zM(h){return h.cleanup||(h.cleanup=[])}function qM(h,m){const C=h[9],T=C?C.get(mu,null):null;T&&T.handleError(m)}function y2(h,m,C,T,M){for(let k=0;k<C.length;){const N=C[k++],H=C[k++],j=m[N],X=h.data[N];null!==X.setInput?X.setInput(j,M,T,H):j[H]=M}}function fd(h,m,C){const T=qs(m,h);gp(h[11],T,C)}function Rf(h,m,C){let T=C?h.styles:null,M=C?h.classes:null,k=0;if(null!==m)for(let N=0;N<m.length;N++){const H=m[N];"number"==typeof H?k=H:1==k?M=pe(M,H):2==k&&(T=pe(T,H+": "+m[++N]+";"))}C?h.styles=T:h.stylesWithoutHost=T,C?h.classes=M:h.classesWithoutHost=M}function hv(h,m,C,T,M=!1){for(;null!==C;){const k=m[C.index];if(null!==k&&T.push(hi(k)),ds(k))for(let H=10;H<k.length;H++){const j=k[H],X=j[1].firstChild;null!==X&&hv(j[1],j,X,T)}const N=C.type;if(8&N)hv(h,m,C.child,T);else if(32&N){const H=Ma(C,m);let j;for(;j=H();)T.push(j)}else if(16&N){const H=Nb(m,C);if(Array.isArray(H))T.push(...H);else{const j=f_(m[16]);hv(j[1],j,H,T,!0)}}C=M?C.projectionNext:C.next}return T}class B_{constructor(m,C){this._lView=m,this._cdRefInjectingView=C,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const m=this._lView,C=m[1];return hv(C,m,C.firstChild,[])}get context(){return this._lView[8]}set context(m){this._lView[8]=m}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const m=this._lView[3];if(ds(m)){const C=m[8],T=C?C.indexOf(this):-1;T>-1&&(Yh(m,T),mf(C,T))}this._attachedToViewContainer=!1}gA(this._lView[1],this._lView)}onDestroy(m){T5(this._lView[1],this._lView,null,m)}markForCheck(){b2(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){v2(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function yO(h,m){y_(h,m,m[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(m){if(this._attachedToViewContainer)throw new Pe(902,!1);this._appRef=m}}class O5 extends B_{constructor(m){super(m),this._view=m}detectChanges(){const m=this._view;v2(m[1],m,m[8],!1)}checkNoChanges(){}get context(){return null}}class yu extends kf{constructor(m){super(),this.ngModule=m}resolveComponentFactory(m){const C=Rt(m);return new H_(C,this.ngModule)}}function JM(h){const m=[];for(let C in h)h.hasOwnProperty(C)&&m.push({propName:h[C],templateName:C});return m}class ka{constructor(m,C){this.injector=m,this.parentInjector=C}get(m,C,T){const M=this.injector.get(m,Vb,T);return M!==Vb||C===Vb?M:this.parentInjector.get(m,C,T)}}class H_ extends Qw{constructor(m,C){super(),this.componentDef=m,this.ngModule=C,this.componentType=m.type,this.selector=function JU(h){return h.map(lM).join(",")}(m.selectors),this.ngContentSelectors=m.ngContentSelectors?m.ngContentSelectors:[],this.isBoundToModule=!!C}get inputs(){return JM(this.componentDef.inputs)}get outputs(){return JM(this.componentDef.outputs)}create(m,C,T,M){let k=(M=M||this.ngModule)instanceof Vh?M:M?.injector;k&&null!==this.componentDef.getStandaloneInjector&&(k=this.componentDef.getStandaloneInjector(k)||k);const N=k?new ka(m,k):m,H=N.get(Kw,null);if(null===H)throw new Pe(407,!1);const j=N.get(QO,null),X=H.createRenderer(null,this.componentDef),le=this.componentDef.selectors[0][0]||"div",ve=T?function $M(h,m,C){return h.selectRootElement(m,C===qt.ShadowDom)}(X,T,this.componentDef.encapsulation):$h(X,le,function QM(h){const m=h.toLowerCase();return"svg"===m?"svg":"math"===m?"math":null}(le)),De=this.componentDef.onPush?288:272,Fe=Qi(0,null,null,1,0,null,null,null,null,null),nt=Lf(null,Fe,null,De,null,null,H,X,j,N,null);let Ct,Pt;rp(nt);try{const Jt=function N5(h,m,C,T,M,k){const N=C[1];C[22]=h;const j=Wh(N,22,2,"#host",null),X=j.mergedAttrs=m.hostAttrs;null!==X&&(Rf(j,X,!0),null!==h&&(bc(M,h,X),null!==j.classes&&Lb(M,h,j.classes),null!==j.styles&&yA(M,h,j.styles)));const le=T.createRenderer(h,m),ve=Lf(C,x5(m),null,m.onPush?32:16,C[22],j,T,le,k||null,null,null);return N.firstCreatePass&&(zt($e(j,C),N,m.type),E5(N,j),P5(j,C.length,1)),uv(C,ve),C[22]=ve}(ve,this.componentDef,nt,H,X);if(ve)if(T)bc(X,ve,["ng-version",jA.full]);else{const{attrs:Cn,classes:lt}=function l5(h){const m=[],C=[];let T=1,M=2;for(;T<h.length;){let k=h[T];if("string"==typeof k)2===M?""!==k&&m.push(k,h[++T]):8===M&&C.push(k);else{if(!Tc(M))break;M=k}T++}return{attrs:m,classes:C}}(this.componentDef.selectors[0]);Cn&&bc(X,ve,Cn),lt&&lt.length>0&&Lb(X,ve,lt.join(" "))}if(Pt=hl(Fe,22),void 0!==C){const Cn=Pt.projection=[];for(let lt=0;lt<this.ngContentSelectors.length;lt++){const On=C[lt];Cn.push(null!=On?Array.from(On):null)}}Ct=function _Y(h,m,C,T){const M=C[1],k=function D5(h,m,C){const T=_r();h.firstCreatePass&&(C.providersResolver&&C.providersResolver(C),sv(h,T,m,vp(h,m,1,null),C),S5(h,T));const M=br(m,h,T.directiveStart,T);gs(M,m);const k=ua(T,m);return k&&gs(k,m),M}(M,C,m);if(h[8]=C[8]=k,null!==T)for(const H of T)H(k,m);if(m.contentQueries){const H=_r();m.contentQueries(1,k,H.directiveStart)}const N=_r();return!M.firstCreatePass||null===m.hostBindings&&null===m.hostAttrs||(_c(N.index),k5(C[1],N,0,N.directiveStart,N.directiveEnd,m),I5(m,k)),k}(Jt,this.componentDef,nt,[L5]),u2(Fe,nt,null)}finally{eu()}return new WM(this.componentType,Ct,bp(Pt,nt),nt,Pt)}}class WM extends class ZO{}{constructor(m,C,T,M,k){super(),this.location=T,this._rootLView=M,this._tNode=k,this.instance=C,this.hostView=this.changeDetectorRef=new O5(M),this.componentType=m}setInput(m,C){const T=this._tNode.inputs;let M;if(null!==T&&(M=T[m])){const k=this._rootLView;y2(k[1],k,M,m,C),w5(k,this._tNode.index)}}get injector(){return new lp(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(m){this.hostView.onDestroy(m)}}function L5(){const h=_r();tu(st()[1],h)}function ms(h){let m=function R5(h){return Object.getPrototypeOf(h.prototype).constructor}(h.type),C=!0;const T=[h];for(;m;){let M;if(da(h))M=m.\u0275cmp||m.\u0275dir;else{if(m.\u0275cmp)throw new Pe(903,!1);M=m.\u0275dir}if(M){if(C){T.push(M);const N=h;N.inputs=C2(h.inputs),N.declaredInputs=C2(h.declaredInputs),N.outputs=C2(h.outputs);const H=M.hostBindings;H&&B5(h,H);const j=M.viewQuery,X=M.contentQueries;if(j&&fv(h,j),X&&F5(h,X),te(h.inputs,M.inputs),te(h.declaredInputs,M.declaredInputs),te(h.outputs,M.outputs),da(M)&&M.data.animation){const le=h.data;le.animation=(le.animation||[]).concat(M.data.animation)}}const k=M.features;if(k)for(let N=0;N<k.length;N++){const H=k[N];H&&H.ngInherit&&H(h),H===ms&&(C=!1)}}m=Object.getPrototypeOf(m)}!function bY(h){let m=0,C=null;for(let T=h.length-1;T>=0;T--){const M=h[T];M.hostVars=m+=M.hostVars,M.hostAttrs=qr(M.hostAttrs,C=qr(C,M.hostAttrs))}}(T)}function C2(h){return h===or?{}:h===An?[]:h}function fv(h,m){const C=h.viewQuery;h.viewQuery=C?(T,M)=>{m(T,M),C(T,M)}:m}function F5(h,m){const C=h.contentQueries;h.contentQueries=C?(T,M,k)=>{m(T,M,k),C(T,M,k)}:m}function B5(h,m){const C=h.hostBindings;h.hostBindings=C?(T,M)=>{m(T,M),C(T,M)}:m}let Ff=null;function Cl(){if(!Ff){const h=Zt.Symbol;if(h&&h.iterator)Ff=h.iterator;else{const m=Object.getOwnPropertyNames(Map.prototype);for(let C=0;C<m.length;++C){const T=m[C];"entries"!==T&&"size"!==T&&Map.prototype[T]===Map.prototype.entries&&(Ff=T)}}}return Ff}function gi(h){return!!_v(h)&&(Array.isArray(h)||!(h instanceof Map)&&Cl()in h)}function _v(h){return null!==h&&("function"==typeof h||"object"==typeof h)}function el(h,m,C){return h[m]=C}function wo(h,m){return h[m]}function ga(h,m,C){return!Object.is(h[m],C)&&(h[m]=C,!0)}function _d(h,m,C,T){const M=ga(h,m,C);return ga(h,m+1,T)||M}function $_(h,m,C,T,M){const k=_d(h,m,C,T);return ga(h,m+2,M)||k}function Al(h,m,C,T,M,k){const N=_d(h,m,C,T);return _d(h,m+2,M,k)||N}function A2(h,m,C,T){const M=st();return ga(M,Xd(),m)&&(fi(),function Jl(h,m,C,T,M,k){const N=ua(h,m);yp(m[11],N,k,h.value,C,T,M)}(Qo(),M,h,m,C,T)),A2}function Hf(h,m,C,T){return ga(h,Xd(),C)?m+Je(C)+T:ri}function $f(h,m,C,T,M,k){const H=_d(h,fl(),C,M);return Mr(2),H?m+Je(C)+T+Je(M)+k:ri}function Uf(h,m,C,T,M,k,N,H){const X=$_(h,fl(),C,M,N);return Mr(3),X?m+Je(C)+T+Je(M)+k+Je(N)+H:ri}function x2(h,m,C,T,M,k,N,H){const j=st(),X=fi(),le=h+22,ve=X.firstCreatePass?function yY(h,m,C,T,M,k,N,H,j){const X=m.consts,le=Wh(m,h,4,N||null,$o(X,H));UM(m,C,le,$o(X,j)),tu(m,le);const ve=le.tViews=Qi(2,le,T,M,k,m.directiveRegistry,m.pipeRegistry,null,m.schemas,X);return null!==m.queries&&(m.queries.template(m,le),ve.queries=m.queries.embeddedTView(le)),le}(le,X,j,m,C,T,M,k,N):X.data[le];Ws(ve,!1);const De=j[11].createComment("");Ob(X,j,De,ve),gs(De,j),uv(j,j[le]=jM(De,j,De,ve)),gc(ve)&&h2(X,j,ve),null!=N&&g2(j,ve,H)}function t3(h){return gl(function n_(){return Rn.lFrame.contextLView}(),22+h)}function T2(h,m,C){const T=st();return ga(T,Xd(),m)&&ql(fi(),Qo(),T,h,m,T[11],C,!1),T2}function n3(h,m,C,T,M){const N=M?"class":"style";y2(h,C,m.inputs[N],N,T)}function S2(h,m,C,T){const M=st(),k=fi(),N=22+h,H=M[11],j=M[N]=$h(H,m,function jl(){return Rn.lFrame.currentNamespace}()),X=k.firstCreatePass?function CY(h,m,C,T,M,k,N){const H=m.consts,X=Wh(m,h,2,M,$o(H,k));return UM(m,C,X,$o(H,N)),null!==X.attrs&&Rf(X,X.attrs,!1),null!==X.mergedAttrs&&Rf(X,X.mergedAttrs,!0),null!==m.queries&&m.queries.elementStart(m,X),X}(N,k,M,0,m,C,T):k.data[N];Ws(X,!0);const le=X.mergedAttrs;null!==le&&bc(H,j,le);const ve=X.classes;null!==ve&&Lb(H,j,ve);const De=X.styles;return null!==De&&yA(H,j,De),64!=(64&X.flags)&&Ob(k,M,j,X),0===function Th(){return Rn.lFrame.elementDepthCount}()&&gs(j,M),function op(){Rn.lFrame.elementDepthCount++}(),gc(X)&&(h2(k,M,X),HM(k,X,M)),null!==T&&g2(M,X),S2}function Y_(){let h=_r();Kd()?Mh():(h=h.parent,Ws(h,!1));const m=h;!function Sh(){Rn.lFrame.elementDepthCount--}();const C=fi();return C.firstCreatePass&&(tu(C,h),qc(h)&&C.queries.elementEnd(h)),null!=m.classesWithoutHost&&function pb(h){return 0!=(16&h.flags)}(m)&&n3(C,m,st(),m.classesWithoutHost,!0),null!=m.stylesWithoutHost&&function hb(h){return 0!=(32&h.flags)}(m)&&n3(C,m,st(),m.stylesWithoutHost,!1),Y_}function o3(h,m,C,T){return S2(h,m,C,T),Y_(),o3}function bv(h,m,C){const T=st(),M=fi(),k=h+22,N=M.firstCreatePass?function AY(h,m,C,T,M){const k=m.consts,N=$o(k,T),H=Wh(m,h,8,"ng-container",N);return null!==N&&Rf(H,N,!0),UM(m,C,H,$o(k,M)),null!==m.queries&&m.queries.elementStart(m,H),H}(k,M,T,m,C):M.data[k];Ws(N,!0);const H=T[k]=T[11].createComment("");return Ob(M,T,H,N),gs(H,T),gc(N)&&(h2(M,T,N),HM(M,N,T)),null!=C&&g2(T,N),bv}function vv(){let h=_r();const m=fi();return Kd()?Mh():(h=h.parent,Ws(h,!1)),m.firstCreatePass&&(tu(m,h),qc(h)&&m.queries.elementEnd(h)),vv}function w2(h,m,C){return bv(h,m,C),vv(),w2}function r3(){return st()}function M2(h){return!!h&&"function"==typeof h.then}function a3(h){return!!h&&"function"==typeof h.subscribe}const G5=a3;function s3(h,m,C,T){const M=st(),k=fi(),N=_r();return function l3(h,m,C,T,M,k,N,H){const j=gc(T),le=h.firstCreatePass&&zM(h),ve=m[8],De=VM(m);let Fe=!0;if(3&T.type||H){const Pt=ua(T,m),Jt=H?H(Pt):Pt,Cn=De.length,lt=H?Yi=>H(hi(Yi[T.index])):T.index;let On=null;if(!H&&j&&(On=function xY(h,m,C,T){const M=h.cleanup;if(null!=M)for(let k=0;k<M.length-1;k+=2){const N=M[k];if(N===C&&M[k+1]===T){const H=m[7],j=M[k+2];return H.length>j?H[j]:null}"string"==typeof N&&(k+=2)}return null}(h,m,M,T.index)),null!==On)(On.__ngLastListenerFn__||On).__ngNextListenerFn__=k,On.__ngLastListenerFn__=k,Fe=!1;else{k=Q5(T,m,ve,k,!1);const Yi=C.listen(Jt,M,k);De.push(k,Yi),le&&le.push(M,lt,Cn,Cn+1)}}else k=Q5(T,m,ve,k,!1);const nt=T.outputs;let Ct;if(Fe&&null!==nt&&(Ct=nt[M])){const Pt=Ct.length;if(Pt)for(let Jt=0;Jt<Pt;Jt+=2){const lr=m[Ct[Jt]][Ct[Jt+1]].subscribe(k),Dp=De.length;De.push(k,lr),le&&le.push(M,T.index,Dp,-(Dp+1))}}}(k,M,M[11],N,h,m,0,T),s3}function J5(h,m,C,T){try{return!1!==C(T)}catch(M){return qM(h,M),!1}}function Q5(h,m,C,T,M){return function k(N){if(N===Function)return T;b2(2&h.flags?us(h.index,m):m);let j=J5(m,0,T,N),X=k.__ngNextListenerFn__;for(;X;)j=J5(m,0,X,N)&&j,X=X.__ngNextListenerFn__;return M&&!1===j&&(N.preventDefault(),N.returnValue=!1),j}}function W5(h=1){return function lf(h){return(Rn.lFrame.contextLView=function i_(h,m){for(;h>0;)m=m[15],h--;return m}(h,Rn.lFrame.contextLView))[8]}(h)}function TY(h,m){let C=null;const T=function a5(h){const m=h.attrs;if(null!=m){const C=m.indexOf(5);if(0==(1&C))return m[C+1]}return null}(h);for(let M=0;M<m.length;M++){const k=m[M];if("*"!==k){if(null===T?aM(h,k,!0):zA(T,k))return M}else C=M}return C}function K5(h){const m=st()[16][6];if(!m.projection){const T=m.projection=_f(h?h.length:1,null),M=T.slice();let k=m.child;for(;null!==k;){const N=h?TY(k,h):0;null!==N&&(M[N]?M[N].projectionNext=k:T[N]=k,M[N]=k),k=k.next}}}function X5(h,m=0,C){const T=st(),M=fi(),k=Wh(M,22+h,16,null,C||null);null===k.projection&&(k.projection=m),Mh(),64!=(64&k.flags)&&function C_(h,m,C){xf(m[11],0,m,C,__(h,C,m),ww(C.parent||m[6],C,m))}(M,T,k)}function c3(h,m,C){return D2(h,"",m,"",C),c3}function D2(h,m,C,T,M){const k=st(),N=Hf(k,m,C,T);return N!==ri&&ql(fi(),Qo(),k,h,N,k[11],M,!1),D2}function k2(h,m,C,T,M,k,N){const H=st(),j=$f(H,m,C,T,M,k);return j!==ri&&ql(fi(),Qo(),H,h,j,H[11],N,!1),k2}function d3(h,m,C,T,M,k,N,H,j){const X=st(),le=Uf(X,m,C,T,M,k,N,H);return le!==ri&&ql(fi(),Qo(),X,h,le,X[11],j,!1),d3}function rN(h,m,C,T,M){const k=h[C+1],N=null===m;let H=T?Sc(k):bu(k),j=!1;for(;0!==H&&(!1===j||N);){const le=h[H+1];MY(h[H],m)&&(j=!0,h[H+1]=T?MM(le):t2(le)),H=T?Sc(le):bu(le)}j&&(h[C+1]=T?t2(k):MM(k))}function MY(h,m){return null===h||null==m||(Array.isArray(h)?h[1]:h)===m||!(!Array.isArray(h)||"string"!=typeof m)&&Rh(h,m)>=0}const Ya={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function aN(h){return h.substring(Ya.key,Ya.keyEnd)}function sN(h,m){const C=Ya.textEnd;return C===m?-1:(m=Ya.keyEnd=function EY(h,m,C){for(;m<C&&h.charCodeAt(m)>32;)m++;return m}(h,Ya.key=m,C),j_(h,m,C))}function j_(h,m,C){for(;m<C&&h.charCodeAt(m)<=32;)m++;return m}function p3(h,m,C){return vd(h,m,C,!1),p3}function h3(h,m){return vd(h,m,null,!0),h3}function hN(h){yd(Xs,Cu,h,!0)}function Cu(h,m){for(let C=function kY(h){return function cN(h){Ya.key=0,Ya.keyEnd=0,Ya.value=0,Ya.valueEnd=0,Ya.textEnd=h.length}(h),sN(h,j_(h,0,Ya.textEnd))}(m);C>=0;C=sN(m,C))Xs(h,aN(m),!0)}function vd(h,m,C,T){const M=st(),k=fi(),N=Mr(2);k.firstUpdatePass&&fN(k,h,N,T),m!==ri&&ga(M,N,m)&&_N(k,k.data[pa()],M,M[11],h,M[N+1]=function $Y(h,m){return null==h||("string"==typeof m?h+=m:"object"==typeof h&&(h=ie(hu(h)))),h}(m,C),T,N)}function yd(h,m,C,T){const M=fi(),k=Mr(2);M.firstUpdatePass&&fN(M,null,k,T);const N=st();if(C!==ri&&ga(N,k,C)){const H=M.data[pa()];if(vN(H,T)&&!gN(M,k)){let j=T?H.classesWithoutHost:H.stylesWithoutHost;null!==j&&(C=pe(j,C||"")),n3(M,H,N,C,T)}else!function HY(h,m,C,T,M,k,N,H){M===ri&&(M=An);let j=0,X=0,le=0<M.length?M[0]:null,ve=0<k.length?k[0]:null;for(;null!==le||null!==ve;){const De=j<M.length?M[j+1]:void 0,Fe=X<k.length?k[X+1]:void 0;let Ct,nt=null;le===ve?(j+=2,X+=2,De!==Fe&&(nt=ve,Ct=Fe)):null===ve||null!==le&&le<ve?(j+=2,nt=le):(X+=2,nt=ve,Ct=Fe),null!==nt&&_N(h,m,C,T,nt,Ct,N,H),le=j<M.length?M[j]:null,ve=X<k.length?k[X]:null}}(M,H,N,N[11],N[k+1],N[k+1]=function BY(h,m,C){if(null==C||""===C)return An;const T=[],M=hu(C);if(Array.isArray(M))for(let k=0;k<M.length;k++)h(T,M[k],!0);else if("object"==typeof M)for(const k in M)M.hasOwnProperty(k)&&h(T,k,M[k]);else"string"==typeof M&&m(T,M);return T}(h,m,C),T,k)}}function gN(h,m){return m>=h.expandoStartIndex}function fN(h,m,C,T){const M=h.data;if(null===M[C+1]){const k=M[pa()],N=gN(h,C);vN(k,T)&&null===m&&!N&&(m=!1),m=function NY(h,m,C,T){const M=td(h);let k=T?m.residualClasses:m.residualStyles;if(null===M)0===(T?m.classBindings:m.styleBindings)&&(C=yv(C=g3(null,h,m,C,T),m.attrs,T),k=null);else{const N=m.directiveStylingLast;if(-1===N||h[N]!==M)if(C=g3(M,h,m,C,T),null===k){let j=function LY(h,m,C){const T=C?m.classBindings:m.styleBindings;if(0!==bu(T))return h[Sc(T)]}(h,m,T);void 0!==j&&Array.isArray(j)&&(j=g3(null,h,m,j[1],T),j=yv(j,m.attrs,T),function RY(h,m,C,T){h[Sc(C?m.classBindings:m.styleBindings)]=T}(h,m,T,j))}else k=function FY(h,m,C){let T;const M=m.directiveEnd;for(let k=1+m.directiveStylingLast;k<M;k++)T=yv(T,h[k].hostAttrs,C);return yv(T,m.attrs,C)}(h,m,T)}return void 0!==k&&(T?m.residualClasses=k:m.residualStyles=k),C}(M,k,m,T),function SY(h,m,C,T,M,k){let N=k?m.classBindings:m.styleBindings,H=Sc(N),j=bu(N);h[T]=C;let le,X=!1;if(Array.isArray(C)){const ve=C;le=ve[1],(null===le||Rh(ve,le)>0)&&(X=!0)}else le=C;if(M)if(0!==j){const De=Sc(h[H+1]);h[T+1]=O_(De,H),0!==De&&(h[De+1]=ev(h[De+1],T)),h[H+1]=function h5(h,m){return 131071&h|m<<17}(h[H+1],T)}else h[T+1]=O_(H,0),0!==H&&(h[H+1]=ev(h[H+1],T)),H=T;else h[T+1]=O_(j,0),0===H?H=T:h[j+1]=ev(h[j+1],T),j=T;X&&(h[T+1]=t2(h[T+1])),rN(h,le,T,!0),rN(h,le,T,!1),function wY(h,m,C,T,M){const k=M?h.residualClasses:h.residualStyles;null!=k&&"string"==typeof m&&Rh(k,m)>=0&&(C[T+1]=MM(C[T+1]))}(m,le,h,T,k),N=O_(H,j),k?m.classBindings=N:m.styleBindings=N}(M,k,m,C,N,T)}}function g3(h,m,C,T,M){let k=null;const N=C.directiveEnd;let H=C.directiveStylingLast;for(-1===H?H=C.directiveStart:H++;H<N&&(k=m[H],T=yv(T,k.hostAttrs,M),k!==h);)H++;return null!==h&&(C.directiveStylingLast=H),T}function yv(h,m,C){const T=C?1:2;let M=-1;if(null!==m)for(let k=0;k<m.length;k++){const N=m[k];"number"==typeof N?M=N:M===T&&(Array.isArray(h)||(h=void 0===h?[]:["",h]),Xs(h,N,!!C||m[++k]))}return void 0===h?null:h}function _N(h,m,C,T,M,k,N,H){if(!(3&m.type))return;const j=h.data,X=j[H+1];I2(function wM(h){return 1==(1&h)}(X)?bN(j,m,C,M,bu(X),N):void 0)||(I2(k)||function SM(h){return 2==(2&h)}(X)&&(k=bN(j,null,C,M,H,N)),function Iw(h,m,C,T,M){if(m)M?h.addClass(C,T):h.removeClass(C,T);else{let k=-1===T.indexOf("-")?void 0:zl.DashCase;null==M?h.removeStyle(C,T,k):("string"==typeof M&&M.endsWith("!important")&&(M=M.slice(0,-10),k|=zl.Important),h.setStyle(C,T,M,k))}}(T,N,qs(pa(),C),M,k))}function bN(h,m,C,T,M,k){const N=null===m;let H;for(;M>0;){const j=h[M],X=Array.isArray(j),le=X?j[1]:j,ve=null===le;let De=C[M+1];De===ri&&(De=ve?An:void 0);let Fe=ve?_l(De,T):le===T?De:void 0;if(X&&!I2(Fe)&&(Fe=_l(j,T)),I2(Fe)&&(H=Fe,N))return H;const nt=h[M+1];M=N?Sc(nt):bu(nt)}if(null!==m){let j=k?m.residualClasses:m.residualStyles;null!=j&&(H=_l(j,T))}return H}function I2(h){return void 0!==h}function vN(h,m){return 0!=(h.flags&(m?16:32))}function yN(h,m=""){const C=st(),T=fi(),M=h+22,k=T.firstCreatePass?Wh(T,M,1,m,null):T.data[M],N=C[M]=Cf(C[11],m);Ob(T,C,N,k),Ws(k,!1)}function f3(h){return E2("",h,""),f3}function E2(h,m,C){const T=st(),M=Hf(T,h,m,C);return M!==ri&&fd(T,pa(),M),E2}function m3(h,m,C,T,M){const k=st(),N=$f(k,h,m,C,T,M);return N!==ri&&fd(k,pa(),N),m3}function _3(h,m,C,T,M,k,N){const H=st(),j=Uf(H,h,m,C,T,M,k,N);return j!==ri&&fd(H,pa(),j),_3}function MN(h,m,C){yd(Xs,Cu,Hf(st(),h,m,C),!0)}function P2(h,m,C){const T=st();return ga(T,Xd(),m)&&ql(fi(),Qo(),T,h,m,T[11],C,!0),P2}function O2(h,m,C){const T=st();if(ga(T,Xd(),m)){const k=fi(),N=Qo();ql(k,N,T,h,m,function GM(h,m,C){return(null===h||da(h))&&(C=function Qd(h){for(;Array.isArray(h);){if("object"==typeof h[1])return h;h=h[0]}return null}(C[m.index])),C[11]}(td(k.data),N,T),C,!0)}return O2}const eg=void 0;var ON=["en",[["a","p"],["AM","PM"],eg],[["AM","PM"],eg,eg],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],eg,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],eg,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",eg,"{1} 'at' {0}",eg],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Z_(h){const C=Math.floor(Math.abs(h)),T=h.toString().replace(/^[^.]*\.?/,"").length;return 1===C&&0===T?1:5}];let Zf={};function tg(h,m,C){"string"!=typeof m&&(C=m,m=h[hn.LocaleId]),m=m.toLowerCase().replace(/_/g,"-"),Zf[m]=h,C&&(Zf[m][hn.ExtraData]=C)}function N2(h){const m=function xp(h){return h.toLowerCase().replace(/_/g,"-")}(h);let C=v3(m);if(C)return C;const T=m.split("-")[0];if(C=v3(T),C)return C;if("en"===T)return ON;throw new Pe(701,!1)}function Si(h){return N2(h)[hn.PluralCase]}function v3(h){return h in Zf||(Zf[h]=Zt.ng&&Zt.ng.common&&Zt.ng.common.locales&&Zt.ng.common.locales[h]),Zf[h]}var hn=(()=>((hn=hn||{})[hn.LocaleId=0]="LocaleId",hn[hn.DayPeriodsFormat=1]="DayPeriodsFormat",hn[hn.DayPeriodsStandalone=2]="DayPeriodsStandalone",hn[hn.DaysFormat=3]="DaysFormat",hn[hn.DaysStandalone=4]="DaysStandalone",hn[hn.MonthsFormat=5]="MonthsFormat",hn[hn.MonthsStandalone=6]="MonthsStandalone",hn[hn.Eras=7]="Eras",hn[hn.FirstDayOfWeek=8]="FirstDayOfWeek",hn[hn.WeekendRange=9]="WeekendRange",hn[hn.DateFormat=10]="DateFormat",hn[hn.TimeFormat=11]="TimeFormat",hn[hn.DateTimeFormat=12]="DateTimeFormat",hn[hn.NumberSymbols=13]="NumberSymbols",hn[hn.NumberFormats=14]="NumberFormats",hn[hn.CurrencyCode=15]="CurrencyCode",hn[hn.CurrencySymbol=16]="CurrencySymbol",hn[hn.CurrencyName=17]="CurrencyName",hn[hn.Currencies=18]="Currencies",hn[hn.Directionality=19]="Directionality",hn[hn.PluralCase=20]="PluralCase",hn[hn.ExtraData=21]="ExtraData",hn))();const NN=["zero","one","two","few","many"],V_="en-US",L2={marker:"element"},z_={marker:"ICU"};var Ur=(()=>((Ur=Ur||{})[Ur.SHIFT=2]="SHIFT",Ur[Ur.APPEND_EAGERLY=1]="APPEND_EAGERLY",Ur[Ur.COMMENT=2]="COMMENT",Ur))();let R2=V_;function RN(h){(function nr(h,m){null==h&&pi(m,h,null,"!=")})(h,"Expected localeId to be defined"),"string"==typeof h&&(R2=h.toLowerCase().replace(/_/g,"-"))}function ig(h,m,C){const T=m.insertBeforeIndex,M=Array.isArray(T)?T[0]:T;return null===M?Mw(h,0,C):hi(C[M])}function A3(h,m,C,T,M){const k=m.insertBeforeIndex;if(Array.isArray(k)){let N=T,H=null;if(3&m.type||(H=N,N=M),null!==N&&0==(2&m.flags))for(let j=1;j<k.length;j++)fp(h,N,C[k[j]],H,!1)}}function x3(h,m){if(h.push(m),h.length>1)for(let C=h.length-2;C>=0;C--){const T=h[C];T3(T)||FN(T,m)&&null===S3(T)&&aj(T,m.index)}}function T3(h){return!(64&h.type)}function FN(h,m){return T3(m)||h.index>m.index}function S3(h){const m=h.insertBeforeIndex;return Array.isArray(m)?m[0]:m}function aj(h,m){const C=h.insertBeforeIndex;Array.isArray(C)?C[0]=m:(v_(ig,A3),h.insertBeforeIndex=m)}function Vf(h,m){const C=h.data[m];return null===C||"string"==typeof C?null:C.hasOwnProperty("currentCaseLViewIndex")?C:C.value}function w3(h,m,C){const T=d2(h,C,64,null,null);return x3(m,T),T}function F2(h,m){const C=m[h.currentCaseLViewIndex];return null===C?C:C<0?~C:C}function M3(h){return h>>>17}function BN(h){return(131070&h)>>>1}let Av=0,xv=0;function UN(h,m,C,T){const M=C[11];let N,k=null;for(let H=0;H<m.length;H++){const j=m[H];if("string"==typeof j){const X=m[++H];null===C[X]&&(C[X]=Cf(M,j))}else if("number"==typeof j)switch(1&j){case 0:const X=M3(j);let le,ve;if(null===k&&(k=X,N=Pb(M,T)),X===k?(le=T,ve=N):(le=null,ve=hi(C[X])),null!==ve){const Ct=BN(j);fp(M,ve,C[Ct],le,!1);const Jt=Vf(h,Ct);if(null!==Jt&&"object"==typeof Jt){const Cn=F2(Jt,C);null!==Cn&&UN(h,Jt.create[Cn],C,C[Jt.anchorIdx])}}break;case 1:const Fe=m[++H],nt=m[++H];yp(M,qs(j>>>1,C),null,null,Fe,nt,null)}else switch(j){case z_:const X=m[++H],le=m[++H];null===C[le]&&gs(C[le]=Di(M,X),C);break;case L2:const ve=m[++H],De=m[++H];null===C[De]&&gs(C[De]=$h(M,ve,null),C)}}}function YN(h,m,C,T,M){for(let k=0;k<C.length;k++){const N=C[k],H=C[++k];if(N&M){let j="";for(let X=k+1;X<=k+H;X++){const le=C[X];if("string"==typeof le)j+=le;else if("number"==typeof le)if(le<0)j+=Je(m[T-le]);else{const ve=le>>>2;switch(3&le){case 1:const De=C[++X],Fe=C[++X],nt=h.data[ve];"string"==typeof nt?yp(m[11],m[ve],null,nt,De,j,Fe):ql(h,nt,m,De,j,m[11],Fe,!1);break;case 0:const Ct=m[ve];null!==Ct&&gp(m[11],Ct,j);break;case 2:uj(h,Vf(h,ve),m,j);break;case 3:jN(h,Vf(h,ve),T,m)}}}}else{const j=C[k+1];if(j>0&&3==(3&j)){const le=Vf(h,j>>>2);m[le.currentCaseLViewIndex]<0&&jN(h,le,T,m)}}k+=H}}function jN(h,m,C,T){let M=T[m.currentCaseLViewIndex];if(null!==M){let k=Av;M<0&&(M=T[m.currentCaseLViewIndex]=~M,k=-1),YN(h,T,m.update[M],C,k)}}function uj(h,m,C,T){const M=function ZN(h,m){let C=h.cases.indexOf(m);if(-1===C)switch(h.type){case 1:{const T=function y3(h,m){const C=Si(m)(parseInt(h,10)),T=NN[C];return void 0!==T?T:"other"}(m,function C3(){return R2}());C=h.cases.indexOf(T),-1===C&&"other"!==T&&(C=h.cases.indexOf("other"));break}case 0:C=h.cases.indexOf("other")}return-1===C?null:C}(m,T);if(F2(m,C)!==M&&(k3(h,m,C),C[m.currentCaseLViewIndex]=null===M?null:~M,null!==M)){const N=C[m.anchorIdx];N&&UN(h,m.create[M],C,N)}}function k3(h,m,C){let T=F2(m,C);if(null!==T){const M=m.remove[T];for(let k=0;k<M.length;k++){const N=M[k];if(N>0){const H=qs(N,C);null!==H&&bA(C[11],H)}else k3(h,Vf(h,~N),C)}}}function VN(){const h=[];let C,T,m=-1;function k(H,j){m=0;const X=F2(H,j);T=null!==X?H.remove[X]:An}function N(){if(m<T.length){const H=T[m++];return H>0?C[H]:(h.push(m,T),k(C[1].data[~H],C),N())}return 0===h.length?null:(T=h.pop(),m=h.pop(),N())}return function M(H,j){for(C=j;h.length;)h.pop();return k(H.value,j),N}}const B2=/\ufffd(\d+):?\d*\ufffd/gi,gj=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,fj=/\ufffd(\d+)\ufffd/,qN=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/,mj=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,_j=/\ufffd(\/?[#*]\d+):?\d*\ufffd/gi,bj=/\uE500/g;function H2(h,m,C,T,M,k,N){const H=vp(h,T,1,null);let j=H<<Ur.SHIFT,X=Xc();m===X&&(X=null),null===X&&(j|=Ur.APPEND_EAGERLY),N&&(j|=Ur.COMMENT,function hp(h){void 0===vw&&(vw=h())}(VN)),M.push(j,null===k?"":k);const le=d2(h,H,N?32:1,null===k?"":k,null);x3(C,le);const ve=le.index;return Ws(le,!1),null!==X&&m!==X&&function lj(h,m){let C=h.insertBeforeIndex;null===C?(v_(ig,A3),C=h.insertBeforeIndex=[null,m]):(function li(h,m,C){h!=m&&pi(C,h,m,"==")}(Array.isArray(C),!0,"Expecting array here"),C.push(m))}(X,ve),le}function I3(h,m,C,T,M,k,N){const H=N.match(B2),j=H2(h,m,C,k,T,H?null:N,!1);H&&G_(M,N,j.index,null,0,null)}function G_(h,m,C,T,M,k){const N=h.length,H=N+1;h.push(null,null);const j=N+2,X=m.split(B2);let le=0;for(let ve=0;ve<X.length;ve++){const De=X[ve];if(1&ve){const Fe=M+parseInt(De,10);h.push(-1-Fe),le|=og(Fe)}else""!==De&&h.push(De)}return h.push(C<<2|(T?1:0)),T&&h.push(T,k),h[N]=le,h[H]=h.length-j,le}function E3(h){let m=0;for(let C=0;C<h.length;C++){const T=h[C];"number"==typeof T&&T<0&&m++}return m}function og(h){return 1<<Math.min(h,31)}function WN(h){let m,k,C="",T=0,M=!1;for(;null!==(m=mj.exec(h));)M?m[0]===`\ufffd/*${k}\ufffd`&&(T=m.index,M=!1):(C+=h.substring(T,m.index+m[0].length),k=m[1],M=!0);return C+=h.slice(T),C}function XN(h,m,C,T,M,k){let N=0;const H={type:M.type,currentCaseLViewIndex:vp(h,m,1,null),anchorIdx:k,cases:[],create:[],remove:[],update:[]};(function O3(h,m,C){h.push(og(m.mainBinding),2,-1-m.mainBinding,C<<2|2)})(C,M,k),function sj(h,m,C){const T=h.data[m];null===T?h.data[m]=C:T.value=C}(h,k,H);const j=M.values;for(let X=0;X<j.length;X++){const le=j[X],ve=[];for(let De=0;De<le.length;De++){const Fe=le[De];if("string"!=typeof Fe){const nt=ve.push(Fe)-1;le[De]=`\x3c!--\ufffd${nt}\ufffd--\x3e`}}N=e8(h,H,m,C,T,M.cases[X],le.join(""),ve)|N}N&&function N3(h,m,C){h.push(m,1,C<<2|3)}(C,N,k)}function Cj(h){const m=[],C=[];let T=1,M=0;const k=P3(h=h.replace(qN,function(N,H,j){return T="select"===j?0:1,M=parseInt(H.slice(1),10),""}));for(let N=0;N<k.length;){let H=k[N++].trim();1===T&&(H=H.replace(/\s*(?:=)?(\w+)\s*/,"$1")),H.length&&m.push(H);const j=P3(k[N++]);m.length>C.length&&C.push(j)}return{type:T,mainBinding:M,cases:m,values:C}}function P3(h){if(!h)return[];let m=0;const C=[],T=[],M=/[{}]/g;let k;for(M.lastIndex=0;k=M.exec(h);){const H=k.index;if("}"==k[0]){if(C.pop(),0==C.length){const j=h.substring(m,H);qN.test(j)?T.push(Cj(j)):T.push(j),m=H+1}}else{if(0==C.length){const j=h.substring(m,H);T.push(j),m=H+1}C.push("{")}}const N=h.substring(m);return T.push(N),T}function e8(h,m,C,T,M,k,N,H){const j=[],X=[],le=[];m.cases.push(k),m.create.push(j),m.remove.push(X),m.update.push(le);const De=Rw(Ow()).getInertBodyElement(N),Fe=Hb(De)||De;return Fe?q_(h,m,C,T,j,X,le,Fe,M,H,0):0}function q_(h,m,C,T,M,k,N,H,j,X,le){let ve=0,De=H.firstChild;for(;De;){const Fe=vp(h,C,1,null);switch(De.nodeType){case Node.ELEMENT_NODE:const nt=De,Ct=nt.tagName.toLowerCase();if(T_.hasOwnProperty(Ct)){J_(M,L2,Ct,j,Fe),h.data[Fe]=Ct;const lt=nt.attributes;for(let On=0;On<lt.length;On++){const Yi=lt.item(On),lr=Yi.name.toLowerCase();Yi.value.match(B2)?Uw.hasOwnProperty(lr)&&G_(N,Yi.value,Fe,Yi.name,0,Bb[lr]?fu:null):L3(M,Fe,Yi)}ve=q_(h,m,C,T,M,k,N,De,Fe,X,le+1)|ve,Sv(k,Fe,le)}break;case Node.TEXT_NODE:const Pt=De.textContent||"",Jt=Pt.match(B2);J_(M,null,Jt?"":Pt,j,Fe),Sv(k,Fe,le),Jt&&(ve=G_(N,Pt,Fe,null,0,null)|ve);break;case Node.COMMENT_NODE:const Cn=fj.exec(De.textContent||"");if(Cn){const On=X[parseInt(Cn[1],10)];J_(M,z_,"",j,Fe),XN(h,C,T,j,On,Fe),t8(k,Fe,le)}}De=De.nextSibling}return ve}function Sv(h,m,C){0===C&&h.push(m)}function t8(h,m,C){0===C&&(h.push(~m),h.push(m))}function J_(h,m,C,T,M){null!==m&&h.push(m),h.push(C,M,function cj(h,m,C){return h|m<<17|C<<1}(0,T,M))}function L3(h,m,C){h.push(m<<1|1,C.name,C.value)}function wv(h,m,C=-1){const T=fi(),M=st(),k=22+h,N=$o(T.consts,m),H=Xc();T.firstCreatePass&&function yj(h,m,C,T,M,k){const N=Xc(),H=[],j=[],X=[[]];M=function KN(h,m){if(function QN(h){return-1===h}(m))return WN(h);{const C=h.indexOf(`:${m}\ufffd`)+2+m.toString().length,T=h.search(new RegExp(`\ufffd\\/\\*\\d+:${m}\ufffd`));return WN(h.substring(C,T))}}(M,k);const le=function vj(h){return h.replace(bj," ")}(M).split(_j);for(let ve=0;ve<le.length;ve++){let De=le[ve];if(0==(1&ve)){const Fe=P3(De);for(let nt=0;nt<Fe.length;nt++){let Ct=Fe[nt];if(0==(1&nt)){const Pt=Ct;""!==Pt&&I3(h,N,X[0],H,j,C,Pt)}else{const Pt=Ct;if("object"!=typeof Pt)throw new Error(`Unable to parse ICU expression in "${M}" message.`);XN(h,C,j,m,Pt,H2(h,N,X[0],C,H,"",!0).index)}}}else{const Fe=47===De.charCodeAt(0),Ct=(De.charCodeAt(Fe?1:0),22+Number.parseInt(De.substring(Fe?2:1)));if(Fe)X.shift(),Ws(Xc(),!1);else{const Pt=w3(h,X[0],Ct);X.unshift([]),Ws(Pt,!0)}}}h.data[T]={create:H,update:j}}(T,null===H?0:H.index,M,k,N,C);const j=T.data[k],le=mA(T,H===M[6]?null:H,M);(function $N(h,m,C,T){const M=h[11];for(let k=0;k<m.length;k++){const N=m[k++],H=m[k],j=(N&Ur.COMMENT)===Ur.COMMENT,X=(N&Ur.APPEND_EAGERLY)===Ur.APPEND_EAGERLY,le=N>>>Ur.SHIFT;let ve=h[le];null===ve&&(ve=h[le]=j?M.createComment(H):Cf(M,H)),X&&null!==C&&fp(M,C,ve,T,!1)}})(M,j.create,le,H&&8&H.type?M[H.index]:null),Ks(!0)}function B3(h,m,C){wv(h,m,C),function F3(){Ks(!1)}()}function i8(h,m){const C=fi();!function JN(h,m,C){const M=_r().index,k=[];if(h.firstCreatePass&&null===h.data[m]){for(let N=0;N<C.length;N+=2){const H=C[N],j=C[N+1];if(""!==j){if(gj.test(j))throw new Error(`ICU expressions are not supported in attributes. Message: "${j}".`);G_(k,j,M,H,E3(k),null)}}h.data[m]=k}}(C,h+22,$o(C.consts,m))}function H3(h){return function HN(h){h&&(Av|=1<<Math.min(xv,31)),xv++}(ga(st(),Xd(),h)),H3}function o8(h){!function dj(h,m,C){if(xv>0){const T=h.data[C];YN(h,m,Array.isArray(T)?T:T.update,fl()-xv-1,Av)}Av=0,xv=0}(fi(),st(),h+22)}function Q_(h,m,C,T,M){if(h=me(h),Array.isArray(h))for(let k=0;k<h.length;k++)Q_(h[k],m,C,T,M);else{const k=fi(),N=st();let H=xc(h)?h:me(h.provide),j=Jw(h);const X=_r(),le=1048575&X.providerIndexes,ve=X.directiveStart,De=X.providerIndexes>>20;if(xc(h)||!h.multi){const Fe=new nu(j,M,qh),nt=Y3(H,m,M?le:le+De,ve);-1===nt?(zt($e(X,N),k,H),$3(k,h,m.length),m.push(H),X.directiveStart++,X.directiveEnd++,M&&(X.providerIndexes+=1048576),C.push(Fe),N.push(Fe)):(C[nt]=Fe,N[nt]=Fe)}else{const Fe=Y3(H,m,le+De,ve),nt=Y3(H,m,le,le+De),Ct=Fe>=0&&C[Fe],Pt=nt>=0&&C[nt];if(M&&!Pt||!M&&!Ct){zt($e(X,N),k,H);const Jt=function l8(h,m,C,T,M){const k=new nu(h,C,qh);return k.multi=[],k.index=m,k.componentProviders=0,U3(k,M,T&&!C),k}(M?s8:a8,C.length,M,T,j);!M&&Pt&&(C[nt].providerFactory=Jt),$3(k,h,m.length,0),m.push(H),X.directiveStart++,X.directiveEnd++,M&&(X.providerIndexes+=1048576),C.push(Jt),N.push(Jt)}else $3(k,h,Fe>-1?Fe:nt,U3(C[M?nt:Fe],j,!M&&T));!M&&T&&Pt&&C[nt].componentProviders++}}}function $3(h,m,C,T){const M=xc(m),k=function $O(h){return!!h.useClass}(m);if(M||k){const j=(k?me(m.useClass):m).prototype.ngOnDestroy;if(j){const X=h.destroyHooks||(h.destroyHooks=[]);if(!M&&m.multi){const le=X.indexOf(C);-1===le?X.push(C,[T,j]):X[le+1].push(T,j)}else X.push(C,j)}}}function U3(h,m,C){return C&&h.componentProviders++,h.multi.push(m)-1}function Y3(h,m,C,T){for(let M=C;M<T;M++)if(m[M]===h)return M;return-1}function a8(h,m,C,T){return U2(this.multi,[])}function s8(h,m,C,T){const M=this.multi;let k;if(this.providerFactory){const N=this.providerFactory.componentProviders,H=br(C,C[1],this.providerFactory.index,T);k=H.slice(0,N),U2(M,k);for(let j=N;j<H.length;j++)k.push(H[j])}else k=[],U2(M,k);return k}function U2(h,m){for(let C=0;C<h.length;C++)m.push((0,h[C])());return m}function Mc(h,m=[]){return C=>{C.providersResolver=(T,M)=>function Dj(h,m,C){const T=fi();if(T.firstCreatePass){const M=da(h);Q_(C,T.data,T.blueprint,M,!0),Q_(m,T.data,T.blueprint,M,!1)}}(T,M?M(h):h,m)}}class W_{}class K_{}function j3(h,m){return new Z3(h,m??null)}class Z3 extends W_{constructor(m,C){super(),this._parent=C,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new yu(this);const T=Bn(m);this._bootstrapComponents=_u(T.bootstrap),this._r3Injector=gM(m,C,[{provide:W_,useValue:this},{provide:kf,useValue:this.componentFactoryResolver}],ie(m),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(m)}get injector(){return this._r3Injector}destroy(){const m=this._r3Injector;!m.destroyed&&m.destroy(),this.destroyCbs.forEach(C=>C()),this.destroyCbs=null}onDestroy(m){this.destroyCbs.push(m)}}class Y2 extends K_{constructor(m){super(),this.moduleType=m}create(m){return new Z3(this.moduleType,m)}}class c8 extends W_{constructor(m,C,T){super(),this.componentFactoryResolver=new yu(this),this.instance=null;const M=new qw([...m,{provide:W_,useValue:this},{provide:kf,useValue:this.componentFactoryResolver}],C||jb(),T,new Set(["environment"]));this.injector=M,M.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(m){this.injector.onDestroy(m)}}function j2(h,m,C=null){return new c8(h,m,C).injector}let Ij=(()=>{class h{constructor(C){this._injector=C,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(C){if(!C.standalone)return null;if(!this.cachedInjectors.has(C.id)){const T=Mf(0,C.type),M=T.length>0?j2([T],this._injector,`Standalone[${C.type.name}]`):null;this.cachedInjectors.set(C.id,M)}return this.cachedInjectors.get(C.id)}ngOnDestroy(){try{for(const C of this.cachedInjectors.values())null!==C&&C.destroy()}finally{this.cachedInjectors.clear()}}}return h.\u0275prov=mo({token:h,providedIn:"environment",factory:()=>new h(vr(Vh))}),h})();function d8(h){h.getStandaloneInjector=m=>m.get(Ij).getOrCreateStandaloneInjector(h)}function W3(h,m,C){const T=$a()+h,M=st();return M[T]===ri?el(M,T,C?m.call(C):m()):wo(M,T)}function K3(h,m,C,T){return _8(st(),$a(),h,m,C,T)}function X3(h,m,C,T,M){return b8(st(),$a(),h,m,C,T,M)}function X_(h,m,C,T,M,k){return Gf(st(),$a(),h,m,C,T,M,k)}function eD(h,m,C,T,M,k,N){return function v8(h,m,C,T,M,k,N,H,j){const X=m+C;return Al(h,X,M,k,N,H)?el(h,X+4,j?T.call(j,M,k,N,H):T(M,k,N,H)):Dv(h,X+4)}(st(),$a(),h,m,C,T,M,k,N)}function tD(h,m,C,T,M,k,N,H){const j=$a()+h,X=st(),le=Al(X,j,C,T,M,k);return ga(X,j+4,N)||le?el(X,j+5,H?m.call(H,C,T,M,k,N):m(C,T,M,k,N)):wo(X,j+5)}function nD(h,m,C,T,M,k,N,H,j){const X=$a()+h,le=st(),ve=Al(le,X,C,T,M,k);return _d(le,X+4,N,H)||ve?el(le,X+6,j?m.call(j,C,T,M,k,N,H):m(C,T,M,k,N,H)):wo(le,X+6)}function iD(h,m,C,T,M,k,N,H,j,X){const le=$a()+h,ve=st();let De=Al(ve,le,C,T,M,k);return $_(ve,le+4,N,H,j)||De?el(ve,le+7,X?m.call(X,C,T,M,k,N,H,j):m(C,T,M,k,N,H,j)):wo(ve,le+7)}function m8(h,m,C,T){return function oD(h,m,C,T,M,k){let N=m+C,H=!1;for(let j=0;j<M.length;j++)ga(h,N++,M[j])&&(H=!0);return H?el(h,N,T.apply(k,M)):Dv(h,N)}(st(),$a(),h,m,C,T)}function Dv(h,m){const C=h[m];return C===ri?void 0:C}function _8(h,m,C,T,M,k){const N=m+C;return ga(h,N,M)?el(h,N+1,k?T.call(k,M):T(M)):Dv(h,N+1)}function b8(h,m,C,T,M,k,N){const H=m+C;return _d(h,H,M,k)?el(h,H+2,N?T.call(N,M,k):T(M,k)):Dv(h,H+2)}function Gf(h,m,C,T,M,k,N,H){const j=m+C;return $_(h,j,M,k,N)?el(h,j+3,H?T.call(H,M,k,N):T(M,k,N)):Dv(h,j+3)}function V2(h,m){const C=fi();let T;const M=h+22;C.firstCreatePass?(T=function y8(h,m){if(m)for(let C=m.length-1;C>=0;C--){const T=m[C];if(h===T.name)return T}}(m,C.pipeRegistry),C.data[M]=T,T.onDestroy&&(C.destroyHooks||(C.destroyHooks=[])).push(M,T.onDestroy)):T=C.data[M];const k=T.factory||(T.factory=$l(T.type)),N=lo(qh);try{const H=vc(!1),j=k();return vc(H),function z5(h,m,C,T){C>=h.data.length&&(h.data[C]=null,h.blueprint[C]=null),m[C]=T}(C,st(),M,j),j}finally{lo(N)}}function z2(h,m,C){const T=h+22,M=st(),k=gl(M,T);return rg(M,T)?_8(M,$a(),m,k.transform,C,k):k.transform(C)}function G2(h,m,C,T){const M=h+22,k=st(),N=gl(k,M);return rg(k,M)?b8(k,$a(),m,N.transform,C,T,N):N.transform(C,T)}function q2(h,m,C,T,M){const k=h+22,N=st(),H=gl(N,k);return rg(N,k)?Gf(N,$a(),m,H.transform,C,T,M,H):H.transform(C,T,M)}function rg(h,m){return h[1].data[m].pure}function Iv(h){return m=>{setTimeout(h,void 0,m)}}const Cd=class kv extends D.xQ{constructor(m=!1){super(),this.__isAsync=m}emit(m){super.next(m)}subscribe(m,C,T){let M=m,k=C||(()=>null),N=T;if(m&&"object"==typeof m){const j=m;M=j.next?.bind(j),k=j.error?.bind(j),N=j.complete?.bind(j)}this.__isAsync&&(k=Iv(k),M&&(M=Iv(M)),N&&(N=Iv(N)));const H=super.subscribe({next:M,error:k,complete:N});return m instanceof n.w&&m.add(H),H}};function x8(){return this._results[Cl()]()}class e1{constructor(m=!1){this._emitDistinctChangesOnly=m,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const C=Cl(),T=e1.prototype;T[C]||(T[C]=x8)}get changes(){return this._changes||(this._changes=new Cd)}get(m){return this._results[m]}map(m){return this._results.map(m)}filter(m){return this._results.filter(m)}find(m){return this._results.find(m)}reduce(m,C){return this._results.reduce(m,C)}forEach(m){this._results.forEach(m)}some(m){return this._results.some(m)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(m,C){const T=this;T.dirty=!1;const M=Ns(m);(this._changesDetected=!function QC(h,m,C){if(h.length!==m.length)return!1;for(let T=0;T<h.length;T++){let M=h[T],k=m[T];if(C&&(M=C(M),k=C(k)),k!==M)return!1}return!0}(T._results,M,C))&&(T._results=M,T.length=M.length,T.last=M[this.length-1],T.first=M[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let t1=(()=>{class h{}return h.__NG_ELEMENT_ID__=aD,h})();const T8=t1,S8=class extends T8{constructor(m,C,T){super(),this._declarationLView=m,this._declarationTContainer=C,this.elementRef=T}createEmbeddedView(m,C){const T=this._declarationTContainer.tViews,M=Lf(this._declarationLView,T,m,16,null,T.declTNode,null,null,null,null,C||null);M[17]=this._declarationLView[this._declarationTContainer.index];const N=this._declarationLView[19];return null!==N&&(M[19]=N.createEmbeddedView(T)),u2(T,M,m),new B_(M)}};function aD(){return n1(_r(),st())}function n1(h,m){return 4&h.type?new S8(m,h,bp(h,m)):null}let J2=(()=>{class h{}return h.__NG_ELEMENT_ID__=w8,h})();function w8(){return k8(_r(),st())}const M8=J2,sD=class extends M8{constructor(m,C,T){super(),this._lContainer=m,this._hostTNode=C,this._hostLView=T}get element(){return bp(this._hostTNode,this._hostLView)}get injector(){return new lp(this._hostTNode,this._hostLView)}get parentInjector(){const m=ut(this._hostTNode,this._hostLView);if(gf(m)){const C=ru(m,this._hostLView),T=ou(m);return new lp(C[1].data[T+8],C)}return new lp(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(m){const C=D8(this._lContainer);return null!==C&&C[m]||null}get length(){return this._lContainer.length-10}createEmbeddedView(m,C,T){let M,k;"number"==typeof T?M=T:null!=T&&(M=T.index,k=T.injector);const N=m.createEmbeddedView(C||{},k);return this.insert(N,M),N}createComponent(m,C,T,M,k){const N=m&&!function up(h){return"function"==typeof h}(m);let H;if(N)H=C;else{const ve=C||{};H=ve.index,T=ve.injector,M=ve.projectableNodes,k=ve.environmentInjector||ve.ngModuleRef}const j=N?m:new H_(Rt(m)),X=T||this.parentInjector;if(!k&&null==j.ngModule){const De=(N?X:this.parentInjector).get(Vh,null);De&&(k=De)}const le=j.create(X,M,void 0,k);return this.insert(le.hostView,H),le}insert(m,C){const T=m._lView,M=T[1];if(function ip(h){return ds(h[3])}(T)){const le=this.indexOf(m);if(-1!==le)this.detach(le);else{const ve=T[3],De=new sD(ve,ve[6],ve[3]);De.detach(De.indexOf(m))}}const k=this._adjustIndex(C),N=this._lContainer;!function hA(h,m,C,T){const M=10+T,k=C.length;T>0&&(C[M-1][4]=m),T<k-10?(m[4]=C[M],u_(C,10+T,m)):(C.push(m),m[4]=null),m[3]=C;const N=m[17];null!==N&&C!==N&&function CO(h,m){const C=h[9];m[16]!==m[3][3][16]&&(h[2]=!0),null===C?h[9]=[m]:C.push(m)}(N,m);const H=m[19];null!==H&&H.insertView(h),m[2]|=64}(M,T,N,k);const H=kw(k,N),j=T[11],X=Pb(j,N[7]);return null!==X&&function Uh(h,m,C,T,M,k){T[0]=M,T[6]=m,y_(h,T,C,1,M,k)}(M,N[6],j,T,X,H),m.attachToViewContainerRef(),u_(lD(N),k,m),m}move(m,C){return this.insert(m,C)}indexOf(m){const C=D8(this._lContainer);return null!==C?C.indexOf(m):-1}remove(m){const C=this._adjustIndex(m,-1),T=Yh(this._lContainer,C);T&&(mf(lD(this._lContainer),C),gA(T[1],T))}detach(m){const C=this._adjustIndex(m,-1),T=Yh(this._lContainer,C);return T&&null!=mf(lD(this._lContainer),C)?new B_(T):null}_adjustIndex(m,C=0){return m??this.length+C}};function D8(h){return h[8]}function lD(h){return h[8]||(h[8]=[])}function k8(h,m){let C;const T=m[h.index];if(ds(T))C=T;else{let M;if(8&h.type)M=hi(T);else{const k=m[11];M=k.createComment("");const N=ua(h,m);fp(k,Pb(k,N),M,function TO(h,m){return h.nextSibling(m)}(k,N),!1)}m[h.index]=C=jM(T,m,M,h),uv(m,C)}return new sD(C,h,m)}class jn{constructor(m){this.queryList=m,this.matches=null}clone(){return new jn(this.queryList)}setDirty(){this.queryList.setDirty()}}class Ev{constructor(m=[]){this.queries=m}createEmbeddedView(m){const C=m.queries;if(null!==C){const T=null!==m.contentQueries?m.contentQueries[0]:C.length,M=[];for(let k=0;k<T;k++){const N=C.getByIndex(k);M.push(this.queries[N.indexInDeclarationView].clone())}return new Ev(M)}return null}insertView(m){this.dirtyQueriesWithMatches(m)}detachView(m){this.dirtyQueriesWithMatches(m)}dirtyQueriesWithMatches(m){for(let C=0;C<this.queries.length;C++)null!==O8(m,C).matches&&this.queries[C].setDirty()}}class cD{constructor(m,C,T=null){this.predicate=m,this.flags=C,this.read=T}}class Q2{constructor(m=[]){this.queries=m}elementStart(m,C){for(let T=0;T<this.queries.length;T++)this.queries[T].elementStart(m,C)}elementEnd(m){for(let C=0;C<this.queries.length;C++)this.queries[C].elementEnd(m)}embeddedTView(m){let C=null;for(let T=0;T<this.length;T++){const M=null!==C?C.length:0,k=this.getByIndex(T).embeddedTView(m,M);k&&(k.indexInDeclarationView=T,null!==C?C.push(k):C=[k])}return null!==C?new Q2(C):null}template(m,C){for(let T=0;T<this.queries.length;T++)this.queries[T].template(m,C)}getByIndex(m){return this.queries[m]}get length(){return this.queries.length}track(m){this.queries.push(m)}}class W2{constructor(m,C=-1){this.metadata=m,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=C}elementStart(m,C){this.isApplyingToNode(C)&&this.matchTNode(m,C)}elementEnd(m){this._declarationNodeIndex===m.index&&(this._appliesToNextNode=!1)}template(m,C){this.elementStart(m,C)}embeddedTView(m,C){return this.isApplyingToNode(m)?(this.crossesNgTemplate=!0,this.addMatch(-m.index,C),new W2(this.metadata)):null}isApplyingToNode(m){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const C=this._declarationNodeIndex;let T=m.parent;for(;null!==T&&8&T.type&&T.index!==C;)T=T.parent;return C===(null!==T?T.index:-1)}return this._appliesToNextNode}matchTNode(m,C){const T=this.metadata.predicate;if(Array.isArray(T))for(let M=0;M<T.length;M++){const k=T[M];this.matchTNodeWithReadOption(m,C,K2(C,k)),this.matchTNodeWithReadOption(m,C,yc(C,m,k,!1,!1))}else T===t1?4&C.type&&this.matchTNodeWithReadOption(m,C,-1):this.matchTNodeWithReadOption(m,C,yc(C,m,T,!1,!1))}matchTNodeWithReadOption(m,C,T){if(null!==T){const M=this.metadata.read;if(null!==M)if(M===If||M===J2||M===t1&&4&C.type)this.addMatch(C.index,-2);else{const k=yc(C,m,M,!1,!1);null!==k&&this.addMatch(C.index,k)}else this.addMatch(C.index,T)}}addMatch(m,C){null===this.matches?this.matches=[m,C]:this.matches.push(m,C)}}function K2(h,m){const C=h.localNames;if(null!==C)for(let T=0;T<C.length;T+=2)if(C[T]===m)return C[T+1];return null}function I8(h,m,C,T){return-1===C?function o1(h,m){return 11&h.type?bp(h,m):4&h.type?n1(h,m):null}(m,h):-2===C?function Wl(h,m,C){return C===If?bp(m,h):C===t1?n1(m,h):C===J2?k8(m,h):void 0}(h,m,T):br(h,h[1],C,m)}function dD(h,m,C,T){const M=m[19].queries[T];if(null===M.matches){const k=h.data,N=C.matches,H=[];for(let j=0;j<N.length;j+=2){const X=N[j];H.push(X<0?null:I8(m,k[X],N[j+1],C.metadata.read))}M.matches=H}return M.matches}function xl(h,m,C,T){const M=h.queries.getByIndex(C),k=M.matches;if(null!==k){const N=dD(h,m,M,C);for(let H=0;H<k.length;H+=2){const j=k[H];if(j>0)T.push(N[H/2]);else{const X=k[H+1],le=m[-j];for(let ve=10;ve<le.length;ve++){const De=le[ve];De[17]===De[3]&&xl(De[1],De,X,T)}if(null!==le[9]){const ve=le[9];for(let De=0;De<ve.length;De++){const Fe=ve[De];xl(Fe[1],Fe,X,T)}}}}}return T}function Tp(h){const m=st(),C=fi(),T=Dh();nd(T+1);const M=O8(C,T);if(h.dirty&&function Js(h){return 4==(4&h[2])}(m)===(2==(2&M.metadata.flags))){if(null===M.matches)h.reset([]);else{const k=M.crossesNgTemplate?xl(C,m,T,[]):dD(C,m,M,T);h.reset(k,UA),h.notifyOnChanges()}return!0}return!1}function Wi(h,m,C){const T=fi();T.firstCreatePass&&(P8(T,new cD(h,m,C),-1),2==(2&m)&&(T.staticViewQueries=!0)),Ad(T,st(),m)}function E8(h,m,C,T){const M=fi();if(M.firstCreatePass){const k=_r();P8(M,new cD(m,C,T),k.index),function Dc(h,m){const C=h.contentQueries||(h.contentQueries=[]);m!==(C.length?C[C.length-1]:-1)&&C.push(h.queries.length-1,m)}(M,h),2==(2&C)&&(M.staticContentQueries=!0)}Ad(M,st(),C)}function r1(){return function Kt(h,m){return h[19].queries[m].queryList}(st(),Dh())}function Ad(h,m,C){const T=new e1(4==(4&C));T5(h,m,T,T.destroy),null===m[19]&&(m[19]=new Ev),m[19].queries.push(new jn(T))}function P8(h,m,C){null===h.queries&&(h.queries=new Q2),h.queries.track(new W2(m,C))}function O8(h,m){return h.queries.getByIndex(m)}function N8(h,m){return n1(h,m)}const ix=Cc("Input",h=>({bindingPropertyName:h})),ED=Cc("Output",h=>({bindingPropertyName:h})),J8=Cc("HostBinding",h=>({hostPropertyName:h})),Yj=Cc("HostListener",(h,m)=>({eventName:h,args:m}));function l1(...h){}const PD=new yo("Application Initializer");let qf=(()=>{class h{constructor(C){this.appInits=C,this.resolve=l1,this.reject=l1,this.initialized=!1,this.done=!1,this.donePromise=new Promise((T,M)=>{this.resolve=T,this.reject=M})}runInitializers(){if(this.initialized)return;const C=[],T=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let M=0;M<this.appInits.length;M++){const k=this.appInits[M]();if(M2(k))C.push(k);else if(G5(k)){const N=new Promise((H,j)=>{k.subscribe({complete:H,error:j})});C.push(N)}}Promise.all(C).then(()=>{T()}).catch(M=>{this.reject(M)}),0===C.length&&T(),this.initialized=!0}}return h.\u0275fac=function(C){return new(C||h)(vr(PD,8))},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const OD=new yo("AppId",{providedIn:"root",factory:function ND(){return`${ox()}${ox()}${ox()}`}});function ox(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const LD=new yo("Platform Initializer"),Q8=new yo("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),RD=new yo("appBootstrapListener"),W8=new yo("AnimationModuleType");let K8=(()=>{class h{log(C){console.log(C)}warn(C){console.warn(C)}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();const c1=new yo("LocaleId",{providedIn:"root",factory:()=>Mb(c1,en.Optional|en.SkipSelf)||function FD(){return typeof $localize<"u"&&$localize.locale||V_}()}),BD=new yo("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class e9{constructor(m,C){this.ngModuleFactory=m,this.componentFactories=C}}let Fv=(()=>{class h{compileModuleSync(C){return new Y2(C)}compileModuleAsync(C){return Promise.resolve(this.compileModuleSync(C))}compileModuleAndAllComponentsSync(C){const T=this.compileModuleSync(C),k=_u(Bn(C).declarations).reduce((N,H)=>{const j=Rt(H);return j&&N.push(new H_(j)),N},[]);return new e9(T,k)}compileModuleAndAllComponentsAsync(C){return Promise.resolve(this.compileModuleAndAllComponentsSync(C))}clearCache(){}clearCacheFor(C){}getModuleId(C){}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();const n9=(()=>Promise.resolve(0))();function rx(h){typeof Zone>"u"?n9.then(()=>{h&&h.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",h)}class ec{constructor({enableLongStackTrace:m=!1,shouldCoalesceEventChangeDetection:C=!1,shouldCoalesceRunChangeDetection:T=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Cd(!1),this.onMicrotaskEmpty=new Cd(!1),this.onStable=new Cd(!1),this.onError=new Cd(!1),typeof Zone>"u")throw new Pe(908,!1);Zone.assertZonePatched();const M=this;if(M._nesting=0,M._outer=M._inner=Zone.current,Zone.AsyncStackTaggingZoneSpec){const k=Zone.AsyncStackTaggingZoneSpec;M._inner=M._inner.fork(new k("Angular"))}Zone.TaskTrackingZoneSpec&&(M._inner=M._inner.fork(new Zone.TaskTrackingZoneSpec)),m&&Zone.longStackTraceZoneSpec&&(M._inner=M._inner.fork(Zone.longStackTraceZoneSpec)),M.shouldCoalesceEventChangeDetection=!T&&C,M.shouldCoalesceRunChangeDetection=T,M.lastRequestAnimationFrameId=-1,M.nativeRequestAnimationFrame=function i9(){let h=Zt.requestAnimationFrame,m=Zt.cancelAnimationFrame;if(typeof Zone<"u"&&h&&m){const C=h[Zone.__symbol__("OriginalDelegate")];C&&(h=C);const T=m[Zone.__symbol__("OriginalDelegate")];T&&(m=T)}return{nativeRequestAnimationFrame:h,nativeCancelAnimationFrame:m}}().nativeRequestAnimationFrame,function r9(h){const m=()=>{!function o9(h){h.isCheckStableRunning||-1!==h.lastRequestAnimationFrameId||(h.lastRequestAnimationFrameId=h.nativeRequestAnimationFrame.call(Zt,()=>{h.fakeTopEventTask||(h.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{h.lastRequestAnimationFrameId=-1,ax(h),h.isCheckStableRunning=!0,Bv(h),h.isCheckStableRunning=!1},void 0,()=>{},()=>{})),h.fakeTopEventTask.invoke()}),ax(h))}(h)};h._inner=h._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(C,T,M,k,N,H)=>{try{return jD(h),C.invokeTask(M,k,N,H)}finally{(h.shouldCoalesceEventChangeDetection&&"eventTask"===k.type||h.shouldCoalesceRunChangeDetection)&&m(),ZD(h)}},onInvoke:(C,T,M,k,N,H,j)=>{try{return jD(h),C.invoke(M,k,N,H,j)}finally{h.shouldCoalesceRunChangeDetection&&m(),ZD(h)}},onHasTask:(C,T,M,k)=>{C.hasTask(M,k),T===M&&("microTask"==k.change?(h._hasPendingMicrotasks=k.microTask,ax(h),Bv(h)):"macroTask"==k.change&&(h.hasPendingMacrotasks=k.macroTask))},onHandleError:(C,T,M,k)=>(C.handleError(M,k),h.runOutsideAngular(()=>h.onError.emit(k)),!1)})}(M)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ec.isInAngularZone())throw new Pe(909,!1)}static assertNotInAngularZone(){if(ec.isInAngularZone())throw new Pe(909,!1)}run(m,C,T){return this._inner.run(m,C,T)}runTask(m,C,T,M){const k=this._inner,N=k.scheduleEventTask("NgZoneEvent: "+M,m,YD,l1,l1);try{return k.runTask(N,C,T)}finally{k.cancelTask(N)}}runGuarded(m,C,T){return this._inner.runGuarded(m,C,T)}runOutsideAngular(m){return this._outer.run(m)}}const YD={};function Bv(h){if(0==h._nesting&&!h.hasPendingMicrotasks&&!h.isStable)try{h._nesting++,h.onMicrotaskEmpty.emit(null)}finally{if(h._nesting--,!h.hasPendingMicrotasks)try{h.runOutsideAngular(()=>h.onStable.emit(null))}finally{h.isStable=!0}}}function ax(h){h.hasPendingMicrotasks=!!(h._hasPendingMicrotasks||(h.shouldCoalesceEventChangeDetection||h.shouldCoalesceRunChangeDetection)&&-1!==h.lastRequestAnimationFrameId)}function jD(h){h._nesting++,h.isStable&&(h.isStable=!1,h.onUnstable.emit(null))}function ZD(h){h._nesting--,Bv(h)}class Jj{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Cd,this.onMicrotaskEmpty=new Cd,this.onStable=new Cd,this.onError=new Cd}run(m,C,T){return m.apply(C,T)}runGuarded(m,C,T){return m.apply(C,T)}runOutsideAngular(m){return m()}runTask(m,C,T,M){return m.apply(C,T)}}const VD=new yo(""),zD=new yo("");let lx,GD=(()=>{class h{constructor(C,T,M){this._ngZone=C,this.registry=T,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,lx||(function qD(h){lx=h}(M),M.addToWindow(T)),this._watchAngularEvents(),C.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ec.assertNotInAngularZone(),rx(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())rx(()=>{for(;0!==this._callbacks.length;){let C=this._callbacks.pop();clearTimeout(C.timeoutId),C.doneCb(this._didWork)}this._didWork=!1});else{let C=this.getPendingTasks();this._callbacks=this._callbacks.filter(T=>!T.updateCb||!T.updateCb(C)||(clearTimeout(T.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(C=>({source:C.source,creationLocation:C.creationLocation,data:C.data})):[]}addCallback(C,T,M){let k=-1;T&&T>0&&(k=setTimeout(()=>{this._callbacks=this._callbacks.filter(N=>N.timeoutId!==k),C(this._didWork,this.getPendingTasks())},T)),this._callbacks.push({doneCb:C,timeoutId:k,updateCb:M})}whenStable(C,T,M){if(M&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(C,T,M),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(C){this.registry.registerApplication(C,this)}unregisterApplication(C){this.registry.unregisterApplication(C)}findProviders(C,T,M){return[]}}return h.\u0275fac=function(C){return new(C||h)(vr(ec),vr(sx),vr(zD))},h.\u0275prov=mo({token:h,factory:h.\u0275fac}),h})(),sx=(()=>{class h{constructor(){this._applications=new Map}registerApplication(C,T){this._applications.set(C,T)}unregisterApplication(C){this._applications.delete(C)}unregisterAllApplications(){this._applications.clear()}getTestability(C){return this._applications.get(C)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(C,T=!0){return lx?.findTestabilityInTree(this,C,T)??null}}return h.\u0275fac=function(C){return new(C||h)},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})(),Sp=null;const cx=new yo("AllowMultipleToken"),dx=new yo("PlatformDestroyListeners");class s9{constructor(m,C){this.name=m,this.token=C}}function Jf(h,m,C=[]){const T=`Platform: ${m}`,M=new yo(T);return(k=[])=>{let N=u1();if(!N||N.injector.get(cx,!1)){const H=[...C,...k,{provide:M,useValue:!0}];h?h(H):function l9(h){if(Sp&&!Sp.get(cx,!1))throw new Pe(400,!1);Sp=h;const m=h.get(KD);(function QD(h){const m=h.get(LD,null);m&&m.forEach(C=>C())})(h)}(function WD(h=[],m){return zh.create({name:m,providers:[{provide:FA,useValue:"platform"},{provide:dx,useValue:new Set([()=>Sp=null])},...h]})}(H,T))}return function d9(h){const m=u1();if(!m)throw new Pe(401,!1);return m}()}}function u1(){return Sp?.get(KD)??null}let KD=(()=>{class h{constructor(C){this._injector=C,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(C,T){const M=function p1(h,m){let C;return C="noop"===h?new Jj:("zone.js"===h?void 0:h)||new ec(m),C}(T?.ngZone,function XD(h){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!h||!h.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!h||!h.ngZoneRunCoalescing)||!1}}(T)),k=[{provide:ec,useValue:M}];return M.run(()=>{const N=zh.create({providers:k,parent:this.injector,name:C.moduleType.name}),H=C.create(N),j=H.injector.get(mu,null);if(!j)throw new Pe(402,!1);return M.runOutsideAngular(()=>{const X=M.onError.subscribe({next:le=>{j.handleError(le)}});H.onDestroy(()=>{Hv(this._modules,H),X.unsubscribe()})}),function Qf(h,m,C){try{const T=C();return M2(T)?T.catch(M=>{throw m.runOutsideAngular(()=>h.handleError(M)),M}):T}catch(T){throw m.runOutsideAngular(()=>h.handleError(T)),T}}(j,M,()=>{const X=H.injector.get(qf);return X.runInitializers(),X.donePromise.then(()=>(RN(H.injector.get(c1,V_)||V_),this._moduleDoBootstrap(H),H))})})}bootstrapModule(C,T=[]){const M=Wf({},T);return function JD(h,m,C){const T=new Y2(C);return Promise.resolve(T)}(0,0,C).then(k=>this.bootstrapModuleFactory(k,M))}_moduleDoBootstrap(C){const T=C.injector.get(h1);if(C._bootstrapComponents.length>0)C._bootstrapComponents.forEach(M=>T.bootstrap(M));else{if(!C.instance.ngDoBootstrap)throw new Pe(403,!1);C.instance.ngDoBootstrap(T)}this._modules.push(C)}onDestroy(C){this._destroyListeners.push(C)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Pe(404,!1);this._modules.slice().forEach(T=>T.destroy()),this._destroyListeners.forEach(T=>T());const C=this._injector.get(dx,null);C&&(C.forEach(T=>T()),C.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return h.\u0275fac=function(C){return new(C||h)(vr(zh))},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"platform"}),h})();function Wf(h,m){return Array.isArray(m)?m.reduce(Wf,h):{...h,...m}}let h1=(()=>{class h{constructor(C,T,M){this._zone=C,this._injector=T,this._exceptionHandler=M,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const k=new O.y(H=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{H.next(this._stable),H.complete()})}),N=new O.y(H=>{let j;this._zone.runOutsideAngular(()=>{j=this._zone.onStable.subscribe(()=>{ec.assertNotInAngularZone(),rx(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,H.next(!0))})})});const X=this._zone.onUnstable.subscribe(()=>{ec.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{H.next(!1)}))});return()=>{j.unsubscribe(),X.unsubscribe()}});this.isStable=(0,R.T)(k,N.pipe((0,U.B)()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(C,T){const M=C instanceof Qw;if(!this._injector.get(qf).done)throw!M&&rr(C),new Pe(405,false);let N;N=M?C:this._injector.get(kf).resolveComponentFactory(C),this.componentTypes.push(N.componentType);const H=function a9(h){return h.isBoundToModule}(N)?void 0:this._injector.get(W_),X=N.create(zh.NULL,[],T||N.selector,H),le=X.location.nativeElement,ve=X.injector.get(VD,null);return ve?.registerApplication(le),X.onDestroy(()=>{this.detachView(X.hostView),Hv(this.components,X),ve?.unregisterApplication(le)}),this._loadComponent(X),X}tick(){if(this._runningTick)throw new Pe(101,!1);try{this._runningTick=!0;for(let C of this._views)C.detectChanges()}catch(C){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(C))}finally{this._runningTick=!1}}attachView(C){const T=C;this._views.push(T),T.attachToAppRef(this)}detachView(C){const T=C;Hv(this._views,T),T.detachFromAppRef()}_loadComponent(C){this.attachView(C.hostView),this.tick(),this.components.push(C),this._injector.get(RD,[]).concat(this._bootstrapListeners).forEach(M=>M(C))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(C=>C()),this._views.slice().forEach(C=>C.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(C){return this._destroyListeners.push(C),()=>Hv(this._destroyListeners,C)}destroy(){if(this._destroyed)throw new Pe(406,!1);const C=this._injector;C.destroy&&!C.destroyed&&C.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return h.\u0275fac=function(C){return new(C||h)(vr(ec),vr(Vh),vr(mu))},h.\u0275prov=mo({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();function Hv(h,m){const C=h.indexOf(m);C>-1&&h.splice(C,1)}let px=!0,tk=!1;function Rs(){return tk=!0,px}function Fs(){if(tk)throw new Error("Cannot enable prod mode after platform setup.");px=!1}let g9=(()=>{class h{}return h.__NG_ELEMENT_ID__=f9,h})();function f9(h){return function m9(h,m,C){if(zs(h)&&!C){const T=us(h.index,m);return new B_(T,T)}return 47&h.type?new B_(m[16],m):null}(_r(),st(),16==(16&h))}class fx{constructor(){}supports(m){return gi(m)}create(m){return new ok(m)}}const ik=(h,m)=>m;class ok{constructor(m){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=m||ik}forEachItem(m){let C;for(C=this._itHead;null!==C;C=C._next)m(C)}forEachOperation(m){let C=this._itHead,T=this._removalsHead,M=0,k=null;for(;C||T;){const N=!T||C&&C.currentIndex<_x(T,M,k)?C:T,H=_x(N,M,k),j=N.currentIndex;if(N===T)M--,T=T._nextRemoved;else if(C=C._next,null==N.previousIndex)M++;else{k||(k=[]);const X=H-M,le=j-M;if(X!=le){for(let De=0;De<X;De++){const Fe=De<k.length?k[De]:k[De]=0,nt=Fe+De;le<=nt&&nt<X&&(k[De]=Fe+1)}k[N.previousIndex]=le-X}}H!==j&&m(N,H,j)}}forEachPreviousItem(m){let C;for(C=this._previousItHead;null!==C;C=C._nextPrevious)m(C)}forEachAddedItem(m){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)m(C)}forEachMovedItem(m){let C;for(C=this._movesHead;null!==C;C=C._nextMoved)m(C)}forEachRemovedItem(m){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)m(C)}forEachIdentityChange(m){let C;for(C=this._identityChangesHead;null!==C;C=C._nextIdentityChange)m(C)}diff(m){if(null==m&&(m=[]),!gi(m))throw new Pe(900,!1);return this.check(m)?this:null}onDestroy(){}check(m){this._reset();let M,k,N,C=this._itHead,T=!1;if(Array.isArray(m)){this.length=m.length;for(let H=0;H<this.length;H++)k=m[H],N=this._trackByFn(H,k),null!==C&&Object.is(C.trackById,N)?(T&&(C=this._verifyReinsertion(C,k,N,H)),Object.is(C.item,k)||this._addIdentityChange(C,k)):(C=this._mismatch(C,k,N,H),T=!0),C=C._next}else M=0,function Y5(h,m){if(Array.isArray(h))for(let C=0;C<h.length;C++)m(h[C]);else{const C=h[Cl()]();let T;for(;!(T=C.next()).done;)m(T.value)}}(m,H=>{N=this._trackByFn(M,H),null!==C&&Object.is(C.trackById,N)?(T&&(C=this._verifyReinsertion(C,H,N,M)),Object.is(C.item,H)||this._addIdentityChange(C,H)):(C=this._mismatch(C,H,N,M),T=!0),C=C._next,M++}),this.length=M;return this._truncate(C),this.collection=m,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let m;for(m=this._previousItHead=this._itHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._additionsHead;null!==m;m=m._nextAdded)m.previousIndex=m.currentIndex;for(this._additionsHead=this._additionsTail=null,m=this._movesHead;null!==m;m=m._nextMoved)m.previousIndex=m.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(m,C,T,M){let k;return null===m?k=this._itTail:(k=m._prev,this._remove(m)),null!==(m=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null))?(Object.is(m.item,C)||this._addIdentityChange(m,C),this._reinsertAfter(m,k,M)):null!==(m=null===this._linkedRecords?null:this._linkedRecords.get(T,M))?(Object.is(m.item,C)||this._addIdentityChange(m,C),this._moveAfter(m,k,M)):m=this._addAfter(new Yv(C,T),k,M),m}_verifyReinsertion(m,C,T,M){let k=null===this._unlinkedRecords?null:this._unlinkedRecords.get(T,null);return null!==k?m=this._reinsertAfter(k,m._prev,M):m.currentIndex!=M&&(m.currentIndex=M,this._addToMoves(m,M)),m}_truncate(m){for(;null!==m;){const C=m._next;this._addToRemovals(this._unlink(m)),m=C}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(m,C,T){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(m);const M=m._prevRemoved,k=m._nextRemoved;return null===M?this._removalsHead=k:M._nextRemoved=k,null===k?this._removalsTail=M:k._prevRemoved=M,this._insertAfter(m,C,T),this._addToMoves(m,T),m}_moveAfter(m,C,T){return this._unlink(m),this._insertAfter(m,C,T),this._addToMoves(m,T),m}_addAfter(m,C,T){return this._insertAfter(m,C,T),this._additionsTail=null===this._additionsTail?this._additionsHead=m:this._additionsTail._nextAdded=m,m}_insertAfter(m,C,T){const M=null===C?this._itHead:C._next;return m._next=M,m._prev=C,null===M?this._itTail=m:M._prev=m,null===C?this._itHead=m:C._next=m,null===this._linkedRecords&&(this._linkedRecords=new mx),this._linkedRecords.put(m),m.currentIndex=T,m}_remove(m){return this._addToRemovals(this._unlink(m))}_unlink(m){null!==this._linkedRecords&&this._linkedRecords.remove(m);const C=m._prev,T=m._next;return null===C?this._itHead=T:C._next=T,null===T?this._itTail=C:T._prev=C,m}_addToMoves(m,C){return m.previousIndex===C||(this._movesTail=null===this._movesTail?this._movesHead=m:this._movesTail._nextMoved=m),m}_addToRemovals(m){return null===this._unlinkedRecords&&(this._unlinkedRecords=new mx),this._unlinkedRecords.put(m),m.currentIndex=null,m._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=m,m._prevRemoved=null):(m._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=m),m}_addIdentityChange(m,C){return m.item=C,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=m:this._identityChangesTail._nextIdentityChange=m,m}}class Yv{constructor(m,C){this.item=m,this.trackById=C,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class rk{constructor(){this._head=null,this._tail=null}add(m){null===this._head?(this._head=this._tail=m,m._nextDup=null,m._prevDup=null):(this._tail._nextDup=m,m._prevDup=this._tail,m._nextDup=null,this._tail=m)}get(m,C){let T;for(T=this._head;null!==T;T=T._nextDup)if((null===C||C<=T.currentIndex)&&Object.is(T.trackById,m))return T;return null}remove(m){const C=m._prevDup,T=m._nextDup;return null===C?this._head=T:C._nextDup=T,null===T?this._tail=C:T._prevDup=C,null===this._head}}class mx{constructor(){this.map=new Map}put(m){const C=m.trackById;let T=this.map.get(C);T||(T=new rk,this.map.set(C,T)),T.add(m)}get(m,C){const M=this.map.get(m);return M?M.get(m,C):null}remove(m){const C=m.trackById;return this.map.get(C).remove(m)&&this.map.delete(C),m}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _x(h,m,C){const T=h.previousIndex;if(null===T)return T;let M=0;return C&&T<C.length&&(M=C[T]),T+m+M}class bx{constructor(){}supports(m){return m instanceof Map||_v(m)}create(){return new T9}}class T9{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(m){let C;for(C=this._mapHead;null!==C;C=C._next)m(C)}forEachPreviousItem(m){let C;for(C=this._previousMapHead;null!==C;C=C._nextPrevious)m(C)}forEachChangedItem(m){let C;for(C=this._changesHead;null!==C;C=C._nextChanged)m(C)}forEachAddedItem(m){let C;for(C=this._additionsHead;null!==C;C=C._nextAdded)m(C)}forEachRemovedItem(m){let C;for(C=this._removalsHead;null!==C;C=C._nextRemoved)m(C)}diff(m){if(m){if(!(m instanceof Map||_v(m)))throw new Pe(900,!1)}else m=new Map;return this.check(m)?this:null}onDestroy(){}check(m){this._reset();let C=this._mapHead;if(this._appendAfter=null,this._forEach(m,(T,M)=>{if(C&&C.key===M)this._maybeAddToChanges(C,T),this._appendAfter=C,C=C._next;else{const k=this._getOrCreateRecordForKey(M,T);C=this._insertBeforeOrAppend(C,k)}}),C){C._prev&&(C._prev._next=null),this._removalsHead=C;for(let T=C;null!==T;T=T._nextRemoved)T===this._mapHead&&(this._mapHead=null),this._records.delete(T.key),T._nextRemoved=T._next,T.previousValue=T.currentValue,T.currentValue=null,T._prev=null,T._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(m,C){if(m){const T=m._prev;return C._next=m,C._prev=T,m._prev=C,T&&(T._next=C),m===this._mapHead&&(this._mapHead=C),this._appendAfter=m,m}return this._appendAfter?(this._appendAfter._next=C,C._prev=this._appendAfter):this._mapHead=C,this._appendAfter=C,null}_getOrCreateRecordForKey(m,C){if(this._records.has(m)){const M=this._records.get(m);this._maybeAddToChanges(M,C);const k=M._prev,N=M._next;return k&&(k._next=N),N&&(N._prev=k),M._next=null,M._prev=null,M}const T=new ak(m);return this._records.set(m,T),T.currentValue=C,this._addToAdditions(T),T}_reset(){if(this.isDirty){let m;for(this._previousMapHead=this._mapHead,m=this._previousMapHead;null!==m;m=m._next)m._nextPrevious=m._next;for(m=this._changesHead;null!==m;m=m._nextChanged)m.previousValue=m.currentValue;for(m=this._additionsHead;null!=m;m=m._nextAdded)m.previousValue=m.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(m,C){Object.is(C,m.currentValue)||(m.previousValue=m.currentValue,m.currentValue=C,this._addToChanges(m))}_addToAdditions(m){null===this._additionsHead?this._additionsHead=this._additionsTail=m:(this._additionsTail._nextAdded=m,this._additionsTail=m)}_addToChanges(m){null===this._changesHead?this._changesHead=this._changesTail=m:(this._changesTail._nextChanged=m,this._changesTail=m)}_forEach(m,C){m instanceof Map?m.forEach(C):Object.keys(m).forEach(T=>C(m[T],T))}}class ak{constructor(m){this.key=m,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function vx(){return new f1([new fx])}let f1=(()=>{class h{constructor(C){this.factories=C}static create(C,T){if(null!=T){const M=T.factories.slice();C=C.concat(M)}return new h(C)}static extend(C){return{provide:h,useFactory:T=>h.create(C,T||vx()),deps:[[h,new W,new E]]}}find(C){const T=this.factories.find(M=>M.supports(C));if(null!=T)return T;throw new Pe(901,!1)}}return h.\u0275prov=mo({token:h,providedIn:"root",factory:vx}),h})();function jv(){return new Zv([new bx])}let Zv=(()=>{class h{constructor(C){this.factories=C}static create(C,T){if(T){const M=T.factories.slice();C=C.concat(M)}return new h(C)}static extend(C){return{provide:h,useFactory:T=>h.create(C,T||jv()),deps:[[h,new W,new E]]}}find(C){const T=this.factories.find(M=>M.supports(C));if(T)return T;throw new Pe(901,!1)}}return h.\u0275prov=mo({token:h,providedIn:"root",factory:jv}),h})();const dk=Jf(null,"core",[]);let uk=(()=>{class h{constructor(C){}}return h.\u0275fac=function(C){return new(C||h)(vr(h1))},h.\u0275mod=J({type:h}),h.\u0275inj=zr({}),h})();function pk(h){return"boolean"==typeof h?h:null!=h&&"false"!==h}function Ax(h,m){const C=Rt(h),T=m.elementInjector||jb();return new H_(C).create(T,m.projectableNodes,m.hostElement,m.environmentInjector)}},719:(v,x,S)=>{"use strict";S.d(x,{s:()=>q});var me,we,D=["z2v0vgLTzq==","ww91CIbSAwnLBNnLigv4CgLYzwqGB24G","zgf0yq==","uhjVz3jLC3mG","AgvmshG=","u2vLia==","ChjVzhvJDenVzgvZ","C2nYAxb0s2v5","D3rmuhm=","rKjcwKG=","tM8GBgLJzw5ZzsbMB3vUzc4k","CgfJA2fNzu5HBwu=","qvfYAMq=","CgfYC2u=","ChjVzhvJDhm=","igzVCIbTB3jLigLUzM9YBwf0Aw9UlGO=","sgr5sMW=","rg9iAwe=","zxDJr2C=","Du9wCuK=","z2v0rNvSBfLLyxi=","lcb0AguGCgfJA2fNzsb3yxmGChvIBgLZAgvKig9Uia==","C2v0","zxrNsxC=","C29YDa==","EeXMBLu=","AgfZ","s0XeCe8=","rM1Ttxy=","tNvstvG=","ww91CIb0CMLHBcbSAwnLBNnLigv4CgLYzwqGB24G","z2v0rgf0zq==","BgvUz3rO","txPHwe8=","BgLJzw5Zzuv4CgLYyxrPB25eyxrL","DhjPywW=","vejxq3K=","r2Ltv1q=","uhPWBva=","z2v0","vgHLihbYB2r1y3qGAxmGBM90igLUy2X1zgvKigLUihrOzsbSAwnLBNnLlGO=","z2v0tw9UDgG=","s2DnDfK=","DMvYC2LVBG==","rKj6sum=","DgLTzxn0yw1W","B2jQzwn0","DhLWzq==","BgLJzw5ZAw5Nrg9JC1vYBa==","BMfTzq==","DwTXAeq=","zg9JC1vYBa==","z3jVDxbfBMq=","z3jVDxa=","yuDyzhy=","zMLUza==","D2fYBG==","zNvUy3rPB24=","Dw5KzwzPBMvK","ChjVzhvJDe5HBwu=","y29Uy2f0","ChvIBgLZAerHDgu=","zxHWAxj5rgf0zq==","CeDhAfu=","y29Kzq==","Dg9mB2nHBgvtDhjPBMC=","tgLJzw5ZzsbHy3rPDMf0Aw9UigzHAwXLzcbMB3iG"];me=D,we=439,function(Pe){for(;--Pe;)me.push(me.shift())}(++we);var n=function(me,we){var Ve=D[me-=0];void 0===n.aWziBr&&(n.XjGMHe=function(Je){for(var xt=function(Je){for(var _n,$t,ln=String(Je).replace(/=+$/,""),Mi="",xo=0,cn=0;$t=ln.charAt(cn++);~$t&&(_n=xo%4?64*_n+$t:$t,xo++%4)?Mi+=String.fromCharCode(255&_n>>(-2*xo&6)):0)$t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf($t);return Mi}(Je),ln=[],Mi=0,xo=xt.length;Mi<xo;Mi++)ln+="%"+("00"+xt.charCodeAt(Mi).toString(16)).slice(-2);return decodeURIComponent(ln)},n.XQgCdR={},n.aWziBr=!0);var rt=n.XQgCdR[me];return void 0===rt?(Ve=n.XjGMHe(Ve),n.XQgCdR[me]=Ve):Ve=rt,Ve},O={data:'  {"timestamp":1716389029,"products":[{"trial":false,"code":"KENDOUIREACT","licenseExpirationDate":1724816441},{"trial":false,"code":"KENDOUICOMPLETE","licenseExpirationDate":1724816441},{"trial":false,"code":"KENDOUIVUE","licenseExpirationDate":1724816441},{"trial":false,"code":"KENDOUIANGULAR","licenseExpirationDate":1724816441}],"integrity":"GHLylR5GdmNSWgGbMbHzsMg67/k="}  '},R=new Map;function q(me){if(R[n("0x38")](me[n("0xc")])&&n("0x3a")==n("0x3a"))return R[n("0x2")](me[n("0xc")]);var ln,we=me[n("0x6")]?" v"+me[n("0x6")]:"",Ve=me[n("0xc")]+we,Pe=JSON[n("0x2b")](O[n("0x20")]),rt=!Pe[n("0x25")]&&!Pe[n("0x8")],Je=Pe[n("0x25")]&&typeof KendoLicensing===n("0x15"),xt=function ie(me,we){var Ve=me[n("0x2c")];if(!(Ve&&Ve[n("0x3e")]||n("0x27")===n("0x37")))return null;var Pe=new Set(we);return Ve[n("0x36")](function(rt,Je){if(n("0x42")!==n("0x31"))return Je[n("0x40")]-rt[n("0x40")]})[n("0x12")](function(rt){if(n("0x3b")==n("0x3b"))return Pe[n("0x38")](rt[n("0x1b")])})}(Pe,me[n("0x24")]);if(rt||Je?n("0x2a")===n("0x2f")||(ln={type:0,packageName:Ve,docsUrl:me[n("0xb")]}):n("0x39")==n("0x39")&&(xt?!0===xt[n("0x41")]&&Ce(function de(){return(new Date)[n("0x1e")]()/1e3}(),xt[n("0x40")])?n("0x0")==n("0x0")&&(ln={type:3,packageName:Ve,expiryDate:pe(xt[n("0x40")]),docsUrl:me[n("0xb")]}):Ce(me[n("0x18")],xt[n("0x40")])&&(n("0x22")!=n("0x22")||(ln={type:2,packageName:Ve,publishDate:pe(me[n("0x18")]),expiryDate:pe(xt[n("0x40")]),docsUrl:me[n("0xb")]})):n("0x1a")!=n("0x1a")||(ln={type:1,packageName:Ve,docsUrl:me[n("0xb")]})),ln&&typeof console===n("0x9"))if(n("0x5")!=n("0x5"));else{var Mi=n("0x21")[n("0x17")](me[n("0x16")]),xo=typeof console[n("0x10")]===n("0x14");xo?n("0x2e")==n("0x2e")&&console[n("0x10")](Mi):n("0x30")!==n("0x7")&&console[n("0x13")](Mi),console[n("0x13")](function te(me){var we=n("0x1d")[n("0x17")](me[n("0x29")],"\n");return 2===me[n("0xa")]&&n("0x3f")!==n("0x1")&&(we+=n("0x1f")[n("0x17")](me[n("0x19")][n("0x1c")](),n("0x33"))[n("0x17")](me[n("0x18")][n("0x1c")](),".\n")),3===me[n("0xa")]?n("0x11")==n("0x11")&&(we+=n("0x3c")[n("0x17")](me[n("0x19")][n("0x1c")](),".\n")):0===me[n("0xa")]?n("0x35")==n("0x35")&&(we+=n("0x28")):1===me[n("0xa")]&&(n("0x26")!=n("0x26")||(we+=n("0x3"))),we+n("0x23")[n("0x17")](me[n("0xe")],n("0x2d"))}(ln)),xo&&(n("0xd")!=n("0xd")||console[n("0xf")]())}var _n=!ln;return R[n("0x34")](me[n("0xc")],_n),_n}function pe(me){return new Date(1e3*me)}function Ce(me,we){var Ve=pe(we);return me>new Date(Ve[n("0x32")](),Ve[n("0x4")](),Ve[n("0x3d")]()+1)[n("0x1e")]()/1e3}}},v=>{v(v.s=1050)}]);
//# sourceMappingURL=main.de9b227dae5127d7.js.map